code
stringlengths
2
1.05M
'use strict'; var gulp = require('gulp'); var excludeGitignore = require('gulp-exclude-gitignore'); var mocha = require('gulp-mocha'); var jshint = require('gulp-jshint'); var jscs = require('gulp-jscs'); var istanbul = require('gulp-istanbul'); var nsp = require('gulp-nsp'); var plumber = require('gulp-plumber'); var ...
search_result['4251']=["topic_0000000000000A21.html","InvoicePerson.CompanyName Property",""];
import constants from '../constants'; import ordersDotCom from '../businessLogic'; import ActionsBase from './ActionsBase'; class InventoryItemActions extends ActionsBase { service() { return ordersDotCom.services.inventoryItemService; } getByIdAction(data) { return { type: constants.actions.GET_INVENTORY...
import React,{Component} from 'react'; import DatePicker from 'react-datepicker'; import {Panel,Button} from 'react-bootstrap'; import {hashHistory,Link} from 'react-router'; import {connect} from 'react-redux'; import {dispatch} from 'redux'; import { actionInsertRuleData, actionUpdateRuleData } from '../../action...
{ s([ { id: "a", parentId: "a" } ]); }
import {AmbientLight as AmbientLightNative} from 'three'; import {Component} from '../../core/Component'; import {LightComponent} from '../../core/LightComponent'; @LightComponent class AmbientLight extends Component { constructor(params = {}) { super(params, AmbientLight.defaults, AmbientLight.instructions); ...
/** * Created by Sergej on 18.01.2017. */ var KVReflectingBlock = Class.extend(function(){ var $this = this; var width = 1; this.cells = []; this.allowedCells = null; this.constructor = function(cell, allowedCells){ this.cells = [[cell]]; if (allowedCells) this.allowedCells = all...
const YtVideo = require('./../models/video.model'); // Route Handlers const routeHandlers = { addVideo: (videoData) => { const video = new YtVideo(videoData); return video.save(); }, findAllVideos: () => { return YtVideo.find({}); }, deleteVideo: (data) => { return Y...
/** * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'uploadwidget', 'it', { abort: 'Caricamento interrotto dall\'utente.', doneOne: 'Il file è stato caricato correttamente.', ...
'use strict'; module.exports = { extends: 'recommended', ignore: ['addon/templates/components/cow-say'] };
(function() { 'use strict'; var mongolog = require('mongolog'); module.exports = function(options) { return function*(next) { var res = this.response, req = { url : this.request.url, connection : { ...
import Ember from 'ember'; export default Ember.Mixin.create({ init() { this._super(...arguments); if (this.hasAction(this.get('parent'), 'register_child')) { this.get('parent.register_child')(this); } }, didInsertElement() { this._super(...arguments); this.execute('show'); }, onH...
var rawdata=[ {"name":"提拉","attr":"火","type":"龍","count":"001","star":"★2","maxexp":"505","style":"新手龍","cost":"2","Mlv":"5","sell":"70","feed":"100","hp":"52","atk":"57","rec":"8","score":"19.27","mp":"144","matk":"71","mrec":"13","msc":"32.93","hpgw":"平均","atkgw":"平均","recgw":"平均","exptype":"150萬"}, {"name":"提拉恩","at...
var express = require('express'); var router = express.Router(); router.get('/:topping/:qty', function (req, res) { var obj = req.params; //obj.title = 'Pizza Shop'; //use instead app.locals.title in app.js; creates a global variable res.render('templates/pizza', obj); //object that represents your route params ...
(function() { 'use strict'; angular.module('gantt.tree').controller('GanttTreeController', ['$scope', '$filter', 'GanttHierarchy', function($scope, $filter, Hierarchy) { $scope.rootRows = []; $scope.getHeader = function() { return $scope.pluginScope.header; }; var h...
import React from "react"; import { mount } from "enzyme"; import { Dialog } from "../index"; import { Button } from "../../Button/index"; import renderer from "react-test-renderer"; function handleToggle() { console.log("Inside handleToggle"); } function handleOk() { console("-.-"); } // function handleCancel()...
/* garden of earthly delays * * original gen~ patch by Gregory Taylor * https://cycling74.com/2011/11/07/gen-tutorial-1-the-garden-of-earthly-delays/ * * adapted to genish.js by thecharlie 5/2/2016, modified 5/28/2020 * after executing code, use GUI (will appear top right) to control feedback network */ // pas...
const data = Symbol("data"); export default class { constructor(iterable) { this[data] = []; if (iterable) { for (const item of iterable) { this.push(item); } } } push(item) { this[data].push(item); return this; } pop()...
// Show page with message that login link was sent. 'use strict'; module.exports = function (N, apiPath) { N.validate(apiPath, { $query: { type: 'object', properties: { wrongpass: { const: '' } }, required: false, additionalProperties: false } }); // Kick logged-...
#pragma strict function OnMouseDown() { ReadPlayerName(); } function ReadPlayerName() { var keyboard : iPhoneKeyboard; keyboard = iPhoneKeyboard.Open(PlayerData.nickname); if (keyboard != null) { while (keyboard.done == false) { yield WaitForEndOfFrame(); } PlayerData.nickname = keyboa...
if (!Function.prototype.bind) { Function.prototype.bind = function (oThis) { if (typeof this !== "function") { // closest thing possible to the ECMAScript 5 internal IsCallable function throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable"); } var aArgs = ...
/** * Node.js API Starter Kit (https://reactstarter.com/nodejs) * * Copyright © 2016-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ /* @flow */ import DataLoader from 'dataloader'; ...
/* global ol */ ol.control.Sidebar = function (settings) { var defaults = { element: null, position: 'left' }, i, child; this._options = Object.assign({}, defaults, settings); ol.control.Control.call(this, { element: document.getElementById(this._options.element), tar...
import { kea } from 'kea' export default kea({ path: () => ['scenes', 'header', 'index'], actions: () => ({ openLocation: (location) => ({ location }) }) })
import Ember from 'ember'; import { module, test } from 'qunit'; import startApp from '../../tests/helpers/start-app'; module('Acceptance | input', { beforeEach: function() { this.application = startApp(); }, afterEach: function() { Ember.run(this.application, 'destroy'); } }); test('show edit button...
var passport = require('passport') , User = require('../routes/authentication.js'); module.exports = { register: function(req, res, next) { try { User.validate(req.body); } catch(err) { return res.send(400, err.message); } ...
"use strict"; function simpleObjectFactory() { return { }; } function checkFreeIndicesArray(pool, expectedValues) { for (var index = 0; index < pool.freeIndicesArray.length; index++) { expect(pool.freeIndicesArray[index]).toEqual(expectedValues[index]); } } describe("Memory pool constructor ...
import * as d3 from 'd3'; import './styles.scss'; export default function linearProgress(elem, props={}) { elem = d3.select(elem) .attr('class', 'linear-progress-chart'); const svg = elem.append('svg') .attr('width', '100%') .attr('height', '100%'); const progressContainer = svg.append('rect') ...
const mongoose = require("mongoose"); mongoose.Promise = require("bluebird"); function connectToMongo(databaseName) { mongoose.connect(`mongodb://localhost:27017/${databaseName}`, { keepAlive: true, reconnectTries: Number.MAX_VALUE, useMongoClient: true, }); console.log("Connected to db!"); } functi...
const mongoose = require('mongoose'); const passportLocalMongoose = require('passport-local-mongoose'); var UserSchema = new mongoose.Schema({ username: String, password: String }); UserSchema.plugin(passportLocalMongoose); module.exports = mongoose.model('users', UserSchema);
'use strict'; angular.module('core').controller('OauthController', ['$scope', '$stateParams', '$http', '$location', function($scope, $stateParams, $http, $location ) { // Oauth controller logic // ... console.log('stateparams',$stateParams); console.log('hhtp',$http); console.log('location',$location); ...
/* * This file is generated and updated by Sencha Cmd. You can edit this file as * needed for your application, but these edits will have to be merged by * Sencha Cmd when upgrading. */ Ext.application({ name: 'M5', extend: 'M5.Application', requires: [ 'M5.view.main.Main' ], // The n...
nod = (function(){ var nod = {version: "0.1"};
import { isNone } from '@ember/utils'; import { SimplePredicate } from 'ember-flexberry-data/query/predicate'; import ListFormRoute from 'ember-flexberry/routes/list-form'; export default ListFormRoute.extend({ /** Query simple predicate. @property modelProjection @type SimplePredicate @default und...
import { GraphQLSchema, GraphQLObjectType, GraphQLString, GraphQLList, } from 'graphql'; import {authors, books} from './db'; import authorType from './authorType'; import {bookType, bookInputType} from './bookType'; const rootFields = { authors: { type: new GraphQLList(authorType), resolve: _ => { ...
/** * DataBinder <https://github.com/ken107/databind-js> * Copyright 2015, Hai Phan <hai.phan@gmail.com> * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ (function() { var prefix = "{{"; var suffix = "}}"; var regex = [ new R...
var View = require('./view'); var template = require('./templates/circ'); var GFList = require('../models/genomic_featureList'); var PC = require('./parcoords_view'); module.exports = View.extend({ template:template, initialize : function(options) { _.extend(this, options); _.bindAll(this,'afterRender...
module.exports = ['$http', '$scope', function($http, $scope) { $scope.username = ''; $scope.password = ''; }];
import npmCheck from 'npm-check'; import { test } from './main'; jest.mock('npm-check'); describe('main', () => { const mockState = { get: () => { return [ { installed: '4.6.7', latest: '4.7.0', mismatch: false, moduleName: 'lodash', unused: false }, { installed: '2.0.0...
var mongoose = require('mongoose'); var Schema = mongoose.Schema; var eventSchema = new Schema({ eventDate: Date, eventDescription: String, eventAlert: Boolean, roomName: String, houseName: String, }); module.exports = mongoose.model('Event', eventSchema);
/*! npm.im/iphone-inline-video 2.0.2 */ 'use strict'; var intervalometer = require('intervalometer'); function preventEvent(element, eventName, toggleProperty, preventWithProperty) { function handler(e) { if (Boolean(element[toggleProperty]) === Boolean(preventWithProperty)) { e.stopImmediatePropagation(); /...
(function () { 'use strict'; angular .module('app') .factory('SearchService', SearchService); SearchService.$inject = ['$http', '$q', '$timeout', 'CacheFactory', 'ENUM', '$rootScope']; function SearchService($http, $q, $timeout, CacheFactory, ENUM, $rootScope) { var service = {}; ...
/* jshint esnext:true */ import {evaluate, negative, sign} from 'Functn'; import {toContentMathML, toLaTeX, toMathML, toString} from 'meta'; import {Complex} from 'Complex'; import {Functn} from 'Functn'; import {Integer} from 'Integer'; import {Matrix} from 'Matrix'; import {Rational} from 'Rational'; import {Vecto...
exports.compile = function(input) { var parts = input.split('.'); return { path: parts.slice(1), first: parts[0], target: parts[parts.length - 1] }; }; exports.state = function(config, state) { var path = config.path; var target = config.target; var val = state.get(config.first); return state...
/* global describe, before, after, it */ import chai from 'chai' import chaiAsPromised from 'chai-as-promised' chai.use(chaiAsPromised) import nlp from 'nlp_compromise' import nlpSyllables from '../lib/nlp-syllables-async' nlp.plugin(nlpSyllables) const expect = chai.expect describe('nlp', () => { after(() => nlp...
var fs = require('fs'); function Node(value) { this.value = value; this.children = {}; } function Trie() { this.root = new Node(); this.add = function (value) { // O(m) var node = this.root; for (var i in value) { if (!value[i] in node.children) { node.children[value[i]] = new Node();...
'use strict'; var stream = require('stream'); var path = require('path'); var fs = require('fs'); var gutil = require('gulp-util'); var wpBump = require('wp-bump'); function gulpWpBump(functionsPhp) { // Check to see there is a valid functions.php file try { var input = fs.statSync(functionsPhp); ...
var Project = React.createClass({displayName: "Project", render: function() { var data = this.props.data; return ( React.createElement("a", {href: data.href}, React.createElement("div", {className: "project"}, React.createElement("img", {src: data.src, alt: data.alt}), Rea...
$(function () { // Initialize form switches $('[data-provides="anomaly.field_type.boolean"]').each(function () { $(this).bootstrapSwitch(); }); });
var params_8h = [ [ "scale_parameters", "params_8h.html#ga527ef619cd8210b84d5d53be1e0e29b6", null ], [ "get_scaled_parameters", "params_8h.html#gac2f3ca440b7eaf4d999fb27da949fe72", null ], [ "get_scaled_pf_parameters", "params_8h.html#gab85f6b6da051f380371deb0d8921bdba", null ], [ "get_boltzmann_factors...
import chain from './chain/chain'; // include chain here to resolve af circular reference import ChainWrapper from './chain/wrapper'; import functions from './functions'; /** * Creates a chain object that wraps `subject`, enabling <i>implicit</i> chain sequences.<br/> * A function that returns `number`, `boolean` or...
// Overview of electron-dotnet.js: https://github.com/xamarin/WebSharp/tree/master/electron-dotnet var dotnet = require('electron-dotnet'); var createCounter = dotnet.func(function () {/* async (start) => { var k = (int)start; return (Func<object,Task<object>>)( async (i) => ...
'use strict'; SwaggerEditor.controller('MainCtrl', function MainCtrl($rootScope, $stateParams, $location, Editor, Storage, FileLoader, BackendHealthCheck, defaults, Analytics) { Analytics.initialize(); $rootScope.$on('$stateChangeStart', Editor.initializeEditor); BackendHealthCheck.startChecking(); $root...
var cluster = require('cluster'); var os = require('os'); function clustastic(main, options) { options = Object.assign({ logging: console.log, workers: os.cpus().length }, options); if (!Number.isInteger(options.workers) || options.workers < 0 || options.workers > os.cpus().length) { throw new Error('...
var HolaApps = angular.module('hola-apps', ['dotjem.routing', 'templates']);
angular.module('mamram'). directive('youtubePlayer', function() { return { restrict: 'E', replace: true, scope: { videoId: '=' }, controller: function($scope, $sce) { $scope.videoUrl = "http://www.youtube.com/embed/" + $scope.videoId; }, template: '<iframe...
var env = { ROOT: MONGO_TUTORIAL_ROOT }; load(env.ROOT + '/node_modules/underscore/underscore.js'); load(env.ROOT + '/node_modules/moment/moment.js'); load(env.ROOT + '/generator/utils.js');
var searchData= [ ['len',['len',['../classlua_1_1_valref.html#a453bcbd75c958d1a882b7818a6697129',1,'lua::Valref::len() const noexcept'],['../classlua_1_1_valref.html#aaa04d4199e20937ebff1a24c5d8c9526',1,'lua::Valref::len() const noexcept'],['../classlua_1_1_table.html#a453bcbd75c958d1a882b7818a6697129',1,'lua::Tabl...
/* Highstock JS v7.2.2 (2020-08-24) Indicator series type for Highstock (c) 2010-2019 Sebastian Bochan License: www.highcharts.com/license */ (function(b){"object"===typeof module&&module.exports?(b["default"]=b,module.exports=b):"function"===typeof define&&define.amd?define("highcharts/indicators/macd",["highch...
typeof window !== "undefined" && (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); else if(typeof exports === 'object') exports["Hls"] = f...
/* * Originally from https://github.com/briancavalier/aop-jsconf-2013 * * Note: * Tweaked for better usage, such as pass the arguments along with result to after advices and capture the result from * advices * */ var slice = Function.prototype.call.bind([].slice); // Very simple advice functions module.exports ...
/* Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'blockquote', 'ca', { toolbar: 'Bloc de cita' } );
/** * Streams yet unliked medias on Instagram from all followed profiles and optionally from profiles followed by those users */ dc.plugin("dc-instagram", {client_id: "CLIENT_ID", client_secret: "CLIENT_SECRET"}) .init() // the following command will act on every request .readData(dc.http.handleP...
import { createStore, combineReducers, compose, applyMiddleware } from 'redux' import { routerReducer } from 'react-router-redux' import ThunkMiddleware from 'redux-thunk' //引入请求 middleware 的工厂方法 import createFetchMiddleware from 'redux-composable-fetch' import rootReducer from './reducers' //创建一个请求middleware的示例 const ...
typeof window !== "undefined" && (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); else if(typeof exports === 'object') exports["Hls"] = f...
/*! * Author : Matteo Bruni - https://www.matteobruni.it * MIT license: https://opensource.org/licenses/MIT * Demo / Generator : https://particles.matteobruni.it/ * GitHub : https://www.github.com/matteobruni/tsparticles * How to use? : Check the GitHub README * v1.16.0-beta.6 */ (function(e, a) { for(var i in a...
/** * @license Highcharts JS v8.0.4 (2020-03-10) * * (c) 2009-2019 Torstein Honsi * * License: www.highcharts.com/license */ 'use strict'; (function (factory) { if (typeof module === 'object' && module.exports) { factory['default'] = factory; module.exports = factory; } else if (typeof def...
/** * @license Angular v12.0.5 * (c) 2010-2021 Google LLC. https://angular.io/ * License: MIT */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/compiler')) : typeof define === 'function' && define.amd...
/*! * global/window.js * https://github.com/RobinHerbots/Inputmask * Copyright (c) 2010 - 2018 Robin Herbots * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php) * Version: 4.0.0-beta.32 */ "function" == typeof define && define.amd ? define(function() { return window; }) : "object"...
/*! @name m3u8-parser @version 4.4.1 @license Apache-2.0 */ 'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var _inheritsLoose = _interopDefault(require('@babel/runtime/help...
/* Highstock JS v8.0.2 (2020-03-03) Indicator series type for Highstock (c) 2010-2019 Rafa Sebestjaski License: www.highcharts.com/license */ (function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/indicators/dema",["highch...
/** * Copyright (c) Tiny Technologies, Inc. All rights reserved. * Licensed under the LGPL or a commercial license. * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ * * Version: 5.7.0 (2021-02-10) */ (function () { 'use strict'; ...
/** * * Open Notifications * * @type appium * */ module.exports = function openNotifications() { /*! * make sure that callback contains chainit callback */ var callback = arguments[arguments.length - 1]; var requestOptions = { path: '/session/:sessionId/appium/device/open_notifica...
import jquery from 'jquery'; import util from '../utils/util'; import '../utils/storage'; export default { templates: { overlay: util.createElement( '<div class="metro-modal overlay-wrap"></div>' ), modalContent: util.createElement( '<div class="metro-modal modal-cont...
import Utils from '../../../utils/utils'; export default function (event) { const swiper = this; const data = swiper.touchEventsData; const { params, touches, rtlTranslate: rtl, $wrapperEl, slidesGrid, snapGrid, } = swiper; let e = event; if (e.originalEvent) e = e.originalEvent; if (data.allowTouch...
'use strict'; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _tape = require('tape'); var _tape2 = _interopRequireDefault(_tape); var _indexJs = require('../index.js'); var _indexJs2 = _interopRequireDefault(_indexJs); (0, _tape2['default'])('immutable', func...
var createCallsiteRecord = require('../../lib'); function addRecord (err, isCallsiteFrame, processFrameFn) { module.exports = createCallsiteRecord({ forError: err, isCallsiteFrame: isCallsiteFrame, processFrameFn: processFrameFn }); } function func1 () { throw ne...
Mart.Storefronts = new Mongo.Collection("MartStorefronts") Mart.Storefronts.attachSchema(new SimpleSchema({ name: { type: String, label: "Name", max: 50 }, description: { type: String, label: "Description", optional: true, max: 1000 }, isPublished: { type: Boolean, label: "...
import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon([/*#__PURE__*/_jsx("path", { d: "M7 13h10v-2c0-.88.39-1.67 1-2.22V6c0-.55-.45-1-1-1H7c-.55 0-1 .45-1 1v2.78c.61.55 1 1.34 1 2.22v2z", opacity: ".3" }, "0"), /*#__PURE__*/_jsx("path", { ...
/** * * SettingPage reducer */ import { fromJS } from 'immutable'; import { ON_CLICK_EDIT_FIELD, ON_CLICK_EDIT_LIST_ITEM, ON_CLICK_EDIT_RELATION, } from './constants'; const initialState = fromJS({ fieldToEdit: fromJS({}), listItemToEdit: fromJS({}), relationToEdit: fromJS({}), }); function settingPa...
'use strict'; require('../testHelpers'); const Promise = require('bluebird'); // Remove unhandled promise errors from bluebird Promise.onPossiblyUnhandledRejection(() => {}); const UserFixture = require('../fixtures/user'); let User; exports.lab = Lab.script(); const server = Server.server; describe('Authenticat...
module.exports = require("npm:inflight@1.0.4/inflight");
'use strict'; angular.module('pinboardApp') .controller('MainCtrl', function MainCtrl(NotificationFactory) { this.getNotifications = function() { NotificationFactory .getNotifications() .then(function() { this.notifications = Notifica...
'use strict'; describe('Service: Diagnosis', function () { // load the service's module beforeEach(module('petz.api')); // instantiate service var sut; beforeEach(inject(function (_Diagnosis_) { sut = _Diagnosis_; })); it('should do something', function () { expect(!!sut).toBe(true); }); })...
(function(){ angular.module('ui.grid').directive('uiGridColumnMenu', ['$log', '$timeout', '$window', '$document', '$injector', 'gridUtil', 'uiGridConstants', 'i18nService', function ($log, $timeout, $window, $document, $injector, gridUtil, uiGridConstants, i18nService) { var uiGridColumnMenu = { priority: 0, ...
var path = require("path"); var webpack = require('webpack'); var sourceDir = path.resolve(__dirname, '../../src'); module.exports = { devtool: '#inline-source-map', module: { preLoaders: [ { test: /\.js$/, loader: 'isparta', include: sourceDir, exclude: /node_modules/ ...
/** * /models/comment.js */ var mongoose = require('mongoose'); // email正则 var emailReg = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; /** * website验证器 * @param string url 需验证的url * @return boolean ...
module.exports = { '*.{md}': ['prettier --write', 'git add'], '*.{js,jsx,json}': ['yarn lint', 'prettier --write', 'git add'], '*.{js,jsx,ts,tsx}': ['jest --bail --findRelatedTests'], };
!function (e) { if ("object" == typeof exports && "undefined" != typeof module)module.exports = e(); else if ("function" == typeof define && define.amd)define([], e); else { var n; n = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self :...
/*Generated By KISSY Module Compiler*/ config({ 'xtemplate/nodejs': {requires: ['xtemplate']} });
/** * @author qiao / https://github.com/qiao * @author mrdoob / http://mrdoob.com * @author alteredq / http://alteredqualia.com/ * @author WestLangley / http://github.com/WestLangley * @author erich666 / http://erichaines.com */ // This set of controls performs orbiting, dollying (zooming), and panning. // Unlik...
'use strict'; /** * Module dependencies */ var decouple = require('decouple'); var Emitter = require('emitter'); /** * Privates */ var scrollTimeout; var scrolling = false; var doc = window.document; var html = doc.documentElement; var msPointerSupported = window.navigator.msPointerEnabled; var touch = { 'start...
var webpack = require("../../../../"); module.exports = { plugins: [new webpack.AutomaticPrefetchPlugin()] };
/** * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'widget', 'eo', { 'move': 'klaki kaj treni por movi' } );
import React, { Component } from 'react'; export class History extends Component { constructor(props) { super(props); } render() { return ( <div className="relative flex flex-column-reverse overflow-container flex-auto" style={{ height: "calc(100% - 1rem)", resize: "none" }}> ...
'use strict'; var React = require('react'); var SvgIcon = require('../../svg-icon'); var ImageFilterBAndW = React.createClass({ displayName: 'ImageFilterBAndW', render: function render() { return React.createElement( SvgIcon, this.props, React.createElement('path', { d: 'M19 3H5c-1.1 0-2 .9...
/* * grunt-init * https://gruntjs.com/ * * Copyright (c) 2012 "Cowboy" Ben Alman, contributors * Licensed under the MIT license. */ 'use strict'; // Basic template description. exports.description = 'Create a basic Gruntfile.'; // Template-specific notes to be displayed before question prompts. exports.notes =...
var ExtractTextPlugin = require('extract-text-webpack-plugin') exports.cssLoaders = function (options) { options = options || {} // generate loader string to be used with extract text plugin function generateLoaders (loaders) { var sourceLoader = loaders.map(function (loader) { var extraParamChar ...
/** * export img type. */ global.EXPORT_IMG_TYPE = METHOD(function(m) { 'use strict'; var // loaded img types loadedImgTypes = {}, // loading callback map loadingCallbackMap = {}; return { run : function(img, callback) { //REQUIRED: img //REQUIRED: callback var // uri uri = img.getSrc(), ...
#!/usr/bin/env node var clc = require('cli-color'); var app = require('../index.js'); /** * Get input file argument */ var fileName = process.argv[2]; /** * Run the simulation */ app.runSimulation(fileName, function(err, robot) { // If error, let the user know if (err) { console.log(clc.white.bgRed('ERROR...