code stringlengths 2 1.05M |
|---|
var util = require('util');
var Duplex = require('stream').Duplex;
var cheerio = require('cheerio');
function ParseSingleRoute(options) {
if (!(this instanceof ParseSingleRoute)) {
return new ParseSingleRoute(options)
}
Duplex.call(this, options);
this.buffer = [];
this.writeFlag = false;
this.on('fini... |
/**
* @copyright Wynncraft 2013, 2014
* @author Chris Ireland <ireland63@gmail.com>
*/
$(document).ready(function() {
// Json Fetch
$.getJSON(
'http://api.wynncraft.com/public_api.php?action=onlinePlayers',
function(data) {
$.each(data, function(key, obj) {
va... |
process.on('message', function (m) {
process.send(m);
process.disconnect();
process.exit(0);
});
|
/*
* Copyright 2011 The Closure Compiler Authors.
*
* 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... |
const http = require('http');
const {expect} = require('chai');
const bts = require('../../');
const makeRequest = require('../make-request');
describe('Parent-chain test', function () {
const app = bts('./tests/app-folders/Parent');
const server = http.createServer(app);
beforeEach(function () {
server.l... |
/**
* DocuSign REST API
* The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.
*
* OpenAPI spec version: v2.1
* Contact: devcenter@docusign.com
*
* NOTE: This class is auto generated. Do not edit the class manually and submit a new issue inste... |
define([
'jquery',
'underscore',
'backbone',
'text!demos/demo10/templates/HotlineControlsView.html'
], function ($, _, Backbone, templateHtml) {
var ElevationChartView = Backbone.View.extend({
events: {
'input .paletteColor': 'updatePalette',
'input #outlineColor': '... |
"use strict"
const process = require(`process`)
const fs = require(`fs`)
const createVerge3ChrConverter = require(`../converter/createVerge3ChrConverter`)// TODO looks unneccesary?
const asset = require(`../asset`)
const chrFilename = process.argv[2]
const chrData = asset.fromDisk(chrFilename, asset.v3chr)
const tar... |
/**
* The Jazzcat client is a library for loading JavaScript from the Jazzcat
* webservice. Jazzcat provides a JSONP HTTP endpoint for fetching multiple HTTP
* resources with a single HTTP request. This is handy if you'd to request a
* number of JavaScript files in a single request.
*
* The client is designed to ... |
/* global describe, it, afterEach */
import { expect } from 'chai'
import path from 'path'
import { hockeyShotchart } from './../src/index.js'
import { readJSON } from './utils.js'
const base = 'fixtures'
const input = readJSON(
path.join(__dirname, base, 'hockey-shotchart-payload.json'))
describe('hockey', () =>... |
var bender = require('../../');
module.exports = function () {
var ret = {};
Object.keys(bender.argv).forEach(function (key) {
if (key !== '_' && key !== '$0') {
ret[key] = bender.argv[key];
}
});
return ret;
};
|
var gm = require('gm');
var ExifImage = require('exif').ExifImage;
var async = require('async');
exports.getColorProfile = function getExifColorProfile(image, cb) {
async.parallel({
hasEmbeddedICCProfile: function (cb) {
hasEmbeddedICCProfile(image, function (err, data) {
cb (err, data);
});
... |
var game = new function() {
var participants = [];
var currentAnswers = [];
var startTimeMs = -1;
var currentQuestionIndex = 0;
var questions = [];
var currentCount = -1;
var countdownInterval = null;
var questionTimeout = null;
this.startGame = function() {
chromequiz.sendGameStart... |
'use strict';
var crypto = require('crypto');
function encryptPassword(password, salt){
return crypto.createHmac('sha1', salt).update(password).digest('hex');
};
module.exports = {
up: function (queryInterface, Sequelize) {
return queryInterface.bulkInsert('Users', [
{ username: 'admin',
passwo... |
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
class ButtonToolbar extends React.Component {
render() {
const {
className,
...attributes
} = this.props;
const classes = classNames(
className,
'btn-toolbar'
);
return ... |
/* eslint-env browser */
"use strict";
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// MIT license
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel
(function(... |
import * as t from '../types/todo_types';
import { resolvePageAction } from './page_resolver';
import { todoStore } from '../stores/todo_store'
export default function(action, next) {
// do the specific action first, this way
// you can easily override the base action
const store = action.store;
switch(action.... |
Gavia.Record.fn.delete = function (keyName) {
var request,
deferred = new Gavia.Deferred(),
key = (function () {
if (this.store.keyPath)
return this[this.store.keyPath];
if (typeof keyName === 'function')
return keyName();
if (keyName)
return this[keyName];
}).apply(this);
if (!key) {
def... |
import sinon from 'sinon'
import lolex from 'lolex'
import {
makeMutators,
start,
stop,
} from './endless-job'
test('machines/endless-job/makeMutators', () => {
const state = {
frame: null,
jobs: [],
isStopped: true,
};
const mutators = makeMutators({}, state);
mutators.registerJob({ job: '... |
import {
UVMapping,
CubeReflectionMapping,
CubeRefractionMapping,
EquirectangularReflectionMapping,
EquirectangularRefractionMapping,
SphericalReflectionMapping,
CubeUVReflectionMapping,
CubeUVRefractionMapping,
RepeatWrapping,
ClampToEdgeWrapping,
MirroredRepeatWrapping,
NearestFilter,
NearestMipmapNear... |
import Modal from '../mixin/modal';
import {$, addClass, append, css, endsWith, hasClass, height, removeClass, trigger, unwrap, wrapAll} from 'uikit-util';
export default {
mixins: [Modal],
args: 'mode',
props: {
mode: String,
flip: Boolean,
overlay: Boolean
},
data: {
... |
module.exports = {
isGPSEnabled: function (successCallback, errorCallback) {
console.log('run isGPSEnabled')
cordova.exec(successCallback, errorCallback, "GPSCheck", "isGPSEnabled", []);
},
isNetworkEnabled: function (successCallback, errorCallback) {
console.log('run isNetworkEnabled')
... |
import { postJSON } from 'src/js/tools'
import global from 'src/js/global'
export const LOAD_USER_LIST_SUCCESS = 'LOAD_USER_LIST_SUCCESS'
export const LOAD_MANAGERTREE_LIST_SUCCESS = 'LOAD_MANAGERTREE_LIST_SUCCESS'
export const USER_ERROR = 'USER_ERROR'
// 用户列表
export const getUserList = (params) => dispatch => {
re... |
const PersistentObject = require('../src/persistent-cache-object');
const fs = require('fs');
const assert = require('assert');
const map = new PersistentObject('./map.db', null, {'disableInterval': true});
const myArgs = process.argv.slice(2);
const something = myArgs[0] ? myArgs[0] : Math.floor(Math.random() * 100);... |
/*!
* Copyright (c) 2017 ~ present NAVER Corp.
* billboard.js project is licensed under the MIT license
*
* billboard.js, JavaScript chart library
* https://naver.github.io/billboard.js/
*
* @version 3.3.2
* @requires billboard.js
* @summary billboard.js plugin
*/
(function webpackUniversalModuleDefinition(ro... |
'use strict';
var cli = require('./cli');
var assert = require('assert');
describe('test', function() {
this.timeout(10000);
describe('test valid data', function() {
it('should pass if expected result is valid', function (done) {
cli('test -s test/schema.json -d test/valid_data.json --valid', function... |
var logger = require("../logger");
/*
* GET home page.
*/
exports.index = function(req, res){
logger.logRequest(req);
res.render('recordings', { title: 'CamPi.js' });
}; |
import expect from 'expect'
import { toPaths } from '../../src/utils/toPaths'
import { Model } from 'falcor'
const $ref = Model.ref
const $atom = Model.atom
const $error = Model.error
describe('Utils', () => {
describe('toPaths', () => {
it('should throw if not plain object was provided', () => {
let inpu... |
require('./support');
var loopback = require('../');
var User;
var AccessToken;
var MailConnector = require('../lib/connectors/mail');
var userMemory = loopback.createDataSource({
connector: 'memory'
});
describe('User', function() {
var validCredentialsEmail = 'foo@bar.com';
var validCredentials = {email: vali... |
goog.provide('gpub.book.epub.Builder');
/**
* Helper for building an ebook.
* @param {!gpub.opts.Metadata} opts
* @constructor @struct @final
*/
gpub.book.epub.Builder = function(opts) {
/** @type {!gpub.opts.Metadata} */
this.opts = opts;
/**
* @type {!Array<!gpub.book.File>}
*/
this.allFiles = [
... |
(function() {
var weather = window.weather;
/*
======== A Handy Little QUnit Reference ========
http://api.qunitjs.com/
Test methods:
module(name, {[setup][ ,teardown]})
test(name, callback)
expect(numberOfAssertions)
stop(increment)
start(decrement)
Test assertions:
... |
/**
* Problem: https://leetcode.com/problems/intersection-of-two-arrays/
Given two arrays, write a function to compute their intersection.
* Example:
Given nums1 = [1, 2, 2, 1], nums2 = [2, 2], return [2].
* Note:
Each element in the result must be unique.
The result can be in any order.
* @param... |
/**
* Created by jonas on 2016-04-16.
*/
var Entity = function (game, cx, cy, spriteName, spriteName2) {
Phaser.Sprite.call(this, game, cx, cy, spriteName, spriteName2);
this.game.physics.enable(this);
this.anchor.setTo(0.5, 0.5); //so it flips around its middle
};
Entity.prototype = Object.create(Phaser.Spri... |
'use strict';
const conf = require('./conf/' + process.argv[2]);
const fs = require('fs');
const chokidar = require('chokidar');
const zlib = require('zlib');
const readline = require('readline');
const elasticsearch = require('elasticsearch');
const node_statsd = require('node-statsd');
var elastic = new e... |
/**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 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.
*/
export const listenAddress = process.env.IP || 'localhost'... |
'use strict';
var angular = require('angular');
require('angular-messages');
require('angular-animate');
require('angular-strap');
require('angular-strap-tpl-modal');
require('angular-strap-tpl-popover');
require('../views/_views');
require('../components/controllers/init');
require('../components/filters/init');
... |
/**
* Created by Bhavinkumar on 3/3/2016.
*/
(function() {
'use strict';
angular.module('febatlas').controller('UserController', UserController);
UserController.$inject = ['UserService','$rootScope','$http','$location'];
function UserController(UserService,$rootScope,$http,$location) {
va... |
/* eslint @typescript-eslint/no-use-before-define: "off" */
import React from 'react';
import { mount } from 'enzyme';
import Transfer from '..';
import TransferList from '../list';
import TransferOperation from '../operation';
import TransferSearch from '../search';
import TransferItem from '../ListItem';
import Butto... |
import React, {
Component,
StyleSheet,
Text,
View,
WebView,
Animated,
Dimensions,
Platform
} from 'react-native';
import Loading from './lib/loading.js';
import inject from './web/inject.js';
import url from 'url';
import event from './lib/event.js';
export default class WebViewer exte... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
require('babel-polyfill');
// Webpack config for development
var fs = require('fs');
var path = require('path');
var webpack = require('webpack');
var assetsPath = path.resolve(__dirname, '../static/dist');
var host = (process.env.HOST || 'localhost');
var port = (+process.env.PORT + 1) || 3001;
var helpers = require(... |
import hasOwnProp from '../utils/has-own-prop';
var aliases = {};
export function addUnitAlias(unit, shorthand) {
var lowerCase = unit.toLowerCase();
aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit;
}
export function normalizeUnits(units) {
return typeof units === 'string' ? ali... |
/**
* Function that sorts an unsorted array within Ө(n^2)
* @param unsortedArray array to be sorted
* @returns {*} sorted array
*/
function bubbleSort(unsortedArray) {
var swap = true;
while (swap) {
swap = false;
for (var i = 1; i < unsortedArray.length; i++) {
if (unsortedArray... |
var nock = require('nock');
var redis = require('../common/redis');
nock.enableNetConnect(); // 允许真实的网络连接
redis.flushdb(); // 清空 db 里面的所有内容 |
angular.module('ez.datetime')
.constant('EzDatetimeConfig', {
/**
* Is date utc?
*/
isUtc: false,
/**
* The minimum view of the calendar
* @options [year, month, day]
*/
minView: 'day',
/**
* The start view of the calendar
* @options [year, month, day]
*/
startView: 'day',
/**... |
import { getAsyncInjectors } from './libs/asyncInjectors'
const errorLoading = (err) => {
console.error('Dynamic page loading failed', err) // eslint-disable-line no-console
}
const loadModule = (cb) => (componentModule) => {
cb(null, componentModule.default)
}
export function createRootComponent(store, cb) {
... |
import { UserKinds, ERROR_CONSTANTS } from 'kolibri.coreVue.vuex.constants';
import pickBy from 'lodash/pickBy';
import { FacilityUserResource } from 'kolibri.resources';
import CatchErrors from 'kolibri.utils.CatchErrors';
import { _userState } from '../mappers';
import { updateFacilityLevelRoles } from './utils';
/*... |
[ [ 1, 40, 51, 12, 41, 20, 11, 42, 21, 10 ],
[ 29, 64, 54, 30, 63, 55, 31, 70, 56, 32 ],
[ 50, 13, 81, 89, 52, 80, 88, 19, 79, 43 ],
[ 2, 39, 72, 95, 92, 71, 62, 93, 22, 9 ],
[ 28, 65, 53, 75, 87, 97, 100, 69, 57, 33 ],
[ 49, 14, 82, 90, 61, 94, 91, 18, 78, 44 ],
[ 3, 38, 73, 96, 99, 74, 86, 98, 23, 8 ... |
let data = require('sdk/self').data;
let prefs = require('sdk/simple-prefs').prefs;
let pageMod = require('sdk/page-mod');
let domains = prefs.domains || '';
domains = domains.split(/[,\s]/)
.map((domain) => [`http://${domain}/*`, `https://${domain}/*`])
.reduce((prev, current) => prev.concat(current), [
'http... |
ScalaJS.impls.scala_Function10$class__curried__Lscala_Function10__Lscala_Function1 = (function($$this) {
return new ScalaJS.c.scala_Function10$$anonfun$curried$1().init___Lscala_Function10($$this)
});
ScalaJS.impls.scala_Function10$class__tupled__Lscala_Function10__Lscala_Function1 = (function($$this) {
return new ... |
import { expect } from 'chai';
import { configSchema, validateConfig } from 'src/config';
describe('config validateConfig', () => {
it('should be valid', () => {
const config = {
extract: {
output: 'translations.pot',
location: 'file',
},
... |
// ==========================================================================
// Project: Ember - JavaScript Application Framework
// Copyright: ©2006-2011 Strobe Inc. and contributors.
// Portions ©2008-2011 Apple Inc. All rights reserved.
// License: Licensed under MIT license (see license.js)
// =====... |
/**
* Created by Haitao Ji on 10/4/2017.
*/
jc.data.setup(function (data) {
var html = '';
if(!data || !data.length){
return html;
}
html += '<div class="scrolllist" id="s1">';
html += '\n';
html += '<a class="abtn aleft" href="#left" title="左移"></a>';
html += '\n';
html += '<d... |
/**
* Copyright (C) 2000-2014 Geometria Contributors
* http://geocentral.net/geometria
*
* Geometria is free software released under the MIT License
* http://opensource.org/licenses/MIT
*/
define([
"dojo/_base/declare",
"geometria/GUtils"
], function(declare, utils) {
var fitLabel = function(star, w... |
"use strict"
const test = require('tape')
const {Iterable} = require('./common')
const {last, value} = require('../')
test('last over Set', t => {
t.deepEqual(value(last(new Set([2,4,6]))), 6)
t.end()
})
test('last over Map', t => {
let map = new Map()
let lastKey = Symbol('lastKey')
let lastValue = Symbo... |
/**
* 判断工具类
*
*/
var __CK = {
isUndefined:function(val)
{
return "undefined" === typeof(val);
},
isNull:function(val)
{
/**
*常见复杂的写法
*!exp && typeof exp != "undefined" && exp != 0
*
*/
return null === val;
},
isEmpty:function(val)
... |
import { call, takeEvery } from 'redux-saga/effects';
import { eventChannel } from 'redux-saga';
import { IS_OFFLINE } from '~shared/config';
import { ALBUMS_PUBLISH_INTERVAL, ALBUMS_APPEARENCE_INTERVAL } from '~shared/data/constants';
function getOutdatedAlbumsChannel(apis) {
const { findOutdatedAlbumsInCollectio... |
/*!
* froala_editor v3.2.5-1 (https://www.froala.com/wysiwyg-editor)
* License https://froala.com/wysiwyg-editor/terms/
* Copyright 2014-2021 Froala Labs
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('froala-editor')) :
typeof define === 'functi... |
'use strict';
var inherits = require('inherits'),
AbstractCursor = require('../../cursor'),
Doc = require('./doc');
var Cursor = function (cursor, collection) {
this._cursor = cursor;
this._collection = collection;
};
inherits(Cursor, AbstractCursor);
// TODO: make a promise that resolves after last each
Cu... |
import { GET_EVENT } from '../actions/types';
const initalState = {
fetching: false,
fetched: false,
error: null,
response: null,
}
export default ( state = initalState, action ) => {
switch (action.type) {
case `${GET_EVENT}_PENDING`:
return {
...state,
... |
'use strict';
/**
* Module dependencies.
*/
var passport = require('passport');
var User = require('mongoose').model('User');
var path = require('path');
var config = require('./config');
/**
* Module init function.
*/
module.exports = function() {
// Serialize sessions
passport.serializeUser(function(user, don... |
/*
--------------------------------------
(c)2012-2018, Kellpro, Inc.
(c)2016-2019, Master Technology
--------------------------------------
FluentReports is under The MIT License (MIT)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation fil... |
var auth = require('../../server/controllers/auth.server.controller');
module.exports = function(app) {
app.route('/api/register')
.post(auth.newUser);
app.route('/api/login')
.post(auth.loginUser);
};
|
import customGenerator from './custom';
import emptyGenerator from './empty';
import expandGenerator from './expand';
import randomGenerator from './random';
import rangeGenerator from './range';
import repeatGenerator from './repeat';
export {
customGenerator,
emptyGenerator,
expandGenerator,
randomGenerator,... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.PickListSubList = void 0;
var _ClassNames = require("../utils/ClassNames");
var _propTypes = _interopRequireDefault(require("prop-types"));
var _react = _interopRequireWildcard(require("react"));
var _ObjectUtils = _interopRequi... |
/**
* Created by Òèòî on 04/06/2015.
*/
var array= [4, 2, 1, 4, 2, 1, 5, 1, 1, 2, 4, 4, 1];
var mode = getMode(array);
console.log(mode[0] + ' (' + mode[1] + ' times)');
function getMode(arr){
var modeMap = {},
maxNum = arr[0],
maxCount = 1;
for (var ind = 0; ind < arr.length; ind++) {
... |
import Body from './Body';
/**
* @class Represents a bullet on the screen
* @extends {Body}
*/
export default class Bullet extends Body {
/**
* Class constructor
*
* @param {Game} game game instance
* @param {Object} position initial position of the body
* @param {string} direction the direction of the ... |
'use strict';
const figures = require('figures');
const cliCursor = require('cli-cursor');
const utils = require('./lib/utils');
const renderHelper = (task, event, options) => {
const log = utils.log.bind(undefined, options);
if (event.type === 'STATE') {
const message = task.isPending() ? 'started' : task.state;... |
/* eslint-disable no-regex-spaces */
/**
* Advanced arguments used during Encodes.
* @param {object} params Parameters for the encoding passed in by the user.
* @return {string} The arguments to be passed into the CLI
*/
function advancedEncode (params) {
var maxPaletteSize = '';
var colorBuckets... |
import * as ActionTypes from '../constants/ActionTypes';
const initialState = [];
export default function entitiesReducer(state = initialState, action) {
switch (action.type) {
case ActionTypes.FETCH_ENTITIES:
return {...state, isLoading: true };
case ActionTypes.ENTITIES_FETCHED:
return { ...st... |
define("ace/snippets/protobuf",["require","exports","module"],function(e,t,n){"use strict";t.snippetText="",t.scope="protobuf"})
|
'use strict'
var steed = require('steed')()
var exec = require('child_process').exec
function addCommits (sys, cb) {
steed.map(new State(sys, cb), sys.containerDefinitions, fetchSha, done)
}
function fetchSha (def, cb) {
if (!def.specific || !def.specific.path) {
cb(null, def)
return
}
var path = de... |
define("cool/controls/HTMLEditorCK",
[
"dojo/_base/declare",
"dojo/_base/lang",
"dojo/_base/array",
"cool/controls/_control",
"dojo/dom",
"dojo/dom-construct",
"dojo/query"
], function(declare, lang, array, _control, dom, domConstruct, query) {
return declare("cool.controls.HTMLEditor... |
(function () {
'use strict';
angular
.module("fc.merchandising")
.provider("prodHierarchyDataSvc", prodHierarchyDataSvcProvider);
/* @ngInject */
function prodHierarchyDataSvcProvider() {
// Available in config.
var cfg = this;
cfg.activateEndpoint = "activate"... |
/*
S.ScrollTo({
dest: 1000,
d: 200,
e: 'Power3Out',
cb: afterTop
})
*/
S.ScrollTo = function (opts) {
var d = document
var scrollNode = d.scrollingElement ? d.scrollingElement : S.Dom.body // Chrome v.61
var scrollable = S.Snif.isFirefox || S.Snif.isIE ? d.documentElement : scrollNode
... |
/*
* config.js: Common utility functions for loading and rendering system configuration.
*
* (C) 2010, Nodejitsu Inc.
*
*/
var fs = require('fs'),
os = require('os'),
path = require('path'),
async = require('flatiron').common.async,
template = require('quill-template'),
config = template.confi... |
Ext.define('FastUI.view.vfield.VTable', {
extend:'Ext.form.field.ComboBox',
valueObject: {},
winCtx:{},
winId:0,
rest:{},
valueField:'id',
displayField:"title",
forceSelection:true,
triggerAction:'all',
editable:false,
selectOnFocus:true,
initComponent:function () {
... |
import Ember from "ember-metal/core";
import run from "ember-metal/run_loop";
import EmberObject from "ember-runtime/system/object";
import RSVP from "ember-runtime/ext/rsvp";
import EmberView from "ember-views/views/view";
import jQuery from "ember-views/system/jquery";
import Test from "ember-testing/test";
import "... |
$(document).ready(function(){
var grid = document.querySelectorAll('.grid');
var solveButton = document.querySelector('#solveAll');
var simpleSolveButton = document.querySelector('#simpleSolve');
var hiddenSinglesButton = document.querySelector('#hiddenSingles');
var reset = document.querySelector('#resetBoard');
va... |
import test from 'ava';
import nightmare from 'nightmare';
import cleanstyle from '../../helpers/cleanstyle';
import common from '../../helpers/common';
const runner = nightmare({
show : false
});
let tagName = 'dropdown';
let docU... |
(function(){
angular
.module('reansQuest')
.controller('ReansQuestController', [
'$mdSidenav', '$mdBottomSheet', '$log', '$q', 'questsService',
'$mdDialog', 'Quest', '$location',
ReansQuestController
]);
/**
* Main Controller for the Angular Material Starter A... |
// Copyright (c) 2015 - 2019 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify... |
/**
* @licstart The following is the entire license notice for the
* Javascript code in this page
*
* Copyright 2021 Mozilla Foundation
*
* 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... |
import { w as warn, F as extractModule, W as WidgetBehavior, i as isEqual, d as deepQueryAll } from './index-ad816ab3.js';
const VALIDATORS = {
email: (val) => extractModule(import('./index-121a3ddd.js').then(function (n) { return n.i; }))
.then(validator => !val || validator.validate(val)),
maxlength: (val, o... |
"use strict";var __importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0});const globals_1=__importDefault(require("./globals")),utils={linspace:function(t,e,n){const o=(e-t)/(n-1);return Array.from({length:n},(e,n)=>t+o*n)},logs... |
/*! @name m3u8-parser @version 4.5.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... |
import{B as e,n as t,m as n}from"./index-2751648f.js";let s=0;export default class extends e{constructor(e,t){super(e,t),this.debuggerId=t}connected(){this.connect(),this.log("connected")}changed(e,t){this.log("changed",{name:e,value:t})}disconnected(){this.log("disconnected")}connect(){const e=this.getDebugger();e&&e.... |
/*!
* Bootstrap-select v1.14.0-beta2 (https://developer.snapappointments.com/bootstrap-select)
*
* Copyright 2012-2021 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"==typeof ... |
/*
Highmaps JS v9.2.0 (2021-08-18)
Tilemap module
(c) 2010-2021 Highsoft AS
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/tilemap",["highcharts","highcha... |
/*
Highcharts JS v9.2.1 (2021-08-19)
(c) 2009-2021 Sebastian Bochan, Rafal Sebestjanski
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/dumbbell",["highchart... |
/**
*
* @license Guriddo jqGrid JS - v5.5.3 - 2021-02-01
* Copyright(c) 2008, Tony Tomov, tony@trirand.com
*
* License: http://guriddo.net/?page_id=103334
*/
(function( factory ) {
"use strict";
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
define([
"jquery"
]... |
/**
* @license Highcharts JS v9.3.1 (2021-11-05)
* @module highcharts/modules/wordcloud
* @requires highcharts
*
* (c) 2016-2021 Highsoft AS
* Authors: Jon Arild Nygard
*
* License: www.highcharts.com/license
*/
'use strict';
import '../../Series/Wordcloud/WordcloudSeries.js';
|
var read = require('../lib/read.js')
if (process.argv[2] === 'child') {
return child()
}
var tap = require('tap')
var CLOSE = 'close'
if (process.version.match(/^v0\.6/)) {
CLOSE = 'exit'
}
var spawn = require('child_process').spawn
tap.test('basic', function (t) {
var child = spawn(process.execPath, [__filen... |
import a from "./a";
import b from "./b";
import d from "./d";
import f from "./f";
import h from "./h";
import j from "./j";
it("should fire the correct events", (done) => {
var events = [];
var options = {
ignoreUnaccepted: true,
ignoreDeclined: true,
ignoreErrored: true,
onDeclined(data) { events.push(dat... |
//>>built
define("dojox/date/umalqura",["dojox/main","dojo/_base/lang","dojo/date","./umalqura/Date"],function(l,m,n,k){var g=m.getObject("date.umalqura",!0,l);g.getDaysInMonth=function(a){return a.getDaysInIslamicMonth(a.getMonth(),a.getFullYear())};g.compare=function(a,e,c){a instanceof k&&(a=a.toGregorian());e insta... |
import { declare } from "@babel/helper-plugin-utils";
import helper from "@babel/helper-builder-react-jsx";
import { types as t } from "@babel/core";
export default declare(api => {
api.assertVersion(7);
function hasRefOrSpread(attrs) {
for (let i = 0; i < attrs.length; i++) {
const attr = attrs[i];
... |
'use strict';
const player = require('./player');
/*
* Play MP4 without video stream.
*/
player.playVideo({
//Note: TCP stream needed (UDP timeout, retrying with TCP)
src: 'http://www.opticodec.com/test/tropic.mp4'
}, (_err, _video) => {
//empty
}); |
'use strict';
angular.module('angularApp', [
'ngRoute'
])
.config(function ($routeProvider, $locationProvider) {
$routeProvider
.when('/', {
templateUrl: 'views/main.html',
controller: 'MainCtrl'
})
.when('/about', {
templateUrl: 'views/about.html'
... |
'use strict';
var odin = { model:{}, view:{}, ctrl:{} }; |
import { bind } from "mousetrap";
import { setActiveTab } from "./ducks/comment_id_panel";
import { setMediaViewerState, toggleMediaViewer } from "./ducks/media_viewer";
const bindShortcut = ( shortcut, callback ) => {
bind( shortcut, ( ) => {
callback( );
return false;
} );
};
const focusCommentIDInput =... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.