code stringlengths 2 1.05M |
|---|
"use strict";
var invariant = require('react/lib/invariant');
var Preloaded = require('./lib/Preloaded');
var getComponentFingerprint = require('./lib/getComponentFingerprint');
var prefetchAsyncState = require('./lib/prefetchAsyncState');
var isAsyncComponent = require('./lib/i... |
// server.js
// where your node app starts
// init project
var express = require('express');
var app = express();
// we've started you off with Express,
// but feel free to use whatever libs or frameworks you'd like through `package.json`.
// http://expressjs.com/en/starter/static-files.html
app.use(express.static(... |
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'clipboard', 'nb', {
copy: 'Kopier',
copyError: 'Din nettlesers sikkerhetsinstillinger tillater ikke automatisk kopiering av tekst. Vennligst bruk ta... |
'use strict';
const common = require('../common');
const assert = require('assert');
const { Readable, Duplex, pipeline } = require('stream');
// Test that the callback for pipeline() is called even when the ._destroy()
// method of the stream places an .end() request to itself that does not
// get processed before th... |
import React from 'react';
import ReactDOM from 'react-dom';
import Root from './root';
ReactDOM.render(<Root />, document.getElementById('toolbox-test'));
|
// flow-typed signature: 4a64c2ee58dc3dd1bd3facdbbc7cd5de
// flow-typed version: <<STUB>>/eslint-config-airbnb_v^14.1.0/flow_v0.42.0
/**
* This is an autogenerated libdef stub for:
*
* 'eslint-config-airbnb'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to shar... |
/* Tabulator v4.0.2 (c) Oliver Folkerd */
var ResizeTable = function ResizeTable(table) {
this.table = table; //hold Tabulator object
this.binding = false;
this.observer = false;
};
ResizeTable.prototype.initialize = function (row) {
var table = this.table,
observer;
if (typeof ResizeObserver !== "undefine... |
require('./main');
require('./renderCollection');
|
/*!
* jQuery Form Plugin
* version: 2.64 (25-FEB-2011)
* @requires jQuery v1.3.2 or later
*
* Examples and documentation at: http://malsup.com/jquery/form/
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*/... |
// Take a JSON object and transform it into a [Pascal string](http://en.wikipedia.org/wiki/String_%28computer_science%29#Length-prefixed) stored in a buffer.
// The length prefix is big-endian because DEATH TO THE LITTLE ENDIAN LILLIPUTIANS!
function formatMessage(obj, eventEmitter) {
var str = JSON.stringify(obj);... |
asynctest(
'browser.tinymce.plugins.textpattern.UndoTextpatternTest',
[
'ephox.agar.api.GeneralSteps',
'ephox.agar.api.Keys',
'ephox.agar.api.Logger',
'ephox.agar.api.Pipeline',
'ephox.agar.api.Step',
'ephox.mcagar.api.TinyActions',
'ephox.mcagar.api.TinyApis',
'ephox.mcagar.api.Tiny... |
(function ($) {
$.Redactor.opts.langs['en'] = {
html: 'HTML',
video: 'Insert Video...',
image: 'Insert Image...',
table: 'Table',
link: 'Link',
link_insert: 'Insert Link ...',
unlink: 'Unlink',
formatting: 'Formatting',
paragraph: 'Paragraph',
quote: 'Quote',
code: 'Code',
header1: 'Header 1',
header2: 'He... |
import{Component,ChangeDetectionStrategy,ViewEncapsulation,Input,NgModule}from"@angular/core";import{CommonModule}from"@angular/common";class Avatar{constructor(){this.size="normal",this.shape="square"}containerClass(){return{"p-avatar p-component":!0,"p-avatar-image":null!=this.image,"p-avatar-circle":"circle"===this.... |
version https://git-lfs.github.com/spec/v1
oid sha256:df2b993dc306afa362654c590f2a2d09700cb52e8f19d5f683b8b9e418478991
size 1483
|
/** @license React v16.5.0
* react-dom-test-utils.production.min.js
*
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';var g=require("object-assign"),l=require("react"),m=req... |
module.exports = {
code: 'E_ADAPTER_NOT_COMPATIBLE',
inputs: {
adapterIdentity: {
example: 'sails-mysql',
required: true
},
datastoreIdentity: {
example: 'localmysql'
}
},
template:
'The `<%=adapterIdentity%>` adapter appears to be designed for an earlier version of ... |
module.exports = function (hljs) {
var SUBST = {
className: 'subst',
begin: '\\$\\{', end: '}',
keywords: 'true false null this is new super'
};
var STRING = {
className: 'string',
variants: [
{
begin: 'r\'\'\'', end: '\'\'\''
},
{
begin: 'r"""'... |
function prettyPrintAST(L, ast) {
return L.prettyPrintAST ?
L.prettyPrintAST(ast) :
stringify(ast);
}
function prettyPrintValue(L, ast) {
return L.prettyPrintValue ?
L.prettyPrintValue(ast) :
stringify(ast);
}
function prettyPrintJS(code) {
return js_beautify(code);
}
function stringify(va... |
define(['./unique'], function (unique) {
/**
* Concat multiple arrays and remove duplicates
*/
function union(arrs) {
return unique(Array.prototype.concat.apply([], arguments));
}
return union;
});
|
import isBlank from 'ember-metal/is_blank';
QUnit.module('Ember.isBlank');
QUnit.test('Ember.isBlank', function() {
let string = 'string';
let fn = function() {};
let object = { length: 0 };
equal(true, isBlank(null), 'for null');
equal(true, isBlank(undefined), 'for undefined');
equal(true, isBlank(''),... |
version https://git-lfs.github.com/spec/v1
oid sha256:e8cdc4974bc2a698e1ba1da313ca547c978c4e0abfe43358e4977b41ff3c644a
size 1479
|
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _default;
function _core() {
const data = require("@babel/core");
_core = function () {
return data;
};
return data;
}
const buildForAwait = (0, _core().template)(`
async function wrapper() {
var ITER... |
define('lodash/number', ['exports', 'lodash/number/inRange', 'lodash/number/random'], function (exports, _lodashNumberInRange, _lodashNumberRandom) {
'use strict';
exports['default'] = {
'inRange': _lodashNumberInRange['default'],
'random': _lodashNumberRandom['default']
};
}); |
var express = require('express');
var router = express.Router();
var dataProvider = require('../modules/data-provider.js');
router.get('/', function(request, response, next){
if (request.url ==='/favicon.ico')
{
console.log('Ignore facicon request...');
}
else
{
var get_params = request.query;
if (get_para... |
import React, {Component, PropTypes} from 'react';
import {isInner} from './timeUtils';
function calcAngle(value, base) {
value %= base;
const angle = 360 / base * value;
return angle;
}
function getStyles(props, context, state) {
const {hasSelected, type, value} = props;
const {inner} = state;
const {tim... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S15.5.4.7_A2_T3;
* @section: 15.5.4.7;
* @assertion: When length of searchString less than length of ToString(this) -1 returns;
* @description: Call "abcd".indexOf("abcdab",9... |
/*
Highcharts JS v6.1.2 (2018-08-31)
(c) 2014 Highsoft AS
Authors: Jon Arild Nygard / Oystein Moseng
License: www.highcharts.com/license
*/
(function(v){"object"===typeof module&&module.exports?module.exports=v:"function"===typeof define&&define.amd?define(function(){return v}):v(Highcharts)})(function(v){var H=f... |
/**
* @author tapio / http://tapio.github.com/
*
* Hue and saturation adjustment
* https://github.com/evanw/glfx.js
* hue: -1 to 1 (-1 is 180 degrees in the negative direction, 0 is no change, etc.
* saturation: -1 to 1 (-1 is solid gray, 0 is no change, and 1 is maximum contrast)
*/
THREE.HueSaturationShader =... |
module.exports = {
cookieSecret: 'my_secret'
};
|
/*!
* ui.js
* Copyright Mathias Bynens <http://mths.be/>
* Modified by John-David Dalton <http://allyoucanleet.com/>
* Available under MIT license <http://mths.be/mit>
*/
(function(window, document) {
/** Java applet archive path */
var archive = '../../nano.jar',
/** Google Analytics account id */
gaId ... |
/**
* Dependencies
*/
var compose = require('koa-compose')
, debug = require('debug')('koa-router')
, pathToRegexp = require('path-to-regexp');
/**
* Expose `Route`.
*/
module.exports = Route;
/**
* Initialize a new Route with given `method`, `path`, and `middleware`.
*
* @param {String|RegExp} path Path... |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.Rythm = factory());
}(this, (function () { 'use strict';
var classCallCheck = function (instance, Constructor) {
if (!(in... |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("./foundation.core"), require("./foundation.util.motion"), require("jquery"));
else if(typeof define === 'function' && define.amd)
define(["./foundation.core",... |
/*! jQuery UI - v1.10.4 - 2014-06-17
* http://jqueryui.com
* Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */
jQuery(function(t){t.datepicker.regional.fo={closeText:"Lat aftur",prevText:"<Fyrra",nextText:"Næsta>",currentText:"Í dag",monthNames:["Januar","Februar","Mars","Apríl","Mei",... |
var assert = require('assert')
var fs = require('fs')
var path = require('path')
var os = require('os')
var fse = require(process.cwd())
/* global afterEach, beforeEach, describe, it */
describe('jsonfile-integration', function () {
var TEST_DIR
beforeEach(function (done) {
TEST_DIR = path.join(os.tmpdir(), ... |
var gulp = require('gulp');
var stylus = require('gulp-stylus');
var autoprefixer = require('gulp-autoprefixer');
var rename = require('gulp-rename');
var minifycss = require('gulp-minify-css');
var browserSync = require('browser-sync');
var plumber = require('gulp-plumber');
var replace ... |
/** @jsx React.DOM */
assert = require('assert');
React = require('react/addons');
TestUtils = React.addons.TestUtils;
var Menu = require('../lib/components/Menu');
var MenuTrigger = require('../lib/components/MenuTrigger');
var MenuOptions = require('../lib/components/MenuOptions');
var MenuOption = require('../lib/co... |
/**
* @license
* Copyright Google LLC 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) {
global... |
define(['mout/function/timeout'], function(timeout){
describe('function/timeout', function(){
function doIt(){
this.a++;
}
function manipulate(value) {
this.a = value;
}
beforeEach(function() {
jasmine.Clock.useMock();
});
it('... |
/**
@module ember
@submodule ember-views
*/
import Ember from 'ember-metal/core'; // Ember.assert
import ContainerView from 'ember-views/views/container_view';
import View from 'ember-views/views/view';
import EmberArray from 'ember-runtime/mixins/array';
import { get } from 'ember-metal/property_get';
import { set } ... |
/*
Copyright (c) 2007-12, iUI Project Members
See LICENSE.txt for licensing terms
*/
// iUI Just In Time (JavaScript) Loader
//
// Based on work submitted by C.W. Zachary for Issue #128
// and Wayne Pan for Issue #102
//
// This is a work-in-progress and that's why it's in the "sandbox"
// This version should l... |
(function() {
this.Star = (function() {
function Star() {
$('.project-home-panel .toggle-star').on('ajax:success', function(e, data, status, xhr) {
var $starIcon, $starSpan, $this, toggleStar;
$this = $(this);
$starSpan = $this.find('span');
$starIcon = $this.find('i');
... |
// Copyright 2014 the V8 project authors. All rights reserved.
// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
// Flags: --allow-natives-syntax --harmony --harmony-proxies
var _subject = "foo";
var _pattern = "foo";
var _limit = 32;
%StringSplit(_subject, _pattern, _limit);
|
/**
* LawnchairAdaptorHelpers
* =======================
* Useful helpers for creating Lawnchair stores. Used as a mixin.
*
*/
var LawnchairAdaptorHelpers = {
// merging default properties with user defined args
merge: function(defaultOption, userOption) {
return (userOption == undefined || userOption == null) ... |
var result = 5
|> Math.pow(#, 2)
|> [ 10, 20, 30, 40, 50 ].filter(n => #
|> n > #
|> !#);
expect(result).toEqual([10, 20]);
|
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*
*/
'us... |
var fs = require('graceful-fs')
var path = require('path')
var mkdirp = require('mkdirp')
var rimraf = require('rimraf')
var test = require('tap').test
var common = require('../common-tap')
// ignore-scripts/package.json has scripts that always exit with non-zero error
// codes.
var pkg = path.resolve(__dirname, 'ig... |
import Ember from "ember";
function getComponentById(app, id) {
return app.__container__.lookup('-view-registry:main')[id];
}
const customHelpers = (function() {
Ember.Test.registerHelper('getComponentById', getComponentById);
})();
export default customHelpers;
|
import spreePdp from 'spree-ember-storefront/components/spree-pdp';
export default spreePdp;
|
iD.actions.AddMember = function(relationId, member, memberIndex) {
return function(graph) {
var relation = graph.entity(relationId);
if (isNaN(memberIndex) && member.type === 'way') {
var members = relation.indexedMembers();
members.push(member);
var joined = iD... |
/**
* @author zz85 / http://www.lab4games.net/zz85/blog
* Extensible curve object
*
* Some common of Curve methods
* .getPoint(t), getTangent(t)
* .getPointAt(u), getTagentAt(u)
* .getPoints(), .getSpacedPoints()
* .getLength()
* .updateArcLengths()
*
* This file contains following classes:
*
* -- 2d class... |
(function (factory) {
if (typeof module === 'object' && typeof module.exports === 'object') {
var v = factory(require, exports); if (v !== undefined) module.exports = v;
}
else if (typeof define === 'function' && define.amd) {
define(["require", "exports", '@angular/core', '../platform/platf... |
function var_export(mixed_expression, bool_return) {
// discuss at: http://phpjs.org/functions/var_export/
// original by: Philip Peterson
// improved by: johnrembo
// improved by: Brett Zamir (http://brett-zamir.me)
// input by: Brian Tafoya (http://www.premasolutions.com/)
// input by: Hans Henrik ... |
(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["json2csv"] = factory();
else
root["json... |
define([], function() {
return {
"PropertyPaneDescription": "Manage the settings of this Web Part",
"ViewGroupName": "View",
"NumberOfDocumentsFieldLabel": "Number of documents to show"
}
}); |
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... |
var grunt = require('grunt')
, rimraf = require('rimraf')
, s3 = require('../tasks/lib/s3').init(grunt)
, s3Config = grunt.config("s3")
, _ = grunt.util._
, async = grunt.util.async;
var common = module.exports = {
config: _.extend({}, s3Config.options, s3Config.test.options),
clean: function(cb) {
... |
/*!
* Copyright (c) 2012, Anaconda, Inc.
* 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 conditi... |
import {
moduleForModel,
test
} from 'ember-qunit';
moduleForModel('payment-method', 'PaymentMethod', {
// Specify the other units that are required for this test.
needs: []
});
test('it exists', function(assert) {
var model = this.subject();
// var store = this.store();
assert.ok(!!model);
});
|
var http = require('http');
var codes = http.STATUS_CODES;
module.exports = status;
// [Integer...]
status.codes = Object.keys(codes).map(function (code) {
code = ~~code;
var msg = codes[code];
status[code] = msg;
status[msg] = status[msg.toLowerCase()] = code;
return code;
});
// status codes for redirect... |
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
const TupleSet = require("./TupleSet");
/**
* @template {any[]} T
*/
class TupleQueue {
/**
* @param {Iterable<T>=} items The initial elements.
*/
constructor(items) {
/** @private @type {Tuple... |
function _templateObject8() {
const data = _taggedTemplateLiteralLoose([void 0], ["\\01"]);
_templateObject8 = function () {
return data;
};
return data;
}
function _templateObject7() {
const data = _taggedTemplateLiteralLoose(["left", void 0, "right"], ["left", "\\u{-0}", "right"]);
_templateObject... |
module.exports={A:{A:{"2":"K C G E A B YB"},B:{"1":"H","2":"D w Z I M"},C:{"1":"6 7 8","2":"0 1 WB AB F J K C G E A B D w Z I M H N O P Q R S T U V W X Y y a b c d e f L h i j k l m n o p q r s t u v z UB OB","132":"3","578":"5 x"},D:{"1":"0 1 3 5 6 7 8 t u v z x BB IB DB FB ZB GB","2":"F J K C G E A B D w Z I M H N O ... |
require("openurl").open("http://localhost:8008/index.html");
|
var url = require("url")
module.exports = authify
function authify (authed, parsed, headers) {
var c = this.conf.getCredentialsByURI(url.format(parsed))
if (c && c.token) {
this.log.verbose("request", "using bearer token for auth")
headers.authorization = "Bearer " + c.token
return null
}
if (a... |
jQuery(function($){$.ui.dialog.wiquery.regional.iw={okButton:"×?×ש×ר",cancelButton:"×××××",questionTitle:"ש×?××",waitTitle:"×?× ×? ××ת×",errorTitle:"ש×××?×",warningTitle:"×?××ר×"}}); |
var notify = require('gulp-notify');
/**
* Create a new Notification instance.
*/
var Notification = function() {
this.title = 'Laravel Elixir';
// If an argument is provided, then we'll
// assume they want to show a message.
if (arguments.length) {
return this.message(arguments[0]);
}
}... |
orion = {}; |
/*!
* jQuery JavaScript Library v@VERSION
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: @DATE
*/
(function (global, factory) {
if (typeof ... |
/*
Language: Julia REPL
Description: Julia REPL sessions
Author: Morten Piibeleht <morten.piibeleht@gmail.com>
Website: https://julialang.org
Requires: julia.js
The Julia REPL code blocks look something like the following:
julia> function foo(x)
x + 1
end
foo (generic function with 1 method)... |
hljs.registerLanguage("dust",function(e){return{aliases:["dst"],cI:!0,sL:"xml",c:[{cN:"template-tag",b:/\{[#\/]/,e:/\}/,i:/;/,c:[{cN:"name",b:/[a-zA-Z\.-]+/,starts:{eW:!0,relevance:0,c:[e.QSM]}}]},{cN:"template-variable",b:/\{/,e:/\}/,i:/;/,k:"if eq ne lt lte gt gte select default math sep"}]}}); |
/**
* @license Highcharts JS v6.0.6 (2018-02-05)
* Solid angular gauge module
*
* (c) 2010-2017 Torstein Honsi
*
* License: www.highcharts.com/license
*/
'use strict';
(function(factory) {
if (typeof module === 'object' && module.exports) {
module.exports = factory;
} else {
factory(High... |
global.root = __dirname;
var config = require('./server.json');
config.name = require('./package.json').name;
module.exports = require('rupert')(config); // Export for use by tools
if (require.main === module) {
module.exports.start(function(){});
}
|
/* eslint-env node */
module.exports = function(config) {
config.set({
// autoWatch, it works enabled or not. Probably defined by singleRun.
basePath: '',
browsers: ['ChromeSmall'],
customLaunchers: {
ChromeSmall: {
base: 'Chrome',
// Unfortunately it's not possible to hide bro... |
define({
root: ({
_widgetLabel: "Demonstracija",
label1: "Demonstracinis valdiklis.",
label2: "Galima konfigūruoti."
}),
"ar": 0,
"cs": 0,
"da": 0,
"de": 0,
"el": 0,
"es": 0,
"et": 0,
"fi": 0,
"fr": 0,
"he": 0,
"it": 0,
"ja": 0,
"ko": 0,
"lt": 0,
"lv": 0,
"nb": 0,
"nl"... |
//= require tinymce/preinit.js
//= require tinymce/tiny_mce_src.js
|
import mobileQuery from 'ghost/utils/mobile';
//Routes that extend MobileIndexRoute need to implement
// desktopTransition, a function which is called when
// the user resizes to desktop levels.
var MobileIndexRoute = Ember.Route.extend({
desktopTransition: Ember.K,
activate: function attachDesktopTransition(... |
angular.module('ui.bootstrap.typeahead', ['ui.bootstrap.position'])
/**
* A helper service that can parse typeahead's syntax (string provided by users)
* Extracted to a separate service for ease of unit testing
*/
.factory('typeaheadParser', ['$parse', function($parse) {
// 000001110000000... |
/**
* Defines a `Container` Class.
*
* Containers are activated based on the `showOn` setting for the container.
* The values are normalized to functions which accept an element and return a
* boolean; true means the container should be shown.
*
* For efficiency, we group all containers that have the same normal... |
/* jslint newcap:true */
define(function (require, exports, module) {
"use strict";
var Map = require("thirdparty/immutable").Map;
var _ui;
var _project;
var _url;
/**
* UI state (fontSize, theme) that comes in from the hosting
* app on startup.
*/
exports.ui = function(pro... |
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'basicstyles', 'sr-latn', {
bold: 'Podebljano',
italic: 'Kurziv',
strike: 'Precrtano',
subscript: 'Indeks',
superscript: 'Stepen',
underline: 'Po... |
dragFixedSlider = document.getElementById('drag-fixed');
noUiSlider.create(dragFixedSlider, {
start: [ 40, 60 ],
behaviour: 'drag-fixed',
connect: true,
range: {
'min': 20,
'max': 80
}
});
|
'use strict';
describe('Scope', function() {
beforeEach(module(provideLog));
describe('$root', function() {
it('should point to itself', inject(function($rootScope) {
expect($rootScope.$root).toEqual($rootScope);
expect($rootScope.hasOwnProperty('$root')).toBeTruthy();
}));
it('should ... |
(function () {
'use strict';
/**
* Create a cached version of a pure function.
*/
function cached (fn) {
var cache = Object.create(null);
return function cachedFn (str) {
var hit = cache[str];
return hit || (cache[str] = fn(str))
}
}
/**
* Hyphenate a camelCase string.
*/
var hyphenate = cached(func... |
version https://git-lfs.github.com/spec/v1
oid sha256:5678158850a936beda38f5b42c8f15609a5188c30c880b899db3ddc57a5d22a2
size 730
|
// server.js (Express 4.0)
var express = require('express'),
app = express();
// SERVER CONFIGURATION
app.use(express.static(__dirname + '/../')); // set the static files location /public/img will be /img for users
app.listen(8001);
console.log('To preview gifshot, go to localhost:8001'); |
/*
* 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.
*/
... |
'use strict';
const path = require('path');
const serveStatic = require('feathers').static;
const favicon = require('serve-favicon');
const compress = require('compression');
const cors = require('cors');
const feathers = require('feathers');
const configuration = require('feathers-configuration');
const hooks = requi... |
/// Copyright (c) 2009 Microsoft Corporation
///
/// 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 conditions and
/// ... |
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
var path = require("path");
var AMDRequireDependency = require("./AMDRequireDependency");
var AMDRequireItemDependency = require("./AMDRequireItemDependency");
var AMDRequireArrayDependency = require("./AMDRequire... |
/*
This file is part of Ext JS 3.4
Copyright (c) 2011-2013 Sencha Inc
Contact: http://www.sencha.com/contact
GNU General Public License Usage
This file may be used under the terms of the GNU General Public License version 3.0 as
published by the Free Software Foundation and appearing in the file LICENSE included in... |
var loadCredentials = require("../../lib/credentials/load");
var fs = require("fs");
describe("loadCredentials", function() {
var pfx, cert, key;
before(function () {
pfx = fs.readFileSync("test/support/initializeTest.pfx");
cert = fs.readFileSync("test/support/initializeTest.crt");
key = fs.readFileSync("test... |
/* http://keith-wood.name/calendars.html
Russian localisation for calendars datepicker for jQuery.
Written by Andrew Stromnov (stromnov@gmail.com). */
(function($) {
'use strict';
$.calendarsPicker.regionalOptions.ru = {
renderer: $.calendarsPicker.defaultRenderer,
prevText: '<Пред',
prevStat... |
(function() {
//this is empty for mock sesions
})(); |
'use strict';
/* jasmine specs for directives go here */
describe('timer directive', function() {
beforeEach(module('timer'));
describe('default timer', function() {
it('should run timer with 1 millisecond interval', function() {
inject(function($compile, $rootScope, $browser, $timeout, $exceptionHand... |
exports.BattleFormats = {
pokemon: {
effectType: 'Banlist',
validateSet: function(set, format) {
var template = this.getTemplate(set.species);
var problems = [];
if (set.species === set.name) delete set.name;
if (template.gen > this.gen) {
problems.push(set.species+' does not exist in gen '+this.g... |
/**
* @file
* This file contains most of the code for the configuration page.
*/
(function ($, window, drupalSettings, stlib_picker) {
'use strict';
// Create the drupal ShareThis object for clean code and namespacing:
window.drupal_st = {
// These are handlerd for updating the widget pic class.
mul... |
beforeEach(function() {
if (typeof jQuery != 'undefined') {
spyOn(jQuery.ajaxSettings, 'xhr', true).andCallFake(function() {
var newXhr = new FakeXMLHttpRequest();
ajaxRequests.push(newXhr);
return newXhr;
});
}
if (typeof Prototype != 'undefined') {
spyOn(Ajax, "getTransport", tru... |
/*************************************************************
*
* MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/SuperAndSubscripts.js
*
* Copyright (c) 2009-2014 The MathJax Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in complian... |
/**
* Get CSS computed property of the given element
* @method
* @memberof Popper.Utils
* @argument {Eement} element
* @argument {String} property
*/
function getStyleComputedProperty(element, property) {
if (element.nodeType !== 1) {
return [];
}
// NOTE: 1 DOM access here
const css = window.getCompu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.