code stringlengths 2 1.05M |
|---|
/**
Creates a new PostProcess
@class A PostProcess is used for image effects.
@params engine The current instance og J3D.Engine
*/
J3D.Postprocess = function(engine) {
this.drawMode = gl.TRIANGLES;
this.engine = engine;
this.fbo = new J3D.FrameBuffer();
this.geometry = J3D.Primitive.Full... |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM21.41 6.34l-3.75-3.75-2.53 2.54 3.75 3.75 2.53-2.54z"
}), 'ModeSharp'); |
"use strict";
/**
* Copyright 2015 Google Inc. All Rights Reserved.
*
* 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 req... |
/*
* /MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/PUA.js
*
* Copyright (c) 2009-2013 The MathJax Consortium
*
* 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
*
* ... |
goog.provide('tictactoe.GameController');
goog.require('goog.events.EventTarget');
/**
* @constructor
*/
tictactoe.GameController = function(gameView) {
'use strict';
var that = this;
goog.events.EventTarget.call(this);
// send move to platform
goog.events.listen(this, 'move', function(e) {
... |
const Route = require('../../structures/Route');
class albumEditPOST extends Route {
constructor() {
super('/album/edit', 'post');
}
async run(req, res, db, user) {
if (!req.body) return res.status(400).json({ message: 'No body provided' });
const { id, name, nsfw } = req.body;
if (!id) return res.status(4... |
var db = require('../db');
exports.up = function(knex, Promise) {
return Promise.all([
knex.schema.table('games', function (game) {
game.boolean('voice').defaultsTo(true);
console.log('added voice column to games');
})
]);
};
exports.down = function(knex, Promise) {
return Promise.all([
k... |
// @flow
import Primus from 'primus';
import http from 'http';
const primus: Primus = new Primus(new http.Server());
(primus.clients(): string[]);
(primus.write(123): void);
(primus.save('path'): void);
primus.forEach((spark: Primus$Spark, id: string, connections: any) => {
(spark.id: string);
(spark.query: string... |
/**
* Created by uzysjung on 2016. 9. 6..
*/
import axios from 'axios';
import { authError } from './user';
import { HOSTNAME , PORT } from '../../config'
const ROOT_URL = `http://${HOSTNAME}:${PORT}`;
export function axiosGetRequest (url,query,reqAction,errAction,recvAction) {
return (dispatch, state) => {
... |
var should = require( "should" ); // jshint ignore : line
var filterFn = require( "../src/filter" );
describe( "Filter", function() {
var str, hash;
before( function() {
var filter = filterFn( {
architecture: "x64",
branch: undefined,
build: undefined,
owner: undefined,
platform: "darwin",
proje... |
var NodeUtils = {
elements: [ 'x', 'y', 'z', 'w' ],
addShortcuts: function () {
function applyShortcut( proxy, property, subProperty ) {
if ( subProperty ) {
return {
get: function () {
return this[ proxy ][ property ][ subProperty ];
},
set: function ( val ) {
this[ prox... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S12.10_A3.7_T4;
* @section: 12.10;
* @assertion: No matter how control leaves the embedded 'Statement',
* the scope chain is always restored to its former state;
* @des... |
// This file is GENERATED by unicodeMake.js. DO NOT MODIFY.
export default {
"\u00e1": "\u0061\u0301", // á = \'{a}
"\u00e0": "\u0061\u0300", // à = \`{a}
"\u00e4": "\u0061\u0308", // ä = \"{a}
"\u01df": "\u0061\u0308\u0304", // ǟ = \"\={a}
"\u00e3": "\u0061\u0303", // ã = \~{a}
"\u0101": ... |
import { expect } from 'chai';
import {
getCredentials,
api,
request,
credentials,
message,
} from '../../data/api-data.js';
import { password } from '../../data/user';
import { createRoom } from '../../data/rooms.helper.js';
import { sendSimpleMessage, deleteMessage, pinMessage } from '../../data/chat.helper.js'... |
import './InvocationError'
export class AbortError extends InvocationError {}
|
import { createStore, applyMiddleware } from 'redux';
import thunkMiddleware from 'redux-thunk';
import createLogger from 'redux-logger';
import rootReducer from '../reducers';
const createStoreWithMiddleware = applyMiddleware(
thunkMiddleware,
createLogger()
)(createStore);
export default function configureStore(i... |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2019 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var BitmapText = require('./BitmapText');
var BuildGameObject = require('../../BuildGameObject');
var GameObjectCreator = require('../../GameObj... |
// Chosen, a Select Box Enhancer for jQuery and Protoype
// by Patrick Filler for Harvest, http://getharvest.com
//
// Version 0.9.8
// Full source at https://github.com/harvesthq/chosen
// Copyright (c) 2011 Harvest http://getharvest.com
// MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
// T... |
/*global assert*/
var rfs = require("../lib/rfs");
exports.name = "fork-local-floating";
exports.landscape = "W3C HTML has “local” date terminology renamed to “<a href='#floating-dates-and-times'>floating</a>”.";
exports.transform = function (data) {
// #local-dates-and-times has all instances of local replaced w... |
import { WishlistProduct } from '@vue-storefront/core/modules/wishlist/components/Product'
export default {
name: 'Product',
methods: {
// deprecated
closeWishlist () {
this.$store.commit('ui/setWishlist', false)
}
},
mixins: [WishlistProduct]
}
|
'use strict';
const path = require('path');
const player = require('./player');
/*
* Play M4V video file.
*/
player.playVideo({
src: path.join(__dirname, 'trailer_iphone.m4v'),
opts: 'amino_dump_format=1'
}, (_err, _video) => {
//empty
}); |
"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")... |
version https://git-lfs.github.com/spec/v1
oid sha256:598b8326f2d68ec3e8f453617b3f0436e153fe2493453d2efb41c28d1afc235c
size 469307
|
var mysqlConnectionDb = {
connection:{
host: "localhost",
user: "root",
password: "artyom223",
database: "cardatabase"
}
}
module.exports.db = mysqlConnectionDb; |
require("node-opcua-numeric-range");
require("node-opcua-data-value");
const WriteValue_Schema = {
name: "WriteValue",
fields: [
{ name: "nodeId" , fieldType: "NodeId"},
{ name: "attributeId" , fieldType: "IntegerId"}, // see AttributeIds
{ name: "indexRange" , fieldType: "Num... |
module.exports = {
siteMetadata: {
title: `Gatsby Default Starter`,
description: `Kick off your next, great Gatsby project with this default starter. This barebones starter ships with the main Gatsby configuration files you might need.`,
author: `@gatsbyjs`,
siteUrl: `https://gatsbystarterdefaultsourc... |
#!/usr/bin/env node
/**
* @fileOverview Generates a Windows installer .exe and a .zip
*/
var path = require('path');
var sys = require('util'),
fs = require('fs'),
spawn = require('child_process').spawn,
opts = require('../../lib/cocos2d/opts'),
Template = require('../../lib/cocos2d/template').Tem... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M7 19h6V5H7v14zm3-8h2v2h-2v-2z" opacity=".3" /><path d="M19 19V4h-4V3H5v16H3v2h12V6h2v15h4v-2h-2zm-6 0H7V5h6v14z" /><path d="M10 11h2v2h-2z" /><... |
import React, { PropTypes } from 'react';
import _filter from 'lodash/filter';
import _reduce from 'lodash/reduce';
import injectSheet from 'react-jss';
import { statusValues } from 'funong-common/lib/appConstants';
import Button from 'modules/common/buttons/ApiButtonWithIcon';
import styles from 'modules/common/styles... |
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc);
switch (arguments.length) {
case 2: return decorators.reduceRight(function(o, d) ... |
var assert = require('assert');
var fs = require('fs');
var RSVP = require('rsvp');
var _rimraf = require('rimraf');
var spawnSync = require('child_process').spawnSync;
var fixtureBower = require('../fixtures/bower.json');
var rimraf = RSVP.denodeify(_rimraf);
var mkdir ... |
'use strict';
import arrayEach from 'lodash/_arrayEach';
import arrayMap from 'lodash/_arrayMap';
import isArray from 'lodash/isArray';
import noop from 'lodash/noop';
import property from 'lodash/_baseProperty';
import onlyOnce from './onlyOnce';
import setImmediate from './setImmediate';
export default function qu... |
var fs = require('fs')
var pack = JSON.parse(fs.readFileSync('package.json', 'utf-8'))
var electronPack = JSON.parse(fs.readFileSync('./node_modules/electron/package.json', 'utf-8'))
module.exports.tadVersion = pack.version
module.exports.electronVersion = electronPack.version
|
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M18 2.01L6 2c-1.1 0-2 .89-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.11-.9-1.99-2-1.99zM17 20H7c-.55 0-1-.45-1-1v-7.02c0-.55.45-1 1-1h10c.55 0... |
MissileCommand = {
/* Here we've just got some global level vars that persist regardless of State swaps */
score: 0,
/* If the music in your game needs to play through-out a few State swaps, then you could reference it here */
music: null,
/* Your game can check MissileCommand.orientated in inter... |
import { PropTypes } from "react";
const backgroundDiv = {
background: "grey",
display: "inline-block",
};
const foregroundDiv = {
background: "rebeccapurple",
width: "100px",
height: "100px",
};
const Locked = ({ className }) => (
<div className={`${className} soft flush-bottom`} style={backgroundDiv}>
... |
module.exports = function(value) {
return value === false || value === true;
}; |
'use strict';
/**
* Module dependencies
*/
var brandsPolicy = require('../policies/brands.server.policy'),
brands = require('../controllers/brands.server.controller');
module.exports = function (app) {
// Brands collection routes
app.route('/api/brands').all(brandsPolicy.isAllowed)
.get(brands.list)
.... |
define({
"_widgetLabel": "Business Analyst",
"addPoint": "Aggiungere il punto facendo clic sulla mappa",
"addRingsDtWt": "Aggiungere anello, tempo di guida o tempo di camminata.",
"apply": "Applica",
"back": "Indietro",
"colon": ":",
"creditInformation": "Informazioni di credito",
"driveTime": "Tempo di... |
/* *
*
* (c) 2010-2020 Torstein Honsi
*
* License: www.highcharts.com/license
*
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
*
* */
import BaseSeries from '../Core/Series/Series.js';
import H from '../Core/Globals.js';
import Math3D from '../Extensions/Math3D.js';
var perspectiv... |
var BootLogo = {
shown: false,
show: function(cb) {
if (Settings.DebugSkipBootLogo || this.shown) {
cb();
return;
}
this.shown = true;
AudioOut.playSfx('burningtomato.wav');
$('#burningtomato').delay(500).fadeIn(500, function() {
wi... |
var app = require('express')(),
wizard = require('hmpo-form-wizard'),
steps = require('./steps'),
fields = require('./fields');
app.use(require('hmpo-template-mixins')(fields, { sharedTranslationKey: 'prototype' }));
app.use(wizard(steps, fields, {
controller: require('../../../controllers/form'),
... |
const path = require('path');
const favicon = require('serve-favicon');
const compress = require('compression');
const cors = require('cors');
const helmet = require('helmet');
const bodyParser = require('body-parser');
const feathers = require('feathers');
const configuration = require('feathers-configuration');
cons... |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
errorHandler = require('./errors.server.controller'),
Volunteer = mongoose.model('Volunteer'),
_ = require('lodash');
/**
* Create a Volunteer
*/
exports.create = function(req, res) {
var volunteer = new Volunteer(req.body);
volu... |
version https://git-lfs.github.com/spec/v1
oid sha256:e9cabf0fc60ada49b748f42b65a3fcd962d60956c17a9c941a6724532712a3f0
size 32865
|
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import type {
ReactDOMResponderContext,
ReactDOMResponderEvent,
PointerType,
} from 'shared/ReactDOMTypes';
impo... |
import MenuMenu from 'src/collections/Menu/MenuMenu'
import * as common from 'test/specs/commonTests'
describe('MenuMenu', () => {
common.isConformant(MenuMenu)
common.rendersChildren(MenuMenu)
common.propValueOnlyToClassName(MenuMenu, 'position', ['left', 'right'])
})
|
/**
* Gender
*/
export default [
{"name": "Male"},
{"name": "Female"}
]; |
/*
* Environments
*
* param: app
*/
module.exports = function(app) {
var _Environments = {};
var path = require('../libraries/path');
var paths = require('../paths/paths');
config = require(path.join(paths.configurations, '/configurations.js'))(app);
var common = config.common,
server_prefix = common.s... |
J.$package("MUI",function(cm){
var $D = cm.dom,
$E = cm.event,
dragingHandler;
var isTouchDevice = cm.platform.touchDevice;
var startEvt = isTouchDevice ? "touchstart" : "mousedown";
var moveEvt = isTouchDevice ? "touchmove" : "mousemove";
var endEvt = isTouchDevice ? "touchend" : "mouseup";
var Slider = cm... |
var searchData=
[
['offsetposition',['offsetPosition',['../_bud_8kl.html#aec3ab6ea32656e6401eeaec90a671bd6',1,'Bud.kl']]],
['operator_20distancefitness_3c_3c_3c_20index_20_3e_3e_3e',['operator distanceFitness<<< index >>>',['../vegetation_op_8kl.html#ac2677b025f5be389d48177c2a3032e77',1,'vegetatio... |
// This test written in mocha+should.js
var should = require('./init.js');
var async = require('async');
var j = require('../'), db, User;
var ValidationError = j.ValidationError;
function getValidAttributes() {
return {
name: 'Anatoliy',
email: 'email@example.com',
state: '',
age: 26,
gender: '... |
module.exports = {
QFindOne: require('./lib/find/QFindOne').QFindOne,
QFindAll: require('./lib/find/QFindAll').QFindAll,
QFindList: require('./lib/find/QFindList').QFindList,
QFindValue: require('./lib/find/QFindValue').QFindValue,
};
|
/* global expect */
"use strict";
describe("Filter", function () {
beforeEach(module("app.filters"));
it("has a rangeTime filter", inject(function ($filter) {
expect($filter("rangeTime")).not.toBeNull();
}));
it("rangeTime should return array of numbers with fractions", inject(function (rang... |
/*! jQuery UI - v1.11.0 - 2014-06-26
* http://jqueryui.com
* Includes: core.js, widget.js, mouse.js, position.js, accordion.js, autocomplete.js, button.js, datepicker.js, dialog.js, draggable.js, droppable.js, effect.js, effect-blind.js, effect-bounce.js, effect-clip.js, effect-drop.js, effect-explode.js, effect-fade.j... |
const toRegExp = require('path-to-regexp');
function escape(text) {
return text.replace('\'', '\\\'').replace('\\', '\\\\');
}
/**
* Converts application routes from JSON to JavaScript. For example, a route like
*
* {
* "path": "/about",
* "page": "./pages/about"
* }
*
* becomes
*
* {
* ... |
/**
* @api {get} /markdown/:id Markdown
* @apiName GetMarkdown
* @apiGroup Markdown
* @apiVersion 0.6.0
* @apiDescription Enable markdown for all description fields.
*
* This **text** is in a __separate__ p.
*
* * List 1
* * List 2
*
* Multiline markdown text,
* output in one line.
*
* @apiParam {String}... |
import { enableForm, submitAndDisableForm } from 'lib/helpers/form-helpers';
require('jquery-ui/ui/effects/effect-shake');
function createSubmission(url) {
$.ajax({
url,
method: 'POST',
data: {},
}).done((data) => {
if (data.redirect !== undefined && data.redirect) {
window.location.href = d... |
/**
* This JS is only a first release while testing
* dynamic build of components for nodejs with
* express.
*
* This should in near future adopt the same
* developing architecture as
*
* http://github.com/component/component.io
*
* and
*
* http://github.com/hunterloftis/component-test
*
* It.
*/
var co... |
/*
* Number Utils
* A number is a js-number, e.g. 5.12
*/
define(function(require) {
var DEFAULT_TOLERANCE = 1e-9;
var EPSILON = Math.pow(2, -42);
var knumber = KhanUtil.knumber = {
DEFAULT_TOLERANCE: DEFAULT_TOLERANCE,
EPSILON: EPSILON,
is: function(x) {
return _.isNumber(x) && !_.isNaN(x);
... |
/**
@module ember
@submodule ember-htmlbars
*/
import Ember from "ember-metal/core"; // Ember.assert, Ember.deprecate
import { IS_BINDING } from "ember-metal/mixin";
import { fmt } from "ember-runtime/system/string";
import { get } from "ember-metal/property_get";
import CollectionView from "ember-views/views/collecti... |
/**
* Created by chriscai on 2014/10/16.
*/
var map = require('map-stream');
/**
* dispatcher
* @returns {Stream}
*/
var stream = map(function (data, fn) {
fn(null, data);
});
stream.write('asdfasdfasdfasdfadsf'); |
var _containsWith = require('./internal/_containsWith');
var _curry3 = require('./internal/_curry3');
var uniqWith = require('./uniqWith');
/**
* Combines two lists into a set (i.e. no duplicates) composed of those
* elements common to both lists. Duplication is determined according
* to the value returned by app... |
define({
"layerSelect": "Valige pildikiht",
"displayMeasureResultInPopup": "Kuva mõõtmise tulemused hüpikaknas",
"angularUnitSelect": "Vaikimisi mõõtühik nurkadele",
"linearUnitSelect": "Vaikimisi lineaarne mõõtühik",
"areaUnitSelect": "Pindala vaikeühik",
"displayOperationSelect": "Vali mõõtmistoimingud",
... |
YUI.add("gallery-graphics",function(a){},"gallery-2011.03.23-22-20",{requires:["dom","event-custom","base"]}); |
require('./basic')()
require('./lowlevel')()
require('./absuri')()
require('./ignore-callback')()
require('./ignore-params')()
require('./ignore-all')()
|
var _div$statics = ["id", "id2", "key", ""],
_div$statics2 = ["id", "id"];
function fn8(key4) {
elementOpen("div", "__uuid__0__", _div$statics2);
_div$statics[3] = key4;
elementVoid("div", key4, _div$statics);
return elementClose("div");
} |
// Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
// MIT License. See license.txt
// library to mange assets (js, css, models, html) etc in the app.
// will try and get from localStorge if latest are available
// depends on wn.versions to manage versioning
wn.require = function(items) {
if(typ... |
/* */
"format cjs";
"use strict";
var _interopRequireWildcard = function (obj) { return obj && obj.__esModule ? obj : { "default": obj }; };
var _interopRequire = function (obj) { return obj && obj.__esModule ? obj["default"] : obj; };
module.exports = traverse;
var TraversalContext = _interopRequire(require("./co... |
/*
* Creates the Experiments monaco class, used to work with application experiments
* ps: by default `Monaco.Experiments` uses Google Analytics to log experiment events
* to integrate it with other platforms check the docs.
*/
// make sure monaco is defined as the main object
var Monaco = this.Monaco = (this.... |
/**
* Test case for bin/leaf
* Runs with nodeunit.
*/
'use strict'
const bin = require.resolve('../../bin/coz')
const childProcess = require('child_process')
const assert = require('assert')
describe(() => {
it('Show help.', (done) => {
let spawned = childProcess.spawn(bin, [ '-h' ])
// spawned.stdout.p... |
Clazz.declarePackage ("J.viewer.binding");
Clazz.load (["J.viewer.binding.JmolBinding"], "J.viewer.binding.RasmolBinding", null, function () {
c$ = Clazz.declareType (J.viewer.binding, "RasmolBinding", J.viewer.binding.JmolBinding);
Clazz.makeConstructor (c$,
function () {
Clazz.superConstructor (this, J.viewer.bindin... |
// Copyright 2013 the V8 project authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of ... |
'use strict';
/**
* --------------------------------------------------------------------------
* Bootstrap (v4.0.0-beta): util.js
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* --------------------------------------------------------------------------
*/
var Util = function () {
... |
import assert from 'assert';
import React from 'react';
import { shallow } from 'enzyme';
import { DatagridHeaderCell } from './DatagridHeaderCell';
describe('<DatagridHeaderCell />', () => {
describe('sorting on a column', () => {
const defaultField = {
type: 'foo',
props: {},
... |
var fs = require('fs')
//write a blank file
module.exports = function(fullPath,cb){
fs.writeFile(fullPath,"","utf8",function(err){
if(err) console.log(err)
if(cb) cb()
})
}
|
var constants = require('../helpers/constants.js');
var private = {}, self = null,
library = null, modules = null;
function WithdrawalTransfer(cb, _library) {
self = this;
library = _library;
cb(null, self);
}
WithdrawalTransfer.prototype.create = function (data, trs) {
trs.recipientId = null;
trs.amount = dat... |
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc);
switch (arguments.length) {
case 2: return decorators.reduceRight(function(o, d) { r... |
(function ($) {
}(jQuery));
|
import { UPDATE_UPDATED_PAGE_INDEX, PAGE_FORCE_UPDATE } from 'constants/actionTypes'
export const updatePageIndex = payload => ({
type: UPDATE_UPDATED_PAGE_INDEX, payload
});
export const pageForceUpdate = payload => ({
type: PAGE_FORCE_UPDATE, payload
});
|
module.exports = {
up: function(migration, DataTypes, done) {
// add altering commands here, calling 'done' when finished
done()
},
down: function(migration, DataTypes, done) {
// add reverting commands here, calling 'done' when finished
done()
}
}
|
/**
* @fileoverview Avoid accessing template parent data
* @author Dominik Ferber
* @copyright 2016 Dominik Ferber. All rights reserved.
* See LICENSE file in root directory for full license.
*/
module.exports = {
meta: {
schema: [],
},
create: (context) => ({
CallExpression: (node) => {
if (
... |
var util = require("util");
var fs = require("fs");
var spawn = require("child_process").spawn;
var path = require("path");
var fileExtensionPattern;
var startChildProcess;
var noRestartOn = null;
var debug = true;
var verbose = false;
var ignoredPaths = {};
exports.run = run;
function run (args) {
var arg, next, w... |
/*global define*/
"use strict";
define([
"jquery",
"lodash",
"colors"],
function ($, _, Colors) {
var DESTROYED_COLOR = "#777";
return function () {
var statusTemplate =
"<li class=\"status\" data-id=\"<%= id %>\">" +
" <span class=\"idbox... |
function test() {
return null;
}
|
'use strict';
const Address = require('address-rfc2821').Address;
const fixtures = require('haraka-test-fixtures');
const stub_connection = fixtures.connection;
// var transaction = fixtures.transaction; // not yet sufficient
const transaction = require('../../transaction');
/**
* Creates a HMai... |
/* global describe, it, expect */
var utils = require('../lib/utils');
describe('utils', function() {
describe('#underscore', function() {
it('should preserve underscore strings', function() {
expect(utils.underscore('foo_bar')).to.equal('foo_bar');
});
it('should preserve underscore strings... |
process.on('custom:hello', function (callback) {
callback('hello world')
})
|
/// <reference path="../disposables/disposable.ts" />
var Rx;
(function (Rx) {
})(Rx || (Rx = {}));
(function () {
var s;
var d = s.schedule('state', function (sh, s) { return Rx.Disposable.empty; });
var d = s.scheduleFuture('state', 100, function (sh, s) { return Rx.Disposable.empty; });
var n = Rx.Sc... |
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.1.0
* @link http://www.ag-grid.com/
* @license MIT
*/
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extend... |
// ==========================================================================
// String utils
// ==========================================================================
import is from './is';
// Generate a random ID
export function generateId(prefix) {
return `${prefix}-${Math.floor(Math.random() * 10000)}`;
}
... |
const LoaderUtils = {
createFilesMap: function ( files ) {
const map = {};
for ( let i = 0; i < files.length; i ++ ) {
const file = files[ i ];
map[ file.name ] = file;
}
return map;
},
getFilesFromItemList: function ( items, onDone ) {
// TOFIX: setURLModifier() breaks when the file being l... |
/**
* Inspired from WireIt (https://github.com/neyric/wireit)
*/
YUI.add("wegas-teaching-arrow", function(Y) {
"use strict";
Y.TeachingArrow = function() {
Y.TeachingArrow.superclass.constructor.apply(this, arguments);
};
Y.TeachingArrow.NAME = "wegas-teaching-arrow";
Y.extend(Y.Teachin... |
import IndexedArray from 'ui/indexed_array';
import 'ui/agg_types/agg_params';
import AggTypesMetricsCountProvider from 'ui/agg_types/metrics/count';
import AggTypesMetricsAvgProvider from 'ui/agg_types/metrics/avg';
import AggTypesMetricsSumProvider from 'ui/agg_types/metrics/sum';
import AggTypesMetricsMedianProvider... |
import {assert} from 'chai'
import {describe, it} from 'mocha'
import steps from 'dummy/pods/tutorial/steps'
function verifyPropertyPresent (steps, property) {
const stepsMissingSlug = []
steps
.forEach((step) => {
if (!step[property]) {
stepsMissingSlug.push(step)
}
})
if (stepsMi... |
hljs.registerLanguage("dts",function(){"use strict";return function(e){var n={
className:"string",variants:[e.inherit(e.QUOTE_STRING_MODE,{
begin:'((u8?|U)|L)?"'}),{begin:'(u8?|U)?R"',end:'"',
contains:[e.BACKSLASH_ESCAPE]},{begin:"'\\\\?.",end:"'",illegal:"."}]},a={
className:"number",variants:[{
begin:"\\b(\\d+(\\.\\... |
/// <reference path="jquery-1.9.0.js" />
/// <reference path="jquery-ui-1.8.24.js" />
/// <reference path="jquery.validate.js" />
/// <reference path="jquery.validate.unobtrusive.js" />
/// <reference path="knockout-2.2.0.debug.js" />
/// <reference path="modernizr-2.6.2.js" />
|
/* jshint maxlen:200 */
describe('api/containPixel', function() {
var utHelper = window.utHelper;
var testCase = utHelper.prepare([
'echarts/chart/pie',
'echarts/chart/map',
'echarts/chart/scatter',
'echarts/chart/graph',
'echarts/component/geo',
'echarts/compo... |
/**
* Throbber.js
*
* Released under LGPL License.
* Copyright (c) 1999-2017 Ephox Corp. All rights reserved
*
* License: http://www.tinymce.com/license
* Contributing: http://www.tinymce.com/contributing
*/
/**
* This class enables you to display a Throbber for any element.
*
* @-x-less Throbber.less
* @c... |
/**
* @fileoverview Integration tests for the eslint.js executable.
* @author Teddy Katz
*/
"use strict";
const childProcess = require("child_process");
const fs = require("fs");
const assert = require("chai").assert;
const EXECUTABLE_PATH = require("path").resolve(`${__dirname}/../../bin/eslint.js`);
/**
* Retur... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.