code stringlengths 2 1.05M |
|---|
/* eslint-disable no-console, func-names, no-var */
var bodyParser = require('body-parser');
var webpack = require('webpack');
var WebpackDevServer = require('webpack-dev-server');
var pug = require('pug');
var sleep = require('sleep');
var config = require('./webpack.client.express.config');
var uuid = require('node-u... |
var dispatcher = require( 'dispatchy' );
var merge = require( 'extend' );
function getErrorResults( results ) {
var filtered = [ ];
results.forEach( function ( result ) {
var filteredMessages = result.messages.filter( function ( message ) {
return message.severity === 2;
} );
if ( filteredMessa... |
import iconHelper from './iconHelper';
import icons from './icons';
import css from './Icon.css';
export default iconHelper(icons, css);
|
var tr = require("qunit");
var callback = function(err, report) {
console.dir(report);
}
tr.run({
code: "./linq.js",
tests: "./test/action.js"
}, callback);
tr.run({
code: "./linq.js",
tests: "./test/aggregate.js"
}, callback);
tr.run({
code: "./linq.js",
tests: "./test/arrayEnumerable.j... |
/**!
*
* Copyright (c) 2015-2017 Cisco Systems, Inc. See LICENSE file.
* @private
*/
import {clone} from 'lodash';
import {Interceptor} from '@ciscospark/http-core';
const requestHeaderName = `cisco-no-http-redirect`;
const responseHeaderName = `cisco-location`;
/**
* @class
*/
export default class RedirectInt... |
'use strict';
var React = require('react');
var mui = require('material-ui');
var SvgIcon = mui.SvgIcon;
var ActionViewAgenda = React.createClass({
displayName: 'ActionViewAgenda',
render: function render() {
return React.createElement(
SvgIcon,
this.props,
React.createElement('path', { d: ... |
module.exports = class {
constructor(configs) {
this.configs = configs
}
get(key) {
if (!key) {
return this.configs
}
return this.configs[key]
}
set(key, value) {
this.configs[key] = value
}
}
|
/**
* @module cocos2dx_extension
*/
var cc = cc || {};
/**
* @class Scale9Sprite
*/
cc.Scale9Sprite = {
/**
* @method resizableSpriteWithCapInsets
* @param {rect_object} arg0
* @return {cc.Scale9Sprite}
*/
resizableSpriteWithCapInsets : function (
rect
)
{
return cc.Scale9Sprite;
},
/**
* @method setIn... |
/*
* jQuery postMessage Transport Plugin
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2011, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
/* global define, require, window, document */
;(function (factory) ... |
import {
changeLocale,
} from '../actions';
import {
CHANGE_LOCALE,
} from '../constants';
describe('LanguageProvider actions', () => {
describe('Change Local Action', () => {
it('has a type of CHANGE_LOCALE', () => {
const expected = {
type: CHANGE_LOCALE,
locale: 'de',
};
... |
'use strict';
describe('NgModelController', function() {
/* global NgModelController: false */
var ctrl, scope, ngModelAccessor, element, parentFormCtrl;
beforeEach(inject(function($rootScope, $controller) {
var attrs = {name: 'testAlias', ngModel: 'value'};
parentFormCtrl = {
$$setPending: jasmi... |
/*
* Simple JavaScript Inheritance
* By John Resig http://ejohn.org/
* MIT Licensed.
*/
define(function( ) {
var initializing = false,
fnTest = /xyz/.test(function( ) { xyz; }) ? /\b_super\b/ : /.*/;
// Create a new Class that inherits from this class
Object.subClass = function( prop ) {
var _super = this... |
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.1.1
* @link http://www.ag-grid.com/
* @license MIT
*/
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var CellPositionUtils = /** @class */ (function () {... |
// info about each config option.
var debug = process.env.DEBUG_NOPT || process.env.NOPT_DEBUG
? function () { console.error.apply(console, arguments) }
: function () {}
var url = require("url")
, path = require("path")
, Stream = require("stream").Stream
, abbrev = require("abbrev")
module.expo... |
/* eslint max-len: 0 */
import React from 'react';
import TextFilter from './text-filter';
import TextFilterWithDefaultValue from './text-filter-with-default-value';
import TextFilterWithCondition from './text-filter-with-eq-condition';
import ProgrammaticallyTextFilter from './text-filter-programmatically';
import Reg... |
define({
"layerSelect": "Velg bildelaget",
"displayMeasureResultInPopup": "Vis måleresultater i en popup",
"angularUnitSelect": "Standard vinkelenhet",
"linearUnitSelect": "Standard lineærenhet",
"areaUnitSelect": "Standard arealenhet",
"displayOperationSelect": "Velg måleoperasjoner",
"errorSectionMessag... |
/**
* Module dependencies.
*/
var _ = require('underscore');
var debug = require('debug')('auth0-lock:mode-signup');
var $ = require('../bonzo-augmented');
var Emitter = require('events').EventEmitter;
var create = require('../object-create');
var stop = require('../stop-event');
var bind = require('../bind');
var t... |
import keymirror from 'keymirror';
import app from '../../app.json';
export const AuthSteps = {
PHONE_WAIT: 1,
CODE_WAIT: 2,
SIGNUP_NAME_WAIT: 3,
COMPLETED: 4
};
export const ActionTypes = keymirror({
APP_HIDDEN: null,
APP_VISIBLE: null,
AUTH_SMS_REQUEST_SUCCESS: null,
AUTH_SMS_REQUEST_FAILURE: null,... |
import $ from 'jquery';
import uiModules from 'ui/modules';
let module = uiModules.get('kibana');
module.directive('kbnInfiniteScroll', function () {
return {
restrict: 'E',
scope: {
more: '='
},
link: function ($scope, $element, attrs) {
let $window = $(window);
let checkTimer;
... |
require('../../support/spec_helper');
describe("Cucumber.Ast.Step", function() {
var Cucumber = requireLib('cucumber');
var step, keyword, name, uri, line;
beforeEach(function() {
name = createSpy("name");
keyword = createSpy("keyword");
uri = createSpy("uri");
line ... |
var Hoek = require('hoek'),
Hapi = require('hapi'),
url = require('url'),
npmHumans = require("npm-humans");
exports.register = function(plugin, options, next) {
plugin.ext('onPreHandler', function(request, next) {
if (request.method !== "post") {
return next();
}
if (request.payload... |
'use strict';
const { isWindows } = require('../common');
const assert = require('assert');
const url = require('url');
function testInvalidArgs(...args) {
for (const arg of args) {
assert.throws(() => url.fileURLToPath(arg), {
code: 'ERR_INVALID_ARG_TYPE'
});
}
}
// Input must be string or URL
test... |
// Copyright 2011 The Closure Library Authors. 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 requ... |
var await = require('./src/await');
module.exports = await;
|
/*jslint node: true */
'use strict';
// Gulp
var gulp = require('gulp');
// var argv = require('yargs').argv;
// Node
var path = require('path');
var fs = require('fs');
var argv = require('yargs').argv;
// Tasks
var tasks = {};
tasks.default = [];
tasks.watch = [];
// Config
var config ... |
// ** Handlebars helpers **
Handlebars.registerHelper('eachWithRank', function(items, options) {
// not used, forces multiple renders
// note: cannot use this because it would delete and recreate all nodes
items.rewind();
var out = '';
items.forEach(function(item, i){
var key = 'Branch-' + i;
out = o... |
'use strict';
const Address = require('address-rfc2821').Address;
const fixtures = require('haraka-test-fixtures');
function _set_up (done) {
this.plugin = new fixtures.plugin('rcpt_to.in_host_list');
this.plugin.inherits('rcpt_to.host_list_base');
this.plugin.cfg = {};
this.plugin.host_list... |
version https://git-lfs.github.com/spec/v1
oid sha256:585dddbcbca1fe235271ec95cea75834921ea6462ec79e716e4d84f57ec9c9ad
size 733
|
/**
* Definition for a binary tree node.
* function TreeNode(val, left, right) {
* this.val = (val===undefined ? 0 : val)
* this.left = (left===undefined ? null : left)
* this.right = (right===undefined ? null : right)
* }
*/
/**
* @param {TreeNode} root
* @return {TreeNode}
*/
var increasingBST =... |
'use strict';
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": [
"\u0635",
"\u06... |
// xhr 上传图片
_e(function (E, $) {
if (!window.FileReader || !window.FormData) {
// 如果不支持html5的文档操作,直接返回
return;
}
E.plugin(function () {
var editor = this;
var config = editor.config;
var uploadImgUrl = config.uploadImgUrl;
var uploadTimeout = config.uploadT... |
import PathHoister from "./lib/hoister";
import NodePath from "./index";
import * as t from "../../types";
/**
* Description
*/
export function insertBefore(nodes) {
this._assertUnremoved();
nodes = this._verifyNodeList(nodes);
if (this.parentPath.isExpressionStatement() || this.parentPath.isLabeledStatemen... |
/*!
* jQuery JavaScript Library v1.10.2 -dimensions
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-07-07T16:53Z
*/
(function( window, undefi... |
const { addProp } = require("../lib");
describe("addProp", () => {
it("should not affect original object", () => {
const obj = {
name: "Mark",
age: "33"
};
// Ignoring return value since only evaluating
// that original target is not affected.
addProp(obj, "address", "Main Street 1"... |
var express = require('express');
var app = express();
var port = 3000;
app.get('/', function(req, res) {
console.log("VISITED root");
console.log(__dirname);
res.sendFile(__dirname + '/public/barchart.html');
});
app.listen(port, function(req, res) {
console.log("App started at localhost:" + port);... |
const { fork } = require('child_process');
const Transport = require('./transport');
const { inputFD, outputFD, syncFD } = require('./constants');
const { IPCProxy } = require('../../../../lib/services/utils/ipc/proxy');
class AsyncServiceHost {
constructo... |
// es5 polyfills, powered by es5-shim
require("es5-shim")
// es6 polyfills, powered by babel
require("babel/polyfill")
var Promise = require('es6-promise').Promise
// just Node?
// var fetch = require('node-fetch')
// Browserify?
// require('whatwg-fetch') //--> not a typo, don't store as a var
// other stuff that w... |
'use strict';
exports.BattleScripts = {
pokemon: {
formeChange: function (template, dontRecalculateStats) {
template = this.battle.getTemplate(template);
if (!template.abilities) return false;
this.illusion = null;
this.template = template;
this.types = template.types;
this.addedType = '';
i... |
/**
* Copyright (c) ActiveState 2013 - ALL RIGHTS RESERVED.
*/
if (typeof define !== 'function') { var define = require('amdefine')(module) }
define([
'underscore',
'./collection'],
function (_, Collection) {
var routes = function (api) {
this.api = api;
this.col... |
define(function (require) {
'use strict';
var zrUtil = require('zrender/core/util');
var graphic = require('../../util/graphic');
var helper = require('./helper');
var BAR_BORDER_WIDTH_QUERY = ['itemStyle', 'normal', 'barBorderWidth'];
// FIXME
// Just for compatible with ec2.
zrUtil... |
var expect = require('chai').expect;
var handlers = require('../lib/handlers');
describe('handlers.proxyError(err, req, res, proxyOptions)', function () {
var mockError = {
code : 'ECONNREFUSED'
};
var mockReq = {
headers : {
host : 'localhost:3000'
},
url : '... |
var gulp = require('gulp');
var paths = require('../paths');
var browserSync = require('browser-sync');
var jade = require('gulp-jade');
var less = require('gulp-less');
var path = require('path');
var moment = require('moment');
var colors = require('colors');
var del = require('del');
var runSequence = require('run-s... |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
/... |
var five = require("../lib/johnny-five.js"),
sinon = require("sinon"),
MockFirmata = require("./mock-firmata"),
Board = five.Board,
Led = five.Led;
function newBoard() {
return new Board({
io: new MockFirmata(),
debug: false,
repl: false
});
}
exports["Led - Digital"] = {
setUp: function(don... |
/*
* Sortable plugin.
*
* Documentation: ../docs/drag-sort.md
*
* Require:
* - sortable/jquery-sortable
*/
+function ($) { "use strict";
var Base = $.oc.foundation.base,
BaseProto = Base.prototype
var Sortable = function (element, options) {
this.$el = $(element)
this.options... |
'use strict';
const nodeVersion = Number(process.version.match(/^v(\d+\.\d+)\./)[1]);
// only node >= 7.6 support async function without flags
if (nodeVersion >= 7.6) {
require('./_async');
}
|
// creates a completely sortable table
// a_col_names should be an array of names for all the columns
// a_rows should be an array of rows, and each row should be an array of data
// wt_class can be either null,
// a classname to add to the rows,
// or an array of classnames to add (first for the table, second ... |
/**
* Module dependencies.
*/
var passport = require('passport')
, openid = require('openid')
, util = require('util')
, BadRequestError = require('./errors/badrequesterror')
, InternalOpenIDError = require('./errors/internalopeniderror');
/**
* `Strategy` constructor.
*
* The OpenID authentication strat... |
/*
@license
dhtmlxScheduler v.4.3.1
This software is covered by GPL license. You also can obtain Commercial or Enterprise license to use it in non-GPL project - please contact sales@dhtmlx.com. Usage without proper license is prohibited.
(c) Dinamenta, UAB.
*/
scheduler.config.active_link_view="day",scheduler... |
var
express = require('express'),
app = express(),
poet = require('../lib/poet')(app);
poet.init().then(function () {
// initialized
});
app.set('view engine', 'jade');
app.set('views', __dirname + '/views');
app.use(express.static(__dirname + '/public'));
app.use(app.router);
app.get('/', function (req, res... |
/*!
* jQuery JavaScript Library v2.0.0 -sizzle,-wrap,-event-alias,-effects,-dimensions,-deprecated
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: ... |
/**
* @license
* v1.3.3
* MIT (https://github.com/pnp/pnpjs/blob/master/LICENSE)
* Copyright (c) 2019 Microsoft
* docs: https://pnp.github.io/pnpjs/
* source: https://github.com/pnp/pnpjs
* bugs: https://github.com/pnp/pnpjs/issues
*/
import { extend, objectDefinedNotNull, getAttrValueFromString, jsS, hOP, comb... |
var sep = require('path').sep;
var stripAnsi = require('strip-ansi');
var expect = require('chai').expect;
var stackParser = require('error-stack-parser');
function assertStack (err, expected) {
// HACK: stackParser can't handle empty stacks correctly
// (it treats error messages as stack frame... |
/**
* Cursor for XY chart
*/
import { __extends } from "tslib";
/**
* ============================================================================
* IMPORTS
* ============================================================================
* @hidden
*/
import { Cursor } from "./Cursor";
import { Sprite } ... |
import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import * as React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import { chainPropTypes } from '@material-ui/utils';
import withSty... |
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _extends from "@babel/runtime/helpers/esm/extends";
import { formatMuiErrorMessage as _formatMuiErrorMessage } from "@material-ui/utils";
/* eslint-disable jsx-a11y/click-events-have-key-events, jsx-a11y/no-stat... |
/**
* rcmBlockEditorNoopFactory
*
* @param {RcmAdminPlugin} pluginHandler
* @constructor
*/
var rcmBlockEditorNoopFactory = function (pluginHandler) {
return new RcmAdminPluginEditJs(pluginHandler);
};
|
var drain = exports.drain = function (read, op, done) {
;(function next() {
var loop = true, cbed = false
while(loop) {
cbed = false
read(null, function (end, data) {
cbed = true
if(end) {
loop = false
done && done(end === true ? null : end)
}
e... |
window.es6Example.internationalization = {};
window.es6Example.internationalization.code =
`let l10nDE = new Intl.Collator("de"); // German
let l10nSV = new Intl.Collator("sv"); // Sweden
/* Language sensitive string comparison using Collator */
// German 'ä' sorts with a
// Swedish 'ä' sorts after z
console.log(l10nD... |
// An extremely simple app that accepts uploaded files
// and stores them in either a local folder or s3,
// depending on which backend you choose.
var express = require('express');
var uploadfs = require('./uploadfs.js')();
// For the local backend
var uploadsPath = __dirname + '/public/uploads';
var uploadsLocalUrl... |
/**
* Gets the current browser dimensions (width, height, scroll positions)
*
* @param {Window} window The browser window.
* @param {document} document The browser document.
* @return {Object} The dimensions of the browser.
*/
export default function getBrowserDimensions(window, document) {
const browserMeasures = {
... |
'use strict';
var app = angular.module('myApp.distros.services', ['ngResource',]);
app.factory('Distributor', ['$resource', 'API_END_POINT',
function($resource, API_END_POINT){
return $resource(API_END_POINT + '/distributors/:id',
{
},
{
get: {
method: 'GET',
isArray: fal... |
function pbkdf2_hmac_sha512_constructor ( options ) {
options = options || {};
if ( !( options.hmac instanceof hmac_sha512_constructor ) )
options.hmac = get_hmac_sha512_instance();
pbkdf2_constructor.call( this, options );
return this;
}
function pbkdf2_hmac_sha512_generate ( salt, count, l... |
import { Resource } from '../api-resource';
export default class ContentSummaryLogResource extends Resource {
static resourceName() {
return 'contentsummarylog';
}
static idKey() {
return 'pk';
}
}
|
import buildmessage from "../utils/buildmessage.js";
import {
pathJoin,
statOrNull,
writeFile,
unlink,
} from "../fs/files.js";
const INSTALL_JOB_MESSAGE = "installing npm dependencies";
export function install(appDir) {
const packageJsonPath = pathJoin(appDir, "package.json");
const needTempPackageJson =... |
/**
* This file is part of Noder.io.
*
* (c) Nicolas Tallefourtane <dev@nicolab.net>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code
* or visit http://noder.io.
*
* @author Nicolas Tallefourtane <dev@nicolab.net>
*/
'use strict';
... |
/*
* Copyright (c) 2014 Robin Appelman <icewind@owncloud.com>
*
* This file is licensed under the Affero General Public License version 3
* or later.
*
* See the COPYING-README file.
*
*/
(function () {
var addExternalShare = function (remote, token, owner, name, password) {
return $.post(OC.generateUrl('app... |
builder=(function(){
var state={
editing:false,
$node:false,
data:{
x:0,
y:0,
rotate:0,
scale:0
}
},
selection = [],
config={
rotation:0,
rotateStep:1,
scaleStep:0.02,
visualScaling:10,
redrawFunction:false,
setTransformationCallback:false
},
de... |
// Copyright 2006 The Closure Library Authors. 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
//
// Unl... |
var kunstmaanbundles = kunstmaanbundles || {};
kunstmaanbundles.pagepartEditor = (function(window) {
var events = {
add: [],
edit: [],
delete: []
};
var init, addPagePart, editPagePart, deletePagePart, movePagePartUp, movePagePartDown, subscribeToEvent, unSubscribeToEvent, execute... |
/*
* A collection of commits in a repository.
*
* This is expected to be used in an ephemeral manner to get a list of commits
* from a given start point (usually corresponding to some branch in the
* repository).
*/
RB.RepositoryCommits = RB.BaseCollection.extend({
model: RB.RepositoryCommit,
/*
* I... |
var _ = require("lodash");
var Msg = require("../../models/msg");
module.exports = function(irc, network) {
var client = this;
irc.on("mode", function(data) {
var chan = _.findWhere(network.channels, {name: data.target});
if (typeof chan !== "undefined") {
setTimeout(function() {
irc.write("NAMES " + data... |
/* ==============================================
Parallax
=============================================== */
( function( $ ) {
// Setup variables
$window = $(window);
$slide = $('.homeSlide');
$body = $('body');
//FadeIn all sections
$body.imagesLoaded( ... |
'use strict';
var writeIEEE754 = require('../float_parser').writeIEEE754,
Long = require('../long').Long,
Map = require('../map'),
Binary = require('../binary').Binary;
var normalizedFunctionString = require('./utils').normalizedFunctionString;
// try {
// var _Buffer = Uint8Array;
// } catch (e) {
// _Buf... |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... |
// @flow
import * as semver from 'semver';
type VersionRange = '>=' | '<=';
export type Version = {|
range?: VersionRange,
major: number | 'x',
minor: number | 'x',
patch: number | 'x',
prerel: null | string,
upperBound?: Version, // TODO: rename to otherBound
|};
export function emptyVersion(): Version ... |
var masterKey = "MyKey";
var host = "MyHost";
exports.host = host;
exports.masterKey = masterKey;
|
// @flow
const untyped = require('./lib/untyped');
let x : any = 3; // explicit
let y : Function = {}; // explicit
let z : Object = {}; // explicit
let a = x; // explicit
let b = z.f1; // implicit
let c = y(3); // implicit
let u = untyped.f1; // implicit
let v = untyped; // implicit
let unsound1 = (() => {}).constr... |
import {
moduleForModel,
test
} from 'ember-qunit';
import { stubRequest } from 'ember-cli-fake-server';
import modelDeps from '../../support/common-model-dependencies';
import Ember from 'ember';
const { run } = Ember;
const TEST_RELOAD_RETRY_DELAY = 10;
moduleForModel('vhost', 'model:vhost', {
// Specify the ... |
// Copyright 2013 Traceur 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 law or agreed ... |
/* ***** BEGIN LICENSE BLOCK *****
* Distributed under the BSD license:
*
* Copyright (c) 2010, Ajax.org B.V.
* 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 so... |
// Write a function arrayToList that builds up a data structure
// like the previous one when given [1, 2, 3] as argument
var array = [1,2,3];
function arrayToList(array){
var list = null;
for(var i = array.length-1; i >= 0; i--){
list = {value: array[i], next: list}
}
return list; // Mais que renvois list ?... |
//>>built
define("dojox/image/Gallery",["dojo","dijit","dojox","dojo/require!dojo/fx,dijit/_Widget,dijit/_Templated,dojox/image/ThumbnailPicker,dojox/image/SlideShow"],function(_1,_2,_3){
_1.provide("dojox.image.Gallery");
_1.experimental("dojox.image.Gallery");
_1.require("dojo.fx");
_1.require("dijit._Widget");
_1.re... |
var redis = require('redis');
var client = redis.createClient(6379, '127.0.0.1');
client.on('error', function (err) {
console.log('Error ' + err);
});
client.set('color', 'red', redis.print);
client.get('color', function(err, value) {
if (err) throw err;
console.log('Got: ' + value);
});
client.hmset('camping'... |
function onGLC(glc) {
glc.loop();
// glc.size(400, 400);
// glc.setDuration(5);
// glc.setFPS(20);
// glc.setMode("single");
// glc.setEasing(false);
// glc.setMaxColors(256);
var list = glc.renderList,
width = glc.w,
height = glc.h;
// doesn't really contain ALL sha... |
version https://git-lfs.github.com/spec/v1
oid sha256:4fb97fa2b2859706a915fe53490d53d6991bce9e8b5fb5b90af6ef71ce53809a
size 4362
|
increment = require('./increment')
value += increment
|
(function () {
// Basil
var Basil = function (options) {
return Basil.utils.extend({}, Basil.plugins, new Basil.Storage().init(options));
};
// Version
Basil.version = '0.4.1';
// Utils
Basil.utils = {
extend: function () {
var destination = typeof arguments[0] === 'object' ? arguments[0] : {};
for (... |
/*!
* Angular Material Design
* https://github.com/angular/material
* @license MIT
* v0.11.0-master-f04f094
*/
function mdCardDirective(e){return{restrict:"E",link:function(r,a,i){e(a)}}}goog.provide("ng.material.components.card"),goog.require("ng.material.core"),angular.module("material.components.card",["materia... |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'forms', 'cs', {
button: {
title: 'Vlastnosti tlačítka',
text: 'Popisek',
type: 'Typ',
typeBtn: 'Tlačítko',
typeSbm: 'Odeslat',... |
"use strict";
const HTMLElementImpl = require("./HTMLElement-impl").implementation;
const closest = require("../helpers/traversal").closest;
class HTMLButtonElementImpl extends HTMLElementImpl {
constructor(args, privateData) {
super(args, privateData);
this._eventDefaults.click = function (event) {
... |
if (wysihtml5.browser.supported()) {
module("wysihtml5.Editor.commands", {
setup: function() {
this.editableArea1 = document.createElement("div");
this.editableArea1.id = "wysihtml5-test-editable1";
this.editableArea1.className = "wysihtml5-test-class1";
this.editableAr... |
/*
* Copyright (c) 2013 - present Adobe Systems Incorporated. All rights reserved.
*
* 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
* ... |
var express = require('../')
, request = require('supertest');
describe('res', function(){
describe('.location(url)', function(){
it('should set the header', function(done){
var app = express();
app.use(function(req, res){
res.location('http://google.com').end();
});
request(... |
/* Copyright (c) 2014 Titanium I.T. LLC - See LICENSE.txt for license */
"use strict";
var fs = require("fs");
var path = require("path");
var browserify = require("browserify");
exports.bundle = function(config, success, failure) {
var b = browserify(config.options);
b.add(path.resolve(config.entry));
b.bundle(f... |
// TODO: Remove from `core-js@4`
require('../modules/es.string.replace-all');
|
/**
* @fileoverview A rule to disallow duplicate name in class members.
* @author Toru Nagashima
* @copyright 2015 Toru Nagashima. All rights reserved.
*/
"use strict";
//------------------------------------------------------------------------------
// Rule Definition
//-------------------------------------------... |
import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
var _excluded = ["children", "weight", "Component"];
import { createScopedElement } from "../../../lib/jsxRuntime";
import { usePlatform } from "../../../hooks/usePlatform";
impo... |
if (true) {
console.log(true);
} else{
console.log(false);
}
|
var assert = require('chai').assert;
var expect = require('chai').expect;
var should = require('chai').should();
var csv = require('../src/jquery.csv.js');
var fixtures = require('./fixtures/fixtures.js');
describe('core:', function () {
describe('toArray', function () {
it ('should be able to parse an en... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.