code
stringlengths
2
1.05M
var path = require('path'); var expect = require('expect.js'); var _s = require('underscore.string'); var bowerJson = require('../lib/json'); var request = require('request'); describe('.find', function () { it('should find the bower.json file', function (done) { bowerJson.find(__dirname + '/pkg-bower-json...
(function () { 'use strict'; angular.module('app', [ 'app.core', 'app.widgets', 'app.layout', 'app.products', 'app.product', 'app.search-by-purpose', 'app.about' ]); })();
define("bui-calendar/1.1.1/index-debug", ["bui-common/1.1.0/common-debug","jquery","bui-picker/1.1.2/index-debug","bui-overlay/1.1.0/index-debug","bui-list/1.1.1/index-debug","bui-data/1.1.0/index-debug","bui-toolbar/1.1.0/index-debug"], function(require, exports, module){ /** * @fileOverview 日历命名空间入口 * @ignore */ ...
import React, { Component } from 'react' import { List } from 'stardust' export default class ListOrderedExample extends Component { render() { return ( <List className='ordered'> <List.Item description='Apples'> <List> <List.Item description='Fuji' /> <List.Item d...
var mongoose = require('mongoose'); var Schema = mongoose.Schema; mongoose.Promise = require('bluebird'); var freqValidator = require('./freqValidator'); //request var requestSchema = new Schema({ _id : {type: mongoose.Schema.ObjectId}, freq : { type: String, validate : { validator : freqValidator ...
const TBL_USERS = "" + "CREATE TABLE IF NOT EXISTS `users` (" + "`id` INT NOT NULL AUTO_INCREMENT," + "`name` VARCHAR(20) NOT NULL," + "`password` VARCHAR(64) NOT NULL," + "`global_rank` INT NOT NULL," + "`email` VARCHAR(255) NOT NULL," + "`profile` TEXT CHARACTER SET...
export { from } from 'rxjs'; //# sourceMappingURL=from.js.map
import React from 'react'; import Label from 'ps-react/Label'; /** Optional label */ export default function ExampleOptional() { return <Label htmlFor="test" label="test" /> }
// jshint ignore: start largeModule('Deserialize'); function testWithTarget (name, testFunc) { test(name, function () { testFunc(false); }); test(name + ' with target', function () { testFunc(true); }); } test('basic deserialize test', function () { deepEqual(Fire.deserialize({}),...
// ========================================================================== // Project: Ember Runtime // Copyright: ©2006-2011 Strobe Inc. and contributors. // ©2008-2011 Apple Inc. All rights reserved. // License: Licensed under MIT license (see license.js) // ==========================================...
var Nomis = function () { var levelsRunning = false; var story = document.getElementById('storyText'); var g = new ga(640, 480, function(){ // this is the setup function g.state = startGame; }, ['assets/spritemap.png']); //195 x 195, 91 x 98, 41 x 49, 45 x 49 // Start Game Stat...
'use strict'; var Attrs = require('./attrs'); /** * Initialize a new `Mixin` with `name` and `block`. * * @param {String} name * @param {String} args * @param {Block} block * @api public */ var Mixin = module.exports = function Mixin(name, args, block, call) { Attrs.call(this); this.name = name; t...
import React, { Component } from 'react' import PropTypes from 'prop-types' import {connect} from 'react-redux' import Stepper from 'components/Simulation/Stepper' import ConsoleDisplay from 'components/Simulation/ConsoleDisplay' import JobRunControls from 'components/Simulation/JobRunControls' import {SuccessButton, ...
//>>built define({CarouselPrevious:"\u05d4\u05e7\u05d5\u05d3\u05dd",CarouselNext:"\u05d4\u05d1\u05d0",PageIndicatorLabel:"\u05d3\u05e3 $0 \u05de\u05ea\u05d5\u05da $1"});
angular.module("gulp-ng-config", []) .constant("one", {"two":"three"}) .constant("four", {"five":"six"});
/* jshint indent: 2 */ module.exports = function(sequelize, DataTypes) { return sequelize.define('Message', { name: { type: DataTypes.STRING, allowNull: true, }, body: { type: DataTypes.STRING, allowNull: true, } }, { freeze...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon")); var _jsxRuntime = require("react/jsx-runtime")...
// Underscore.js // (c) 2009 Jeremy Ashkenas, DocumentCloud Inc. // Underscore is freely distributable under the terms of the MIT license. // Portions of Underscore are inspired by or borrowed from Prototype.js, // Oliver Steele's Functional, and John Resig's Micro-Templating. // For all details and documentation: // h...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon")); var _jsxRuntime = require("react/jsx-runtime")...
'use strict' // We'll learn about require later in the course const ask = require('../lib/ask.js') let count = 0 let answer = '' while (answer !== 'Brian') { answer = ask('Guess my name? ') count = count + 1 } console.log('You got it in ' + count + ' tries!')
/* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns * Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md */ const Backbone = require("backbone") const _ = require("underscore") const sinon = require("sinon") const rewire = require(...
import chai, { expect } from 'chai' import chaiChange from 'chai-change' import DoublyLinkedList from '../src/doubly_linked_list' chai.use(chaiChange) let dll describe('DoublyLinkedList()', () => { beforeEach(function(){ dll = new DoublyLinkedList() }) it('exists', function () { expect(DoublyLinkedLi...
import PropTypes from "prop-types"; import gql from "graphql-tag"; import { GraphQL } from "../../data/graphql"; import Split, { Left, Right } from "../../components/@primitives/layout/split"; import ResetPassword from "./reset-password"; const Template = props => { const photo = "https://s3.amazonaws.com/ns.asset...
// Copyright (c) 2006-2009 by Martin Stubenschrott <stubenschrott@vimperator.org> // Copyright (c) 2008-2009 by Kris Maglione <maglione.k at Gmail> // // This work is licensed for reuse under an MIT license. Details are // given in the License.txt file included with this file. /** @scope modules */ /** * Creates a ...
var i, j, k, IsNetscape=false, IsNetscape4=false, X0, Y0=18, StartTime, EndTime; var MaxColor=10, Near=20, a=20, dx=6, dy=7; var mousex,mousey,key,key2,sel,emptyflds,level=1; R= new Array(8,11,13,16,22); LastColor=new Array(91); we0 = new Array(3); for (i=0; i<3; i++) { we0[i] = new Array(3); } for (i=0; i<3; i++...
/*! jQuery UI - v1.9.2 - 2015-02-01 * http://jqueryui.com * Copyright 2015 jQuery Foundation and other contributors; Licensed MIT */ jQuery(function(e){e.datepicker.regional.lt={closeText:"Uždaryti",prevText:"&#x3C;Atgal",nextText:"Pirmyn&#x3E;",currentText:"Šiandien",monthNames:["Sausis","Vasaris","Kovas","Balandis",...
'use strict' var Seneca = require('../..') var start = Date.now() Seneca({tag:'launch', legacy:false}) .use('./foo-plugin.js') .add('a:1', function (msg, reply) { reply({x: 1}) }) .ready(function () { console.log('start time: ' + (Date.now() - start)) }) .act('a:1', Seneca.util.print) .act('b:2...
if(schema.EQUIVALENCE) { /*~ -- EQUIVALENTS METADATA ----------------------------------------------------------------------------------------------- -- -- Sets up a table containing the list of available equivalents. Since at least one equivalent -- must be available the table is set up with a default equivalent w...
"use strict"; var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; var error_1 = require('../error'); var InvalidSt...
(function($) { var cultures = $.cultures, en = cultures.en, standard = en.calendars.standard, culture = cultures["sk-SK"] = $.extend(true, {}, en, { name: "sk-SK", englishName: "Slovak (Slovakia)", nativeName: "slovenčina (Slovenská republika)", language: "sk"...
/*global JCSDL, Math, FileReader, ZeroClipboard*/ JCSDL.Loader.addComponent(function($, undefined) { "use strict"; /* define some static private vars */ var /** @type {Object} A map of keys used for better readability. */ KEYS = { BACKSPACE : 8, TAB : 9, DELETE : 46, ...
'use strict'; const assert = require('./../../assert'); const common = require('./../../common'); let battle; describe('Disguise', function () { afterEach(() => battle.destroy()); it('should block damage from one move', function () { battle = common.gen(7).createBattle(); battle.setPlayer('p1', {team: [{speci...
import { graphql } from 'react-apollo' import React from 'react' import LoginWithFacebook from '../components/auth/LoginWithFacebook' import LinkWithFacebook from '../components/auth/LinkWithFacebook' import UnlinkFromFacebook from '../components/auth/UnlinkFromFacebook' import SignUp from '../components/auth/SignUp' i...
const apiKey = process.env.WEATHER_API_KEY; console.log('apikey',apiKey) const requestProxy = require('request-promise'); //when it's done: //save the weather data on req.weather module.exports = function weatherApi(req, res, next) { requestProxy(`http://api.wunderground.com/api/${apiKey}/conditions/q/${req.body.zi...
"use strict"; import _ from 'lodash'; import { Router } from 'express'; import model from './../model'; import post from './post'; import put from './put'; import del from './delete'; import { get, getAll } from './get'; const getRouter = (_conn, url, params, enableOdataSyntax) => { let options = params.options || ...
const gulp = require('gulp'); const config = require('./config'); const mocha = require('gulp-mocha'); const execa = require('execa'); gulp.task('mocha', () => { return gulp.src(config.tests, { read: false }) .pipe(mocha({ reporter: 'list', timeout: 2000, require: ['should'] })); }); gulp....
'use strict'; /* Controllers */ // signin controllers angular.module("pu.task.controllers") .controller('ChangeApplyController',function ($scope, $rootScope, $state,$stateParams, toaster, $uibModal,TaskService,SysDictService,modal) { $scope.initChangeApply = function(){ $scope.doInitApplyReadOn...
class Test { #f(x) { return typeof x === 'string' ? parseInt(x) : x.toString(); } }
require('bee-clipboard/build/Clipboard.css'); module.exports = require('bee-clipboard');
(function(Validation, $, undefined) { $(function() { Validation.setup(); }); Validation.setAdaptor = function(adaptorName) { _selectedAdaptor = adaptorName; }; /** * Returns a namespace for the given adaptor * If the namespace doens't exist it gets created. * @param ...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M5 11h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1H5c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1zm0 7h3c.55 0 1-.45 1-1v-4c0-.55-.45-1-1-1H5c-.55 0-1 .45-1 1v4c...
/* Establish Collections ***********************/ Meteor.mrc = new Meteor.Collection("mrc"); Meteor.rooms = new Meteor.Collection("rooms"); Meteor.messages = new Meteor.Collection("messages"); /* Allow & Deny Permissions **************************/ // Submit new message Meteor.messages.allow({ insert: function ...
(function(){ $(document).ready(function() { $('#loginUsername').focus(); }); }());
(function() { 'use strict'; angular .module('app.waitList') .directive('gzPartyTable', gzPartyTable); function gzPartyTable() { return { templateUrl: 'app/waitList/directives/partyTable.html', restrict: 'E', controller: PartyTableController, controllerAs: 'vm', bindToCo...
/* ============================================================ * bootstrap-button.js v2.0.3 * http://twitter.github.com/bootstrap/javascript.html#buttons * ============================================================ * Copyright 2012 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "Li...
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Copyright (c) 2021 ChakraCore Project Contributors. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full lice...
import React, { Component } from 'react' import { Link } from 'react-router-dom' import { Formik } from 'formik'; import Yup from 'yup'; import Firebase from 'firebase' import ReactMixin from 'react-mixin' import ReactFireMixin from 'reactfire' import termsOfUseDoc from '../assets/ParticipationAgreement.pdf' import cod...
/** * This file was generated by a tool. Modifying it will produce unexpected behavior. */ var key = '_IusqdbcSoVYQiit3+QRSxw'; var allStrings = (typeof DEPRECATED_UNIT_TEST === 'undefined' || DEPRECATED_UNIT_TEST) ? require("../../resx-strings/en-us.json") : require("resx-strings"); var strings = allStrings[...
Ext.define('Ext.app.Application', {});
(function () { "use strict"; var cfg = require('../config.js'); var redis = require("redis"); var redclient = redis.createClient(); var usd_trade_key = cfg.usd_trade_key; var usd_involved_trade_key = cfg.usd_involved_trade_key; var usd_index_history_key = cfg.usd_index_history_key; var usd_index_current_key = c...
#!/usr/bin/env node 'use strict'; var meow = require('meow'); var deliver = require('./'); var cli = meow([ 'Usage', ' $ deliver [input]', '', 'Options', ' --foo Lorem ipsum. [Default: false]', '', 'Examples', ' $ deliver', ' unicorns & rainbows', ' $ deliver ponies', ' ponies & rainbows' ]); consol...
'use strict'; const nock = require('nock'); const chai = require('chai'); const dirtyChai = require('dirty-chai'); const expect = chai.expect; chai.use(dirtyChai); let n26; const data = require('../fixtures/data'); beforeEach(done => { require('../fixtures/auth')((err, m) => { n26 = m; done(); }); }); ...
var searchData= [ ['_5ftolower',['_tolower',['../compMsgHttp_8c.html#a0cc9c268eae8abd0b06c0b61289e1afb',1,'compMsgHttp.c']]], ['_5ftoupper',['_toupper',['../compMsgHttp_8c.html#afa070573f4d550bcebf64eff571370f3',1,'compMsgHttp.c']]] ];
import { @Inject } from '@jymfony/decorators'; const ControllerTrait = Jymfony.Bundle.FrameworkBundle.Controller.ControllerTrait; const ServiceNotFoundException = Jymfony.Component.DependencyInjection.Exception.ServiceNotFoundException; const ContainerInterface = Jymfony.Component.DependencyInjection.ContainerInterfac...
define(['modules/default/defaultview', 'src/util/util', 'lib/loadingplot/libs/jquery.mousewheel.min', 'lib/loadingplot/svg', 'lib/loadingplot/point', , 'lib/loadingplot/springs'], function(Default, Util) { Util.loadCss('lib/loadingplot/svg.css'); function view() {}; view.prototype = $.extend(true, {}, Default, { ...
var SearchResultView = Backbone.View.extend({ template: JST["templates/search_result"], className: "search_result", events: { "click #twitter-button" : "twitterButton" }, render: function(){ this.$el.html(this.template(this.model.attributes)); }, // twitterButton: function(event){ // event...
import {GraphQLString as TString} from "graphql" import TAuthAccessToken from "graphql/type/auth/TAuthAccessToken" import refresh from "graphql/resolve/mutation/auth/refreshAccessToken" const resolve = { type: TAuthAccessToken, required: true, handler: refresh } const refreshToken = [TString, true] const arg...
'use strict'; Admin.components.shop.discounts.index.ui.container = { controller: function() { return new Admin.components.shop.discounts.index.controller({ init: true }); }, view: function(ctrl) { return m('section#shop-orders-index', [ m.component(Admin.components.shared.header.ui.contai...
var GSVPANO = GSVPANO || {}; GSVPANO.MotionBlurEffect = function (parameters) { 'use strict'; var _parameters = parameters || {}, _speed, _gl, _shaderPath, _glResources = { vs: null, fs: null, p: { id: null, at...
define(['./_baseIsNative', './_isMaskable'], function(baseIsNative, isMaskable) { /** Error message constants. */ var CORE_ERROR_TEXT = 'Unsupported core-js use. Try https://github.com/es-shims.'; /** * Checks if `value` is a pristine native function. * * **Note:** This method can't reliably detect nat...
var Utils; (function (Utils) { var Bools = (function () { function Bools() { } Bools.GetBool = function (val, defaultVal) { if (val === null || typeof (val) === 'undefined') { return defaultVal; } return val; }; return Bools...
import { TAPi18n } from 'meteor/rocketchat:tap-i18n'; import _ from 'underscore'; import toastr from 'toastr'; import { escapeHTML } from '@rocket.chat/string-helpers'; export const handleError = function(error, useToastr = true) { if (error.xhr) { error = error.xhr.responseJSON || {}; } if (_.isObject(error.det...
'use strict' const FactoryInterface = require('../factory-interface') const Role = require('../cluster/role') const Metrics = require('./metrics') const DisabledMetrics = require('./disabled-metrics') const StatsD = require('node-statsd') class MetricsFactory extends FactoryInterface { static create (logger, option...
// api/policies/hasSprintAccess.js /** * Policy to check if user has access to specified sprint or not. Actual check is * done by one of following internal AuthService methods; * * - hasProjectAccess * - hasSprintAccess * * Note that this policy relies one of following parameters are: * * - id * - sprint...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z" /><path fill="none" d="M0 0h24v24H0z" /></React.Fragment> , 'SignalWifi0Ba...
global.Promise = require('bluebird') Promise.config({ warnings: { wForgottenReturn: false // This disables a warning from async/await } }) const __DEVELOPMENT__ = process.env.NODE_ENV !== 'production' const APP_DESC = require('./package.json').description import 'babel-polyfill' import walk from 'walk' import ...
jest.mock(`fs`) jest.mock(`gatsby-cli/lib/reporter`, () => { return { panic: jest.fn(), } }) const reporter = require(`gatsby-cli/lib/reporter`) const resolveModuleExports = require(`../resolve-module-exports`) let resolver describe(`Resolve module exports`, () => { const MOCK_FILE_INFO = { "/bad/file":...
QUnit.module( "support", { teardown: moduleTeardown } ); function getComputedSupport( support ) { var prop, result = {}; for ( prop in support ) { if ( typeof support[ prop ] === "function" ) { result[ prop ] = support[ prop ](); } else { result[ prop ] = support[ prop ]; } } return result; } var ...
'use strict'; module.exports = 42;
export const HOME = '/';
var mongoose = require('mongoose'); var schema = module.exports = new mongoose.Schema({ id: Number, lat: Number, lng: Number, category: String, unique_users: Number, total_checkins: Number, place_name: String }); schema.pre('save', function(next) { next(); }); if (!schema.options.toJSON) schema.optio...
/* eslint-disable promise/always-return */ const {join} = require('path'); const helpers = require('yeoman-test'); const { file, noFile, fileContent, noFileContent } = require('yeoman-assert'); const DEFAULT_HTTP_PORT = 8111; const DEFAULT_HTTPS_PORT = 8443; const DEFAULT_WS_PORT = 13337; const ...
/* Copyright (c) 2010, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.com/yui/license.html version: 2.8.2r1 */ /** * * @module progressbar * @requires yahoo, dom, event, element * @optional animation * @title ProgressBar Widget */ (function () { var Dom = YAHOO.util...
module.exports={A:{A:{"2":"K C G E B A WB"},B:{"2":"D u Y I M H"},C:{"1":"0 1 2 3 5 6 7 l m n o p q r s t y v g","2":"UB z F J K C G E B A D u Y I M H N O P Q R S T U V W X w Z a b c d e f L h i j k SB RB"},D:{"1":"0 1 2 3 5 6 7 m n o p q r s t y v g GB BB DB VB EB","2":"F J K C G E B A D u Y I M H N O P Q R S T U V W ...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M4 11h5V5H4v6zm0 7h5v-6H4v6zm6 0h5v-6h-5v6zm6 0h5v-6h-5v6zm-6-7h5V5h-5v6zm6-6v6h5V5h-5z" /></g></React.Fragment> , 'ViewModuleSharp');
'use strict'; module.exports = { plugins: ['eslint-plugin-hapi'], env: { node: true, es6: true }, rules: { 'camelcase': 'off', 'consistent-return': 'off', 'vars-on-top': 'off', 'new-cap': 'off', 'no-console': 'off', 'no-constant-condition': 'error', 'no-empty': 'off', 'no...
import React, { Component } from 'react' import { connect } from 'react-redux' import { withRouter } from 'react-router-dom' import { Row, Col, FormGroup, ControlLabel, ButtonGroup, FormControl, Button, Checkbox } from 'react-bootstrap' import axios from 'axios' import PaymentModal from 'APP/src/components/utilitie...
'use strict' /* eslint-disable node/no-deprecated-api */ const url = require('url') const path = require('path') const debug = require('../debug').authentication const OidcManager = require('@solid/oidc-auth-manager') /** * Returns an instance of the OIDC Authentication Manager, initialized from * argv / config.js...
declare module "lru-cache" { declare type LRUCache<K, V> = { set: (key: K, value: V, maxAge?: number) => void, get: (key: K) => V, peek: (key: K) => V, del: (key: K) => void, reset: () => void, has: (key: K) => boolean, prune: () => void // TODO add the rest of the things documented at...
export {default as timeInterval} from "./src/interval"; import millisecond from "./src/millisecond"; import second from "./src/second"; import minute from "./src/minute"; import hour from "./src/hour"; import day from "./src/day"; import {default as week, sunday, monday, tuesday, wednesday, thursday, friday, saturday}...
"use strict"; function __export(m) { for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; } var accordion_1 = require('./components/accordion'); var alert_1 = require('./components/alert'); var buttons_1 = require('./components/buttons'); var carousel_1 = require('./components/carousel'); var collaps...
var path = require('path') , fs = require('fs') , globalIntercept = require('./intercept') , mixin = require('./mixin') , matchBody = require('./match_body') , assert = require('assert') , url = require('url'); var noop = function() {}; function is...
var searchData= [ ['is_5fempty',['is_empty',['../classhash__table.html#a3a81ed200333cf7fd4745ed6f0195fd3',1,'hash_table::is_empty()'],['../classmap.html#ade9b2f628442a7060eb338d547a4bda5',1,'map::is_empty()'],['../classnode.html#a76557d16ab200a15bde4005ab4824f8b',1,'node::is_empty()']]], ['is_5fleaf',['is_leaf',['....
x = 10; x + y; // --- // Assignment to global variable x (1:0) // Access to global variable x. (3:0) // Access to global variable y. (3:4)
var glob = require('glob'); var fsExtra = require('fs-extra'); var esprima = require('esprima'); function run(cb) { glob('**/*.js', { cwd: __dirname + '/../src/' }, function (err, files) { files.forEach(function (filePath) { var code = parse(fsExtra.readFileSync( ...
/** * Izenda query service which provides toolbar specific queries * this is singleton */ angular .module('izendaQuery') .factory('$izendaDashboardToolbarQuery', [ '$izendaRsQuery', '$izendaLocale', function ($izendaRsQuery, $izendaLocale) { 'use strict'; function loadDashboar...
const tap = require('tap'); const path = require('path'); const appPath = path.resolve(__dirname, './extract-samples'); const appBuildPath = path.join(appPath, 'build'); const MendelV2 = require('../packages/mendel-pipeline'); const rimraf = require('rimraf'); process.env.MENDELRC = '.extract.mendelrc'; tap.test('Bu...
import * as d3 from 'd3'; const SHAPES = { ...Object.keys(d3).reduce((acc, key) => { if (key.match(/symbol[A-Z]/)) { return { ...acc, [key.toLowerCase().replace('symbol', '')]: d3[key] }; } return acc; }, {}), line: { draw(context, size) { const width = Math.sqrt(size); const he...
import Controller from '@ember/controller'; import {inject as service} from '@ember/service'; /* eslint-disable ghost/ember/alias-model-in-controller */ export default Controller.extend({ ui: service() });
// Copyright & License details are available under JXCORE_LICENSE file var fs = require('fs'); var path = require('path'); var jxtools = require('jxtools'); var fname = 'io.jxcore.node.jx'; var dname = 'io.jxcore.node'; var common = require('../common.js'); var config = require('./config.js'); var localFile = path.jo...
function getSegments(params) { let x1 = params[0], y1 = params[1]; let x2 = params[2], y2 = params[3]; let x3 = params[4], y3 = params[5]; let getDistance = (x1, y1, x2, y2) => Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)); let firstDistance = getDistance(x1, y1, x2, y2); let second...
(function () { document.getElementById('SearchInput').addEventListener('keyup', function () { var menus = document.querySelectorAll('.sidebar li'); var searches = this.value.toLowerCase().split(' '); for (var i = 0; i < menus.length; i++) { var isMatch = true; var ...
'use strict'; var exec = require('child_process').exec, gutil = require('gulp-util'); module.exports = function (path, options, cb) { if(!cb && typeof options === 'function') { cb = options; options = {}; } if(!cb || typeof cb !== 'function') cb = function() {}; if(!options) opti...
(function() { var noop; noop = function() {}; console.log('Hello World'); }).call(this);
import blacklist from 'blacklist'; import FieldControl from './FieldControl'; import Item from './Item'; import ItemInner from './ItemInner'; import React from 'react/addons'; import Tappable from 'react-tappable'; // Many input types DO NOT support setSelectionRange. // Email will show an error on most desktop browse...
/** * Handles Esc key events. * @param {function} func - The function to execute on esc */ function onEsc(func) { window.addEventListener('keyup', function (event) { // 'key' is the standard but has not been implemented in Gecko // yet, see https://bugzilla.mozilla.org/show_bug.cgi?id=680830 ...
/** * EasyUI for jQuery 1.5.3 * * Copyright (c) 2009-2017 www.jeasyui.com. All rights reserved. * * Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php * To use it on other terms please contact us: info@jeasyui.com * */ (function($){ function _1(_2){ var _3=$.data(_2,"comb...
define("rebound-htmlbars/hooks/subexpr", ["exports"], function (exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = subexpr; function subexpr(env, scope, helperName, params, hash) { var helper = this.lookupHelper(helperName, env); if (helper...
import _ from "lodash"; import chalk from "chalk"; import { builder as publishOptions } from "./PublishCommand"; import Command from "../Command"; import output from "../utils/output"; import UpdatedPackagesCollector from "../UpdatedPackagesCollector"; const updatedOptions = _.assign( {}, publishOptions, { ...
// TypeIt by Alex MacArthur - https://typeitjs.com const defaults = [null, null, {}]; var guaranteeThreeKeys = (q) => { return q.map((queueItem) => { return defaults.map((defaultValue, index) => { if (queueItem[index]) return queueItem[index]; return defaultValue; }); }); }; var merge = ...