code
stringlengths
2
1.05M
define(["github:aurelia/history@0.6.1/aurelia-history"], function(main) { return main; });
'use strict'; module.exports = function(grunt) { // Project configuration. grunt.initConfig({ nodeunit: { files: ['test/**/*_test.js'], }, jshint: { options: { jshintrc: '.jshintrc' }, gruntfile: { src: 'Gruntfile.js' }, app: { src: 'app.js' ...
/* eslint-disable no-use-before-define */ import Immutable from 'immutable' import { camelizeKeys } from 'humps' import { merge } from 'lodash' import * as ACTION_TYPES from '../constants/action_types' // Like .getIn but for regular JS objects // Does not break if object is missing a key in the middle // TODO: Immutab...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" /></g> , 'Room');
export default ({instanceId}) => { let gestures = [] let callback = () => {} function process(input, session, calculator) { gestures.forEach(gesture => gesture.doCheck(input, session, calculator)) } return { add(gesture) { gestures.push( gesture .onall((event, ...args) => ...
angular.module('ionicWeather.controllers', []); angular.module('ionicWeather.services', []); angular.module('ionicWeather.filters', []); angular.module('ionicWeather', ['ionic', 'ionicWeather.controllers', 'ionicWeather.services', 'ionicWeather.filters', 'ngMaterial', 'angular-cache', 'pascalprecht.translate']) .run(f...
import Ember from 'ember-metal/core'; import run from 'ember-metal/run_loop'; import {computed} from 'ember-metal/computed'; import ArrayProxy from 'ember-runtime/system/array_proxy'; var array; QUnit.module('ArrayProxy - arrangedContent', { setup() { run(function() { array = ArrayProxy.createWithMixins({...
(() => { 'use strict'; angular .module('app') .config(ProgressSegment); function ProgressSegment($routeSegmentProvider) { $routeSegmentProvider.when('/progress', 'progress').segment('progress', { templateUrl: 'progress/progress.html', controller: 'Progress...
define('radiansToDegrees', function() { return function radiansToDegrees(radians) { return radians * (180/Math.PI); }; });
/* ------------------ UTILS ------------------ */ let utils = (function() { function init() { leaveButton = document.querySelector('#leaveButton'); } function getAllPlanetElements() { return document.querySelectorAll('.planet-sphere'); } function show(element) { if (eleme...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = undefined; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor...
/*! * TwineJson * * Based on Entweedle by Michael McCollum * Copyright(c) 2015 Páprica Comunicação http://papricacomunicacao.com.br * Copyright(c) 2015-2016 Cauli Tomaz https://cau.li * MIT Licensed * * https://github.com/cauli/TwineJson */ /** * Transforms plain JSON structures into hierarchical JSON * * @return {} *...
import React from 'react'; import {convertToCurrency} from '../utils'; import {BootstrapTable, TableHeaderColumn} from 'react-bootstrap-table'; function format(cell){ return convertToCurrency(cell); } class TableDisplayOfTheMortgage extends React.Component { constructor(props) { super(props) this.state = { ...
// import './examples/rect'; import './examples/simple-area'; // import './examples/dynamic-area'; // import './examples/transition-area';
//only run on win32 if ( process.platform !== 'win32' ) { process.exit( 0 ); } /* * Notes about this script: * It's a mess because of the callback hell, I could have used a promise library here, * but adding a dependency that is going to be used only in a single script, that is executed * only on Windows machi...
var config = require('config'); var userAdresses = config.get('Users'); var flood = require('../lib/flood'); var arp = require('../lib/arp'); module.exports = { getMacAddresses: function() { return new Promise((resolve, reject) => { flood.flood({ max_hosts: 256 }).then(() => { ...
Template.Layout.events({ "change #side": function (event) { Meteor.call('changeLayout', this.user._id, event.target.value, function(err, isActive){ if (err){ console.error(err); toastr.error(err.reason, "Error!"); } }); }, "change #top": function(event){ ...
[ { "id": "poring_field", "name": "Poring Field", "next": "poring_field2", "current": true, "locked": false, "enemies": [ "Poring", "Drops", "Poporing", "Marine" ], "boss": "Poring_King" }, { ...
import React from 'react'; import { header, tabs, tab, description, importExample, title, divider, example, playground, api, testkit, } from 'wix-storybook-utils/Sections'; import LinkTo from '@storybook/addon-links/react'; import * as examples from './examples'; import migrationMarkdown from './...
import moment from 'moment' export function getMeta() { return { name: 'root', component: 'Layout', className: 'mk-app-modify-password', children: [{ name: 'form', component: 'Form', className: 'mk-app-modify-password-form', children: [{ name: 'oldPasswordItem', component: 'Form.Item', ...
it('should expose a .<%= camelcase(alias) %> method', function() { assert.equal(typeof app.<%= camelcase(alias) %>, 'function'); });
/*global $,it,expect*/ /* jshint undef: false */ describe('VisSense CommonJS', function () { 'use strict'; it('should require VisSense object', function () { jasmine.getFixtures().set('<div id="element" style="width: 1px; height: 1px;"></div>'); var VisSense = require('../dist/vissense')(window); exp...
import React, {Component} from 'react'; import {connect} from 'react-redux'; import {actionCreators} from '../../public/store'; import Album from '../../components/Album'; import AlbumEdit from '../../components/AlbumEdit'; import './AlbumCon.scss' class AlbumCon extends Component { constructor () { super...
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React, { Component, PropTypes } from 'react'; impor...
angular.module('dataSharing.controllers', []); angular.module('dataSharing', ['dataSharing.controllers']);
var read = require('node-read'); var async = require('async'); var debug = require('debug')('sitescraper:content-fetcher'); var util = require('util'); var Entities = require('html-entities').AllHtmlEntities; var entities = new Entities(); var helpers = require('./helpers'); var url = require('url'); exports = module....
import fs from 'fs'; import resolve from 'rollup-plugin-node-resolve'; import commonjs from 'rollup-plugin-commonjs'; import babel from 'rollup-plugin-babel'; const pkg = JSON.parse(fs.readFileSync('./package.json')); const extensions = ['.ts', '.tsx', '.js', '.jsx']; export default { input: 'src/index.ts', exte...
/*! * jQuery JavaScript Library v2.2.4 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright jQuery Foundation and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2016-05-20T17:23Z */ (function (global, factory) { if (typeof module =...
'use strict'; var MapView = SL.View.extend({ defaults: { viz: { templateURL: '//<%- username %>.cartodb.com/api/v2/viz/<%-id %>/viz.json' }, mapOptions: { center: [40.74442, -73.970], zoom: 13, https: true, zoomControl: true, scrollwheel: true, loaderControl: tr...
(function ($) { $( document ).ready( function () { init(); }); function init() { $("#cuenco_submit").click(function(){ $.post($SCRIPT_ROOT + "/_urlgen", {url: $("#url").val()}, function(data) { $("#url").val((data.result)); }); }); $('#url').keypress(function (e) { if (e.which == 13) { ...
import React, {Component, PropTypes} from 'react'; import styles from './ForecastCurrent.css'; import {FormattedDate, FormattedMessage} from 'react-intl' import { AreaChart, Area, ResponsiveContainer, Tooltip, XAxis } from 'recharts'; import {FaTint, FaFlag} from 'react-icons/lib/fa'; export default function ForecastC...
import lutMatches from './lutMatches.js'; import generateLut from '../internal/generateLut.js'; /** * Retrieve or generate a LUT Array for an Image and Viewport * * @param {Image} image An Image Object * @param {Viewport} viewport An Viewport Object * @param {Boolean} invalidated Whether or not the LUT data has b...
module.exports = { module: { name: 'pipWebUI' }, submodules: [ 'pip-webui-lib', 'pip-webui-css', 'pip-webui-headers', 'pip-webui-landing', 'pip-webui-services', 'pip-webui-themes', 'pip-webui-behaviors', 'pip-webui-controls', 'p...
/*Author: Tushar Borole Discription:It contain page route information Copyright:Seed Inc. 2014*/ angular .module('seed').config(['$stateProvider', '$locationProvider', '$urlRouterProvider', 'RouteHelpersProvider', function ($stateProvider, $locationProvider, $urlRouterProvider, helper) { 'use strict';...
/** * Created by feng on 16/12/10. */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Image, TouchableOpacity, Switch, } from 'react-native'; var IMWindow = require('Dimensions').get('window'); var IMCell = React.createClass({ // getDefaultPr...
'use strict' module.exports = exports = require('./plugin') exports.pre = require('./pre')
import defaultOptions from './default-options'; import getParser from './parsers'; import { generateSourceWithDecorators, generateSourceWithoutDecorators, generateStorySource, generateStoriesLocationsMap, generateDependencies, generateSourcesInExportedParameters, } from './generate-helpers'; function exte...
var mongoose = require('mongoose'); process.env.NODE_ENV = 'test'; after(function (done) { mongoose.models = {}; mongoose.modelSchemas = {}; mongoose.disconnect(); return done(); });
import { resolve as solve } from 'path' import { execFile } from 'child_process' import { path } from 'phantomjs-prebuilt' export default (source) => { const args = [ '--load-images=false', solve(__dirname, 'render.js'), source ] const opts = { maxBuffer: 1024 * 1024 } return new Promise((resolve, reject) => { ...
'use strict'; // Declare app level module which depends on views, and components angular.module('myApp', [ 'ngRoute', 'myApp.menu', 'myApp.services.menu', 'myApp.home', 'myApp.register', 'myApp.welcome', 'myApp.addPost', 'myApp.directives.scrollEvent' ...
'use strict'; var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = ...
describe('PhoneListCtrl', function() { beforeEach(module('phonecatApp')); it('should create phone model with 2 phones', inject(function($controller) { var scope = {}; ctrl = $controller('PhoneListCtrl', {$scope: scope}); expect(scope.phones.length).toBe(3); })); });
function loadUser () { var template = document.getElementById('template').innerHTML; Mustache.parse( template ); var rendered = Mustache.render(template, {name: "luke"}); document.getElementById('target').innerHTML = rendered; } window.onload = function () { loadUser(); };
'use strict' const { get } = require('lodash') const CATEGORIES_SINGULAR = require('./categories-singular.json') const CATEGORIES_PLURAL = require('./categories-plural.json') const createFactory = categories => key => { const category = get(categories, key, categories.others) return category } const categories ...
define(["backbone"], function(Backbone) { return Backbone.Model.extend({}); });
(function() { function CommandHistory() { this.histories = [] this.index = 0 } CommandHistory.prototype = { _get: function() { if (this.index >= 0 && this.histories.length <= this.index) { return this.histories[this.index] } }, add: function(cmd) { if (this.hist...
var StateMachine = require('fsm-as-promised'); StateMachine.create({ final: 'stop' });
var TestUtils = require("./helpers/TestUtils"); describe('MetacoClient (Orders)', function () { beforeEach(function() { this.client = TestUtils.getMetacoAuthenticatedClient() .makeClient(); }); it("should process an asset order (Asset - Created)", function (done) { var _this = ...
import React from 'react' import DuckImage from '../assets/Dragon.jpg' import BaseContainer from '../../../containers/BaseContainer' import {Button} from '../../../components/UI' import {alertMessage} from '../../../utils' class HomeView extends BaseContainer { componentWillMount() { this.setState({ title:...
/* typation.js - v0.2.1 - 2013 * -- * Distributed under MIT License: * Copyright (c) 2013 Guglielmo Cassinelli */ (function(c){var b={init:function(a){typ=this;typ.settings=c.extend({to_type:"",begin_delay:1E3,min_type_delay:50,max_type_delay:100,min_found_delay:300,max_found_delay:800,min_pause_delay:200,max_pause...
var commands, storage, config; module.exports = { init : function(_commands,_storage,_config) { commands = _commands; storage = _storage; config = _config; return this; }, checkAccount : function(_req, _res) { var clientId = _req.session.loginData.clientId, cCommand = require('../modules/command....
/** * Created by pomy on 6/5/16. */ 'use strict'; let $ = require('cheerio'); exports.parseList = function (lists) { let origin = 'http://www.tuicool.com'; let tcLists = lists.map((index, list) => { let titleObj = $(list).find('.title a'); let title = titleObj.attr('title'); let or...
var users = require('../app/controllers/users') , toys = require('../app/controllers/toys') , emails = require("../app/controllers/emails") , auth = require('./middlewares/authorization') var toyAuth = [auth.requiresLogin, auth.toy.hasAuthorization] /** * Expose routes */ module.exports = function (app, pass...
'use strict'; var React = require('react-native'), moment = require('moment'), qs = require('query-string'), cheerio = require('cheerio'), CalendarManager = require('NativeModules').CalendarManager; var { AppRegistry, StyleSheet, Text, View, ListView, TouchableOpacity, Aler...
describe("Namespace oui5lib.validation", function() { describe("Individual test functions", function() { it("should test for numbers only", function() { expect(oui5lib.validation.numbersOnly("1234e")).toBe(false); expect(oui5lib.validation.numbersOnly("1234")).toBe(true); });...
/** * Copyright (c) 2009-2012 Ivo Wetzel. * * 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, including without limitation the rights * to use, copy, modify, me...
describe("server/src/server/Server", () => { const WebSocket = require('ws'); const Config = require('./../../../client/src/share/Config').Config; const SConfig = require('./../../../server/src/share/Config').Config; const Observer = require('./../../../common/src/Observer'); const...
export Blur from './Blur'; export Hue from './Hue'; export Negative from './Negative'; export CSB from './CSB'; export ColorMatrix from './ColorMatrix';
/** * subtractor.js * * @author <a href="https://github.com/pahund">Patrick Hund</a> * @since 24 Jul 2016 */ import fullRange from "../processors/fullRange"; import range from "../processors/range"; import steps from "../processors/steps"; import named from "../processors/named"; import button from "../processors/...
// Holds info related to the screen's state (function() { 'use strict'; angular.module('hansei.services') .factory('view', ['$filter', '$timeout', function($filter, $timeout) { var defaultColumn = {id: 0, label: 'View All'}, timerInputDefault = '5:00'; var closeMenus = function() { ...
function drawPieChart(dataset, selectorText) { /* * 引数のdatasetの形式は次の通りを想定 * [ * { taskName: 'hoge', totalTime: 200, rate: 40 }, * { taskName: 'fuga', totalTime: 300, rate: 60 } * ] */ /* -------------------------------定数/変数定義---------------------------------------------*/ var graphSize = 300...
version https://git-lfs.github.com/spec/v1 oid sha256:fa7de9960206cc9a51b5dd492a6106612d656cc8e94539cb53a3d0b9ceeada57 size 11429
'use strict'; describe('Provider: githubEventsProvider', function () { beforeEach(module('githubEvents')); var provider; describe('config username', function (){ var username = 'johnDoe'; beforeEach(module('githubEvents', function (githubEventsProvider){ githubEventsProvider.username(username); ...
/** * Created by Jairo Martinez on 8/14/15. */ var async = require('async'); var mysql = require('mysql'); var _comms = {}; var _cfg = {}; var sqlApp = function () { }; function _msToTime(milli) { var seconds = Math.floor((milli / 1000) % 60); var minutes = Math.floor((milli / (60 * 1000)) % 60); var hours = Ma...
function formatInstability(pNumber) { // eslint-disable-next-line no-magic-numbers return Math.round(100 * pNumber); } function formatViolation( pViolation, pViolationType2Formatter, pDefaultFormatter ) { return (pViolationType2Formatter[pViolation.type] || pDefaultFormatter)( pViolation ); } module...
import { OHIF } from 'meteor/ohif:core'; // Allow attaching to jQuery selectors $.fn.bounded = function(options) { _.each(this, element => { const boundedInstance = $(element).data('boundedInstance'); if (options === 'destroy' && boundedInstance) { $(element).removeData('boundedInstance...
"use strict"; (function (FileAsMapping) { FileAsMapping[FileAsMapping["None"] = 0] = "None"; FileAsMapping[FileAsMapping["SurnameCommaGivenName"] = 1] = "SurnameCommaGivenName"; FileAsMapping[FileAsMapping["GivenNameSpaceSurname"] = 2] = "GivenNameSpaceSurname"; FileAsMapping[FileAsMapping["Company...
/********************************************* * app-src/js/ysandboxifc.js * YeAPF 0.8.48-103 built on 2016-05-24 18:54 (-3 DST) * Copyright (C) 2004-2016 Esteban Daniel Dortta - dortta@yahoo.com * 2016-02-25 14:52:24 (-3 DST) * First Version (C) 2014 - esteban daniel dortta - dortta@yahoo.com * By security reaso...
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import ArraySpread from './ArraySpread'; describe('array spread', () => { it('renders without crashing', () => { const div = docu...
import React, {Component} from 'react'; import renderer from 'react-test-renderer'; import {DrawerNavigator} from 'react-navigation'; import UserGateway, {Permissions} from '../../data/UserGateway/'; import Navigation from './index.js'; import {adminRoutes, helperRoutes, config} from './config.js'; describe('Navigati...
/* jshint node: true */ module.exports = function (program, options, posts, callback) { 'use strict'; var colors = require('colors'); var async = require('async'); var moment = require('moment'); var _ = require('lodash'); var S = require('string'); var get_options = require('./get_options'...
import $ from 'jquery/dist/jquery.slim'; import { JetView, } from 'webix-jet'; export default class LayersView extends JetView { config() { return { view: 'editlist', id: 'layers', select: 'row', editable: true, editaction: 'dblclick', editor: 'text', editValue: 'value'...
//>>built define("dojorama/layers/nls/release_sl",{"dojorama/ui/release/mixin/nls/_ReleaseActionsMixin":{indexLabel:"Overview",createLabel:"Create New Release"},"dojorama/ui/release/mixin/nls/_ReleaseBreadcrumbsMixin":{homeLabel:"Home",releaseIndexLabel:"Releases",releaseCreateLabel:"Create New Release"},"dojorama/ui/r...
System.register([], function(exports_1, context_1) { "use strict"; var __moduleName = context_1 && context_1.id; var config; function setConfig(conf) { config = conf; } exports_1("setConfig", setConfig); function getGameConfig() { return config.game; } exports_1("getG...
var express = require('express'); var path = require('path'); var favicon = require('serve-favicon'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var mongoose = require('mongoose'); var fs = require('fs'); fs.readdirSync(__dirname + '/models').f...
const tests = { input: `@gs {} .container { gs: container; } @gs-media 2 { .columns-2-4 { gs: columns 4; } .columns-2-4-bis { gs: columns 4; } } @gs-media 3 { .columns-3-8 { gs: columns 8; } } `, output: `.container { padding-left: 1.5rem; padding-right: 1.5rem; overflow: h...
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import PropTypes from 'prop-...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _menuFactory = require('../menuFactory'); var _menuFactory2 = _interopRequireDefault(_menuFactory); var styles = { menuWrap: functi...
import { module, test } from 'qunit'; import Ember from 'ember'; import DS from 'ember-data'; import startapp from '../helpers/start-app'; import PartialModelSerializer from 'ember-data-partial-model/mixins/rest-serializer'; var serializer, app, store; module('unit/rest-serializer-mixin', { setup: function() {...
{ if (index === 0) { if (sequence.length === 0) { S.Shape.switchShape(S.ShapeBuilder.letter("")); } else { performAction(sequence); } } else { S.Shape.switchShape(S.ShapeBuilder.letter(index), true); } }
/*! * Star Rating Chinese Translations * * This file must be loaded after 'star-rating.js'. Patterns in braces '{}', or * any HTML markup tags in the messages must not be converted or translated. * * NOTE: this file must be saved in UTF-8 encoding. * * @see http://github.com/kartik-v/bootstrap-star-rati...
'use strict'; /* To add a listener, please add a listener object to the {listeners} array below. // {listener} type { // REQUIRED // A name that uniquely identifies this listener // This name is used to load name: string, // REQUIRED ...
initSidebarItems({"struct":[["Drain","A draining iterator for `String`."],["FromUtf16Error","A possible error value when converting a `String` from a UTF-16 byte slice."],["FromUtf8Error","A possible error value when converting a `String` from a UTF-8 byte vector."],["String","A UTF-8 encoded, growable string."]],"trai...
module.exports = { UTC_TIME: 'UTC_TIME', TAG_GET: 'TAG_GET' };
require('ralph/core'); { var $module = Object.create($moduleRoot); { ($module)['%export'] = function B1233(name__1234, value__1235) { var B1237 = (exports); return(B1237[name__1234] = value__1235); }; { ($module)['%eval'] = function B1236() { ...
angular.module('entries.list', []) .controller('EntryListCtrl', ["$scope","$routeParams","$http","Entries", function( $scope , $routeParams , $http , Entries ) { Entries.setModel($routeParams.username, $routeParams.model); $scope.loadingBtn = { btn: angular.element(...
module.exports = function (program) { var seen = {} var stdio = [ 0, 1, 2 ].concat(program.arrayed.inherit).map(function (number) { if (/^\d+$/.test(number)) { return +number } return +program.env[number] }).sort(function (a, b) { return a - b }).filter(functi...
export const adminUrl = `${process.env.API_ROOT}/admin` export const getReturnUrl = () => global.returnUrl || '/' export const setReturnUrl = url => { if (/\/sign-in/.test(url) || /\/sign-up/.test(url)) { return } global.returnUrl = url }
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va...
"use strict"; (function (MailboxSearchLocation) { MailboxSearchLocation[MailboxSearchLocation["PrimaryOnly"] = 0] = "PrimaryOnly"; MailboxSearchLocation[MailboxSearchLocation["ArchiveOnly"] = 1] = "ArchiveOnly"; MailboxSearchLocation[MailboxSearchLocation["All"] = 2] = "All"; })(exports.MailboxSearchLo...
var varint = require('varint') var stream = require('readable-stream') var inherits = require('inherits') var pool = Buffer.allocUnsafe(10 * 1024) var used = 0 var Encoder = function () { if (!(this instanceof Encoder)) return new Encoder() stream.Transform.call(this) this._destroyed = false } inherits(Encoder...
export {LOOSE} from './loose' export {STRICT} from './strict'
var TextWindow = function(id, parent, init_data, text_type) { // detect backflip var ua = window.navigator.userAgent.toLowerCase(), supports3d = !(ua.indexOf('unix') > -1 || ua.indexOf('linux') > -1 || ua.indexOf('opera') > -1 //|| ua.indexOf('msie') > -1 //|| ua.indexOf('trident') > -1...
const ActionTypes = { PERFORM_ACTION: 'PERFORM_ACTION', RESET: 'RESET', ROLLBACK: 'ROLLBACK', COMMIT: 'COMMIT', SWEEP: 'SWEEP', TOGGLE_ACTION: 'TOGGLE_ACTION', JUMP_TO_STATE: 'JUMP_TO_STATE', SET_MONITOR_STATE: 'SET_MONITOR_STATE' }; const INIT_ACTION = { type: '@@INIT' }; function toggle(obj, key) ...
version https://git-lfs.github.com/spec/v1 oid sha256:10b63e0433301d36a60a4a242a917acc0b257f51445c20e8378effa69b9d7c2d size 42225
API.onInitialization(function (api) { Meteor.startup(function () { var selector = {}; selector[api.options.apiName + "PersonalKey"] = { $exists: false }; Meteor.users.find(selector).observe({ added: function newUserRegistration (user) { api.registerClient(user._id); } }); }); }...
/*globals define*/ /*jshint node:true*/ /** * This class implements the functionality needed to edit a model in a specific project and branch in a * collaborative fashion. * * It keeps a state of the open projects which in turn keeps track of the open branches. * * Each project is associated with a project-cache ...
var express = require('express'); var router = express.Router(); var multiparty = require('connect-multiparty'); var multipartyMiddleware = multiparty({ uploadDir: '../uploads' }); var path = require('path'); var fs = require('fs'); // get file router.get('/:filename', function (req, res) { res.sendFile(path.reso...
'use babel'; /* @flow*/ import { TextBuffer, TextEditor } from 'atom'; import { asyncTest, failedTest } from './common'; import { clearInlineMessages, clearDecoratedGutter, decorateGutter, setInlineMessages } from '../lib/decorate-manager'; describe('Decorate Manager', () => { let textEditor; let messages; befo...
import 'react-dates/initialize' import React from 'react' import { render } from 'react-dom' import Timeslot from './components/Timeslot' import 'sanitize.css' import './styles/Dev.scss' import './styles/Timeslot.scss' const rootElement = document.getElementById('root') const availableSlots = [{ start: '2014-06-12...