code
stringlengths
2
1.05M
module.exports = { prefix: 'far', iconName: 'arrow-alt-square-up', icon: [448, 512, [], "f353", "M244 384h-40c-6.6 0-12-5.4-12-12V256h-67c-10.7 0-16-12.9-8.5-20.5l99-99c4.7-4.7 12.3-4.7 17 0l99 99c7.6 7.6 2.2 20.5-8.5 20.5h-67v116c0 6.6-5.4 12-12 12zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21...
import React, { Component } from "react"; import formatter from "../formatter"; const labelStyle = { fg: "magenta", bold: true }; class RequestBreakdown extends Component { scroll(amount) { // nope } render() { const { respTime, sqlTime, renderingTime } = this.props.data; return ( <box top={...
const DrawCard = require('../../drawcard.js'); const { CardTypes } = require('../../Constants'); class AsakoTsuki extends DrawCard { setupCardAbilities(ability) { this.reaction({ title: 'Honor a scholar character', when: { onClaimRing: event => event.conflict && even...
import DndStatus from 'ringcentral-integration/modules/Presence/dndStatus'; import i18n from './i18n'; export function getPresenceStatusName( presenceStatus, dndStatus, currentLocale, ) { if (dndStatus === DndStatus.doNotAcceptAnyCalls) { return i18n.getString(dndStatus, currentLocale); } return i18n.g...
"use strict"; const bunyan = require("bunyan") , bformat = require("bunyan-format") , config = require("config") ; const log_level = process.env.LOG_LEVEL || (config.has('app.log_level') ? config.get('app.log_level') : "info"); const formatOut = bformat({ outputMode: "short" , }) , logger = bunyan.c...
module.exports = function(grunt) { grunt.initConfig({ // insert the bower files in your index.html wiredep: { target: { src: 'index.html' } } }); grunt.loadNpmTasks('grunt-wiredep'); grunt.registerTask('default', ['wiredep']); };
const test = require('tape') const MinHeap = require('./MinHeap') test('find returns null in empty heap', assert => { const heap = new MinHeap() assert.equal(heap.findMin(), null) assert.end() }) test('length is 0 in empty heap', assert => { const heap = new MinHeap() assert.equal(heap.length, 0) assert...
let fs = require('fs'); let path = require('path'); let moviesData = require('../config/database'); module.exports = (req, res) => { if(req.headers.statusheader === "Full") { fs.readFile("./views/status.html", (err, data) => { if(err) { console.log(err); res.writ...
/* --- AUTOGENERATED FILE ----------------------------- * If you make changes to this file delete this comment. * Otherwise the file may be overwritten in the future. * --------------------------------------------------- */ const { mergeLocMatchGroups } = require('../lib/matching/utils'); const { regexMatchLocs } = re...
/** * js-borschik-include * =================== * * Собирает *js*-файлы инклудами борщика, сохраняет в виде `?.js`. * Технология нужна, если в исходных *js*-файлах используются инклуды борщика. * * В последствии, получившийся файл `?.js` следует раскрывать с помощью технологии `borschik`. * * **Опции** * * *...
import { h } from 'omi'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon(h("path", { d: "M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm5 16H7v-2h10v2zm-6.7-4L7 10.7l1.4-1.4 1.9 1.9 5.3-5.3L17 7.3 10.3 14z" }), 'OfflinePinSharp');
import * as actions from './actions' describe('App actions', () => { it('selectTerm should create SELECT_TERM action', () => { expect(actions.selectTerm('term')).toEqual({ type: 'SELECT_TERM', term: 'term' }) }) it('startFetch should create START_FETCH action', () => { expect(actions.st...
/** * @version: 1.0.1 * @author: Dan Grossman http://www.dangrossman.info/ * @date: 2012-08-20 * @copyright: Copyright (c) 2012 Dan Grossman. All rights reserved. * @license: Licensed under Apache License v2.0. See http://www.apache.org/licenses/LICENSE-2.0 * @website: http://www.improvely.com/ */ !function ($)...
/** * This module is used to create different point distributions that can be * turned into different tile sets when made into a graph format. There are * various different distributions that can be used to create interesting * tile patterns when turned into a voronoi diagram. * * @class PointDistribution */ ...
'use strict'; angular.module('refugeesApp') .controller('SettingsController', function ($scope, Principal, Auth, Language, $translate) { $scope.success = null; $scope.error = null; Principal.identity().then(function(account) { $scope.settingsAccount = copyAccount(account); ...
var UTIL = require('./util'); var ShadowNode; module.exports = ShadowNode = function(patch,options){ this.shadow = options.shadow; this.native = options.native; this.elem = new patch.type(this); this.elem.props = patch.props; this.elem.props.children = patch.children; this.elem.state = this.elem.getInitia...
'use strict'; var mongoose = require('mongoose'), Schema = mongoose.Schema; var videoWorksSchema = new Schema ({ title: { type: String }, directedBy: { type: [String] }, editedBy: { type: [String] }, cast: { type: [String] }, videoUrl: { type: String }, copyright: { ...
'use strict'; module.exports = { extends: ['./index', './rules/imports', './rules/frontend', './rules/vue'].map(require.resolve).concat(['plugin:vue/recommended']), parser: 'vue-eslint-parser', parserOptions: { parser: 'babel-eslint', sourceType: 'module', ecmaVersion: 2017, ecmaFeatures: { jsx: tr...
import React, {PropTypes} from 'react'; import { Link, IndexLink } from 'react-router'; // import {Navbar, Nav, NavItem, NavDropdown, MenuItem} from 'react-bootstrap'; class Header extends React.Component { constructor(props) { super(props); } render() { return ( <div id="container" className="link...
//ButtonTable is a very very special case, because I am still not sure why it is a table :-) // alternate design is to make it a field. Filed looks more logical, but table is more convenient at this time. // we will review this design later and decide, meanwhile here is the ButtonPane table that DOES NOT inherit from ...
/* function Canvas(paper, props){ var props = $.extend(true, { "x" : 0, "y" : 0, "width" : "100%", "height" : "100%" }, (props || {})), _scale = 1, _translateX = 0, _translateY = 0, self = this, lx = 0, ly = 0, ox = 0, oy = 0, canvasBg = paper.rect(props.x, props.y, pr...
/* * Copyright (c) 2014 airbug inc. http://airbug.com * * bugpack-registry may be freely distributed under the MIT license. */ //------------------------------------------------------------------------------- // Requires //------------------------------------------------------------------------------- var buildb...
export default function(that) { return !isNaN(that.curValue) && that.curValue%1===0; }
'use strict'; angular.module('core').controller('SidebarController', ['$scope', 'Authentication', function($scope, Authentication) { $scope.authentication = Authentication; } ]);
import superagent from 'superagent'; import config from '../config'; const { NODE_ENV } = process.env; const methods = ['get', 'post', 'put', 'patch', 'del']; function formatUrl(path) { const adjustedPath = path[0] !== '/' ? '/' + path : path; if (__SERVER__ || NODE_ENV === 'production') { return `${config.a...
version https://git-lfs.github.com/spec/v1 oid sha256:bd24e43ef20f9f9e3c711e3d54df98d049591993ab374dbc14fbe801ba528183 size 10061
module.exports = { snowboy: { models: { file: "node_modules/snowboy/resources/snowboy.umdl", sensitivity: "0.5", hotwords: "snowboy" }, detector: { resource: "node_modules/snowboy/resources/common.res", audioGain: 2.0 } } };
var jshint = require('jshint').JSHINT, colors = require('colors'); module.exports = function(code) { var options = { devel: true, node: true, predef: ['expect', 'done'], undef: true }, isValid = jshint(code, options); if (!isValid) { var errorsByLineNumber = {}; jshint....
/** * ghostHunter - 0.4.0 * Copyright (C) 2014 Jamal Neufeld (jamal@i11u.me) * MIT Licensed * @license */ (function( $ ) { /* Include the Lunr library */ var lunr=require('./lunr.min.js'); //This is the main plugin definition $.fn.ghostHunter = function( options ) { //Here we use jQuery's extend to set defa...
import React, { PropTypes, } from 'react'; import { StyleSheet, View, Text, } from 'react-native'; const styles = StyleSheet.create({ all: { paddingHorizontal: 10, paddingVertical: 5, }, text: { fontSize: 12, color: '#666', }, }); function ListItemTitle(props) { return ( <View s...
import axios from 'axios'; import {getAuthInfo} from './firebase-service'; import {VIANCA, CHAN, TOPA, IBA_COLOMBIA} from './service-store'; export const ERROR_RESULT = 'ERROR'; export const RESERVED_RESULT = 'R'; export const INSUFICIENT_RESULT = 'I'; export const NOT_FOUND_RESULT = 'NF'; export function submitReser...
import { DESCRIPTORS, LITTLE_ENDIAN } from '../helpers/constants'; if (DESCRIPTORS) QUnit.test('Int32 conversions', assert => { const int32array = new Int32Array(1); const uint8array = new Uint8Array(int32array.buffer); const dataview = new DataView(int32array.buffer); function viewFrom(it) { return new D...
/** * NOTE: We are in the process of migrating these tests to Mocha. If you are * adding a new test, consider creating a new spec file in mocha_tests/ */ var async = require('../lib/async'); if (!Function.prototype.bind) { Function.prototype.bind = function (thisArg) { var args = Array.prototype.slic...
/** * Runs a webserver and socket server for visualizating interactions with TJBot */ var ip = require('ip'); var express = require("express") var config = require('./config.js') var path = require("path") var app = express(); var http = require('http'); var exports = module.exports = {}; // routes var routes = requ...
import 'webrtc-adapter/out/adapter.js'; import EventEmitter from 'events'; var configuration = { iceServers: [ {urls: "stun:stun.l.google.com:19302"}, {urls: "turn:numb.viagenie.ca", credential: "w0kkaw0kka", username: "paul.sachs%40influitive.com"} ] }; export default class FirePeer extends EventEmitter {...
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}(g.Mars || (g.Ma...
module.exports = LoadsModels const resolve = require.resolve function LoadsModels (models) { const load = models.load.bind(models) /* load( require('./create_root_portfolio.js'), { uri: resolve('./create_root_portfolio.js'), id: 'portfolios/root' } ) */ }
var path = require('path'); var webpack = require('webpack'); module.exports = { devtool: 'source-map', entry: [ './app/index' ], output: { path: path.join(__dirname, 'dist'), filename: 'bundle.js', publicPath: '/dist/' }, plugins: [ new webpack.optimize.OccurenceOrderPlugin(), new ...
window.esdocSearchIndex = [ [ "./git/resourcecreator/src/utils/commonmanagers/advencedfilterargmanager/advencedfilterargmanagercategorygroupaddsampledatas.js~advencedfilterargmanagercategorygroupaddsampledatas", "variable/index.html#static-variable-AdvencedFilterArgManagerCategoryGroupAddSampleDatas", "<s...
import React from 'react' import ReactDOM from 'react-dom' import createBrowserHistory from 'history/lib/createBrowserHistory' import { useRouterHistory } from 'react-router' import { mySyncHistoryWithStore, default as createStore } from './store/createStore' import AppContainer from './containers/AppContainer' imp...
var beep = require('../beep.js'); beep(3);
var github = require('octonode'); var _ = require('lodash'); module.exports = { name:'action', description:'A command to show recent activity for all members of your org', example:'bosco action', cmd:cmd } function cmd(bosco) { getActivity(bosco); } function getActivity(bosco) { var client = git...
/** * constants.js */ // TODO: update these to better colors var SHIELD_COLOR = vec4.fromValues(0.0, 0.0, 1.0, 1.0); var ARMOR_COLOR = vec4.fromValues(0.0, 1.0, 0.0, 1.0); var HULL_COLOR = vec4.fromValues(1.0, 0.0, 1.0, 1.0);
'use strict' exports.Utils = require('./utils') exports.Schemas = require('./schemas') exports.Validator = require('./validator')
// @flow import type { Action } from "../actions/types"; import type { UserState } from "../types"; const initialState: UserState = { fetching: false, fetched: false, users: [], error: null }; export default function users(state: UserState = initialState, action: Action) { switch (action.type) { case "...
var ps, acorn; function start(){ ps = new PointStream(); ps.setup(document.getElementById('canvas')); ps.pointSize(5); ps.onKeyDown = function(){ ps.println(window.key); }; ps.onRender = function(){ ps.translate(0, 0, -25); ps.clear(); ps.render(acorn); }; acorn = ps.load("../../clouds/...
$identify("org/mathdox/formulaeditor/OrbeonForms.js"); $require("org/mathdox/formulaeditor/FormulaEditor.js"); var ORBEON; $main(function(){ if (ORBEON && ORBEON.xforms && ORBEON.xforms.Document) { /** * Extend the save function of the formula editor to use the orbeon update * mechanism, see also: ...
function isEmpty(value) { return angular.isUndefined(value) || value === '' || value === null || value !== value; } angular.module('Aggie') .directive('ngMin', function () { return { restrict: 'A', require: 'ngModel', link: function (scope, elem, attr, ctrl) { scope.$watch(attr.ngMin, function...
require( "../setup" ); var packageResource = require( "../../resource/package/resource.js" ); describe( "Package Resource", function() { var server = { checkForNew: _.noop }; describe( "when getting new package callback", function() { describe( "with matching package", function() { var config, serverMock, resul...
/** * Module dependencies. */ var express = require('express'); var routes = require('./routes'); var user = require('./routes/user'); var http = require('http'); var path = require('path'); var app = express(); // all environments app.set('port', process.env.PORT || 3000); app.set('views', path.join(__dirname, '...
var resetCollection = function(collection) { collection.find().fetch().forEach(function(obj) { collection.remove({_id: obj._id}); }); }; describe('CapabilityManager', function() { var capabilityManager; beforeAll(function() { capabilityManager = new CapabilityManager(); }); it('should set initial capabili...
import _size from './_size'; export default class MapObject { constructor() { this._data = new Map(); } get size() { return _size(); } }
const express = require('express'); const app = express(); app.use(express.static('./src/')) app.listen(8000, () => { console.log('The server is running on the http://localhost:8000/......'); });
/** @jsx html */ import { html } from '../../../snabbdom-jsx'; import Type from 'union-type'; import { bind, pipe, isBoolean, targetValue, targetChecked } from './helpers'; import { KEY_ENTER } from './constants'; // model : {id: Number, title: String, done: Boolean, editing: Boolean, editingValue: String } ...
import Route from '@ember/routing/route'; export default Route.extend({ redirect() { this._super(...arguments); this.transitionTo('examples.single-date-picker'); } });
'use strict'; var fs = require('fs'); var demand = require('must'); var sinon = require('sinon'); var WebHDFS = require('../lib/webhdfs'); var WebHDFSProxy = require('webhdfs-proxy'); var WebHDFSProxyMemoryStorage = require('webhdfs-proxy-memory'); describe('WebHDFS', function () { var path = '/files/' + Math.rand...
/* */ (function(process) { var serial = require('../serial'); module.exports = ReadableSerial; function ReadableSerial(list, iterator, callback) { if (!(this instanceof ReadableSerial)) { return new ReadableSerial(list, iterator, callback); } ReadableSerial.super_.call(this, {objectMode: true})...
/** * Created by li_xiaoliang on 2015/3/29. */ define(['marked','highlight'],function(marked,highlight){ return{ parsemarkdown:function(md){ var pattern=/~.*?~/g; var matches=pattern.exec(md); while(matches!=null){ var match=matches[0]; c...
define(['exports', 'aurelia-templating'], function (exports, _aureliaTemplating) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.VirtualRepeatNext = undefined; var _dec, _class; var VirtualRepeatNext = exports.VirtualRepeatNext = (_dec = (0, _aureliaTemplati...
import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon( /*#__PURE__*/_jsx("path", { d: "M8 10H5V7H3v3H0v2h3v3h2v-3h3v-2zm10 1c1.66 0 2.99-1.34 2.99-3S19.66 5 18 5c-.32 0-.63.05-.91.14.57.81.9 1.79.9 2.86s-.34 2.04-.9 2.86c.28.09.59.14.91.14zm-5...
var extend = require('extend'); var plivo = require('plivo'); var crypto = require('crypto') var phone = require('phone'); var TelcomPlivoClient = module.exports = function(opts){ if (!(this instanceof TelcomPlivoClient)) return new TelcomPlivoClient(options); this.options = {}; extend(this.options,opts); ...
import GameEvent from './GameEvent'; import Creature from '../entities/creatures/Creature'; import Ability from '../abilities/Ability'; import Tile from '../tiles/Tile'; export default class AbilityEvent extends GameEvent { /** * @class AbilityEvent * @description Fired whenever a creature attacks ...
//------------------------------- // ADMINISTER CODES FUNCTIONALITY //------------------------------- MFILE.administerCodes = function () { MFILE.administerCodes.handleDisplay(); MFILE.administerCodes.handleKeyboard(); } MFILE.administerCodes.handleDisplay = function () { $('#result').empty(); $('#cod...
/** * @fileOverview * @name aqicn.js * @author ctgnauh <huangtc@outlook.com> * @license MIT */ var request = require('request'); var cheerio = require('cheerio'); var info = require('./info.json'); /** * 从 aqicn.org 上获取空气信息 * @module aqicn */ module.exports = { // 一些多余的信息 info: info, /** * fetchWeb...
var loadState = { preload: function() { /* Load all game assets Place your load bar, some messages. In this case of loading, only text is placed... */ var loadingLabel = game.add.text(80, 150, 'loading...', {font: '30px Courier', fill: '#fff'}); //Load you...
'use strict'; var proxy = require('proxyquire'); var stubs = { googlemaps: jasmine.createSpyObj('googlemaps', ['staticMap']), request: jasmine.createSpy('request'), '@noCallThru': true }; describe('google-static-map', function() { var uut; describe('without auto-setting a key', function() { ...
/** * Unit tests for FoxHound * * @license MIT * * @author Steven Velozo <steven@velozo.com> */ var Chai = require('chai'); var Expect = Chai.expect; var Assert = Chai.assert; var libFable = require('fable').new({}); var libFoxHound = require('../source/FoxHound.js'); suite ( 'FoxHound', function() { s...
const path = require( 'path' ); const pkg = require( './package.json' ); const webpack = require( 'laxar-infrastructure' ).webpack( { context: __dirname, resolve: { extensions: [ '.js', '.jsx', '.ts', '.tsx' ] }, module: { rules: [ { test: /\.tsx?$/, exclude: /n...
import React, { Component } from "react"; import { AppHeader, AppFooter } from "../App"; import config from "../../../config"; import { fromJS } from "immutable"; import Spinner from "react-spinner"; import { PlaylistNavBar } from "../../components/PlaylistNavBar"; export class LoadingMoment extends Component { cons...
/* */ var htmlparser = require('htmlparser2'); var _ = require('lodash'); var quoteRegexp = require('regexp-quote'); module.exports = sanitizeHtml; // Ignore the _recursing flag; it's there for recursive // invocation as a guard against this exploit: // https://github.com/fb55/htmlparser2/issues/105 function saniti...
var path = require('path'); var winston = require('winston'); var config = require('./config.js'); var util = require('./util.js'); module.exports = initLogger(); function initLogger() { var targetDir = path.join(config('workingdir'), 'log'); util.createDirectoryIfNeeded(targetDir); var winstonConfig = ...
const router = require('express').Router(); const db1 = require('../db'); // GET - Get All Students Info (Admin) // response: // [] students: // account_id: uuid // user_id: uuid // first_name: string // last_name: string // hometown: string // college: string // maj...
import one from './index-loader-syntax.css'; import two from 'button.modules.css!=!./index-loader-syntax-sass.css'; // Hash should be different import three from './button.module.scss!=!./base64-loader?LmZvbyB7IGNvbG9yOiByZWQ7IH0=!./simple.js?foo=bar'; import four from './other.module.scss!=!./base64-loader?LmZvbyB7IGN...
var mysql = require('mysql'); function discountMember(router,connection){ var self=this; self.handleRoutes(router,connection); } //KALO...UDH SEKALI DIDISKON>>>BERARTI GABOLEH LAGI LAGI DISKON YAA TODO: discountMember.prototype.handleRoutes = function(router,connection){ router.post('/discountMember',functio...
import React from 'react'; import Home from './Home.js'; import Login from './Login.js'; import PointInTime from './PointInTime.js'; import Vispdat from './VISPDAT.js'; import Refuse from './Refuse.js'; import { Actions, Scene } from 'react-native-router-flux'; /** * Order of rendering is based on index of Child ...
/*global Showdown*/ describe('$showdown', function () { 'use strict'; beforeEach(module('pl.itcrowd.services')); it('should be possible to inject initialized $showdown converter', inject(function ($showdown) { expect($showdown).not.toBeUndefined(); })); it('should be instance of $show...
define(function () { var exports = {}; /** * Hashes string with a guarantee that if you need to hash a new string * that contains already hashed string at it's start, you can pass only * added part of that string along with the hash of already computed part * and will get correctly hash as if you passe...
version https://git-lfs.github.com/spec/v1 oid sha256:558005fd55405d3069b06849812a921274543d712676f42ad4a8c122034c02e4 size 819
let allExpenses exports.up = (knex, Promise) => { return knex('expenses').select('*') .then(expenses => { allExpenses = expenses return knex.schema.createTable('expense_items', (table) => { table.increments('id').primary().notNullable() table.integer('expense_id').notNullable().refer...
var express = require('express'); var app = express(); var path = require('path'); var session = require('express-session'); var bodyParser = require('body-parser') var fs = require('fs'); app.use(express.static(path.join(__dirname, 'public'))); app.use(bodyParser.urlencoded({extended: true})); app.use(bodyParser.json...
var Screen = require('./basescreen'); var Game = require('../game'); var helpScreen = new Screen('Help'); // Define our winning screen helpScreen.render = function (display) { var text = 'jsrogue help'; var border = '-------------'; var y = 0; display.drawText(Game.getScreenWidth() / 2 - text.length / 2, y++,...
requirejs(['helper/util'], function(util){ });
// 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...
var View = require('ampersand-view'); var templates = require('../templates'); module.exports = View.extend({ template: templates.includes.scholarship, bindings: { 'model.field': '[role=field]', 'model.slots': '[role=slots]', 'model.holder': '[role=holder]', 'model.type': '[role...
var toInteger = require('./toInteger'); /** Used as the `TypeError` message for "Functions" methods. */ var FUNC_ERROR_TEXT = 'Expected a function'; /** * The opposite of `_.before`; this method creates a function that invokes * `func` once it's called `n` or more times. * * @static * @memberOf _ * @category Fu...
$.widget( "alexandra.panelSlider", { options: { currentView: null, // The panel currently in focus panels:[] // All panels added to the navigation system }, //The constructor of the panelSLide widget _create: function() { var tempThis=this; this.element.addClass("pan...
(function() { 'use strict'; function movieDetail(movieDetailService) { return { restrict: 'EA', replace: true, templateUrl: './src/app/movieDetail/template.html', scope: {}, controllerAs: 'vm', bindToController: true, /*jshint unused:false*/ controller: function(...
/* See license.txt for terms of usage */ require.def("domplate/toolTip", [ "domplate/domplate", "core/lib", "core/trace" ], function(Domplate, Lib, Trace) { with (Domplate) { // ************************************************************************************************ // Globals var mouseEvents = ...
import robot from 'robotjs' import sleep from 'sleep' import orifice from './fc8_orifice_map.json' var fs = require('fs') /*//set speed robot.setKeyboardDelay(150) robot.setMouseDelay(100)*/ let type = [ "Orifice", "Venturi", "Nozzle", "Fixed Geometry", "V-Cone", "Segmental Meters", "Linea...
/** * Simple re-export of frost-detail-tabs-more-tabs in the app namespace */ export {default} from 'ember-frost-tabs/components/frost-detail-tabs-more-tabs'
'use strict'; /** * Module dependencies */ var citiesPolicy = require('../policies/cities.server.policy'), cities = require('../controllers/cities.server.controller'); module.exports = function (app) { // City collection routes app.route('/api/cities').all(citiesPolicy.isAllowed) .get(cities.list) .po...
(function( factory ) { if ( typeof define === "function" && define.amd ) { define( ["jquery", "../jquery.validate"], factory ); } else if (typeof exports === "object") { factory(require("jquery")); } else { factory( jQuery ); } }(function( $ ) { /* * Translated default messages for the jQuery validation plu...
import { TASK_STATUS_ACTIVE, TASK_STATUS_COMPLETED } from 'modules/task/constants'; export class RouterService { constructor($state, $stateParams) { this.state = $state; this.params = $stateParams; } isActiveTasks() { return this.state.is('app.tasks', {filter: TASK_STATUS_ACTIVE}); } isCom...
module.exports = { description: 'deconflict entry points with the same name in different directories', command: 'rollup --input main.js --input sub/main.js --format esm --dir _actual --experimentalCodeSplitting' };
/** * xDo app client * * Auther: vs4vijay@gmail.com */ var app = angular.module('app', ['ngResource']); app.controller('AppCtrl', ['$scope', function($scope) { // Parent controller for all the Ctrls $scope.appModel = {} }]); // Can define config block here or use ngRoute
/** * @module creatine.transitions **/ (function() { "use strict"; /** * A transition effect to scroll the new scene. * * ## Usage example * * var game = new tine.Game(null, { * create: function() { * var transition = new tine.transitions.Scroll(tine.TOP, null, 1000); *...
function Test() { a = 1; console.log(a); try { console.log(b); } catch (e) { console.log("null"); } } console.log("Test1"); Test(); a = 2; b = 3; console.log("Test2"); Test(); Test.a = 4; Test.b = 4; console.log("Test3"); Test(); console.log("Test4"); console.log(Test.a); console.log(Test.b)...
// All code points in the `Sc` category as per Unicode v6.3.0: [ 0x24, 0xA2, 0xA3, 0xA4, 0xA5, 0x58F, 0x60B, 0x9F2, 0x9F3, 0x9FB, 0xAF1, 0xBF9, 0xE3F, 0x17DB, 0x20A0, 0x20A1, 0x20A2, 0x20A3, 0x20A4, 0x20A5, 0x20A6, 0x20A7, 0x20A8, 0x20A9, 0x20AA, 0x20AB, 0x20AC, 0x20AD, 0x20AE, 0x20AF, 0x...
var should = require('should'), supertest = require('supertest'), testUtils = require('../../../utils/index'), localUtils = require('./utils'), config = require('../../../../server/config/index'), ghost = testUtils.startGhost, request; describe('Slug API', function () { var accesstoken = ''...
function Grid(size) { this.size = size; this.startTiles = 2; this.cells = []; this.build(); this.playerTurn = true; } // pre-allocate these objects (for speed) Grid.prototype.indexes = []; for (var x=0; x<4; x++) { Grid.prototype.indexes.push([]); for (var y=0; y<4; y++) { Grid.prototype.indexes[...