code
stringlengths
2
1.05M
YUI.add("lang/datatype-date-format_de",function(A){A.Intl.add("datatype-date-format","de",{"a":["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],"A":["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],"b":["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],"B":["Januar","Februar"...
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { ApplicationRef, NgZone, Optional, RootRenderer, getDebugNode, isDevMode } from '@angular/core'; import { Str...
/* NUGET: BEGIN LICENSE TEXT * * Microsoft grants you the right to use these script files for the sole * purpose of either: (i) interacting through your browser with the Microsoft * website or online service, subject to the applicable licensing or use * terms; or (ii) using the files as included with a Micros...
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_pre...
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_pre...
window.MapBBCodeConfig.include({ strings: { "view": "View", "editor": "Editor", "editInWindow": "Window", "editInPanel": "Panel", "viewNormal": "Normal", "viewFull": "Full width only", "viewTitle": "Adjusting browsing panel", "editorTitle": "Adjusting editor panel or window", "editIn...
module.exports = "replaced";
//// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF //// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO //// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A //// PARTICULAR PURPOSE. //// //// Copyright (c) Microsoft Corporation. All rights reserved (function () {...
/* ============================================================= * bootstrap-scrollspy.js v2.2.1 * http://twitter.github.com/bootstrap/javascript.html#scrollspy * ============================================================= * Copyright 2012 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "L...
/** * angular-strap * @version v2.0.0-rc.2 - 2014-01-29 * @link http://mgcrea.github.io/angular-strap * @author [object Object] * @license MIT License, http://www.opensource.org/licenses/MIT */ 'use strict'; angular.module('mgcrea.ngStrap.scrollspy', [ 'mgcrea.ngStrap.helpers.debounce', 'mgcrea.ngStrap.helper...
/*! * # Semantic UI 2.0.1 - Shape * http://github.com/semantic-org/semantic-ui/ * * * Copyright 2015 Contributors * Released under the MIT license * http://opensource.org/licenses/MIT * */ ;(function ( $, window, document, undefined ) { "use strict"; $.fn.shape = function(parameters) { var $allModules...
define([ "./core", "./var/slice", "./callbacks" ], function( jQuery, slice ) { jQuery.extend({ Deferred: function( func ) { var tuples = [ // action, add listener, listener list, final state [ "resolve", "done", jQuery.Callbacks("once memory"), "resolved" ], [ "reject", "fail", jQuery.Callbacks("onc...
'use strict'; // B.2.3.11 String.prototype.small() require('./_string-html')('small', function (createHTML) { return function small() { return createHTML(this, 'small', '', ''); }; });
/*! esri-leaflet - v0.0.1-beta.7 - 2014-10-13 * Copyright (c) 2014 Environmental Systems Research Institute, Inc. * Apache License*/ (function (factory) { //define an AMD module that relies on 'leaflet' if (typeof define === 'function' && define.amd) { define(['leaflet', 'esri-leaflet'], function (L, Esri) ...
// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /** * Constructor - no need to invoke directly, call initBackgroundPage instead. * @constructor * @param {String} url_request_token The OAuth reque...
var fstream = require('../fstream.js') var tap = require('tap') var fs = require('fs') var path = require('path') var dir = path.dirname(__dirname) tap.test('reader test', function (t) { var children = -1 var gotReady = false var ended = false var r = fstream.Reader({ path: dir, filter: function () { ...
/* * /MathJax/localization/pt/pt.js * * Copyright (c) 2009-2015 The MathJax Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LI...
(function(angular, factory) { if (typeof define === 'function' && define.amd) { define('angular-file-upload', ['angular'], function(angular) { return factory(angular); }); } else { return factory(angular); } }(angular || null, function(angular) { /** * The angular file u...
/** * @author Jason Dobry <jason.dobry@gmail.com> * @file js-data-localforage.js * @version 1.0.0-alpha.2 - Homepage <http://www.js-data.iojs-data-localforage/> * @copyright (c) 2014 Jason Dobry * @license MIT <https://github.com/js-data/js-data-localforage/blob/master/LICENSE> * * @overview localforage adapter for js...
!function(t){"use strict";function n(t,n){return t+" "+n+(5>t%10&&t%10>0&&(5>t%100||t%100>19)?t%10>1?"и":"":"ів")}t.fn.select2.locales.uk={formatMatches:function(t){return n(t,"результат")+" знайдено, використовуйте клавіші зі стрілками вверх та вниз для навігації."},formatNoMatches:function(){return"Нічого не знайдено...
require('babel-polyfill'); require('babel-core/register'); require('./lib/SupervisorStarter.js').startSupervisor();
'use strict'; const Promise = require('bluebird'); const fs = Promise.promisifyAll(require('fs')); const path = require('path'); const url = require('url'); const express = require('express'); const spawn = require('child_process').spawn; const mkdirp = Promise.promisifyAll(require('mkdirp')); const semver = require(...
/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2016 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ // Provides control sap.m.ViewSettingsDialog. sap.ui.define(['jquery.sap.global', './library', 'sap/ui/core/Control', 'sap/ui/core/Icon...
var async = require('async') var fs = require('fs') var docopt = require('docopt').docopt var version = require('../package.json').version var nrs = require('./index.js') var args = docopt(fs.readFileSync(__dirname + '/usage.txt', 'utf-8'), { version: version }) if (args.test) { nrs.run({ uri:...
var async = require('neo-async'); /** * Patches the given stores so that they have all of the expected methods * by using the mandatory ones `set` and `get` */ module.exports = function(store) { if (!store.setAll) { store.setAll = function(map, cb) { async.eachSeries(Object.keys(map), function(key, cb) ...
export { default } from "./SearchForNodesModal";
import _debounce from 'lodash-es/debounce'; import { descending as d3_descending, ascending as d3_ascending } from 'd3-array'; import { event as d3_event, select as d3_select } from 'd3-selection'; import { t, textDirection } from '../util/locale'; import { svgIcon } from '../svg'; import { uiBackgro...
var Bowline = require('bowline'); var adapter = {}; adapter.sensorName = 'twine'; adapter.types = [ { id: 'string', name: 'twine', fields: { timestamp: 'date', celcius: 'float', meta: { sensor: 'string', battery: 'string', wifiSignal: 'string' }, me...
'use strict'; (function(){ var ui = {}; function sortValues(a,b){ return a - b; } function uniq(a) { return a.sort(sortValues).filter(function(item, pos, ary) { return !pos || item != ary[pos - 1]; }) } /** * Constructor */ var Gauge = function(element, value, intervals, ...
import {List, Map} from 'immutable' import {expect} from 'chai' import {setEntries} from '../src/core' describe('Application logic', () => { describe('setEntries', () => { it('adds the entries to the state', () => { const state = Map() const entries = List.of('Trainspotting') ...
'use strict'; const findPkgDir = require('find-pkg-dir'); const npmCliPath = require('npm-cli-path'); let path; const firstTry = (async () => { try { path = findPkgDir(await npmCliPath()); } catch { return false; } return true; })(); module.exports = async function npmCliDir() { if (!path && !await firstTr...
// To make obj fully immutable, freeze each object in obj. // Also makes Array, Map and Set read-only. export default function deepFreeze(obj) { if (obj instanceof Map) { obj.clear = obj.delete = obj.set = function () { throw new Error('map is read-only'); }; } else if (obj instanceo...
import { randRange } from '../utils' function addIndices(result, sampleSize, nodes, recursionLimit, _recursiveCalls) { // TODO: verify that this handles empty arrays, falsey values, etc. let recursiveCalls = _recursiveCalls || 0 for (let i = 0; i < sampleSize; i++) { const randIndex = randRange(0, ...
require('babel-register'); var app = require('express')(); var serveStatic = require('serve-static'); var ejs = require('consolidate').ejs; var routes = require('./routes'); app.engine('html', ejs); app.set('view engine', 'html'); app.set('views', '.'); // Register routes routes(app); // Serve static assets app.use(...
import Promise from 'bluebird'; import moment from 'moment'; export default class Sender { // https://github.com/justintv/Twitch-API/blob/master/IRC.md#command--message-limit static interval = { mod: moment.duration(30, 'seconds').asMilliseconds() / 100, user: moment.duration(30, 'seconds').asMilliseconds...
var inherits = require('inherits'); function Model(){} var undef = function(val){ return typeof val === 'undefined' || val === null; }; var falsey = function(val){ switch(typeof val){ case 'string': return val !== 'false' && val !== ''; default: return !!val; } }; var setProperties = funct...
/* ************************************************* // Copyright 2010-2012, Anthony Hand // // BETA NOTICE // Previous versions of the JavaScript code for MobileESP were 'regular' // JavaScript. The strength of it was that it was really easy to code and use. // Unfortunately, regular JavaScript means that all variabl...
function generateDOM(childNodes) { return childNodes.map(function(childNode) { if (childNode['#name'] == '__text__') { return childNode._; } var obj = { tag: childNode['#name'] }; if (childNode.$) { Object.keys(childNode.$).forEach(function(attr) { obj[attr] = childNode.$[attr]; }); } if ...
const express = require('express'); //const favicon = require('serve-favicon'); const log = require('./log')("express"); const cookieParser = require('cookie-parser'); const bodyParser = require('body-parser'); const partials = require('express-partials'); const config = require('./config'); const indexRouter = requir...
/*jslint node: true, nomen: true, plusplus: true, stupid: true, vars: true, indent: 2 */ /*global describe, it, before, beforeEach, after, afterEach */ 'use strict'; var zipcode = require('../'); var assert = require('assert'); var async = require('async'); var datas = require('./datas.json'); describe('Lookup zipco...
import roundWidth from '../../src/util/roundWidth'; test('Does not round under 100', () => { expect(roundWidth(0)).toBe(0); expect(roundWidth(1)).toBe(1); expect(roundWidth(2)).toBe(2); expect(roundWidth(6)).toBe(6); expect(roundWidth(51)).toBe(51); expect(roundWidth(99)).toBe(99); }); test('Rounds to the next ...
var reddit = require('../index.js'); // reddit._addSimpleRequest = function(name, endpoint, method, args, constArgs, callback) // reddit._addListingRequest = function(name, endpoint, path, args, cb) reddit._addSimpleRequest("block", "block", "POST", ["id"], null, "_noResponse"); reddit.prototype.message = function(o...
'use strict'; /** * Module dependencies. */ var should = require('should'); var request = require('supertest-as-promised'); var path = require('path'); var mongoose = require('mongoose'); var User = mongoose.model('User'); var File = mongoose.model('File'); var Directory = mongoose.model('Directory'); var express = ...
const main = require('nei/main'); const Builder = require('nei/lib/nei/builder'); const EventEmitter = require('events'); const _fs = require('nei/lib/util/file'); const fs = require('fs'); const path = require('path'); const _util = require('nei/lib/util/util'); const { logger } = require('nei/lib/util/logger'); logg...
BookManager.Views.Books = Backbone.View.extend({ template: _.template($("#tpl-books").html()), renderOne: function(book) { var itemView = new BookManager.Views.Book({model: book}); this.$(".books-container").append(itemView.render().$el); }, render: function() { var html = this...
import React from 'react'; import { FormattedMessage } from 'react-intl'; import A from 'components/A'; import Wrapper from './Wrapper'; import messages from './messages'; function Footer() { return ( <Wrapper> <div style={{width: '100%', background: '#141d26', height: '100px' }}>&nbsp;</div> {/*<se...
/** * Created by Jilion on 2017/3/10. */ import alt from '../common/alt'; import SizeActions from '../actions/SizeActions'; import { message } from 'antd'; import Util from '../common/Util'; class SizeStore { constructor() { this.bindActions(SizeActions); this.state = { dataSource: []...
//------A----------- function LetterA() { this.randomCol = floor(random(0, 7)); this.topEdge = random(0, width); this.display = function(x, y) { push(); translate(x, y); noFill(); strokeWeight(letterstroke); stroke(palettebluepink[1]); line(letterwidth / 2, 0, 0, letterheight); st...
'use strict'; const mongoose = require('mongoose'); const utils = require('./entryUtils'); const entrySchema = new mongoose.Schema({ date: { type: Date, default: Date.now }, creator: { type: mongoose.Schema.Types.ObjectId, ref: 'User', required: true }, type: { type: String, required: true }, co...
// Sample Text var Datamatrix = require('./lib/datamatrix').Datamatrix; var dm = new Datamatrix(); var ascii = dm.getDigit('http://tualo.de',{rectangular:false,addFNC1:false}); console.log(ascii.toString()); var ascii2 = dm.getDigit('http://tualo.de',{rectangular:false,addFNC1:true}); console.log(ascii2.toString()); va...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { ScrollView, StyleSheet } from 'react-native'; import { ListItem } from 'react-native-elements'; import ActionSheet from 'react-native-actionsheet'; import { ViewContainer, SectionLi...
import * as schema from './Schema'; import { getReferential, postReferential, delReferential, fileSave, fileDownload, } from '../utils/Action'; export const fetchFiles = () => (dispatch) => { const uri = '/api/files'; return getReferential(schema.arrayOfFiles, uri)(dispatch); }; export const addFile = (...
function HTTPFluxAPI_UserLoadFromContextToken(ctx, cbs){ if(ctx.token && ctx.token.user_id){ ctx.store.read(ctx.models.users, {where:{id: ctx.token.user_id}}, { success: function(res){ if(res && res.length==1){ ctx.user = res[0]; } ...
//File: controllers/Application.js //Author: Daniel Seijo //Version: 1.0 var mongoose = require('mongoose'); var Application = mongoose.model('Application'); //GET - Return all applications in the DB exports.findAllApplications = function(req, res) { Application.find(function(err, applications) { if(err)...
class DataEvaluator { evaluate(metadata, model) { if(!model) { return undefined; } if(model.hasOwnProperty(metadata.name)) { return model[metadata.name]; } return undefined; } } export default new DataEvaluator();
/* * ***** BEGIN LICENSE BLOCK ***** * Zimbra Collaboration Suite Web Client * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Zimbra, Inc. * * The contents of this file are subject to the Zimbra Public License * Version 1.3 ("License"); you may not use this file except in * compliance with the License. You m...
let AlgorithmsJsonList; export default (AlgorithmsJsonList = [ { id: "BinaryGap", name: "Binary Gap", author: "Mateo Guzmán" }, { id: "OddOccurrencesInArray", name: "Odd Occurrences In Array", author: "Mateo Guzmán" }, { id: "Dominator", ...
const langsData = require('../langs.json'); const languages = { 0: '', 1: 'ruby', 2: 'c-gcc', 3: 'perl', 4: 'golfscript', 5: 'node', 6: 'rust', 7: 'd-dmd', 8: '', 9: 'python3', 10: '', 11: 'php', 12: 'csharp', 13: 'unlambda', 14: 'powershell', 15: 'nadesiko', 16: 'ruby0.49', 17: 'alice', 18: 'gs2', ...
var nodes = []; // un tableau pour stocker les position en 3D var stems = []; var cam // une variable pour notre caméra var maxRad = 25 var maxIteration = 150 var niteration = 0 var seed var settings // une variable pour la librairie quicksettings function setup() { createCanvas(windowWidth, windowHeight, WEBGL); ...
const NodeWebcam = require('node-webcam') const _ = require('lodash') //Default options const webcamOpt = { width: 1280, height: 720, delay: 0, quality: 1, output: 'png', verbose: true } const Webcam = NodeWebcam.create(webcamOpt) //Will automatically append location output type // setInt...
// Regular expression that matches all symbols in the `Lydian` script as per Unicode v9.0.0: /\uD802[\uDD20-\uDD39\uDD3F]/;
define(['exports', './abstract-type-strategy'], function (exports, _abstractTypeStrategy) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.NumberStrategy = undefined; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { ...
// Generated by CoffeeScript 1.7.1 (function() { var Crawler, cheerio, fs, http; http = require('http'); cheerio = require('cheerio'); fs = require('fs'); if (typeof String.prototype.endsWith !== 'function') { String.prototype.endsWith = function(suffix) { return this.indexOf(suffix, this.length...
import styled from 'styled-components'; import themeProp from '../utils/theme'; import { borderRadius } from '../utils/border-radius'; import { boxShadow } from '../utils/box-shadow'; import { dropdownMinWidth, dropdownPaddingY, dropdownSpacer, fontSizeBase, bodyColor, dropdownBg, dropdownBorderWidth, ...
// const MockPointer = require('../interaction/MockPointer'); const { Renderer, BatchRenderer, Texture } = require('@pixi/core'); const { Graphics, GRAPHICS_CURVES, FillStyle, LineStyle, graphicsUtils } = require('../'); const { FILL_COMMANDS, buildLine } = graphicsUtils; const { BLEND_MODES } = require('@pixi/constant...
/*jslint node:true */ module.exports = { fields: { id: {required:true,createoptional:true,mutable:false}, text: {} }, delete: {children:"deletechild",policy:"cascade"} };
function isRegex(spec) { return (spec && spec.op) ? spec : null; } module.exports = isRegex;
var config = require('../config/config.json'); var errorRoutes = require('../routes/ErrorRoutes.js'); var log = require('../models/rt_log.js').log; module.exports = function(app){ app.get('/database/:dbType', function(req, res) { var param = {}; param.title = req.params.dbType; param.version = config.version; ...
require.config({ paths: { "jquery": "lib/jquery-2.1.0.min", "underscore": "lib/underscore-min", "sockets": "sockets", }, shim: { "bootstrap": ["jquery"] } }); define([ "jquery", "underscore", "sockets", ], function($, _, socket) { function getProgressBar(...
var yoAssert = require('yeoman-assert') var yoTest = require('yeoman-test') var path = require('path') var files = require('./files.json') describe('generator-swill-boilerplate:app', function () { before(function () { return yoTest .run(path.join(__dirname, '../app')) .withPrompts({ preproces...
function weatherReducer(state = [], action){ return state; } export default weatherReducer;
"use strict"; const fs = require('fs-extra'); const ncp = require('ncp'); const path = require('path'); const config = require('./config'); const zipFolder = require('zip-folder'); const execSync = require('child_process').execSync; const prompt = require('prompt'); const chokidar = require('chokidar'); const ap = requ...
$(function() { var pageWrapper = $('.user-fill-profile'); /* SELECT ALL DAYS */ pageWrapper.on('change', '.js-user-fill-profile-days input', function(e) { var daysCheckbox = $(this); pageWrapper .find('.js-user-fill-profile-day input') .each(function() ...
define(['./module'], function(services) { 'use strict'; services.factory('energyCalendarServ', ['$http', 'basicInfoServ', function($http, basicInfo) { return { getMonthState: function(date) { return $http.post('/GetEnergyCalendar', { bodySign: basicInfo.bodySign, ...
version https://git-lfs.github.com/spec/v1 oid sha256:86576568326ad97cb3cd192a708f6878ba653150b47af5b54c0dadefe1868c56 size 4048
const _ = require('lodash'); const chai = require('chai'); const expect = require('expect.js'); const Promise = require('bluebird'); const { inheritModel } = require('../../lib/model/inheritModel'); const { expectPartialEqual: expectPartEql } = require('./../../testUtils/testUtils'); const { Model, ValidationError, raw...
const { app, globalShortcut } = require('electron') angular.module('puraApp').component('services', { templateUrl: './src/services/services.html', controller: servicesController, bindings: {} }) .config(function($stateProvider, $urlRouterProvider, $httpProvider) { $statePr...
var inside = require('turf-inside'); /** * Calculates the maximum value of a field for a set of {@link Point|points} within a set of {@link Polygon|polygons}. * * @module turf/max * @category aggregation * @param {FeatureCollection<Polygon>} polygons input polygons * @param {FeatureCollection<Point>} points inpu...
var express = require('express'); var bodyParser = require('body-parser'); var mongoose = require('mongoose'); var Promotions = require('../models/promotions'); var promoRouter = express.Router(); promoRouter.use(bodyParser.json()); promoRouter.route('/') .get(function(req,res,next){ Promotions.find({}, functio...
require=function r(e,o,n){function t(i,f){if(!o[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=o[i]={exports:{}};e[i][0].call(p.exports,function(r){var o=e[i][1][r];return t(o?o:r)}...
//Building a basic Synth UI using jQuery //Uses a 2D synth pad to control frequency and volume of basic additive synthesis define(["inheritance", "./synthPad"], function(Inheritance, SynthPad){'use strict'; var basicUI = Class.extend({ init : function(synth){ var container = $("#main-container"); this.pad = ne...
"use strict"; var fs = require('fs'); var cat_1 = require('./cat'); var insider; (function (insider) { var res = require('[response]'); var c = new cat_1.Cat(); c.name = 'tom'; var value = fs.readFileSync(__dirname + '/cat.ts').toString(); res.writeHead(200, { "Content-Type": "text/plain" ...
define(['require', 'jquery', 'hammer'], function (require, $, Hammer) { var environment = require('modules/environment'); var reader = require('modules/reader'); var settings = require('modules/settings'); var events = require('modules/events'); var Mobile = function () { settings.el.css('overflow-y', '...
var url = require('url'), start = require('./common'), assert = require('power-assert'), mongoose = start.mongoose, Mongoose = mongoose.Mongoose, Schema = mongoose.Schema, random = require('../lib/utils').random, collection = 'blogposts_' + random(); describe('mongoose module:', function()...
export default (value) => { return Math.ceil(value * 10000) / 100; };
var polybool = require('../bool') var a = [[[-1,-1], [-1,1], [1,1], [1,-1]]] var b = [[[0, 0], [0,2], [2,2], [2,0]]] console.log(polybool(a, b, 'sub'))
module.exports=require("tiv")*100;
app.controller('backend-people', ["$scope", "Auth", "$location", "$firebaseArray", "getAuthData", "$firebaseObject", function($scope, Auth, $location, $firebaseArray, getAuthData, $firebaseObject) { console.log("I see backend-activity controller!"); var ref = new Firebase("https://clocker.firebaseio.com/"); va...
/** * @file foundation-setup.js * * This is required for any foundation functionality. It should be imported at the top * of any file that is implementing a foundation component. Webpack determines * dependencies so this will only be added once. Keep in mind this is where the global * Foundation is being initiali...
/** * Created by vadimsky on 10/06/16. */ var winston = require('winston'); var ENV = process.env.NODE_ENV; function getLogger(module) { var path = module.filename.split('/').slice(-2).join('/'); //using filename in log statements return new winston.Logger({ transports: [ new winston.tra...
game.module( 'game.pile' ). body(function() { var Debug = 3; game.createClass('Pile', { /* 17 pass cards * 5 left/right goal shot cards * 5 defence cards each * total 42 cards */ NoPass: 17, NoLeftShot: 5, NoRightShot: 5, NoIntercept: 5, NoLeftBlock: 5, NoRightBlock: 5, //======================...
var indexSectionsWithContent = { 0: "acdefhimnpstv~", 1: "afhmp", 2: "ampt", 3: "acdeimnpstv~" }; var indexSectionNames = { 0: "all", 1: "classes", 2: "files", 3: "functions" }; var indexSectionLabels = { 0: "All", 1: "Classes", 2: "Files", 3: "Functions" };
import React, { View,TouchableNativeFeedback,TextInput,Text } from 'react-native'; import { shallow } from 'enzyme'; import { expect } from 'chai'; import CommentForm from '../CommentForm.js'; import CommentBox from '../CommentBox.js'; import Sinon from 'sinon'; describe('<CommentForm>', ()=>{ beforeEach(function...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import apiClient from '../api/apiClient'; import CONSTANTS from '../shared/constants'; class Shop extends Component { constructor() { super(); this.state = { username: "username" }; } componentWillMount() { ap...
import {combineReducers} from "redux"; import typeList from "./defaultTypes" import thingList from "./thingList" const things = (state = thingList, action) => { switch (action.type) { default: return state } } const types = (state = typeList, action) => { switch (action.type) { ...
/** * User.js * * @description :: TODO: You might write a short summary of how this model works and what it represents here. * @docs :: http://sailsjs.org/#!documentation/models */ var bcrypt = require('bcrypt'); module.exports = { attributes: { email: { type: 'email', requi...
/** * Created by fastjur on 14-1-16. */ var db = require("./mysqlconn.js"); var url = require("url"); var getLists = function(res) { db.connection.query("SELECT Id, Title, Text, DueDate, Completed, Priority FROM ToDoItem;", function(err, rows) { if(!err) { var todos = []; for (va...
!(function($) { var upload; upload = require('upload'); return $.ender({ isubmit: upload.isubmit, upload: upload.upload }); })(ender);
import React from 'react'; import styles from '../styles/modal.scss'; export default React.createClass({ getInitialState () { return { visible: true } }, componentDidMount () { let modalToggle = document.getElementById('modal-toggle'); modalToggle.addEventListener('click', this.toggleVisible) window...
module.exports = { preset: 'ts-jest', testEnvironment: 'node', globals: { 'ts-jest': { diagnostics: false } } };