code stringlengths 2 1.05M |
|---|
var marionette = require('backbone.marionette');
var TruckItemView = require('./TruckItemView');
module.exports = marionette.CollectionView.extend({
childView: TruckItemView
}); |
/* ************************************************************************
Copyright: 2013 Hericus Software, LLC
License: The MIT License (MIT)
Authors: Steven M. Cherry
************************************************************************ */
/**
* This mixin provides methods that allow manipulation of ed... |
/*
Copyright 2008-2009 University of Cambridge
Copyright 2008-2009 University of Toronto
Copyright 2010-2014 OCAD University
Copyright 2010 Lucendo Development Ltd.
Licensed under the Educational Community License (ECL), Version 2.0 or the New
BSD license. You may not use this file except in compliance with one these
... |
'use strict';
var configuration = require('../configuration');
var LoggerFactory = require('@arpinum/backend').LoggerFactory;
var factory = new LoggerFactory({level: configuration.logLevel});
module.exports = factory.create;
|
/**
* Forcify Example
* use with CommonJS
*
* If you want to run CommonJS in browser, you need build tool
* this example is built by webpack, you can use browserify as well.
*/
//Require Forcify
var Forcify = require('forcify')
/**
* Cache Element
*/
var element = document.getElementById('force... |
/**
* Created by yons on 11/18/15.
*/
var http = require('https');
var equal = require('assert').equal;
var Buffer =require('Buffer');
var xml2js = require('xml2js');
exports.httpsRequest = function(host,path, data, callback){
var req = http.request({
host: host,
port: 443,
path: path,
... |
'use strict';
/**
* Deals with the config file
*/
var dictmanager = require('dictmanager')
, path = require('path')
, fs = require('fs');
function Config () {}
Config.prototype.isValidLang = function(lang) {
/**
* @todo use the dictmanager for this.
*/
// for (var index in langMapping)
// if (ind... |
var Config = {
fbAppId: '1449890398617312', //main app
//fbAppId: '1464073817198970', // app test
urlWebSocket: 'wss://swind.vn:9300',
// urlWebSocket: 'ws://127.0.0.1:9300'
};
var ChatApp = angular.module('ChatApp', ['ionic'])
.config(function ($compileProvider){
// Needed for routing to work
$compileProvider.... |
#!/usr/bin/env node
// Command line client for execnode
// (c) 2011 Soeren Roerden
// execnode is freely distributable under the MIT license (license.txt)
var opts = require('opts');
var http = require('http');
var Client = require('execnode').Client;
var conf = require('../conf/clientconf');
var list;
var optio... |
import expect from 'expect.js';
import {
bdd,
scenarioManager,
esClient
} from '../../../support';
import PageObjects from '../../../support/page_objects';
bdd.describe('initial state', function () {
bdd.before(function () {
// delete .kibana index and then wait for Kibana to re-create it
return esC... |
'use strict';
msos.provide('ng.intl.en.vi');
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {
"DATETIME_FORMATS": {
"AMPMS": [
"AM",
"PM"
],
"DA... |
tools.chart = {
//add new points to chart queue
add: function(a){ if ((a instanceof Array)&&(a.length > 0)) chartIn.add( tools.doublesToNative( a ) ); },
clear: function(){ chart.getTraces().clear(); },
};
|
Vue.component('coupon', {
template: `
<input type="text" @blur="$emit('applied')"></input>
`
});
new Vue({
el: '#root',
data: {
isApplied: false
},
methods: {
onCouponApplied(){
this.isApplied = true;
}
}
});
|
(function (ng) {
angular.module("umbraco").controller("AUMBRA.GridEditors.MultiNodePicker", ['$scope', 'dialogService', 'contentResource', 'AUMBRA.Services.utilService', function ($scope, dialogService, contentResource, utilService) {
//Private
var config = angular.extend({
multiP... |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("a11yhelp",
"pt-br",
{
title: "Instruções de Acessibilidade",
contents: "Conteúdo da Ajuda. Para fechar este diálogo pression... |
var runes =
{"runes":
[
{"time": 4755 , "replaytime": 10424 ,"rune": 0 , "hero": "npc_dota_hero_tinker", "bottle": 1},
{"time": 8274 , "replaytime": 13943 ,"rune": 3 , "hero": "npc_dota_hero_tinker", "bottle": 1},
{"time": 11678 , "replaytime": 17347 ,"rune": 0 , "hero": "npc_dota_hero_tinker",... |
/**
* Talisman phonetics/soundex tests
* =================================
*
*/
import assert from 'assert';
import soundex, {refined} from '../../src/phonetics/soundex';
describe('soundex', function() {
it('should throw if the given word is not a string.', function() {
assert.throws(function() {
soun... |
import test from 'tape'
import _ from 'lodash'
import Cable from '../lib'
test('Cable Creation', (test) => {
const cable = new Cable();
test.equal(cable.channelName, 'root', 'without any channel name a cable is the root');
test.equal(cable.parentsPath, '', 'with a parent a cable has not path');
test.equal(ca... |
tinymce.PluginManager.add('example', function(editor, url) {
// Add a button that opens a window
editor.ui.registry.addButton('example', {
icon: close,
onAction: function() {
// Open window
editor.windowManager.open({
title: 'Example plugin',
... |
var express = require('express'),
path = require('path'),
favicon = require('static-favicon'),
cookieParser = require('cookie-parser'),
bodyParser = require('body-parser'),
logger=require('morgan'),
ECT=require('ect'),
ectRenderer=ECT({watch:true,root:__dirname+'/views',ext:'.html'}),
routes = require('... |
/*
* @Author: darkless
* @Date: 2015-07-22 14:42:11
* @Last Modified by: darkless
* @Last Modified time: 2016-01-18 22:25:32
*/
'use strict';
//ajax
function xmlHttp( url, obj, fnSucc1 ) {
var xmlHttp;
if ( window.XMLHttpRequest ) {
var xmlHttp = new XMLHttpRequest();
} else {
var ... |
var YahooConfig = require("AppConfig").Yahoo;
var Uri = require("./Uri");
var { Utils} = require("../utils/index");
var { checkStatus, parseJson } = require( './FetchTransformers' );
// Yahoo query params for Quotes :
// q= select * from yahoo.finance.quotes where symbol in ("YHOO","AAPL","GOOG","MSFT")
// env= htt... |
export default (theme) => ({
root: {
flexGrow: 1
},
flex: {
flexGrow: 1
},
menuButton: {
marginLeft: -12,
marginRight: 20
},
rightIcon: {
marginLeft: theme.spacing.unit
},
avatarContainer: {
marginRight: theme.spacing.unit
},
avatar: {
float: "right",
marginLeft: th... |
import path from 'path';
import fs from 'fs';
import assert from 'assert';
import { transformFileSync } from 'babel-core';
import plugin from '../src';
function trim(str) {
return str.replace(/^\s+|\s+$/, '');
}
describe('Add a description for the plugin here', () => {
const fixturesDir = path.join(__dirname, 'fi... |
const randomColor = require('randomcolor');
class PairingService {
constructor(peopleStore, pairingStore) {
this._peopleStore = peopleStore;
this._pairingStore = pairingStore;
}
processCommitFrom(message) {
let commitHashRegex = /\|\b[0-9a-f]{8}\b>:/g;
let commitMessag... |
(function() {var implementors = {};
implementors["spin"] = [{"text":"impl<R: <a class=\"trait\" href=\"spin/relax/trait.RelaxStrategy.html\" title=\"trait spin::relax::RelaxStrategy\">RelaxStrategy</a>> <a class=\"trait\" href=\"lock_api/rwlock/trait.RawRwLock.html\" title=\"trait lock_api::rwlock::RawRwLock... |
'use strict';
// Project related
var project = require('../project'),
// Gulp related
Task = require('./helpers/task.helper'),
gulp = require('gulp'),
// Asset management tasks
manage_image = require('./manage-image.task'),
manage_style = require('./manage-style.task'),
manage_s... |
function navigateTo(view) {
var page = '/view/' + view.replace(/ /g, '-');
history.replaceState({view: view},
'Meteor showers from space - ' + view,
page);
if (typeof mixpanel !== 'undefined') {
mixpanel.track('meteors', {
view: view
});
}
if (typeo... |
module.exports = (app) => {
// app.router.get('/greet', async function (){
// this.ctx.body = 'hello,world';
// }).get('/name', async function (){
// // this.ctx.body = 'Hisheng'
// /*this.ctx.with({
// status: 403,
// header: {
// 'Content-Type': 'application/json',
// 'hi':... |
/*
//
// HELP for Alasql.js
// Date: 03.11.2014
// (c) 2014, Andrey Gershun
//
*/
/* global alasql, yy */
yy.Require = function (params) {
return yy.extend(this, params);
};
yy.Require.prototype.toString = function () {
var s = 'REQUIRE';
if (this.paths && this.paths.length > 0) {
s += this.paths
.map(functio... |
import {Mongo} from 'meteor/mongo';
export const Chats = new Mongo.Collection('chats');
export const Messages = new Mongo.Collection('messages');
|
const path = require('path');
const webpack = require('webpack')
const ProvidePlugin = require('webpack/lib/ProvidePlugin');
const ReactStaticPlugin = require('react-static-webpack-plugin');
var nodeModules = path.resolve(path.join(__dirname, 'node_modules'));
module.exports = {
entry: [
'react-hot-loader/patc... |
'use strict';
/**
* Module dependencies.
*/
var path = require('path'),
mongoose = require('mongoose'),
Category = mongoose.model('Category'),
errorHandler = require(path.resolve('./modules/core/server/controllers/errors.server.controller')),
_ = require('lodash');
/**
* Create a Category
*/
exports.creat... |
import React from 'react';
import { shallow } from 'enzyme';
import List from '../../../src/components/List';
describe('<List />', () => {
test('List component should renders correctly', () => {
const props = {
resultCount: 2,
results: [
{
trackId: '1',
trackPrice: 0.99,
... |
'use strict';
import C from '../src/c';
import * as assert from 'assert';
describe('C', () => {
it('getDelayedX', async function() {
const c = new C(1, 2);
const x = await c.getDelayedX();
assert.equal(x, 1);
});
it('getDelayedY', async function() {
const c = new C(1, 2);
const y = await c.getDelayedY();... |
var h = require('../helper/h');
var Tag = require('../../src/node/tag');
var Tree = require('../../src/tree/tree');
describe("Tag", function() {
it("verifies the type value", function() {
expect(new Tag().type).toBe('Tag');
});
it("sets some defaults value on new instance", function() {
var tag = ... |
require.config({
deps: (typeof window !== 'undefined' && window.mocha) ?
['../test/spec/initialize'] :
((typeof window !== 'undefined' && window.Benchmark) ?
['../test/benchmark/initialize'] : ['initialize']),
baseUrl: (typeof window !== 'undefined' &&
(window.mocha || window.Benchmark)) ? '../..... |
/**
* @author Wang, Hui (huiwang@qlike.com)
* @repo https://github.com/hui-w/gomoku
* @licence MIT
*/
var app_prototype = {
// Child components
menu: null,
chessboard: null,
playerIndicator: null,
btnMenu: null,
btnBack: null,
lblCurrent: null,
lblMenu: null,
lblBack: null,
init: function()... |
var App = function (options) {
var xDistance = 2; //distance between points on the graph
var socket;
var router;
var Models= {};
var Collections = {};
var Views = {};
function init () {
initSocket();
initBackbone();
}
var initSocket = function (){
if(socket) return; // already initialized
socket... |
module.exports = {
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module',
},
extends: [
'airbnb-base',
],
env: {
node: true,
},
globals: {
describe: true,
it: true,
expect: true,
},
rules: {
'linebreak-style': 0,
'no-param-reassign': 0,
}
}; |
import React from 'react';
import ReactDOM from 'react-dom';
import {
Router,
Route,
IndexRoute,
hashHistory,
browserHistory,
} from 'react-router';
import {
useBasename,
} from 'history';
const history = useBasename(() => browserHistory)({basename: `/react`});
// style
import './docs.less';
// img
impor... |
import Ember from 'ember';
export default Ember.Route.extend({
model() {
return Ember.RSVP.hash({
users: this.store.findAll('user'),
roles: this.store.findAll('role')
});
}
});
|
import {defaultActionTypes} from './default-action-types';
import {mainViews} from '../../enums/main-views';
import {dispatcher} from '../dispatcher';
import {modalKeys} from '../../enums/modal-keys';
class DefaultActions {
static showChats() {
const action = {
type: defaultActionTypes.setMainView,
data: {
... |
export { default, i18nT } from 'ember-cli-gettext/helpers/i18n-t';
|
exports.sendPush = function(push, ready) {
var payload
, options
, body
this.log.info('sendPush called')
this.log.debug('building payload')
// build payload
payload = push.toJSON()
this.log.debug('done building payload')
body = JSON.stringify(payload)
this.log.debug('push payload : %s', body)... |
IssueTracker.factory('dashboardService', [
'$http',
'$linq',
'$q',
'BASE_URL',
'issuesServices',
'projectsServices',
function ($http, $linq, $q, BASE_URL,issuesServices,projectsServices) {
function getAllProjectsAssociatedIn(userName) {
... |
import { moduleForComponent, test } from 'ember-qunit';
import { assertTooltipNotVisible, triggerTooltipTargetEvent } from '../../../helpers/ember-tooltips';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('popover-on-element', 'Integration | Option | event', {
integration: true
});
test('Popover: ... |
var net = require('net')
var port = process.argv[2]
var server = net.createServer(function(socket) {
socket.write(getCurrentTimeStr())
socket.write('\n')
socket.end()
})
server.listen(port)
function getCurrentTimeStr() {
var now = new Date()
var year = now.getFullYear()
var month = fillZero(now.getMonth()... |
(function(){
'use strict'
/**
* stores Module
*
* Description
Will help us to manage all the services and controllers related to the store's entity
*/
angular.module('login', [])
})()
|
var expect, spearson;
expect = require("expect.js");
spearson = require("../lib/spearson.js");
describe("Spearson", function () {
describe("sort", function () {
it("the sort order of [5,2,3,10,9] is [2,3,5,9,10]", function () {
var res;
res = spearson.sort([5, 2, 3, 10, 9]);
... |
var test = require('tape')
var async = require('./')
function timeout (fn) {
setTimeout(fn, Math.random() * 50)
}
test('depth first sequence', function (t) {
var q = async()
var seq = []
q.defer(function (cb) {
seq.push('1')
q.defer(function (cb) {
timeout(function () {
seq.push('1.1')
... |
/*global tableselect:true, utils:true, QUnit:true*/
QUnit.test('constructor element test', function(assert) {
var table = document.querySelector('#qunit-fixture table');
var ts = new tableselect.TableSelect(table);
var rows = table.querySelectorAll('tr');
utils.clickRow(rows[0]);
assert.ok(rows[... |
import * as CES from 'ces';
import * as BABYLON from '../lib/babylon';
import { utils } from '../utils/utils';
import { c_curvedplane } from '../components/c_curvedplane';
import { c_material } from '../components/c_material';
/**
* ...
* @author Brendon Smith
* http://seacloud9.org
* LightWeight 3D System Design e... |
import { default as Info } from './info.pane';
import { default as Navigation } from './navigation.pane';
import { default as Utilities } from './utilities.pane';
import { default as Dynamics } from './dynamics';
import { default as Toolbox } from './toolbox';
export default {
Info,
Navigation,
Utilities,
... |
this.NesDb = this.NesDb || {};
NesDb[ '6E14D69218F890D5B4806E19C599329F1B5079A1' ] = {
"$": {
"name": "Alien³",
"class": "Licensed",
"subclass": "3rd-Party",
"catalog": "NES-X3-USA",
"publisher": "LJN",
"developer": "Probe",
"region": "USA",
"players": "1",
"date": "1993-03"
},
"cartridge": [
{
... |
module.exports = {
frontend : {
options : {
indexPath : './report/performance/',
options : {},
url : 'http://localhost:8000/',
buildUi : true
}
}
};
|
export const tag = {"viewBox":"0 0 24 24","children":[{"name":"path","attribs":{"d":"M9 4c1.279 0 2.559.488 3.535 1.465l3.465 3.535 5 5-7 7-5.498-5.498c-.037.033-3.037-2.967-3.037-2.967-1.953-1.953-1.953-5.119 0-7.07.976-.977 2.256-1.465 3.535-1.465m0-2c-1.87 0-3.628.729-4.949 2.051-1.322 1.32-2.051 3.078-2.051 4.948s.... |
/*global module, process*/
(function () {
'use strict';
var lodash = require('lodash'),
all = require('./all'),
exports = {
assets: {
lib: {
adminCss: [
'public/lib/bootstrap/dist/css/bootstrap.min.css',
... |
const chalk = require('chalk');
const {execSync} = require('child_process');
const minimist = require('minimist');
const path = require('path');
const {readJsonSync} = require('fs-extra');
const args = minimist(process.argv.slice(2));
const DEFAULT_BUMP = null;
const bump = args._[0] || DEFAULT_BUMP;
const DEFAULT_C... |
/*
* grunt-skeleton-assembler-colors
* https://github.com/ginetta/grunt-skeleton-assembler-colors
*
* Copyright (c) 2015 Ginetta
* Licensed under the MIT license.
*/
"use strict";
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
eslint: {
options: {
configFi... |
module.exports = {
user: require('./user')
}
|
'use strict';
angular.module('individualizerApp')
.controller('AdminCtrl', function ($scope, UserService, $timeout) {
$scope.admin = UserService.admin;
$scope.user = UserService.user;
$scope.saveFields = function() {
UserService.saveFields();
};
$scope.csvSelecte... |
/* eslint-disable no-unused-expressions, import/no-extraneous-dependencies */
import { expect } from 'chai';
import Package from '../../../src/packages/package';
describe('Packages. Package', () => {
describe('#constructor', () => {
it('should throw an error when arguments are invalid', () => {
... |
import React, {Component} from 'react';
import Widget from 'src/Widget';
import WidgetHeader from 'src/WidgetHeader';
import MaterialCascaderSelect from 'src/MaterialCascaderSelect';
import RaisedButton from 'src/RaisedButton';
import Dialog from 'src/Dialog';
import PropTypeDescTable from 'components/PropTypeDescTab... |
var srv;
var validConfig = {
"GH_CLIENT_ID": "GH_CLIENT_ID",
"GH_CLIENT_SECRET": "GH_CLIENT_SECRET",
"GH_CALLBACK_URL": "http://127.0.0.1:3000/auth/github/callback",
"SESSION_SECRET": "SESSION_SECRET"
}
describe('Server', function() {
beforeEach(function () {
srv = require('../lib/server.js... |
// @flow
function extractTimestampFromName(containerName/* : string */, divider/* : string */) {
return Number(containerName.split('_')[0].split(divider)[1]);
}
module.exports = extractTimestampFromName;
|
var MongoClient = require('mongodb').MongoClient
var util = require('util')
var remove_all_lowest_scores = function (db, lowest_scores, callback) {
var keys = Object.keys(lowest_scores);
var cb_count = 0;
keys.forEach(function (key) {
var student_id = +key;
var score = lowest_scores[student_id]
var... |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// THIS CODE IS GENERATED - DO NOT MODIFY
// See angular/tools/gulp-tasks/cldr/extract.js
(function(global) {
glo... |
'use strict';
var should = require('should'),
request = require('supertest'),
app = require('../../server'),
mongoose = require('mongoose'),
User = mongoose.model('User'),
Materialloss = mongoose.model('Materialloss'),
agent = request.agent(app);
/**
* Globals
*/
var credentials, user, materialloss;
/**
* M... |
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
/*!
* Next JS
* Copyright (c)2011 Xenophy.CO.,LTD All rights Reserved.
* http://www.xenophy.com
*/
// {{{ NX.smtp.Smtp.ehlo_or_helo_if_needed
module.exports = function(fn, domain) {
var me = this;
if(!me.features) {
var res = funct... |
prerender = require('./lib/prerender');
prerender.use(require('./lib/plugins/whitelist'));
// prerender.use(require('./lib/plugins/blacklist'));
prerender.use(require('./lib/plugins/logger'));
prerender.use(require('./lib/plugins/remove-script-tags'));
// prerender.use(require('./lib/plugins/in-memory-html-cache'));
/... |
/**
* SubforceController
*
* @description :: Server-side logic for managing subforces
* @help :: See http://sailsjs.org/#!/documentation/concepts/Controllers
*/
module.exports = {
};
|
import listCollections from './list';
import createCollection from './create';
import deleteCollections from './delete';
import {insertCollections, getCollectionNames} from './import';
import exportCollections from './export';
import statusCodes from 'http-status-codes';
import UnsupportedMediaError from '../../../Erro... |
// Copyright 2018-2021, University of Colorado Boulder
/**
* Standard form equation, y = ax^2 + bx + c, with integer coefficients that can be changed via pickers.
*
* @author Andrea Lin
*/
import Property from '../../../../axon/js/Property.js';
import merge from '../../../../phet-core/js/merge.js';
import StringU... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const logger_1 = require("@riim/logger");
const map_set_polyfill_1 = require("@riim/map-set-polyfill");
const hasOwn = Object.prototype.hasOwnProperty;
let currentlySubscribing = false;
let transactionLevel = 0;
let transactionEvents = [];
cla... |
module("Feature detection");
test("modernizr cssregions detection", function() {
notEqual(Modernizr.cssregions, undefined);
});
test("the browser isn't compatible with the css regions", function() {
equal(Modernizr.cssregions, false);
}); |
var fs = require('fs');
var path = require('path');
var GRADLE_SCRIPT_PATH = path.join(process.cwd(), 'android', 'build.gradle');
// load build.gradle content
try {
var cfg = fs.readFileSync(GRADLE_SCRIPT_PATH);
} catch(err) {
console.log(err.stack);
console.log('Failed to load `android/build.gradle` when linkin... |
"use strict";
var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, Promise, generator) {
return new Promise(function (resolve, reject) {
generator = generator.call(thisArg, _arguments);
function cast(value) {
return value instanceof Promise && value.constru... |
'use strict';
class Parent {
constructor(name) {
this.name = name;
}
foo() {
console.log(`hello world ${this.name}`);
}
// can now have static methods only available to the class itself like in PHP
static bar() {
console.log('only the class itself can access this');
}
}... |
'use strict'
class VersionRepository {
constructor (persister) {
this._persister = persister
}
checkTable () {
return this._persister.checkTableExists()
}
createTable () {
return this._persister.createTable()
}
getLastVersion () {
return this._persister.getLastVersion()
}
getAll (... |
import { ipcRenderer } from 'electron'
export default () => {
document.addEventListener('click', e => {
const $modal = document.querySelector('.modal-content')
if (!$modal) return
if ($modal.innerHTML.indexOf('您的账号在其他设备登录') === -1) return
const $foot = $modal.querySelector('div.foot')
if (!$foot.... |
const DatabaseError = require('../../../errors/DatabaseError')
/**
* Sets the Instrument and InstrumentMapping Model for the further query.
*
* @returns {middleware}
* @param Instrument
* @param InstrumentMapping
*/
const findAll = (Instrument, InstrumentMapping) => {
/**
* Finds all instrument Model instan... |
(function(root, f) {
'use strict';
if (typeof module !== 'undefined' && module.exports) module.exports = f(require('tweetnacl'));
else root.nacl.auth = f(root.nacl);
}(this, function(nacl) {
'use strict';
if (!nacl) throw new Error('tweetnacl not loaded');
var BLOCK_SIZE = 128, HASH_SIZE = 64;
functio... |
define(function (require) {
var path = require('path');
return Filter;
function Filter(options) {
var self = this;
var regex = new RegExp(options.expression.replace(/\\\\/g, '/'));
self.allowsFile = allowsFile;
self.excludesFile = excludesFile;
function allowsFil... |
search_result['1918']=["topic_00000000000004A9.html","BlobDirectory.Jobs Property",""]; |
/*
Highcharts JS v9.2.0 (2021-08-18)
(c) 2016-2021 Highsoft AS
Authors: Jon Arild Nygard
License: www.highcharts.com/license
*/
'use strict';(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/wordcloud",["highch... |
// Ported from https://github.com/BartVanBeurden/node-noise3d
// Used under WTFPL
/* eslint-disable */
export function nearestNeighbour(a, b, t) {
return t < 0.5 ? a : b;
}
export function lerp(a, b, t) {
return a + t * (b - a);
}
export function cosine(a, b, t) {
t = (1 - Math.cos(t * Math.PI)) * 0.5;
retur... |
var Classical = require("../classical");
var tests = require("./classical");
describe("classical", function () {
Object.keys(tests).forEach(function (input) {
it("should encode " + input, function () {
expect(Classical.encode(input)).toEqual(tests[input]);
});
});
});
|
// CSS is actually compiled as a separate file
require("./css/index.scss");
System.import('./app').then(app => {
// loaded
})
.catch(error => {
// handle error
});
|
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.scrollPlugin = factory());
}(this, (function ()... |
L.Map.mergeOptions({
touchExtend: true
});
L.Map.TouchExtend = L.Handler.extend({
initialize: function (map) {
this._map = map;
this._container = map._container;
this._pane = map._panes.overlayPane;
},
addHooks: function () {
L.DomEvent.on(this._container, 'touchstart', this._onTouchStart, this);
L.Do... |
var CustomEase = (function () {
function CustomEase(_name, segments) {
this._name = _name;
this._segments = [];
for(var i = 0; i < segments.length; i++) {
this._segments[this._segments.length] = new Segment(segments[i].s, segments[i].cp, segments[i].e);
}
CustomEa... |
/*
* This file is part of the Fxp package.
*
* (c) François Pluchino <francois.pluchino@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import babel from 'rollup-plugin-babel';
import commonjs from 'rollup-plugin-common... |
var UserController = Ember.ObjectController.extend({
// the deleteMode property is false by default
deleteMode: false,
actions: {
delete: function(){
// our delete method now only toggles deleteMode's value
this.toggleProperty('deleteMode');
},
cancelDelete: function(){
// set delet... |
'use strict';
/* Controllers */
angular.module('myApp.controllers', [])
.controller('LandingPageController', [function()
{
}])
.controller('WaitListController', ['$scope', 'partyService', 'sendEmailService', 'authService', function($scope, partyService, sendEmailService, authService)
{
// Bind users parties... |
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... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var reactIs = require('react-is');
var React = require('react');
var React__default = _interopDefault(React);
var shallowequa... |
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Qs = f()}})(fu... |
/*!
* css-vars-ponyfill
* v2.3.2
* https://jhildenbiddle.github.io/css-vars-ponyfill/
* (c) 2018-2020 John Hildenbiddle <http://hildenbiddle.com>
* MIT license
*/
(function(global, factory) {
typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "functio... |
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import _extends from "@babel/runtime/helpers/esm/extends";
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
import * as React from 'react';
import { isFragment } from 'react-is';
import PropTypes from 'pro... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.