code
stringlengths
2
1.05M
'use strict'; module.exports.install = function(admin){ admin.menu.addBefore('account', { id:'users', name:'User Management', icon:'fa fa-users', href:'#/users', allowRoles:['admin'] }); // admin angular module dependencies admin.module...
/* * GET users listing. */ exports.index = function(req, res){ res.render('user/index', { title: '/ My Apps'}); };
(function (angular) { "use strict"; angular.module("mfl.reports.controllers", [ "mfl.reports.controllers.base", "mfl.reports.controllers.facilities", "mfl.reports.controllers.facility_reporting", "mfl.reports.controllers.chu_reporting", "mfl.reports.updowngrades.controll...
git://github.com/viljamis/ResponsiveSlides.js.git
/** * Imports */ import test from 'tape' import PixelGradient from '.' /** * <Pixel Gradient/> tests */ test('<PixelGradient/> should work', t => { })
var WorkerInstance = require("../lib/workers/WorkerInstance.js").WorkerInstance, EventEmitter = require("events").EventEmitter; exports.WorkerPrototypeTests = { setUp: function(done) { done(); }, "Worker has a EventEmitter in prototype chain": function(test) { test.expect(1); var worker = new W...
/* * bootstrap-table - v1.11.1 - 2017-08-03 * https://github.com/wenzhixin/bootstrap-table * Copyright (c) 2017 zhixin wen * Licensed MIT License */ !function(a){"use strict";a.fn.bootstrapTable.locales["th-TH"]={formatLoadingMessage:function(){return"กำลังโหลดข้อมูล, กรุณารอสักครู่..."},formatRecordsPerPage:function(a...
(function() { var slice = [].slice, extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return chil...
var util = require( 'util' ); var url = require( 'url' ); var browser = require('../airplay').createBrowser(); var media = { url : 'http://commondatastorage.googleapis.com/gtv-videos-bucket/big_buck_bunny_1080p.mp4', file: '/Users/carlos/Desktop/a.mp4', subtitles: [{ language: 'en-US', url...
import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon( /*#__PURE__*/_jsx("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12zm8 8c-1....
/** C의 문장을 분석합니다. */ function initProgramCompilerStatement(compiler, CompilerException) { var _Statement = {}; /** 문장을 정의합니다. */ function StatementInfo(stmt) { this.statement = stmt; } StatementInfo.prototype.toString = function() { return Handy.format('%s', this.statement); }; /** 수식문을 정...
"use strict"; var jsx = require('jsx-runtime'); var hasOwn = Object.prototype.hasOwnProperty; var emptyTags = require('empty-tags').reduce(function(map, tag) { map[tag] = true; return map; }, Object.create(null)); var SVG_NS = 'http://www.w3.org/2000/svg'; var HTML_NS = 'http://www.w3.org/1999/xhtml'; var rende...
(function(){ 'use strict'; /** * @ngdoc directive * @name mdtCell * @restrict E * @requires mdtTable * @requires mdtRow * * @description * Representing a cell which should be placed inside `mdt-row` element directive. * * @param {boolean=} htmlContent if set to...
var util = require("util"); var request = require("request"); var BaseTrigger = require("./baseTrigger.js").BaseTrigger; var TinyCache = require( "tinycache" ); var cache1 = new TinyCache(); var cache2 = new TinyCache(); /* Trigger that automatically looks up users on reddit when they join. options: cacheJoinedTime - I...
import {} from 'moogose';
/** * api 接口请求 */ C.api = function(url,get,post,callback,errorback){ //gost_loading.show(); if(post!=null){ var geturl = ''; for(var p in get){ geturl += p+'='+get[p]+'&'; } url += '?' + geturl.substring(0,geturl.length-1);//去掉末尾的 & 字符 C.ajax.post(url,post,f...
'use strict'; /* eslint-disable global-require */ require('../bin/pixi'); describe('PIXI', function () { it('should exist as a global object', function () { expect(PIXI).to.be.an('object'); }); require('./core'); require('./interaction'); });
'use babel'; import CallStackEntry from './call-stack-entry'; import {DELIMITER, ASSIGN_SYMBOL} from '../messaging/message-utils'; export default function callStackFromString(string) { const callStack = []; if (string) { const splitted = string.split(DELIMITER); for (const elem of splitted) ...
var gulp = require('gulp'), jshintStylish = require('jshint-stylish'), gutil = require('gulp-util'),// Currently unused, but gulp strongly suggested I install... jshint = require('gulp-jshint'), jsHintOptions = { "trailing": true, "nonbsp": true, "noarg": true, "latedef": true, "sub": true, "smarttabs"...
'use strict'; import Model from './lib/Model'; export default Model;
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //------------------------------------------------------...
const { Container, Help, commands } = require('../../index.js'); const Commit = require('./commit'); const Fetch = require('./fetch'); const Pull = require('./pull'); const Remote = require('./remote'); const Submodule = require('./submodule'); class Git extends Container {} Git.define({ title: 'git'...
/** * @license * Video.js 5.19.2 <http://videojs.com/> * Copyright Brightcove, Inc. <https://www.brightcove.com/> * Available under Apache License Version 2.0 * <https://github.com/videojs/video.js/blob/master/LICENSE> * * Includes vtt.js <https://github.com/mozilla/vtt.js> * Available under Apache License Vers...
'use strict' var test = require('tape') var util = require('util') var redeyed = require('..') function inspect(obj) { return util.inspect(obj, false, 5, true) } test('adding custom asserts ... ', function(t) { t.constructor.prototype.assertSurrounds = function(code, opts, expected) { var result = redeyed(co...
var assert = require("assert"); var Lib = require("./../ramda"); describe("contains", function() { var contains = Lib.contains; it("returns true if an element is in a list", function() { assert.equal(contains(7, [1,2,3,9,8,7,100,200,300]), true); }); it("returns false if an element is not in ...
var browserSync = require('browser-sync'), changed = require('gulp-changed'), config = {}, gulp = require('gulp'); config.server = require('./../../config/server'); config.path = require('./../../config/path'); gulp.task('pages', function () { var result = gulp.src(config.path.views.src) .pipe...
/** * node-compress-commons * * Copyright (c) 2014 Chris Talkington, contributors. * Licensed under the MIT license. * https://github.com/archiverjs/node-compress-commons/blob/master/LICENSE-MIT */ var Stream = require('stream').Stream; var PassThrough = require('readable-stream').PassThrough; var util = module....
$(document).ready(function() { jQuery(".lowvision").on("click", function(e){ $( '#lowvision-keyboard, .lv-help').toggle(); }); ////////// //https://jsfiddle.net/rickj33/3fby0nzr/ /// /// jQuery("#course-inputlv").on("keyup", function(theEvent){ //alert(theEvent.which); //var...
var get = Ember.get; var Person, array; var run = Ember.run; module("unit/record_array - DS.RecordArray", { setup: function() { array = [{ id: '1', name: "Scumbag Dale" }, { id: '2', name: "Scumbag Katz" }, { id: '3', name: "Scumbag Bryn" }]; Person = DS.Model.extend({ name: DS.attr('string') });...
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * @name: S12.11_A3_T2; * @section: 12.11; * @assertion: Syntax constructions of switch statement; * @description: Checking if execution of "switch {}" fails; * @negative;...
function BlockSet(blockType) { this.blocks = new Array(); this.blockType = blockType; this.currIndex = 0; this.useHotKeys = true; // HACK: get focus onto something on the page so we can use keyboard shortcuts var dummy = createElement("a"); insertBefore(dummy, document.body.firstChild); dummy.focus(); ...
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; import _extends from "@babel/runtime/helpers/esm/extends"; import * as React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import { unstable_composeClasses as composeClasses } from '@materia...
/* friendlyDateRanges.js tests */ var test = require('tape'), friendly = require('../friendlyDateRanges'); test('tests', function (t) { t.deepEqual(friendly(['2022-09-05', '2023-09-04']), ['September 5th, 2022','September 4th, 2023']); t.deepEqual(friendly(['2017-01-01', '2017-01-01']), ['January 1st, 2017'],...
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * @name: S11.12_A4_T2; * @section: 11.12; * @assertion: If ToBoolean(x) is true, return y; * @description: Type(y) and Type(z) are number primitives; */ //CHECK#1 if ((1 ?...
const webpack = require('webpack'); const loaders = require("./helpers/webpack.loaders.config"); const preloaders = require("./helpers/webpack.preloaders.config"); const HtmlWebpackPlugin = require('html-webpack-plugin'); const CopyWebpackPlugin = require('copy-webpack-plugin'); module.exports = { entry: ['./src...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.checkWineVersion = undefined; var _bluebirdLst; function _load_bluebirdLst() { return _bluebirdLst = require("bluebird-lst"); } /** @private */ let checkWineVersion = exports.checkWineVersion = (() => { var _ref2 = (0, ...
/* * Preloader state * =============== * * Takes care of loading the main game assets, including graphics and sound * effects, while displaying a busy splash screen. */ import assets from '../assets'; export default class Preloader extends Phaser.State { preload() { this.showSplashScreen(); this.load...
var deepEquals = require("assert").deepEqual, CSSwhat = require("../"); var tests = [ ["div", [ [ { type: 'tag', name: 'div' } ] ], "simple tag"], ["*", [ [ { type: 'universal' } ] ], "universal"], //traversal ["div div", [ [ { type: 'tag', name: 'div' }, { type: 'descendant' }, { type: 'tag', name:...
/*! DataTables Bootstrap 3 integration ©2011-2015 SpryMedia Ltd - datatables.net/license */ (function(c){"function"===typeof define&&define.amd?define(["jquery","datatables.net"],function(a){return c(a,window,document)}):"object"===typeof exports?module.exports=function(a,d){a||(a=window);if(!d||!d.fn.dataTable)d=re...
'use strict'; const app = require('APP') , debug = require('debug')(`${app.name}:oauth`) , {STRING, JSON} = require('sequelize'); module.exports = db => { const OAuth = db.define('oauths', { uid: STRING, provider: STRING, // OAuth v2 fields accessToken: STRING, refreshToken: STRING, ...
version https://git-lfs.github.com/spec/v1 oid sha256:0b9064d20bf15213644250009c06870ba3f05cf808535299aa3262698753a950 size 1301
'use strict'; const assert = require('./../../assert'); const common = require('./../../common'); let battle; describe('Grassy Terrain', function () { afterEach(function () { battle.destroy(); }); it('should change the current terrain to Grassy Terrain for five turns', function () { battle = common.createBat...
/* global console, LAMBDA */ (function() { "use strict"; var L = LAMBDA; var question = {}; var RP14part1 = { init: function() { var vs = "uvxyz"; var maxDepth = 6; var minDepth = 4; // David: all of these helper functions are duplicated in // RP14part2.js. Because.....
{ "AD" : "கிபி", "Africa/Abidjan_Z_abbreviated" : "ஐவரி கோஸ்ட் நேரம்", "Africa/Abidjan_Z_short" : "GMT", "Africa/Accra_Z_abbreviated" : "கானா நேரம்", "Africa/Accra_Z_short" : "GMT", "Africa/Addis_Ababa_Z_abbreviated" : "எதியோப்பியா நà...
'use strict'; angular.module('core').directive('featuredProjects', function () { return { restrict: 'EA', templateUrl: 'modules/core/client/directives/views/featured-projects.html', controller: function ($scope, $http) { (function getFeaturedProjs() { $http.get('/api/v1/featured', { cache:...
'use strict'; var createPluginError, failOnWarningReporter, failReporter, loadReporter, reporter, reporterStream, through2; through2 = require('through2'); createPluginError = require('./utils').createPluginError; reporterStream = function(reporterType) { return through2.obj(function(file, enc, cb) { var c, re...
// Copyright: 2015 AlignAlytics // License: "https://github.com/PMSI-AlignAlytics/dimple/blob/master/MIT-LICENSE.txt" // Source: /src/chart/methods/_handleTransition.js this._handleTransition = function (input, duration, chart, series) { var returnShape = null; ...
const path = require('path'); const ip = require('ip'); module.exports = app => { const exports = {}; exports.view = { cache: false }; exports.static = { maxAge: 0 // maxAge 缓存,默认 1 年 }; exports.development = { watchDirs: [], // 指定监视的目录(包括子目录),当目录下的文件变化的时候自动重载应用,路径从项目根目录开始写 ignoreDirs: ['...
describe('[github/milestone/factory]', function () { var $httpBackend, GithubMilestone, GithubIssue, json; beforeEach(module('ed.github')); beforeEach( inject ( function ( _$httpBackend_, _GithubMilestone_, _GithubIssue_ ) { $httpBackend = _$httpBackend_; GithubMilestone = _GithubMilestone_; GithubIssue =...
/* global React */ /* global ReactQuill */ 'use strict'; var Editor = React.createClass({ getInitialState: function() { return { theme: 'snow', enabled: true, readOnly: false, value: '<h1>It works!</h1>', events: [] }; }, formatRange: function(range) { return range ? [range.start, range.en...
import React from 'react' import Icon from 'react-icon-base' const FaMixcloud = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m28.8 23.5q0-1-0.6-1.8t-1.5-1.2q-0.1 0.8-0.4 1.6-0.1 0.4-0.5 0.6t-0.8 0.3q-0.2 0-0.4-0.1-0.5-0.1-0.8-0.6t-0.1-1.1q0.4-1.2 0.4-2.5 0-2.1-1-3.9t-2.9-2.9-4-1.1q-2.4 0-4...
module.exports = function() { return { files: [ "src/**/*.js", "spec/testUtil.js", { pattern: "spec/**/*.jsx", instrument: false, load: false, ignore: false } ], tests: ["spec/**/*.js", "!spec/tests.js", "!spec/testUtil.js"], env: { type:...
'use strict'; angular.module('scenarioEditor.manageView', ['ngRoute', 'scenarioServices']) .config(['$routeProvider', function ($routeProvider) { $routeProvider.when('/manageView', { templateUrl: '/scenario/manageView/', controller: 'manageCtrl' }); }]) .controller...
import classNames from 'classnames'; import keycode from 'keycode'; import React, { cloneElement } from 'react'; import ReactDOM from 'react-dom'; import all from 'react-prop-types/lib/all'; import warning from 'warning'; import { bsClass, bsStyles, getClassSet, prefix, splitBsProps } from './utils/bootstrapUtils'; ...
/** * fs.watch wrapper that among other things checks SHA1 * of the file to prevent multiple callback calls. * * Related: http://stackoverflow.com/q/12978924/1637178 * * Usage is the same as fs.watch * * var onFileChange = require("on-file-change"); * * // same as fs.watch * onFileChange("m...
// Backbone.BabySitter // ------------------- // v0.0.5 // // Copyright (c)2013 Derick Bailey, Muted Solutions, LLC. // Distributed under MIT license // // http://github.com/babysitterjs/backbone.babysitter // Backbone.ChildViewContainer // --------------------------- // // Provide a container to store, retrieve and /...
typeof console !== 'undefined' && console.log && console.log('unit-test.js loaded');
/// <reference path="../typings/index.d.ts" /> export * from './zone_utils'; export * from './mongo_cursor_observer'; export * from './mongo_cursor_differ'; export * from './meteor_reactive'; export * from './providers';
'use strict'; describe('Service: resEidolon', function () { // load the service's module beforeEach(module('tbsApp')); // instantiate service var resEidolon; beforeEach(inject(function (_resEidolon_) { resEidolon = _resEidolon_; })); it('should do something', function () { expect(!!resEidolon)...
import { messages, ruleName, } from ".." import rules from "../../../rules" import { testRule } from "../../../testUtils" const rule = rules[ruleName] testRule(rule, { ruleName, config: ["always"], accept: [ { code: "a {}", description: "first node ignored", }, { code: "@media { a {} }", ...
'use strict'; var convert = require('./convert'), func = convert('toArray', require('../toArray'), require('./_falseOptions')); func.placeholder = require('./placeholder'); module.exports = func; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2NsaWVudC9saWIv...
import React from "react" import classnames from "classnames" import { SHOW_ALL, SHOW_COMPLETED, SHOW_ACTIVE } from "../constants/TodoFilters" import { observer } from "mobx-react-lite" const FILTER_TITLES = { [SHOW_ALL]: "All", [SHOW_ACTIVE]: "Active", [SHOW_COMPLETED]: "Completed" } function Footer({ st...
var _recentDataOpts = { limit: 5, sort: { createTimeMillis: -1 } }; Template.dataHome.helpers({ recentDatasets: function () { return Collections.Datasets.find({}, _recentDataOpts); } }); Template.dataHome.events({ });
import { combineReducers } from 'redux'; import data from 'reducers/data'; import errors from 'reducers/errors'; import loading from 'reducers/loading'; jest.mock('redux'); jest.mock('reducers/data'); jest.mock('reducers/errors'); jest.mock('reducers/loading'); describe('reducer index', () => { it('combines all my...
Elm.Native.TestUtil = {}; Elm.Native.TestUtil.make = function (localRuntime) { localRuntime.Native = localRuntime.Native || {}; localRuntime.Native.TestUtil = localRuntime.Native.TestUtil || {}; if (!localRuntime.Native.TestUtil.values) { var Task = Elm.Native.Task.make(localRuntime); var S...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = memoize; var _identity = require('lodash/identity'); var _identity2 = _interopRequireDefault(_identity); var _slice = require('./internal/slice'); var _slice2 = _interopRequireDefault(_slice); var _se...
export const Server = { loadJSON: function(url, json_data, done=()=>{}, error=()=>{}) { let response = {}; switch(url) { case '/your/path/to/action': fetch('/your/path/to/data.json') .then(response => { return response.json(); }) .then(data => { ...
var assert = require('assert'); var Kareem = require('../'); /* Much like [hooks](https://npmjs.org/package/hooks), kareem lets you define * pre and post hooks: pre hooks are called before a given function executes. * Unlike hooks, kareem stores hooks and other internal state in a separate * object, rather th...
/** * 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. * * @generated SignedSource<<713bfba9717046b5de96c3132c59fb0c>> * @flow * @lightSyntaxTransform * @nogrep */ /* eslint-disable ...
import Ember from 'ember'; export default Ember.Component.extend({ session: Ember.inject.service('session'), actions: { invalidateSession: function() { this.get('session').invalidate(); } } });
var Entity = require('./entity'); var Globals = require('./globals'); /* Bullet entity. */ module.exports = function () { "use strict"; this.velocity = 0.0; this.damage = 1; this.till_death = Globals.BULLET_LIVE_TIME; this.type = Globals.BULLET_ENTITY; this.radius = Globals.BULLET_RADIUS; ...
/** * ClusterStatus module. * @module components/ClusterStatus */ import ClusterStatus from './cluster-status.component.jsx'; /** * The ClusterStatus component * @return {object} The ClusterStatus component. */ module.exports = ClusterStatus;
require('dotenv').config(); const path = require('path'); const cp = require('child_process'); const webpack = require('webpack'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const S3Plugin = require('webpack-s3-plugin'); const RollbarSourcemapPlugin = require('../../dist/RollbarSourceMapPlugin'); const...
/** * Copyright 2016 Facebook, Inc. * * You are hereby granted a non-exclusive, worldwide, royalty-free license to * use, copy, modify, and distribute this software in source code or binary * form for use in connection with the web services and APIs provided by * Facebook. * * As with any software that integrat...
/** * @license * Pixi.JS - v1.0.0 * Copyright (c) 2012, Mat Groves * http://goodboydigital.com/ * * Compiled: 2013-04-08 * * Pixi.JS is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license.php */ /** * @author Mat Groves http://matgroves.com/ @Doormat23 */ /** @module PIXI */ v...
webpackJsonp([8],{61:function(e,o,t){var n,s;t(62),n=t(63),s=t(64),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports.default),s&&(("function"==typeof e.exports?e.exports.options:e.exports).template=s)},62:function(e,o){},63:function(e,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.default={...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path fillOpacity=".3" d="M15.5 14.5c0-2.8 2.2-5 5-5 .36 0 .71.04 1.05.11L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7L12 21.5l3.5-4.36V14.5z"...
/* mustache.js — Logic-less templates in JavaScript See http://mustache.github.com/ for more info. */ var Mustache = function () { var _toString = Object.prototype.toString; Array.isArray = Array.isArray || function (obj) { return _toString.call(obj) == "[object Array]"; } var _trim = String.prototy...
/** * Copyright <%= year %> Telerik AD * * 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/LICENSE-2.0 * * Unless required by applicable law or agr...
var gulp = require('gulp'); var config = require('../config'); var gutil = require('gulp-util'); var jsdoc = require("gulp-jsdoc"); var plumber = require('gulp-plumber'); gulp.task('docs', function() { return gulp.src( config.js.src + '/**/*.js' ) .pipe( plumber() ) .pipe( jsdoc( config.docs ) ); });
/* */ var isObject = require('../lang/isObject'); function isStrictComparable(value) { return value === value && !isObject(value); } module.exports = isStrictComparable;
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M13 3H6v18h4v-6h3c3.31 0 6-2.69 6-6s-2.69-6-6-6zm.2 8H10V7h3.2c1.1 0 2 .9 2 2s-.9 2-2 2z" /> , 'LocalParkingTwoTone');
import React, {PropTypes} from 'react'; var {RouteHandler} = require('react-router'); var App = React.createClass({ propTypes: { flux: PropTypes.object.isRequired }, render() { return <RouteHandler flux={this.props.flux}/>; } }); module.exports = App;
/* Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'adv_link', 'he', { acccessKey: 'מקש גישה', advanced: 'אפשרויות מתקדמות', advisoryContentType: 'Content Type מוצע', advisoryTitle: 'כותרת מוצעת', ...
/*! * Bootstrap-select v1.13.12 (https://developer.snapappointments.com/bootstrap-select) * * Copyright 2012-2019 SnapAppointments, LLC * Licensed under MIT (https://github.com/snapappointments/bootstrap-select/blob/master/LICENSE) */ !function(e,t){void 0===e&&void 0!==window&&(e=window),"function"==typeo...
var lastTime = null; function updateAnimation() { // Your code here. } function frame(time) { if (lastTime !== null) { updateAnimation(Math.min(100, time - lastTime) / 1000); } lastTime = time; requestAnimationFrame(frame); } requestAnimationFrame(frame);
module.exports = function(grunt) { grunt.loadNpmTasks('grunt-sass'); grunt.loadNpmTasks('grunt-includes'); grunt.loadNpmTasks('grunt-contrib-clean'); grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.initConfig({ sass: { options: { sourceMap: true, outputStyle: 'compressed' }, portal: { f...
/* */ var $def = require("./$.def"), toIndex = require("./$").toIndex, fromCharCode = String.fromCharCode; $def($def.S, 'String', {fromCodePoint: function fromCodePoint(x) { var res = [], len = arguments.length, i = 0, code; while (len > i) { code = +arguments[i++]; ...
import React from 'react'; class ComponentName extends React.Component { render() { return <div data-qa="custom-attribute"> <h1>Hello world</h1> </div>; } } export default ComponentName;
// read dbus adress from window selection const x11 = require('x11'); const fs = require('fs'); const os = require('os'); function getDbusAddress(callback) { // read machine uuid fs.readFile('/var/lib/dbus/machine-id', 'ascii', function(err, uuid) { if (err) return callback(err); var hostname = os.hostnam...
describe('Hand of the King', function () { integration({ isMelee: true }, function () { describe('initiating additional power challenge', function () { beforeEach(function () { const deck = this.buildDeck('stark', [ 'A Noble Cause', 'Bastar...
/* MD5 Message-Digest Algorithm - JavaScript ' MODIFICATION HISTORY: ' 1.0 16-Feb-2001 - Phil Fresle (sales@frez.co.uk) - Initial Version (VB/ASP code) ' 1.0 21-Feb-2001 - Enrico Mosanghini (erik504@yahoo.com) - JavaScript porting */ function MD5(sMessage) { function RotateLeft(lValue, iShiftBits) { ret...
/** * Checkbox renderer * * @private * @renderer CheckboxRenderer * @param {Object} instance Handsontable instance * @param {Element} TD Table cell where to render * @param {Number} row * @param {Number} col * @param {String|Number} prop Row object property name * @param value Value to render (remember to esc...
/** * @license * Copyright 2014 David Wolverton * Available under MIT license <https://raw.githubusercontent.com/dwolverton/my/master/LICENSE.txt> */ define([ "dojo/store/Memory", "mytime/persistence/LocalStorage", "mytime/model/TimeEntry" ], function( Memory, LocalStorage, TimeEntry ) { ...
/** * @class Keyboard * @classdesc Mixin which manages the keydown handling for a component * * TODO: Document collective behavior. * TODO: Provide baseline behavior outside of a collective. */ export default (base) => class Keyboard extends base { // Default keydown handler. This will typically be handled by...
const amino = require('../main.js'); const gfx = new amino.AminoGfx(); gfx.start(function (err) { if (err) { console.log('Start failed: ' + err.message); return; } //size (100x100) this.w(100); this.h(100); //see opacity.js //root const root = this.createGroup(); ...
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import { Provider } from 'react-redux'; import store from './store' ReactDOM.render( <Provider store={store}> <App /> </Provider>, document.getElementById('root') );
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (global = global || self, factory(global.au = {})); }(this, function (exports) { 'use strict'; function AggregateError(mess...
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2019 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * The Matter Physics Drag Start Event. * * This event is dispatched by a Matter Physics World instance when a Pointer Constraint * star...
'use strict'; var Mongoose = require('mongoose'); /** * Each connection object represents a user connected through a unique socket. * Each connection object composed of {userId + socketId}. Both of them together are unique. * */ var RoomSchema = new Mongoose.Schema({ title: { type: String, required: true }, ...