code
stringlengths
2
1.05M
// @flow import type {Action} from '../actions/types'; const initialState = { firstMonth: -1, dates: [] }; export type State = { firstMonth: number; dates: Array<Array<number>>; }; export default function calendar(state: State = initialState, action: Action) : State { switch (action.type) { case 'CALEN...
import {Entity} from 'aframe-react'; import React from 'react'; export default class Seat extends React.Component { constructor(props) { super(props); this.state = { opacity: 1, }; } render() { return ( <Entity position={this.props.seatPos} > <Entity visible={ true } ...
var sample5__unittest_8cc = [ [ "QuickTest", "class_quick_test.html", "class_quick_test" ], [ "IntegerFunctionTest", "class_integer_function_test.html", null ], [ "QueueTest", "class_queue_test.html", "class_queue_test" ], [ "TEST_F", "sample5__unittest_8cc.html#ad7679328025ef6d95ee2f45d5604aa89", null ...
(function() { 'use strict'; angular.module('civic.events.genes', ['ui.router']); angular.module('civic.events.assertions', ['ui.router']); angular.module('civic.events.variants', ['ui.router']); angular.module('civic.events.variantGroups', ['ui.router']); angular.module('civic.events.evidence', ['ui.router'...
// flow-typed signature: ec6537b935587fad87c821c01929901f // flow-typed version: <<STUB>>/react-test-renderer_v^15.6.1/flow_v0.47.0 /** * This is an autogenerated libdef stub for: * * 'react-test-renderer' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share ...
$(document).ready(function() { $('#login-form').on('submit', login()); function login(){ $.ajax({ url: "http://localhost:9999/main/login", type: "GET", data: { username:$("#username-field").val(), password:$("#password-field").val() }, success: function(response) { ...
(function(){ 'use strict'; angular .module('app') .constant('LSVER', 1); angular .module('app') .constant('LSKEYS', { fontSize: 'fontSize', fontBold: 'fontBold', themeDarK: 'themeDarK', auth: 'auth', data: 'data' }); angular .module('app') .service('...
'use strict'; const fs = require('fs'); const execa = require('execa'); const Bluebird = require('bluebird'); const log = require('npmlog'); const fsStatAsync = Bluebird.promisify(fs.stat); const isWin = require('./utils/is-win')(); exports.fileExists = function fileExists(path) { return fsStatAsync(path).then(st...
var classowncloudsharp_1_1_exceptions_1_1_o_c_s_response_error = [ [ "OCSResponseError", "classowncloudsharp_1_1_exceptions_1_1_o_c_s_response_error.html#a4a8be342eabdb1ff56309de41bb27376", null ], [ "OCSResponseError", "classowncloudsharp_1_1_exceptions_1_1_o_c_s_response_error.html#abe1faed2e2f100a1d5e5c05141...
var config = require('./config.console'), mongoose = require('mongoose'), chalk = require('chalk'), http = require('http'), fs = require('fs'); var db = mongoose.connect(config.db, function(err) { if (err) { console.error(chalk.red('Could not connect to MongoDB!')); console.log(chalk.red(err)); //process.e...
(function($) { 'use strict'; Crafty.scene('editor', function editorScene () { showEditorForm(); var _width = Crafty.viewport.width; var _height = Crafty.viewport.height; var bricksCreated = 0; var lvl = { name: "Dynamic Level", bricks: [] ...
module.exports = cdn var MaxCDN = require('maxcdn') function cdn (self) { if (self.settings.maxcdn.zoneId) { var maxcdn = new MaxCDN( self.settings.maxcdn.companyAlias, self.settings.maxcdn.consumerKey, self.settings.maxcdn.consumerSecret ) maxcdn.del('zones/pull.json/' + self.settings.m...
'use strict'; var https = require('https'); var q = require('q'); function logError(error) { console.log("[Lightify] Error!"); if (error.statusMessage) { console.log("[Lightify] HTTP Error: " + error.statusCode + " - " + error.statusMessage); console.log("[Lightify] HTTP Headers: "); ...
/* Copyright 2015 Dietrich Epp. This file is part of Dash and the Jetpack Space Pirates. The Dash and the Jetpack Space Pirates source code is distributed under the terms of the MIT license. See LICENSE.txt for details. */ 'use strict'; var glm = require('gl-matrix'); var vec2 = glm.vec2; var color = requ...
var searchData= [ ['parser_2ecpp',['Parser.cpp',['../_parser_8cpp.html',1,'']]], ['parser_2eh',['Parser.h',['../_parser_8h.html',1,'']]], ['parsercollision_2ecpp',['ParserCollision.cpp',['../_parser_collision_8cpp.html',1,'']]], ['parsercollision_2eh',['ParserCollision.h',['../_parser_collision_8h.html',1,'']]]...
/* ************************* * "CLASS": Player * *************************/ function Player(x, y){ /* ### ATTRIBUTES ### */ Entity.call(this, x, y); this.vx = 0; this.vy = 0; this.currentMaxHealth = 2; this.health = 2; this.sprite = new Sprite('res/spritesheet.png', [0, 0], [32,32] , 12, [0,1,2,3,4,5,6,7]);...
/** * Common utilities * @module glMatrix */ // Configuration Constants export var EPSILON = 0.000001; export var ARRAY_TYPE = typeof Float32Array !== 'undefined' ? Float32Array : Array; export var RANDOM = Math.random; /** * Sets the type of array used when creating new vectors and matrices * * @param {Typ...
/* jshint node: true */ 'use strict'; var util = require('util'); var _ = require('underscore'); var defaults = require('../defaults'); var options = require('../options'); var descriptor = defaults.defaultDescriptor({ 'productName': { name: 'Product Name', required: true }, 'productDesc': { na...
const zlib = require('zlib'); const log = require('winston'); const Mutex = require('../mutex'); const database = require('../models/mysql'); const ENV = process.env.NODE_ENV || 'development'; const config = ENV !== 'test' ? require('../config') : require('../config.sample'); // Constants const CHARACTERS = '0123456...
//~ name b486 alert(b486); //~ component b487.js
'use strict'; var React = require('react'); var classNames = require('classnames'); var fecha = require('fecha'); var ClassNameMixin = require('./mixins/ClassNameMixin'); var dateUtils = require('./utils/dateUtils'); var Icon = require('./Icon'); var DatePicker = React.createClass({ mixins: [ClassNameMixin], pro...
/* ======================================================================== * DOM-based Routing * Based on http://goo.gl/EUTi53 by Paul Irish * * Only fires on body classes that match. If a body class contains a dash, * replace the dash with an underscore when adding it to the object below. * * .noConflict() * ...
var searchData= [ ['barelog_5fbuf_5fmax_5fsize',['BARELOG_BUF_MAX_SIZE',['../barelog__internal_8h.html#a8d9cd5cdc907ebe2a557b3ab745a7da2',1,'barelog_internal.h']]], ['barelog_5fbuffer_2eh',['barelog_buffer.h',['../barelog__buffer_8h.html',1,'']]], ['barelog_5fcheck_5fmode',['BARELOG_CHECK_MODE',['../barelog__conf...
// App.js import React from 'react'; import { browserHistory } from 'react-router'; // import components import NavBar from './navbar/components/NavBar'; export default class App extends React.Component { constructor(props) { super(props); this.state = {} this.getComponentsXHR = this.getComponentsXHR.bin...
const vboxm = require('./vboxm.js'); //vboxm.clone('8a07a800-4bef-4cc7-9581-6d03a2fab45f', 'vboxm.cloneテスト'); // vboxm.delete('db7cd51b-ac5b-4915-859e-20b88bcf68c2'); let name = 'aiueo,kakikukeko???kdfajlsd'; let regResult = name.match(/^[a-zA-Z0-9!\(\)-=^~\\|@`\[{;+:*\]},<.>/?\_ ]+$/); console.log(regResult);
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { enumerable: true, get: function get() { return _uxcorePopover.default; } }); var _uxcorePopover = ...
/* Load a block from github.io. Accepts a url as a parameter which can include url parameters e.g. https://megjlow.github.io/extension2.js?name=SUN&ip=10.0.0.1 */ new (function() { var ext = this; var descriptor = { blocks: [ [' ', 'Load extension block ip %s', 'loadBlock', 'ip', 'ip'], ...
/*! @license pzprv3-ui.js v<%= pkg.version %> (c) 2009-<%= grunt.template.today('yyyy') %> <%= pkg.author %>, MIT license * https://bitbucket.org/sabo2/pzprv3 */
const test = require('tape') const nlp = require('../_lib') test('number-tag:', function (t) { let arr = [ ['16.125', 'Cardinal'], ['+160.125', 'Cardinal'], ['-0.1', 'Cardinal'], ['.13', 'Cardinal'], ['(127.54)', 'Cardinal'], ['16.125th', 'Ordinal'], ['161,253th', 'Ordinal'], ['+160....
(function($) { module("autocomplete: options"); test('setAttributes', function() { var source = $('#autocomplete').autocomplete("option", "source"); equals(source.join(','), ['ActionScript','AppleScript','Asp','BASIC','C','C++','Clojure','COBOL','ColdFusion','Erlang','Fortran','Groovy','Haskell','Java','JavaScri...
'use strict' const t = require('tap') const test = t.test const FindMyWay = require('../') test('case insensitive static routes of level 1', t => { t.plan(1) const findMyWay = FindMyWay({ caseSensitive: false, defaultRoute: (req, res) => { t.fail('Should not be defaultRoute') } }) findMyWa...
var entityMap = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': '&quot;', "'": '&#39;', "/": '&#x2F;' }; function escapeHTML(string) { return String(string).replace(/[&<>"'\/]/g, function (s) { return entityMap[s]; }); } function escapeCodeBlocks() { var sections = document.querySelect...
'use es6'; const dotenv = require('dotenv'); const Lyft = require('./build/index'); dotenv.load(); const lyft = new Lyft(process.env.LYFT_CLIENT_ID, process.env.LYFT_CLIENT_SECRET); const query = { start: { latitude: 37.7833, longitude: -122.4167, }, end: { latitude: 37.7922, longitude: -122....
;(function () { 'use strict'; angular.module('angularGAPI') .factory('User', ['GAPI', userFact]); function userFact(GAPI) { var User = new GAPI('plus', 'v1', {}); User.getUserInfo = function(params) { return User.get('people', 'me', undefined, params); }; return User; } })();
import { GET_POSTS, GET_POST, GET_POST_SLUG, GET_TAGS, GET_TAG, GET_TAG_SLUG, GET_USERS, GET_USER, GET_USER_SLUG, RESET, } from './action-types'; const initialData = { data: null, error: null, loading: false, meta: null }; const initialState = { posts: initialData, post: initialData, tags: i...
// COPYRIGHT © 2017 Esri // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // This material is licensed for use under the Esri Master License // Agreement (MLA), and is bound by the terms of that agreement. // You may redistribute...
/** * Created by gbaldeck on 4/17/2017. */ var prototype = Object.create(HTMLElement.prototype) console.log("prototype: ", prototype)
var fs = require('fs'), path = require('path'), cleanCSS = require('clean-css'), rjs = require('requirejs'); module.exports = function(grunt) { // **css* task works pretty much the same as grunt's min task. The task // target is the destination, data is an array of glob patterns. These // files are con...
// Place all the behaviors and hooks related to the matching controller here. // All this logic will automatically be available in application.js. /* fix vertical when not overflow call fullscreenFix() if .fullscreen content changes */ function fullscreenFix(){ var h = $('body').height(); // set .fullscreen he...
// PYRAMID // Constants const path = require("path"); const DATA_ROOT = path.join(__dirname, "..", "data"); module.exports = { DEBUG: false, FILE_ENCODING: "utf8", PROJECT_ROOT: path.join(__dirname, ".."), DATA_ROOT, LOG_ROOT: path.join(__dirname, "..", "public", "data", "logs"), DB_FILENAME: path.join(DATA_...
document.addEventListener('DOMContentLoaded', function() { photoKeys = Object.keys(TRAVEL_PHOTOS); function injectRandomPhotos() { figures = document.getElementsByClassName('figure-placeholder'); [].forEach.call(figures, function(fig) { var randomPhotoKey = photoKeys[Math.floor(Math.random() * photoK...
/** * @author Richard Davey <[email protected]> * @copyright 2014 Photon Storm Ltd. * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} */ /** * The Input Handler is bound to a specific Sprite and is responsible for managing all Input events on that Sprite. * @...
var WorldClocks = {}; (function(w) { function empty() {}; function msg(key, args) { if (typeof(chrome) != "undefined" && typeof(chrome.i18n) != "undefined") { return chrome.i18n.getMessage(key, args); } return key; } function setPref(key, value) { try { ...
Cypress.Commands.add('fetchQuery', (query, variables) => { cy.request({ url: '/graphql', method: 'POST', body: JSON.stringify({ query, variables }), headers: { 'Content-Type': 'application/json' } }); });
// This is the wrapper for custom tests, called upon web components ready state function runCustomTests() { // Place any setup steps like variable declaration and initialization here // This is the placeholder suite to place custom tests in // Use testCase(options) for a more convenient setup of the test cases ...
import React from 'react'; class MyPropertiesExample extends React.Component { render() { return ( <div> <h1>Properties</h1> My favourite dish is {this.props.dish}. </div> ); } } MyPropertiesExample.defaultProps = { dish: 'shrimp with pasta' }; MyPropertiesExample.propTypes ...
export App from './App' export Home from './Home' export List from './List' export Login from './Login' export Chats from './Chats'
//Form JS File function frmHome_stopWatch_onClick_seq0() { alert("You clicked on stop watch"); }; function frmHome_button214149106640_onClick_seq0(eventobject) { var a = frmHome.stopWatch.stopWatch(); alert(a); }; function frmHome_button214149106641_onClick_seq0(eventobject) { frmHome.stopWatch.startW...
// Generated by CoffeeScript 1.4.0 /* 2D Vector */ var Vector; Vector = (function() { /* Adds two vectors and returns the product. */ Vector.add = function(v1, v2) { return new Vector(v1.x + v2.x, v1.y + v2.y); }; /* Subtracts v2 from v1 and returns the product. */ Vector.sub = function(v1, v2) ...
'use strict'; const Utils = require('./utils'); const _ = require('lodash'); const DataTypes = require('./data-types'); const SQLiteQueryInterface = require('./dialects/sqlite/query-interface'); const MSSSQLQueryInterface = require('./dialects/mssql/query-interface'); const MySQLQueryInterface = require('./dialects/my...
'use strict' const t = require('tcomb') const fetch = require('node-fetch') const { requestProperties, validateResponse, parseJSON } = require('../utils') const PATH = '/designs' module.exports = function getDesign(id) { t.String(id) return new Promise((resolve, reject) => { const { href, headers } = reques...
'use strict'; const appErrorsFactory = require('../../app-errors/app-errors-factory'); /** * */ function setup(req, res, next) { if (!req.currentUser) { next(appErrorsFactory.createAppError({ statusCode: 401 })); } else { next(); } } module.exports = setup;
/*global $, google, InfoBox */ var simulation_manager = (function(){ google.maps.visualRefresh = true; var ua_is_mobile = navigator.userAgent.indexOf('iPhone') !== -1 || navigator.userAgent.indexOf('Android') !== -1; var config = (function(){ var params = {}; return { ...
version https://git-lfs.github.com/spec/v1 oid sha256:2c648d581addc08fbd0fe28ad0d26ba08942ebfe6be59756e11ff9abcd9d3bbd size 23184
describe('minTime', function() { beforeEach(function() { affix('#cal'); }); var numToStringConverter = function(timeIn, mins) { var time = (timeIn % 12) || 12; var amPm = 'am'; if ((timeIn % 24) > 11) { amPm = 'pm'; } return time + (mins != null ? ':' + mins : '') + amPm; }; describe('when using ...
'use strict'; /* * Regex */ var regex = { facebookPattern: /(?:https?:\/\/)?(?:[\w\-]+\.)?facebook\.com\/(?:(?:\w)*#!\/)?(?:pages\/)?(?:[\w\-]*\/)*([\w\-\.]*)/, // jshint ignore:line facebookPluginPattern: /.*%2F(\w+?)&/ }; module.exports = { /** * Returns the page id for a given URL * e.g. : https:/...
"use strict"; exports.hmrReducer = function (appReducer) { return function (state, _a) { var type = _a.type, payload = _a.payload; switch (type) { case 'HMR_SET_STATE': return payload; default: return appReducer(state, { type: type, payload: payload }); } }; }; //# sourceMappingURL=hmr-reduc...
var url = require('url'); var semver = require('semver'); var nijs = require('nijs'); var inherit = require('nijs/lib/ast/util/inherit.js').inherit; var base64js = require('base64-js'); /** * Creates a new source instance. This function should never be used directly, * instead use: Source.constructSource to construc...
import React, { PropTypes } from 'react'; import EventImage from '../components/EventImage'; const Event = ({ eventUrl, images, ingress, startDate, title }) => ( <div> <div className="col-sm-8 col-md-4"> <div className="hero-title"> <a href={eventUrl}> <p>{ title }</p> </a> ...
'use strict'; function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else {...
/** * Definition for a binary tree node. * function TreeNode(val) { * this.val = val; * this.left = this.right = null; * } */ /** * @param {TreeNode} t * @return {string} */ const tree2str = (t) => { let ret = ''; if (t) { ret += t.val; if (t.left || t.right) { ret +...
export const IIcon = { name: 'i-icon', }; export default IIcon;
import Objects from './' import Character from './Character' import Actions from '../actions' import Attacks from '../actions/Attacks' import Dash from '../actions/Dash' const addMoveAnimations = function () { Object.keys(this.directions).map( (direction) => this.atlasAnimations.add({ action: Actions.move,...
var passport = require('passport'); var Auth0Strategy = require('passport-auth0'); var credentials = require('../config/credentials.js'); var strategy = new Auth0Strategy({ domain: credentials.domain, clientID: credentials.clientID, clientSecret: credentials.clientSecret, callbackURL: '/ca...
module.exports = require('../crud/list')({ view: 'users/manage', model: require('../../models/user'), sort: { name: 1 } });
var goods = [ { GoodId: 1, Name: '玫瑰', Price: 100, Total: 100, SellCount: 0 }, { GoodId: 2, Name: '康乃馨', Price: 200, Total: 50, SellCount: 0 }, { GoodId: 3, Name: '满天星', Price: 100, Total: 50, SellCount: 0 }, { GoodId: 4, Name: '百合', Price: 500, Total: 200, SellCount: 0 } ]; function randomGood() { ...
module.exports = NotImplementedError => { const throwNotImplemented = function () { throw new NotImplementedError() }; /** * Controller control interface * * @interface * @memberof module:client.synth */ var Controller = throwNotImplemented; /** * Asks the co...
import Ember from 'ember'; import { stack } from 'd3-shape'; import addOptionsToStack from '../utils/add-options-to-stack'; export function d3Stack( [ data, args ], hash={}) { return addOptionsToStack(stack(data, args), hash); } export default Ember.Helper.helper(d3Stack);
var PROPS = injectProps; var hookOnReload = injectOnReload; const io = require('socket.io-client'); const socket = io(`http://127.0.0.1:${PROPS.port}`); const { id: ext_id } = chrome.runtime; const onReload = (query = {}, cb) => { query = Object.assign({ url: [`chrome-extension://${ext_id}/*`] }, quer...
define(['views/Index','views/Cart','views/CategoryEdit','views/Categories','views/Product','views/Products','views/ProductEdit','views/ProductDetail','views/admin/Index','models/Product','models/Category','models/CartCollection','models/ProductCollection','models/CategoryCollection'], function(IndexView,CartView,Catego...
import authorAPI from '../api/mock/mockAuthorAPI'; import * as types from './actionTypes'; import { beginAjaxCall } from './ajaxStatusActions'; const loadAuthorSuccess = (courses) => { return {type : types.LOAD_AUTHOR_SUCCESS, courses }; }; const loadAuthors = () => { return (dispatch) => { dispatch(beginAjax...
function extensibleObject() { let obj = { extend: function(template){ for(let parentProp of Object.keys(template)){ if(typeof(template[parentProp]) == 'function'){ Object.getPrototypeOf(obj)[parentProp] = template[parentProp]; } else { ...
'use strict'; const migrate = require('../scripts/migrate-sql'); exports.up = db => migrate.migrate(db, '20180515155000-app-features.sql');
const path = require('path'); const CopyWebpackPlugin = require('copy-webpack-plugin'); const resolve = (dir) => { return path.join(__dirname, '..', dir) }; const isProduction = process.env.NODE_ENV === 'production'; const config = { output: { path: path.join(__dirname, '..', 'dist', 'assets'), filename:...
var expect = require("chai").expect; var MoodleExporter = require('../../MoodleExporter'); var xml2js = require('xml2js'); describe('MoodleExporter', function () { var validSeed = 'abcd1234'; var validQD = { "version": "0.1", "questions": [{ "question": "mc-change-of-base", ...
import { expect } from 'chai'; import Urlsparser from '../src/app.js'; describe('wrong', () => { it('...', () => { const caps = () => {new Urlsparser('...')}; expect(caps).to.throw(); }); it('+++abs+', () => { const caps = () => {new Urlsparser('+++abs+')}; expect(caps).to.throw(); }); it(...
import chai from 'chai'; import chaiAsPromised from 'chai-as-promised'; import sinon from 'sinon'; import sinonChai from 'sinon-chai'; import {BasePaginator, errors} from './base-paginator'; import PaginatorError from '../paginator-error'; import * as queryHandler from '../helpers/query-handler-stub'; import * as requ...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56zM12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.4...
var keypress = require("keypress"); // var Spark = require("spark-io"); var Spark = require("../"); var five = require("johnny-five"); var Sumobot = require("sumobot")(five); keypress(process.stdin); var board = new five.Board({ io: new Spark({ token: process.env.SPARK_TOKEN, deviceId: process.env.SPARK_DEV...
require([ 'app/LoginRegisterCloudRequestPane', 'dojo/dom-construct', 'dojo/query' ], function( WidgetUnderTest, domConstruct, query ) { describe('app/LoginRegisterCloudRequestPane', function() { var widget; var destroy = function(widget) { widget.destroyRecurs...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var makeCommandAbsolute = exports.makeCommandAbsolute = function makeCommandAbsolute(p, c) { switch (c.c) { case 'm': return { c: 'M', x: p.x + c.dx, y: p.y + c.dy }; case 'z': return { c: 'Z' }...
"use strict" /** * `format` constructor. * * @api public */ const checkStatusCode = require('./helpers'); module.exports = { create : (statusCode, error, message, data) => { if(!statusCode) throw new Error('Status code is required') if( isNaN( Number( statusCode))) throw new Error('Status code not a num...
'use strict'; var request = require('supertest'), chai = require('chai'), expect = chai.expect, routeValidator = require('../lib/index'), validator = require('validator'), express = require('express'), bodyParser = require('body-parser'), async = require('async'); describe('INTEGRATION ind...
'use strict'; var async = require('async'); var _ = require('lodash'); var yamlReader = require('./yaml-reader/yaml-reader'); var fliprValidation = require('flipr-validation'); module.exports = validateConfig; function validateConfig(options, cb) { var validateOptions = { rules: options.rules, }; async.aut...
const { Device, UdpServer } = require('tplink-smarthome-simulator'); function startSimulator() { const port = null; const emeter = { realtime: { current: 1.1256, voltage: 122.049119, power: 3.14, total: 51.493, }, }; const devices = []; devices.push( new Device({ po...
function foo() { var x = 2; var xxx = 1; if (xxx) { console.log(xxx + x); } }
const Room = ({routeParams}) => <h1>{routeParams.name} Room</h1> module.exports = Room
'use strict'; var storageKey = 'VN_TRANSLATE'; // ReSharper disable once InconsistentNaming function Translate($translate, $translatePartialLoader, storage, options, disableTranslations) { this.$translate = $translate; this.$translatePartialLoader = $translatePartialLoader; this.storage = storage; this.disableTra...
import Database from "almaden"; import Collection from "../../lib/collection.js"; import Model from "../../../"; import {ModelQuery} from "../../lib/modelFinder.js"; import {User} from "../testClasses.js"; import databaseConfig from "../databaseConfig.json"; let userFixtures = require("../fixtures/users.json"); desc...
this.recline = this.recline || {}; this.recline.Backend = this.recline.Backend || {}; this.recline.Backend.Memory = this.recline.Backend.Memory || {}; (function(my, recline) { "use strict"; my.__type__ = 'memory'; // private data - use either jQuery or Underscore Deferred depending on what is available var De...
var fs = require('fs'); /*var mulu = fs.readFileSync('./mulu.html','utf8'); var sutra = mulu.replace(/<sutra>/g,'#<sutra>').split(/#/); var vol = function(sutra){ for (var i in sutra){ var vol = sutra[i].match(/<vol>(.+)<\/vol>/); var sutraid = sutra[i].match(/<sutraid n="(.+)"\/>/); if (vol == null || sutraid ...
/* * grunt-simple-templates * https://github.com/jclem/grunt-simple-templates * * Copyright (c) 2013 Jonathan Clem * Licensed under the MIT license. */ 'use strict'; module.exports = function(grunt) { // Project configuration. grunt.initConfig({ jshint: { all: [ 'Gruntfile.js', 't...
import { setData } from '@progress/kendo-angular-intl'; setData({ name: "fr-SN", likelySubtags: { fr: "fr-Latn-FR" }, identity: { language: "fr", territory: "SN" }, territory: "SN", calendar: { patterns: { d: "dd/MM/y", D: "EEEE d MMMM ...
require('./navbar-list'); class ScrollSpy { /** * @param {NavBarList} navBarList * @param {number} offset */ constructor (navBarList, offset) { this.navBarList = navBarList; this.offset = offset; } scrollEventListener () { let activeLinkTarget = null; let...
var d = require('../dtrace-provider'); var dtp = d.createDTraceProvider('test'); dtp.addProbe('probe1', 'int', 'int'); dtp.addProbe('probe2', 'int', 'int'); dtp.enable(); var dtp2 = d.createDTraceProvider('test'); dtp2.addProbe('probe3', 'int', 'int'); dtp2.addProbe('probe1', 'int', 'int'); dtp2.enable(); ...
'use strict'; // Given a bound list and the time steps, // return the LB and UB at each timestep. // List is in format of {LB:lb,UB:ub} var months = ['JAN','FEB','MAR','APR','MAY','JUN','JUL','AUG','SEP','OCT','NOV','DEC']; function getMonth(dateString) { var m = parseInt(dateString.split('-')[1])-1; return month...
/** * */ define(['jquery', 'dropzone', 'pica', 'bootstrap'], function($, dropzone, pica, bootstrap) { 'use strict'; var Dropzone = window.Dropzone; Dropzone.autoDiscover = false; function dataURItoBlob(dataURI) { // convert base64/URLEncoded data component to raw binary data held in a strin...
/* global sinon */ import React, { Component } from 'react'; import TestUtils from 'react-dom/test-utils'; import { expect } from 'chai'; import NotificationSystem from 'NotificationSystem'; import { positions, levels } from 'constants'; import merge from 'object-assign'; const defaultNotification = { title: 'This ...
const AssignmentExpression = require('./AssignmentExpression'); const Class = require('./Class'); const DecoratorDescriptor = require('./DecoratorDescriptor'); const ExpressionStatement = require('./ExpressionStatement'); const Function = require('./Function'); const Identifier = require('./Identifier'); const MemberEx...
export const APP_LAYOUT_INIT = 'APP_LAYOUT_INIT'; export const APP_LAYOUT_CHANGE = 'APP_LAYOUT_CHANGE';