code stringlengths 2 1.05M |
|---|
// https://github.com/lepture/editor
(function(global) {
// CodeMirror is the only global var we claim
var CodeMirror = (function() {
"use strict";
// BROWSER SNIFFING
// Crude, but necessary to handle a number of hard-to-feature-detect
// bugs and behavior differences.
var gecko = /gecko\/\d/i.test(navigat... |
define('status', [], function () {
return {
attributes: {
space: {
recipe: 'test_private'
}
}
}
}); |
var gulp = require('gulp'),
rimraf = require('rimraf'),
Builder = require('systemjs-builder'),
runSequence = require('run-sequence'),
htmlMinifier = require('html-minifier'),
inlineNg2Template = require('gulp-inline-ng2-template'),
plugins = require('gulp-load-plugins')({
lazy: true
... |
var path = require('path');
var rootPath = path.normalize(__dirname + '/../../');
var secret = process.env.SECRET || 'devSecretStuff';
module.exports = {
development: {
rootPath: rootPath,
db: 'mongodb://localhost/jobs',
port: process.env.PORT || 3030,
secret: secret
},
production: {
rootPat... |
import { connect } from 'react-redux'
import PasswordPromptDialog from 'components/Settings/Security/PasswordPromptDialog'
import {
accountSelectors,
clearLoginError,
disablePassword as onOk,
PASSWORD_PROMPT_DIALOG_ID,
} from 'reducers/account'
import { closeDialog } from 'reducers/modal'
const onCancel = () =... |
'use strict';
module.exports = {
db: 'mongodb://localhost/ucsdcssa-framework-dev',
app: {
title: 'ucsdcssa-framework - Development Environment'
},
facebook: {
clientID: process.env.FACEBOOK_ID || 'APP_ID',
clientSecret: process.env.FACEBOOK_SECRET || 'APP_SECRET',
callbackURL: '/auth/facebook/callback'
},... |
'use strict';
// Init the application configuration module for AngularJS application
var ApplicationConfiguration = (function() {
// Init module configuration options
var applicationModuleName = 'voteonit';
var applicationModuleVendorDependencies = ['ngResource', 'ngCookies', 'ngAnimate', 'ngTouch', 'ngSan... |
/**
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
( function() {
// #### checkSelectionChange : START
// The selection change check basically saves the element parent tree of
// the current node and check... |
// All symbols in the Arabic Presentation Forms-B block as per Unicode v5.0.0:
[
'\uFE70',
'\uFE71',
'\uFE72',
'\uFE73',
'\uFE74',
'\uFE75',
'\uFE76',
'\uFE77',
'\uFE78',
'\uFE79',
'\uFE7A',
'\uFE7B',
'\uFE7C',
'\uFE7D',
'\uFE7E',
'\uFE7F',
'\uFE80',
'\uFE81',
'\uFE82',
'\uFE83',
'\uFE84',
'\uFE85... |
/*
* grunt-flyway
* https://github.com/bgaillard/grunt-flyway
*
* Copyright (c) 2013 Baptiste Gaillard
* Licensed under the MIT license.
*/
'use strict';
module.exports = function(grunt) {
var ChildProcess = require('child_process'),
Util = require('util'),
Os = require('os'),
Path ... |
'use strict';
angular.module("services")
.factory('tableSVC', [ "colorsSVC", function (colorsSVC) {
return {
fillData: function (headers, inData, colors, border) {
var data = { cols: []
, rows: []
};
... |
import axios from 'axios';
import PromiseWithTimout from '../utils/PromiseWithTimout';
import moment from 'moment';
import { WMJSGetServiceFromStore } from 'adaguc-webmapjs';
const _getSourceByName = (sources, name) => {
if (Object.keys(sources).includes(name)) {
return sources[name];
}
return null;
};
// R... |
/*
* Print Maps - High-resolution maps in the browser, for printing
* Copyright (c) 2015-2020 Matthew Petroff
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, incl... |
var searchData=
[
['refinementmodule',['refinementmodule',['../classrefinementmodule.html',1,'']]],
['refinesetup',['refinesetup',['../structrefinementmodule_1_1refinesetup.html',1,'refinementmodule']]],
['resetperiodicbounds',['resetperiodicbounds',['../interfacebetaplanemeshmodule_1_1resetperiodicbounds.html',1... |
var gulp = require('gulp'),
babel = require('gulp-babel'),
connect = require('gulp-connect'),
del = require('del'),
ghPages = require('gulp-gh-pages'),
imagemin = require('gulp-imagemin'),
jade = require('gulp-jade'),
nib = require('nib'),
p... |
// Sleep Between operations
var sleep = require('sleep');
// Powerful Fun with Command Line Arguments.
var ArguMints = require('argumints').ArguMints;
//var ArguMints = require('Z:\\workspaces\\github\\argumints\\argumints.js').ArguMints;
// Crawls the file system and captures files.
var Crawler = require('./utils/cr... |
var __read__camera__model__8m_8js =
[
[ "_read_camera_model_8m", "__read__camera__model__8m_8js.html#aa032487705d32a65efa8ac2a0986b9d0", null ]
]; |
version https://git-lfs.github.com/spec/v1
oid sha256:b25afb7b3ef8d5cd1ec6a266fb965954ae089be16f4b748d089f09886cec8457
size 59610
|
version https://git-lfs.github.com/spec/v1
oid sha256:f54ebb356e70503c6282a187e569e43806beaa636415e33b25a960fb6aad351d
size 1260
|
/**
* The IntactForest layer module.
*
* @return IntactForestLayer2000 class (extends CartoDBLayerClass)
*/
define(['abstract/layer/CartoDBLayerClass'], function(CartoDBLayerClass) {
'use strict';
var IntactForestLayer2000 = CartoDBLayerClass.extend({
options: {
sql:
"SELECT *, '{tableName}' ... |
jest.mock('react-native-fabric', () => ({
crash: () => {},
}));
jest.mock('@exponent/ex-navigation', () => ({
withNavigation: () => {},
createRouter: () => {},
}));
|
module.exports = function (db, Types) {
var StoreAddress = db.define('StoreAddress', {
address: {
type: Types.STRING
},
cp: {
type: Types.STRING
},
city: {
type: Types.STRING
},
complementary_addresss: {
type: Types.STRING
},
lat: {
type... |
goog.provide('p90x3.Video');
/**
* @constructor
* @param {!string} source
* @param {!string} type
*/
p90x3.Video = function (source, type) {
/**
* @private
* @type {!string}
*/
this.source_ = source;
/**
* @private
* @type {!string}
*/
this.type_ = type;
};
(function () {
'use strict';
/**
*... |
'use strict';
/*
* Defining the Package
*/
var Module = require('meanio').Module;
var Teams = new Module('teams');
/*
* All MEAN packages require registration
* Dependency injection is used to define required modules
*/
Teams.register(function(app, auth, database) {
//We enable routing. By default the Pack... |
var app = require('app/app'),
BaseLayoutView = require('./BaseLayoutView'),
$ = require('jquery'),
helpers = require('utils/helpers'),
constants = require('utils/constants'),
template = require('templates/header.hbs');
module.exports = BaseLayoutView.extend({
tagName: 'header',
className:... |
import {settingsActionTypes} from './../actions/_types'
import Helper from './_helpers'
let initialState = {
default: {
app: {
language: "ru"
},
index: {
tagsSearchType: "intersect"
},
items: {
itemsPerPage: 10
}
},
released: {},
edited: {}
};
export default function settings(state = initial... |
'use strict';
var _ = require('underscore');
var assert = require('assert');
var fs = require('fs');
var sinon = require('sinon');
var tmp = require('tmp');
var Q = require('q');
var Gremlin = require('../lib/gremlin');
var GraphWrapper = require('../lib/graph-wrapper');
var VertexWrapper = require('../lib/vertex-wrap... |
import $ from 'jquery';
import 'components/scbd-branding/main';
export { default as template } from './login-dialog.html';
export default ["$scope", "$location", "authentication", "realm", function ($scope, $location, authentication, realm){
$scope.chShortName = realm.chShortName;
$scope.email = realm.orig... |
import { combineReducers } from 'redux';
import getModuleStatusReducer from '../../lib/getModuleStatusReducer';
import messageTypes from '../../enums/messageTypes';
import { normalizeRecord } from '../../lib/messageHelper';
import status from './status';
export function getSearchInputReducer(types) {
return (state ... |
8.0-alpha3:b9a9e808f9fd436da866b829f563a385da9b557583cd82f3829070d0396becf7
8.0-alpha4:b9a9e808f9fd436da866b829f563a385da9b557583cd82f3829070d0396becf7
8.0-alpha5:b9a9e808f9fd436da866b829f563a385da9b557583cd82f3829070d0396becf7
8.0-alpha6:b9a9e808f9fd436da866b829f563a385da9b557583cd82f3829070d0396becf7
8.0-alpha7:b9a9e... |
define(['jquery', 'DoughBaseComponent'], function($, DoughBaseComponent) {
'use strict';
var ClearInput,
defaultConfig = {
uiEvents: {
'keyup [data-dough-clear-input]' : 'updateResetButton',
'click [data-dough-clear-input-button]' : 'resetForm'
}
};
ClearInput = ... |
var express = require('express');
var router = express.Router();
router.get('/password', function(req, res) {
res.render('password', { title: 'Smart Washrooms - Reset Password' });
});
router.post('/password', function(req, res) {
res.render('password', { title: 'Smart Washrooms - Reset Password', user: req.s... |
import React from 'react';
import scrollSpy from './scroll-spy';
import defaultScroller from './scroller';
import PropTypes from 'prop-types';
import scrollHash from './scroll-hash';
const protoTypes = {
to: PropTypes.string.isRequired,
containerId: PropTypes.string,
container: PropTypes.object,
activeClass: ... |
/**
* Toolbar for KISSY.
* @author yiminghe@gmail.com
*/
KISSY.add("toolbar", function (S, Component, Node, Separator, undefined) {
var KeyCodes = Node.KeyCodes;
function getNextEnabledItem(index, direction, self) {
var children = self.get("children"),
count = 0,
childrenLen... |
'use strict';
// Register `tdb` component, along with its associated controller and template
angular.module('template').component('sms', {
templateUrl: 'view/template-management/sms.html',
controller: ["$scope", "$http", "smsService", "SbuxUtil", "$location", "$rootScope","RoleService", function smsController($sco... |
import Ember from 'ember';
import { validator, buildValidations } from 'ember-cp-validations';
import ValidationErrorDisplay from 'ilios/mixins/validation-error-display';
const { Component, RSVP, computed } = Ember;
const { alias } = computed;
const { Promise } = RSVP;
const Validations = buildValidations({
descript... |
(function(angular, CLIENT_VERSION, BOARD_ROOT_PATH) {
'use strict';
/**
* @todo избавиться от блоков resolve v будущем
**/
angular.module('gitlabKBApp.board', [
'ui.router',
'as.sortable',
'mm.foundation.dropdownToggle',
'gitlabKBApp.websocket',
... |
/* @flow */
import { ROUTE_CHANGE, FETCH_NODES } from '../actions/types';
import handleReducers, { type Handlers } from './handler';
import type { Action, NodeMapType } from '../flows';
const handlers: Handlers<?NodeMapType> = {
// language was changed so all translation data is removed
[ROUTE_CHANGE]: (state,... |
// console.log('global', global);
// console.log('routes', routes);
var FP = Function.prototype,
AP = Array.prototype,
OP = Object.prototype;
var bindbind = FP.bind.bind(FP.bind),
callbind = bindbind(FP.bind),
applybind = bindbind(FP.apply);
var has = callbind(OP.has... |
/* globals RocketChat */
import _ from 'underscore';
import s from 'underscore.string';
RocketChat.createRoom = function(type, name, owner, members, readOnly, extraData={}) {
name = s.trim(name);
owner = s.trim(owner);
members = [].concat(members);
if (!name) {
throw new Meteor.Error('error-invalid-name', 'Inva... |
var searchData=
[
['alignment',['Alignment',['../classsol_1_1_label.html#a23f2f3e45d67d3d606feb8562ccf8f7f',1,'sol::Label']]],
['attribflag',['AttribFlag',['../namespacesol.html#a9c323eac916038cec2e37951d2b922f6',1,'sol']]]
];
|
'use strict';
// The actual grunt server settings
module.exports = {
options: {
port: 9000,
// Change this to '0.0.0.0' to access the server from outside.
hostname: 'localhost',
livereload: 35729
},
livereload: {
options: {
open: true,
middleware: function(connect) {
retur... |
/**
* @param {number[]} nums1
* @param {number[]} nums2
* @return {number[]}
*/
var intersection = function(nums1, nums2) {
let set1 = new Set(nums1);
return [...new Set(nums2.filter(n => set1.has(n)))];
};
// TESTS
[
[[], []],
[[1], [2]],
[[1, 2, 2], [3]],
[
[1, 2, 2, 1],
[2, 2]
],
[
[4... |
version https://git-lfs.github.com/spec/v1
oid sha256:37b7fe8c7549143c0bde5b5463fcc527f39240134638df1ff5846163a6e1baac
size 1035
|
var gulp = require('gulp');
var typescript = require('gulp-typescript');
var jasmine = require('gulp-jasmine-phantom');
var stripDebug = require('gulp-strip-debug');
var del = require('del');
var addSrc = require('gulp-add-src');
var concat = require('gulp-concat');
var reporters = require('jasmine-reporters');
gulp.t... |
depman.use(['vendor.backbone'], function (Backbone) {
console.log(Backbone);
return {
sum: function (a, b) {
document.getElementById('solver').innerHTML = (a+b).toString();
}
};
}, 'solver'); |
var express = require('express'),
mongoose = require('mongoose'),
cronJob = require('cron').CronJob,
fs = require('fs'),
util = require('util'),
mkdirp = require('mkdirp'),
moment = require('moment'),
chainsaw = require('./lib/chainsaw');
var env = process.env.NODE_ENV || 'development',
... |
import { assert } from 'chai';
import { serializeTree, deserializeTree } from 'utils/tree-util';
import { closestValue, closestValueR } from '../closest-binary-search-tree-value';
describe('Closest Binary Search Tree Value', () => {
const testCases = [['1', 0, 1], ['3,2,7,1,null,5,9', 4.9, 5], ['3,2,7', 7, 7], ['7,3... |
import React, {PropTypes} from 'react';
import {connect} from 'react-redux';
class App extends React.Component {
constructor(props, context) {
super(props, context);
this.toggleMenu=this.toggleMenu.bind(this);
this.state = {
isOpened: false
};
}
toggleMenu(event) {
event.preventDefault();
this.... |
import React, { Component } from 'react'
import { Form } from 'shengnian-ui-react'
class FormExampleClearOnSubmit extends Component {
state = {}
handleChange = (e, { name, value }) => this.setState({ [name]: value })
handleSubmit = () => this.setState({ email: '', name: '' })
render() {
const { name, em... |
import { h } from 'omi';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(h("path", {
d: "M19 7h-8v6h8V7zm-2 4h-4V9h4v2zm4-8H3c-1.1 0-2 .9-2 2v14c0 1.1.9 1.98 2 1.98h18c1.1 0 2-.88 2-1.98V5c0-1.1-.9-2-2-2zm0 16.01H3V4.98h18v14.03z"
}), 'PictureInPictureOutlined'); |
define(["jquery", "knockout", "bootstrap", "data-table"], function($, ko){
window.refreshTable = function refreshLogHistoryTable() {
$('#tlhp_log_history_table').DataTable().ajax.reload();
}
/*$(function(){
$('#kode_temuan').DataTable({
"processing": true,
"serverSide": true... |
////////////////////////////////////////////////
/* Provided Code - Please Don't Edit */
////////////////////////////////////////////////
'use strict';
function getInput() {
console.log("Please choose either 'rock', 'paper', or 'scissors'.")
return prompt();
}
function randomPlay() {
var randomNumber =... |
var thoonkmodule = require('./thoonk');
var Feed = function(name, thoonk) {
thoonkmodule.ThoonkBaseObject.call(this, name, thoonk);
this.subscribables = ['publish', 'edit', 'retract'];
this.subinitted = false;
};
Feed.prototype = thoonkmodule.ThoonkBaseObject.prototype;
Feed.prototype.constructor = Feed;
... |
var mongoose = require('mongoose'),
mongoosePaginate = require('mongoose-paginate'),
Schema = mongoose.Schema,
bcrypt = require('bcrypt'),
ObjectId = Schema.Types.ObjectId,
SALT_WORK_FACTOR = 10;
var UserSchema = new Schema({
name: {
first: {
type: String
},
last: {
typ... |
/* eslint no-var: 0 */
var path = require('path');
require('babel/register');
require('dotenv').load({
path: path.join(__dirname, '.env'),
});
var port = process.env.PORT || 3000;
var app = require('./app');
var server = require('http').Server(app);
server.listen(port);
/* eslint no-console: 0 */
console.log(... |
var exec = require('cordova/exec');
var PLUGIN_NAME = 'AccountKitPlugin';
var AccountKitPlugin = {
loginWithEmail: function(options, onSuccess, onFailure) {
options = options || {};
exec(onSuccess, onFailure, PLUGIN_NAME, 'loginWithEmail', [options]);
},
loginWithPhoneNumber: function(options, onSucces... |
define(["require", "exports"], function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Configure = (function () {
function Configure() {
this._config = {
apiScript: 'https://maps.googleapis.com/maps/api/js',
... |
/*Contains multiple services for various helper tasks */
function versionHelper() {
return {
//see: https://gist.github.com/TheDistantSea/8021359
versionCompare: function(v1, v2, options) {
var lexicographical = options && options.lexicographical,
zeroExtend = o... |
import { expect } from 'chai';
import { spy } from 'sinon';
import * as Utils from '../src/utils';
import { PI } from '../src/constants';
describe('colorAsInt() Unit Tests', () => {
it('Parses the correct color given a Hexidecimal color code', (done) => {
expect(Utils.colorAsInt('#f21117')).to.be.a('number').th... |
describe('DSCache.info()', function () {
it('should return the correct values.', function () {
var onExpire = function () {
};
var cache = TestDSCacheFactory('cache'),
cache2 = TestDSCacheFactory('cache2', { maxAge: 1000 }),
cache3 = TestDSCacheFactory('cache3', { cacheFlushInterval: 1000 }),
... |
/* eslint-disable no-console */
const path = require('path');
const fse = require('fs-extra');
function copyReadme() {
return fse
.copyFile(
path.resolve(__dirname, '..', 'README.md'),
path.resolve(__dirname, 'build', 'README.md')
)
.then(() => console.log('> Copied README.md'));
}
function ... |
//-------------------------------------
//-- Nav
//-------------------------------------
import React from 'react';
import { NavLink } from 'react-router-dom';
import { tree } from '../helpers/generated';
class Nav extends React.PureComponent {
render() {
const items = [];
Object.keys(tree).forEach((le... |
import test from 'ava'
var sletTest = require('slettest')
const Slet = require('../../slet')
const app = new Slet({
root: __dirname,
debug: false
})
app.router('fixtures/basectrl')
app.router('fixtures/basectrl2')
test.cb('GET /base test this.end()', t => {
sletTest(app)
.get('/base')
.expect(404, fun... |
/*!
* node-feedparser
* Copyright(c) 2013 Dan MacTough <danmactough@gmail.com>
* MIT Licensed
*/
var FeedParser = require(__dirname+'/..')
, fs = require('fs')
, feed = '../test/feeds/rss2sample.xml';
FeedParser.parseStream(fs.createReadStream(feed), function (err, meta, articles) {
if (err) return console.... |
/* global before, after, faker, describe, helpers, expect */
describe.only('books CRUD', function () {
var currBook
var testUrl = helpers.variables.apiEndpoint + '/books'
function getBookData () {
return {
title: faker.commerce.productName(),
description: faker.lorem.paragraph(),
author: fa... |
PhoneGap.addConstructor(function() { if (typeof navigator.fileMgr == "undefined") navigator.fileMgr = new FileMgr();});
/**
* This class provides iPhone read and write access to the mobile device file system.
* Based loosely on http://www.w3.org/TR/2009/WD-FileAPI-20091117/#dfn-empty
*/
function FileMgr()
{
t... |
'use strict';
var express = require('express');
var app = express();
app.all('*', function (req, res, next) {
res.header('Access-Control-Allow-Origin', req.headers.origin);
res.header('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE');
res.header('Access-Control-Allow-Headers',
'Content-Type, Authoriz... |
import Immutable from 'immutable';
import immutableAlt from 'alt-utils/lib/ImmutableUtil';
@immutableAlt
class AuthStore {
constructor() {
this.bindActions(this.alt.getActions('auth'));
this.state = Immutable.Map({
isAuthenticated: false,
userName: null
});
}
onSetUser(user) {
this.set... |
function insertCategory(element, index, array){
Categories.insert({name: element})
}
var insertCategories = function() {
var defaultCategories = [
"dunnhumby"
];
defaultCategories.forEach(insertCategory);
};
Meteor.startup(function () {
if (!Events.findOne({name: 'insertCategor... |
importScripts('./js/serviceworker-cache-polyfill.js');
var CACHE_NAME = 'berrynoid-v2';
var urlsToCache = [
'./',
'./css/ark.css',
'./js/berrynoid.js',
'./js/quo.js',
'./js/serviceworker-cache-polyfill.js',
'./favicon.ico',
'./icon.png',
'./block_0.png',
'./block_1.png',
'./block_2.png',
'./block... |
/** @babel */
describe('atom-language-rust', () => {
const PACKAGE_NAME = 'atom-language-rust';
const COLORS_CONFIG = `${PACKAGE_NAME}.colors`;
const SCOPE_CASES = {
attribute: '#[test]',
documentation: '/// doc',
lifetime: '\'static',
macro: 'panic!()',
parameter: 'fn foo(bar: i32) {}'
};... |
(function($) {
"use strict"; // Start of use strict
// jQuery for page scrolling feature - requires jQuery Easing plugin
$('a.page-scroll').bind('click', function(event) {
var $anchor = $(this);
$('html, body').stop().animate({
scrollTop: ($($anchor.attr('href')).offset().top - ... |
"use strict";
$(document).ready(function () {
//This calls the Google API
$.ajax({
url: "https://www.googleapis.com/auth/calendar",
type: "GET"
}).done(function (data) {
var events = data.result.items;
for (var i = 0; i < events.length; i++) {
var event = event... |
/**
* @ngdoc controller
* @name mainMenu.controller:MainMenuController
* @description
* The controller for the main menu
*
*/
(function () {
'use strict';
// register the controller as MainMenuController
angular
.module('<%= scriptAppName %>.mainMenu')
.controller('MainMenuController', MainMenuCon... |
import getInputContainer from '../InputContainer';
export default getInputContainer('onSurnameChange');
|
import { createSelector } from 'reselect';
const emptyObj = {};
export const areTagsLoading = state => state.tags.didInvalidate;
export const getTagIds = state => state.tags.items.result;
export const getTagEntities = state => state.tags.items.entities.tags || emptyObj;
export const getTags = createSelector(
[getT... |
var class_tempest_1_1_direction_light =
[
[ "DirectionLight", "class_tempest_1_1_direction_light.html#ad4c0856107bb83e3d3db36b3c2a96036", null ],
[ "ablimient", "class_tempest_1_1_direction_light.html#adadf6cc50aceffde5ba8ad54eb0336d1", null ],
[ "color", "class_tempest_1_1_direction_light.html#aa0552d57b94... |
'use strict'
const assert = require('chai').assert
const uuid = require('uuid').v4
const sort = require('../../src/utils/sort')
// Imitates the behaviour of the render function for links.
const passThroughLinks = (_) => _
// Imitates the behaviour of the render function for components.
// The function always returns... |
'use strict';
var path = require('path')
, NAMES = require(path.join(__dirname, 'metrics', 'names'))
, Timer = require(path.join(__dirname, 'timer'))
;
/*
*
* CONSTANTS
*
*/
var TO_MILLIS = 1e3;
var samplers = [];
function Sampler(sampler, interval) {
this.id = setInterval(sampler, i... |
'use strict';
var should = require('should'),
request = require('supertest'),
path = require('path'),
mongoose = require('mongoose'),
User = mongoose.model('User'),
ManageContact = mongoose.model('ManageContact'),
express = require(path.resolve('./config/lib/express'));
/**
* Globals
*/
var app, agent, creden... |
/**
*
* @flow
*/
'use strict';
import React from 'react';
import {connect} from 'react-redux';
import {
Navigator,
Alert,
} from 'react-native';
import WelcomeView from '../common/WelcomeView';
import SignupForm from './SignupForm';
type Props = {
navigator: Navigator;
isLoggedIn: boolean;
}
const... |
(function($) {
'use strict';
let _defaults = {
// Close when date is selected
autoClose: false,
// the default output format for the input field value
format: 'mmm dd, yyyy',
// Used to create date object from current input string
parse: null,
// The initial date to view when first ... |
var Q = require('q');
var fs = require('graceful-fs');
var path = require('path');
var mout = require('mout');
var resolvers = require('./resolvers');
var createError = require('../util/createError');
/**
* Description
* @method createInstance
* @param {} decEndpoint
* @param {} config
* @param {} logger
* @para... |
'use strict';
var gulp = require('gulp');
gulp.task('watch', ['styles'], function () {
gulp.watch('app/styles/**/*.scss', ['styles']);
gulp.watch('app/scripts/**/*.js', ['scripts']);
gulp.watch('app/jade/**/*.jade', ['jade']);
gulp.watch('app/images/**/*', ['images']);
});
|
import uuid from 'node-uuid';
import alt from '../libs/alt';
import QuestionActions from '../actions/QuestionActions';
import server from '../libs/serverurls';
class QuestionStore {
constructor() {
this.bindActions(QuestionActions);
this.question = { sender: null, questionMsg: null};
this.notifs = 0;
... |
import pickBy from 'lodash/pickby'
import React from 'react'
import { memoize } from 'memo'
import { emptyS, emptyO } from 'utils'
export const itemReadField = (field, label, fvalue, key) => (
<div {...(key == null ? emptyO : { key })} className={'grid-row form'}>
<div className={'grid-head-cell label-col'}>
... |
/** Converts to local date format and puts timestamp in local date format. */
function updateTimestamps(locale) {
$(document).ready(function () {
$(".timestamp").each(function() {
if ($(this).hasClass('local')) {
return;
}
$(this).addClass('local');
... |
/*
ServerJS Javascript DOM Level 1
*/
var core = {
mapper: function(parent, filter, recursive) {
return function() {
return core.mapDOMNodes(parent, recursive !== false, filter);
};
},
// Returns Array
mapDOMNodes : function(parent, recursive, callback) {
var results = [], result, child... |
import Ember from 'ember';
export default Ember.Controller.extend({
actions: {
saved(link) {
this.transitionToRoute('links.link', link.get('id'));
},
canceled(link) {
this.transitionToRoute('links.index');
}
}
});
|
var gulp = require('gulp');
var gutil = require('gulp-util');
var beep = require('beepbeep');
var plumber = require('gulp-plumber');
var jshint = require('gulp-jshint');
var stylish = require('jshint-stylish');
var paths = require('../paths');
var onError = function (err) {
beep();
this.emit('end');
};
gulp.task(... |
for(var i = 0; i < 35; i++) { var scriptId = 'u' + i; window[scriptId] = document.getElementById(scriptId); }
$axure.eventManager.pageLoad(
function (e) {
});
gv_vAlignTable['u20'] = 'center';gv_vAlignTable['u22'] = 'center';gv_vAlignTable['u23'] = 'top';gv_vAlignTable['u25'] = 'center';document.getElementById(... |
app.service('MenuItemService', function () {
return {
'subtitle 1': [
'Item',
'Item',
'Item',
'Item',
'Item',
'Item',
'Item',
'Item',
'Item',
'Item',
'Item'
],
... |
//
// Fruit Link - HTML5 mobile game built with Hydra
// https://github.com/aduros/hydra/blob/master/projects/LICENSE.txt
goog.provide("jam.BoardSprite");
goog.require("hydra.Group");
goog.require("hydra.task.StyleTo");
goog.require("hydra.task.SelfDestruct");
goog.require("hydra.task.Sequence");
goog.require("hydra.... |
var searchData=
[
['chance',['Chance',['../class_b_a_d_1_1_chance.html',1,'BAD']]],
['componentmethodlookup',['ComponentMethodLookup',['../class_b_a_d_1_1_component_method_lookup.html',1,'BAD']]],
['condition',['Condition',['../class_b_a_d_1_1_condition.html',1,'BAD']]],
['cooldown',['Cooldown',['../class_b_a_d... |
import angular from 'angular';
const { NG_MODULES } = global;
const MODULE_NAME = 'app.component.nav';
export default MODULE_NAME;
angular.module(MODULE_NAME, [ ...NG_MODULES(), ...modules() ]); // eslint-disable-line new-cap
/**
* Import top level modules
* @returns {[string]} List of imports
*/
function module... |
/*!
* SAP UI development toolkit for HTML5 (SAPUI5/OpenUI5)
* (c) Copyright 2009-2015 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
//Provides the locale object sap.ui.core.LocaleData
sap.ui.define(['jquery.sap.global', 'sap/ui/base/Object', './Configura... |
/**
* jQuery带箭头提示框插件
* email: tianshaojie@msn.com
* date: 2013-01-15
* version: 1.0.0
*/
(function($) {
var max = Math.max,
min = Math.min;
$.pt = $.pureToolTips = function(options) {
var opts = $.extend({
target : null, //目标元素,不能为空
position : 't', //提示框相对目标元素位置 t=top,b=bottom,r=right,l=left
al... |
'use strict';
var helpers = require('app/api/helpers');
var pr = require('app/util/pr');
var auth = require('app/util/auth');
var router_impl = require('app/api/user/router_impl');
var util_router_impl = require('app/api/util/router_impl');
var express = require('express');
var router = new express.Router();
// Acc... |
import { app, BrowserWindow } from 'electron'; // eslint-disable-line
import bootstrap from './bootstrap';
/**
* Set `__static` path to static files in production
* https://simulatedgreg.gitbooks.io/electron-vue/content/en/using-static-assets.html
*/
if (process.env.NODE_ENV !== 'development') {
global.__static =... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.