code
stringlengths
2
1.05M
var mongoose = require('mongoose'); var Schema = mongoose.Schema; var schema = new Schema({ imagePath: { type: String, required: true }, title: { type: String, required: true }, description: { type: String, required: true }, price: { type: Number, required: true }, qty...
(function ($) { Ss_input.fileSystemHandlers['sort'] = Ss_input.Handler.extend({ defaults: { sortType: 'asc', sortBy: 'ext', sortableFields: ['ext', 'name', 'date'] } }) })(jQuery);
/* eslint-disable no-console */ var client = require('bellman'); var AWS = require('aws-sdk'); var sts = new AWS.STS(); var R = {}; R.RoleSessionName = 'assuming-role-from-builder'; R.RoleArn = 'arn:aws:iam::181472263199:role/Deployer'; sts.assumeRole(R, function(err,response) { if( err ) { console.log( err...
Tinytest.add('ServerSession - set', function (test) { if (Meteor.isServer) { test.isUndefined(ServerSession.setCondition(function () { return true; })); } test.throws(function () { ServerSession.set(); }, Error, 'Should throw an error if no key and value ...
/** * @author alteredq / http://alteredqualia.com/ */ THREE.BinaryLoader = function ( showStatus ) { THREE.Loader.call( this, showStatus ); }; THREE.BinaryLoader.prototype = Object.create( THREE.Loader.prototype ); // Load models generated by slim OBJ converter with BINARY option (converter_obj_three_slim.py -t...
// ========================================================================== // Project: SproutCore - JavaScript Application Framework // Copyright: ©2006-2010 Apple Inc. and contributors. // License: Licensed under MIT license (see license.js) // ===================================================================...
"use strict"; angular.module('app.graphs').directive('morrisNoGridGraph', function(){ return { restrict: 'E', replace: true, template: '<div class="chart no-padding"></div>', link: function(scope, element){ var day_data = [{ "period" : "2012-10-01", ...
'use strict'; var gulp = require('gulp'), eslint = require('gulp-eslint'), mocha = require('gulp-mocha'); // lint gulp.task('lint', function() { return gulp.src([ './src/**/*.js', './test/**/*.js', './gulpfile.js' ]) .pipe(eslint()) .on('error', function() {}) .pipe(eslint.format()) .pipe(eslint...
module.exports = function(config) { config.set({ basePath: '', frameworks: ['mocha', 'sinon'], files: [ 'test.js' ], exclude: [ ], preprocessors: { 'test.js': ['webpack', 'sourcemap'] }, reporters: ['progress'], port: 9876, colors: true, logLevel: c...
// Copyright (c) 2015 Uber Technologies, Inc. // // 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, merge...
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), Schema = mongoose.Schema; /** * Contract Schema */ var ContractSchema = new Schema({ name: { type: String, default: '', required: 'Please fill Contract name', trim: true }, contract_number: { type: String, default: '',...
'use strict'; const _ = require('lodash'); const getSecureMiddleware = require('./get-secure-middleware'); const getHeader = require('./get-header'); const mergeOptions = require('./merge-options'); function statelessAuth(options) { const opts = mergeOptions(_.pick(options, ['jwt', 'jwtCookie', 'secure'])); cons...
import React, {Component} from 'react' import {Link} from 'react-router-dom' import './../../css/test/A.css' class A1 extends Component { constructor(props) { super(props) } render() { return ( <div> <div className="demo-blog mdl-layout mdl-js-layout has-drawer...
var MongoClient = require('mongodb').MongoClient; var mongourl = 'mongodb://192.168.17.52:27050/db_bot'; function play(content,userName,groupName,callback){ MongoClient.connect(mongourl, function(err, db) { var cl_user = db.collection('cl_user'); var query = {'_id':userName}; var now = new Date(); ...
var __context = this; var depth = 0; var LOCALE = 'en'; // TODO Add support for more locales later Array.prototype.insert = function(index) { this.splice.apply(this, [index, 0].concat( Array.prototype.slice.call(arguments, 1))); return this; }; var sprequirejs = function (exports) { var Spotify = fu...
$(function(){ $('.del').click(function(e){ var target = $(e.target); var id = target.data('id'); var tr = $('.item-id-'+id); $.ajax({ type:'DELETE', url:'/movie/del?id='+id }) .done(function(results){ if(results.success === 1){ if (tr.length > 0) { tr.remove(); } } }) }) $('#d...
module.exports = "0.4.0";
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b)...
#!/usr/bin/env node 'use strict'; var app = require('../server/app'); // start sockets for this instance and start server app.startServer().listen(app.get('port'), app.get('ip'), function serverStarted() { console.log('vendorApp started server on ip %s on port %d, in %s mode', app.get('ip'), app.get('port'), ap...
describe('projectFeatured', function() { // Load the module that contains the `projectDetail` component before each test beforeEach(module('projectFeatured')); // Test the controller describe('ProjectFeaturedController', function() { var $httpBackend, ctrl; beforeEach(inject(function($componentContro...
// Copyright (c) 2012 Ecma International. All rights reserved. // Ecma International makes this code available under the terms and conditions set // forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the // "Use Terms"). Any redistribution of this code must retain the above // copyright and this n...
App = angular.module('App', ['ngRoute', 'ngMessages', 'ngCookies']); /* App configuration */ App.config(function($routeProvider, $locationProvider) { /* remove any hash prefixes in the URL */ $locationProvider.hashPrefix(''); $routeProvider .when('/', { templateUrl: 'partials/main.htm...
/*! * devextreme-angular * Version: 16.2.5 * Build date: Tue Feb 28 2017 * * Copyright (c) 2012 - 2017 Developer Express Inc. ALL RIGHTS RESERVED * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file in the root of the project for details. * * https://git...
;(function() { "use strict"; var app = angular.module("AddressApp",[]); app.controller("AddressBookController", function() { var vm = this; vm.contacts = [ { name: "Hank", email: "blahblah@ymail.com", phone: 9876543210, addr...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var react_component_1 = require("./react.component"); exports.NguiReactComponent = react_component_1.NguiReactComponent; var react_module_1 = require("./react.module"); exports.NguiReactModule = react_module_1.NguiReactModule; //# sourceMappin...
/** * Created by yuwh on 2017/4/30. */ const core=require('./core') const dom=require('./dom') const fp=require('./fp') const type=require('./type') const array=require('./array') const convert=require('./convert') const string=require('./string') const ajax=require('./ajax') module.exports={ core:core, dom...
module.exports = { ADD_SERVERS: 'add_servers', REMOVE_SERVERS: 'remove_servers', REPLACE_SERVERS: 'replace_servers', BIND_SESSION: 'bind_session', UNBIND_SESSION: 'unbind_session', CLOSE_SESSION: 'close_session', ADD_CRONS: 'add_crons', REMOVE_CRONS: 'remove_crons', START_SERVER: 'st...
'use strict'; var _ = require('lodash'); var $ = require('preconditions').singleton(); var async = require('async'); var log = require('npmlog'); log.debug = log.verbose; log.disableColor(); var EmailValidator = require('email-validator'); var WalletUtils = require('bitcore-wallet-utils'); var Bitcore = WalletUtils.Bi...
module.exports={A:{A:{"2":"L H G E jB","6308":"A","6436":"B"},B:{"1":"BB","6436":"C D d K I N J"},C:{"1":"GB HB","2":"2 3 5 gB IB F L H G E A B C D d K I N J P Q R S T U V W X Y Z a b c e f g h aB ZB","2052":"0 1 6 7 8 9 i j k l m n o M q r s t u v w x y z AB CB DB EB O"},D:{"1":"HB TB PB NB mB OB LB BB QB RB","2":"0 1...
var path = require('path'); var mout = require('mout'); var rimraf = require('rimraf'); var fs = require('graceful-fs'); var Q = require('q'); var expect = require('expect.js'); var mkdirp = require('mkdirp'); var ResolveCache = require('../../lib/core/ResolveCache'); var defaultConfig = require('../../lib/config'); va...
var url = require('url'); var fs = require('fs'); var postcss = require('postcss'); var path = require('canonical-path'); module.exports = postcss.plugin('postcss-cachebuster', function (opts) { opts = opts || {}; return function (css) { var inputFile = css.source.input.file; css.eachDecl(function(decl...
var twilio = require('twilio'); var accountSid = 'ACd07fa19be220015c1f623bc38c1785e7'; var authToken = '78b4e06ced50c8cc150dbccbf0880ab9'; var client = new twilio.RestClient(accountSid, authToken); // Pass in parameters to the REST API using an object literal notation. The // REST client will handle authentication an...
function colorRect(topLeftX,topLeftY,boxWidth,boxHeight,fillColor) { ctx.fillStyle = fillColor; ctx.fillRect(topLeftX,topLeftY, boxWidth,boxHeight); } function drawBall(centerX,centerY,radius,fillColor) { ctx.fillStyle = fillColor; ctx.beginPath(); ctx.arc(centerX,centerY,10,0,Math.PI*2,true); ctx.fill(); } fun...
/* Copyright 2008-2009 University of Cambridge Copyright 2008-2009 University of Toronto Licensed under the Educational Community License (ECL), Version 2.0 or the New BSD license. You may not use this file except in compliance with one these Licenses. You may obtain a copy of the ECL 2.0 License and BSD License at h...
var structCS__AUDIODEVICE = [ [ "device_id", "structCS__AUDIODEVICE.html#acaaaa3af3e56f33d6c83612eecc5af5b", null ], [ "device_name", "structCS__AUDIODEVICE.html#a0bc59d45f53cad0863859f38e573c9a2", null ], [ "isOutput", "structCS__AUDIODEVICE.html#abe34361d001528d150f4c5976d195d41", null ], [ "max_nchnl...
import Bubble from './bubble'; import * as types from'../../../common/constants'; class CommonBubble extends Bubble { constructor({ context, levelConfig }) { super(); this.context = context; this.radius = Math.floor(Math.random() * 10) + 5; this.maxY = types.CANVAS_HEIGHT - levelConfig.WATER_BORDER_B...
var Bookshelf = require('bookshelf'), Q = require('q'), uuid = require('node-uuid'), Mailgun = require('mailgun').Mailgun; var conf = require('./config'); var DB = Bookshelf.initialize(conf.database); var Participant = DB.Model.extend({ tableName: 'participants' }); var model = new Participant({email:...
import MonsterData from '../../data/MonsterData'; import MonsterEncounterData from '../../data/MonsterEncounterData'; import MonsterEncounterStorageService from "./MonsterEncounterStorageService"; import MonsterListData from '../../data/MonsterListData'; import Prefix from "./Prefix"; import Q from "./Q"; import ...
import { unstable_batchedUpdates } from 'preact/compat'; describe('unstable_batchedUpdates', () => { it('should call the callback', () => { const spy = sinon.spy(); unstable_batchedUpdates(spy); expect(spy).to.be.calledOnce; }); it('should call callback with only one arg', () => { const spy = sinon.spy(); ...
var account_app = account_app || {}; (function(){ var Action_btn = account_app.Action_btn = React.createClass({displayName: "Action_btn", handleClick:function(){ this.props.perform_action(); }, render:function(){ return (React.createElement("button", {className: "btn...
requirejs.config({ paths: { 'text': '../lib/require/text', 'durandal':'../lib/durandal/js', 'plugins' : '../lib/durandal/js/plugins', 'transitions' : '../lib/durandal/js/transitions', 'knockout': '../lib/knockout/knockout-2.3.0', 'jquery': '../lib/jquery/jquery-1.9.1' } }); define(funct...
// pages/movies/movie.js Page({ /** * 页面的初始数据 */ data: { }, /** * 生命周期函数--监听页面加载 */ onLoad: function (options) { }, /** * 生命周期函数--监听页面初次渲染完成 */ onReady: function () { }, /** * 生命周期函数--监听页面显示 */ onShow: function () { }, /** * 生命周期函数--监听页面隐藏 */ on...
/*$(document).ready(function(){ $("#checkout").click(function () { var dat = []; for (var counter = 0; counter < shoppingCart.length; counter++) { dat.push({ name: shoppingCart[counter][0], amount: shoppingCart[counter][1] }); }...
export const encode = s => encodeURIComponent(String(s || "").replace(/\s/g, "_")).replace( /"%27"/g, "%20" ); export const decode = s => decodeURIComponent(String(s || "").replace(/(\s|_|\+)/g, " ")).replace( /%20/g, "'" );
import ActionTypes from "./actionTypes"; // Action to hide the panel export function hide() { return { type: ActionTypes.Hide.Panel, visible: false }; } // Action to show the panel export function show() { return { type: ActionTypes.Show.Panel, visible: true }; }
import { isSelected } from '../../src/utils/selection' describe('isSelected', () => { test('it returns true if it is the same object by reference', () => { const value = { x: { sample: 'value' }, y: 1, } expect(isSelected(value, value)).toBeTruthy() }) test('it returns true if it is the ...
module.exports = /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ ret...
// Copyright (c) 2012 Ecma International. All rights reserved. // Ecma International makes this code available under the terms and conditions set // forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the // "Use Terms"). Any redistribution of this code must retain the above // copyright and this n...
'use strict'; class Store { constructor(game, type) { this.game = game; this.type = type; } draw(context, x, y) { context.fillStyle = 'green'; context.fillRect(x, y, 100, 100); } } export default Store;
'use strict'; //# sourceMappingURL=Transaction.js.map
import React, { PropTypes } from 'react'; import { Provider } from 'react-redux'; import { Router } from 'react-router'; import routes from './routes'; let hmrKey = Math.random(); const Root = ({ store, history }) => ( <Provider store={store}> <Router key={hmrKey} history={history}> {routes} </Router>...
module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), paths: { assets: { js: './resources/assets/js/', less: './resources/assets/less/', vendor: './vendor/' }, js: './public/assets/js/', css: './public/assets/css/', fonts: './public/assets/fonts...
/** * Karma Listener listening for CucumberJS events * * @author Benjamin Nowack <mail@bnowack.de> * * @param {module:karma} karma - Karma * @returns {KarmaCukesListener} */ var KarmaCukesListener = function(karma) { /** * Initialises the listener */ this.init = function() { this.karma...
var searchData= [ ['c',['C',['../struct_s_a_c_bitstream_1_1_channel_type.html#a31c32b34085c06a1c58d920ca28c17c9a5c9b81e6c191dc59f0f4680421cafa72',1,'SACBitstream::ChannelType']]], ['channel',['Channel',['../class_channel.html',1,'Channel'],['../class_channel.html#a3a5079024e870e5188f7af98772ae38c',1,'Channel::Chann...
/** * Lo-Dash 2.3.0 (Custom Build) <http://lodash.com/> * Build: `lodash modularize exports="node" -o ./compat/` * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/> * Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE> * Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and Investiga...
/** * Created by Estelle on 16/06/2016. */ 'use strict'; angular.module('core.context', ['ngResource']);
/** * @overview datejs * @version 1.0.0-beta-2014-03-25 * @author Gregory Wild-Smith <gregory@wild-smith.com> * @copyright 2014 Gregory Wild-Smith * @license MIT * @homepage https://github.com/abritinthebay/datejs */ /* * DateJS Culture String File * Country Code: es-AR * Name: Spanish (Argentina) * Format...
{ var data = ""; req.on("data", function(chunk) { data += chunk; }); req.on("end", function() { console.log("File uploaded"); res.writeHead(200); res.end(); }); }
/** * Created by zhengguorong on 16/6/22. */ import Vue from 'vue' import Vuex from 'vuex' import contentManage from './modules/contentManage' import app from './modules/app' Vue.use(Vuex) const debug = process.env.NODE_ENV !== 'production' export default new Vuex.Store({ modules: { contentManage, app ...
version https://git-lfs.github.com/spec/v1 oid sha256:051c513c1bccfd5530e6080a7d95f1d567300a748e9668be84ed52b0d109cc5f size 65815
import Application from 'ember-application'; import run from 'ember-runloop'; import { initialize } from '../../../instance-initializers/-sustains'; import { module, test } from 'qunit'; import destroyApp from '../../helpers/destroy-app'; module('Unit | Instance Initializer | sustains', { beforeEach() { run(() ...
var a00015 = [ [ "player_t", "a00005.html", "a00005" ], [ "player", "a00015.html#ga423655ccd6f0739c6cd730982fa6de05", null ], [ "player_init", "a00015.html#ga5c83feea6dbd6e2448404261375365e3", null ], [ "player_new", "a00015.html#ga75b1ecd76f93fa8893c4f2bab9fbf03b", null ], [ "player_set_fifo_name",...
//~ name b605 alert(b605); //~ component b606.js
import babel from 'rollup-plugin-babel'; import fs from 'fs'; const pkg = JSON.parse(fs.readFileSync('./package.json')); export default { entry: 'src/index.js', external: ['query-string'], moduleName: 'hashHandler', globals: { 'query-string': 'queryString', }, useStrict: false, sourceMap: true, pl...
(function () { 'use strict'; var app = angular.module('Fablab'); app.factory('TrainingService', function ($log, $resource, $http) { var training = $resource(App.API.TRAINING_API + "/:id", {id: '@id'}); return { list: function (successFn) { $http( ...
/*! * robust-admin-theme (http://demo.pixinvent.com/robust-admin) * Copyright 2017 PIXINVENT * Licensed under the Themeforest Standard Licenses */ $(window).on("load",function(){function getRandomData(){for(data.length>0&&(data=data.slice(1));data.length<totalPoints;){var prev=data.length>0?data[data.length-1]:50,y...
import { uglify } from 'rollup-plugin-uglify' import resolve from '@rollup/plugin-node-resolve' import commonjs from '@rollup/plugin-commonjs' export default { input: 'packages/react/dist/index.js', plugins: [ resolve({ browser: true }), uglify(), commonjs() ], output: { name: 'JSONEditor', ...
var packraturl = 'http://localhost:3000'; $(document).ready(function() { $.ajaxSetup({ xhrFields: { withCredentials: true } }); var form2object = function(form) { var data = {}; $(form).find('input').each(function(index, element) { var type = $(this).attr('type'); if ($(this...
import { module, inject } from "angular-mocks"; import "../../../app/auth/auth.module"; (function () { 'use strict'; describe('HttpHeaderInterceptor', function () { var httpHeaderInterceptor, CookiesServiceMock; beforeEach(module('xr.auth')); beforeEach(module(function (...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow strict-local * @format */ 'use strict'; const invariant = require('invariant'); const stableCopy = require('./stableCop...
import * as types from '../actions/action-types' const initialState = { blocked: false } const commonReducer = function(state = initialState, action) { switch(action.type) { case types.BLOCK_UI: return Object.assign({}, state, {blocked: true}) case types.UNBLOCK_UI: re...
var gulp = require('gulp'), jshint = require('gulp-jshint'), concat = require('gulp-concat'), rename = require('gulp-rename'), browserSync = require('browser-sync').create(), uglify = require('gulp-uglify'), minifyCss = require('gulp-minify-css'), jasmine = require('gulp-jasmine'); // Jasmine Testing gulp.task(...
/* * grunt-tilecutter * https://github.com/jlawson/tilecutter-grunt * * Copyright (c) 2015 James Lawson * Licensed under the MIT license. */ 'use strict'; var gdal = require('gdal'), chalk = require('chalk'); module.exports = function (grunt) { grunt.registerMultiTask('tilecutter', 'Tilecutter Plugin...
function JsonUtil() { /** * Given a provided object, * return a string representation of the object type. */ this.isType = function (obj_) { if (obj_ === null) { return "null"; } if (obj_ === NaN) { return "Nan"; } var _type = typeof...
export default '0.0.50';
module.exports={A:{A:{"2":"H D G E A B HB"},B:{"2":"0 C p J L N I"},C:{"1":"1 4 6 7 8 9 t u v w x y z AB BB","16":"0 3 cB F K H D G E A B C p J L N I O P aB UB","33":"2 Q R S T U V W X Y Z a c d e f g h i j k l m n o M q r s"},D:{"16":"0 F K H D G E A B C p J L N I O P Q R S","33":"1 2 4 6 7 8 9 T U V W X Y Z a c d e f...
/* @flow */ 'use strict'; var React = require('react-native'); var { AppRegistry, NetInfo, Text, StyleSheet, View, } = React; var NetInfoExample = React.createClass({ getInitialState(){ return { reachabilityHistory: [], reachayility: null, isConnected: null, }; }, componentD...
/** * [RHbnyDefectList] author by $YourName$ * @include "../../extclient/RowExpander.js" * @include "../../extclient/gridToExcel.js" * @include "../../extclient/SearchField.js" */ Ext.namespace('com.trend.hbny'); Ext.namespace('com.trend.hbny.rhbnydefectlist'); /** * 查询表单 * @class com.trend.hbny.rhbnydefectli...
import {metadata} from 'aurelia-metadata'; import {ValidationConfig} from './validation-config'; import {ValidationEngine} from './validation-engine'; import {validationMetadataKey} from './metadata-key'; export function observeProperty(target, key, descriptor) { let config = metadata.getOrCreateOwn(validationMetada...
/* eslint-disable prefer-destructuring */ const { performance } = require('perf_hooks'); const { createCanvas } = require('canvas'); /** * To not impact browser performance at all * I am using the node implementation of canvas, * doing all the rendering server side and * returning a base64 string to render within ...
import Test from '../../_helpers/Test' import bp from '../../_helpers/breakpoints' import mq from '../../_helpers/mq' import report_result_summary from '../../_helpers/report_result_summary' import sequence from '../../_helpers/sequence' import ResultTracker from '../../_helpers/ResultTracker' import apply_style from '...
/*! * angular-translate - v2.5.2 - 2015-01-13 * http://github.com/angular-translate/angular-translate * Copyright (c) 2015 ; Licensed MIT */ angular.module('pascalprecht.translate') /** * @ngdoc object * @name pascalprecht.translate.$translateStaticFilesLoader * @requires $q * @requires $http * * @description...
define(function(require) { var Class = require('class/Class'); //Abstraction of relative positioning information, modeled after jQuery UI //(more predictable) and jquery.qTip (more precise) var Position = Class.extend(/** @lends Position.prototype */ { __defaults: { x: null, y: null, precedence: null...
import ReactVelocityTransitionGroup from './lib/ReactVelocityTransitionGroup'; export default ReactVelocityTransitionGroup;
function EDMDGraphics(simulation, canvas) { this._simulation = simulation; this._canvas = canvas; this._sim_dt_per_frame = 1000.0; this.update = function() { this._simulation.step(this._sim_dt_per_frame); }; this.show = function() { this._show_background(); this._show_particles(); this._...
angular.module( 'comparcelTester', [ 'templates-app', 'templates-common', 'comparcelTester.home', 'ui.state', 'ui.route' ]) .config( function myAppConfig ( $stateProvider, $urlRouterProvider ) { // default route is home $urlRouterProvider.otherwise( '/home' ); }) .run( function run ( titleService )...
/** Copyright (c) 2007 Bill Orcutt (http://lilyapp.org, http://publicbeta.cx) 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,...
$('.comment').each(function(){ if(this.id.length > 0){ player_id = $("#"+this.id+' .comment-player a').attr("href").substr(9); $("#"+this.id + ' .comment-body div').after('<div id="comment-sig' + player_id + '"><a target="__new" href="http://getdotastats.com/sig/' + player_id + '.png"><img style="margin:auto; mar...
const DrawCard = require('../../drawcard.js'); const { Locations, Players, CardTypes, PlayTypes} = require('../../Constants'); const AbilityDsl = require('../../abilitydsl'); class WarmWelcome extends DrawCard { setupCardAbilities() { this.action({ title: 'Play a conflict card from discard', ...
var data = { contents: [ // { // top: '1', // date: 'Dec 14, 2017', // datecn: '2017.12.14', // cover: 'images/news/'+'', // title: '', // titlecn: '', // intro: '', // introcn: '', // url: 'news/'+''...
'use strict'; module.exports = { db: process.env.MONGOHQ_URL || process.env.MONGOLAB_URI || 'mongodb://localhost/store-app', assets: { lib: { css: [ 'public/lib/bootstrap/dist/css/bootstrap.min.css', 'public/lib/fontawesome/css/font-awesome.min.css', 'public/lib/angular-xeditable/dist/css/xeditable....
window.Utils = (function() { const DIGITS = 6; function numberToFixed (number) { return parseFloat(number.toFixed(DIGITS)); } function arrayNumbersToFixed (array) { for (var i = 0; i < array.length; i++) { array[i] = numberToFixed(array[i]); } return array; ...
/*jshint node: true, browser: true, nomen: true */ /*global projects_ss*/ 'use strict'; var Reflux = require('reflux'); var ProjectsActions = require('../actions/projects-actions'); var DataHelpers = require('../mixins/data-helpers'); var ProjectStore = require('./project-store'); var ProjectsStore = Reflux.createSto...
var fs = require('fs'), still = require('../'), testutils = require('./testutils'), build = still.build.build, server = still.server; describe('Templates', function () { afterEach(testutils.teardown); describe('Swig', function () { var out = 'tests/tmp/swigout'; it('renders', function (done) { ...
export default { ratio: function(value){ return Math.max(0, Math.min(1, value)); } };
/* "THE BEER-WARE LICENSE" (Revision 42): * <m-widmer@gmx> wrote this file. As long as you retain this notice you * can do whatever you want with this stuff. If we meet some day, and you think * this stuff is worth it, you can buy me a beer in return - Manuel Widmer */ // automatically generate TOC when document i...
function Paddle(x, y) { this.x = x; this.y = y; this.width = 25; this.height = 100; this.up(false); this.down(false); this.ai = false; this.color = "green"; } Paddle.ACCEL = 3; Paddle.MAXSPD = 10; Paddle.FROTT = .8; Paddle.prototype = new Polygon(); Paddle.prototype.up = function(b) { this.b_up = b; }; Pad...
/** * Entry of client script * @return {[type]} [description] */ ;(function () { 'use strict'; var slice = Array.prototype.slice var clientId = '<%= clientId %>' var _requestHandlers = {} var dataPacketQueue = [] var localBaseDocumentData var serverTime = <%= serverTime %> var clientT...
import {parseAndGetExpression} from '../../../utils'; import {expect} from 'chai'; describe('LogicalExpression', () => { it('should return correct type', () => { expect(parseAndGetExpression('x&&y').type).to.equal('LogicalExpression'); }); it('should accept parentheses', () => { var assign...
//steal/js d3px/scripts/compress.js load("steal/rhino/rhino.js"); steal('steal/clean',function(){ steal.clean('d3px/d3px.html',{ indent_size: 1, indent_char: '\t', jslint : false, ignore: /jquery\/jquery.js/, predefined: { steal: true, jQuery: true, $ : true, window : true } }); });