code stringlengths 2 1.05M |
|---|
nv.models.lineWithFocusChart = function() {
"use strict";
//============================================================
// Public Variables with Default Settings
//------------------------------------------------------------
var lines = nv.models.line()
, lines2 = nv.models.line()
... |
import Mmenu from './../oncanvas/mmenu.oncanvas';
import OPTIONS from './options';
import CONFIGS from './configs';
import * as DOM from '../../_modules/dom';
import { extend, uniqueId, cloneId, originalId, } from '../../_modules/helpers';
export default function () {
this.opts.offCanvas = this.opts.offCanvas || {}... |
var assert = require("assert");
var path = require("path");
var local = path.join.bind(path, __dirname);
describe("Cred", function() {
var NodeGit = require("../../");
var sshPublicKey = local("../id_rsa.pub");
var sshPrivateKey = local("../id_rsa");
it("can create default credentials", function() {
va... |
const BaseChecker = require('./../base-checker')
const naming = require('./../../common/identifier-naming')
const ruleId = 'func-name-mixedcase'
const meta = {
type: 'naming',
docs: {
description: 'Function name must be in camelCase.',
category: 'Style Guide Rules'
},
isDefault: false,
recommended:... |
/**
* @author mrdoob / http://mrdoob.com/
*/
import { REVISION } from '../constants.js';
import { WebGLExtensions } from './webgl/WebGLExtensions.js';
import { WebGLState } from './webgl/WebGLState.js';
import { Color } from '../math/Color.js';
import { Vector4 } from '../math/Vector4.js';
function WebGL2Renderer( ... |
'use strict';
exports.name = 'addClassesToSVGElement';
exports.type = 'visitor';
exports.active = false;
exports.description = 'adds classnames to an outer <svg> element';
var ENOCLS = `Error in plugin "addClassesToSVGElement": absent parameters.
It should have a list of classes in "classNames" or one "className".
Co... |
define({main:{"en-MT":{identity:{version:{_number:"$Revision: 11914 $",_cldrVersion:"29"},language:"en",territory:"MT"},dates:{timeZoneNames:{hourFormat:"+HH:mm;-HH:mm",gmtFormat:"GMT{0}",gmtZeroFormat:"GMT",regionFormat:"{0} Time","regionFormat-type-daylight":"{0} Daylight Time","regionFormat-type-standard":"{0} Stand... |
/** File: candy.js
* Candy - Chats are not dead yet.
*
* Authors:
* - Troy McCabe <troy.mccabe@geeksquad.com>
*
* Copyright:
* (c) 2012 Geek Squad. All rights reserved.
*/
/* global Candy, jQuery */
var CandyShop = (function(self) { return self; }(CandyShop || {}));
/** Class: CandyShop.StickySubject
* ... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S11.7.1_A2.4_T2;
* @section: 11.7.1;
* @assertion: First expression is evaluated first, and then second expression;
* @description: Checking with "throw";
*/
//CHECK#1
v... |
var traceur = require('traceur');
var traceurVersion = traceur.loader.NodeTraceurLoader.prototype.version;
function traceurGet (module) {
return $traceurRuntime.ModuleStore.get('traceur@' + traceurVersion + '/src/' + module);
}
var ParseTreeTransformer = traceurGet('codegeneration/ParseTreeTransformer.js').ParseTre... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: Operator x === y uses GetValue
es5id: 11.9.4_A2.1_T1
description: Either Type is not Reference or GetBase is not null
---*/
//CHECK#1
if (!(1 === 1)) {
$ERROR('#1: 1 === 1'... |
'use strict';
const assert = require('./../../assert');
const common = require('./../../common');
let battle;
describe("Screen Cleaner", function () {
afterEach(function () {
battle.destroy();
});
it("should remove screens from both sides when sent out", function () {
battle = common.createBattle();
battle... |
describe('options', function () {
beforeEach(function () {
jasmine.Ajax.install();
});
afterEach(function () {
jasmine.Ajax.uninstall();
});
it('should default method to get', function (done) {
axios('/foo');
getAjaxRequest().then(function (request) {
expect(request.method).toBe('GET'... |
/*!
* Angular Material Design
* https://github.com/angular/material
* @license MIT
* v0.11.1
*/
goog.provide('ng.material.components.toolbar');
goog.require('ng.material.components.content');
goog.require('ng.material.core');
/**
* @ngdoc module
* @name material.components.toolbar
*/
angular.module('material.co... |
// gm - Copyright Aaron Heckmann <aaron.heckmann+github@gmail.com> (MIT Licensed)
var gm = require('../')
, dir = __dirname + '/imgs'
gm(dir + '/original.png')
.write(dir + '/original.jpg', function(err){
if (err) return console.dir(arguments)
console.log(this.outname + " created :: " + arguments[3])... |
JSIL.EscapeJSRegex = function (regexText) {
return regexText.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
}; |
require({cache:{
'url:p3/widget/app/templates/Date.html':"<form dojoAttachPoint=\"containerNode\" class=\"PanelForm\"\n dojoAttachEvent=\"onreset:_onReset,onsubmit:_onSubmit,onchange:validate\">\n\n <div style=\"width: 420px;margin:auto;margin-top: 10px;padding:10px;\">\n <h2>Date App</h2>\n <p>Date Applica... |
/**
* @author Temdog007 / http://github.com/Temdog007
*/
import * as THREE from '../../build/three.module.js';
import { UIRow, UIText, UIInteger, UISelect, UICheckbox, UINumber } from './libs/ui.js';
import { UIPoints3 } from './libs/ui.three.js';
import { SetGeometryCommand } from './commands/SetGeometryCommand.j... |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var strings={prefixAgo:null,prefixFromNow:null,suffixAgo:"sitten",suffixFromNow:"tulevaisuudessa",seconds:"alle minuutti",minute:"minuutti",minutes:"%d minuuttia",hour:"tunti",hours:"%d tuntia",day:"päivä",days:"%d päivää",month:... |
define({
"instruction": "หน้าจอจะปรากฏขึ้นก่อนที่เข้าถึงโปรแกรมประยุกต์",
"defaultContent": "เพิ่มข้อความ, ลิงค์, และกราฟฟิคเล็กๆ ที่นี่",
"requireConfirm": "ต้องการการยืนยันเพื่อดำเนินการต่อ",
"noRequireConfirm": "ไม่จำเป็นต้องยืนยันที่จะดำเนินการ",
"optionText": "การตั้งค่าสำหรับผู้ใช้งานในการปิดการแสดงผลสก... |
import syntaxTrailingFunctionCommas from "babel-plugin-syntax-trailing-function-commas";
import transformAsyncToGenerator from "babel-plugin-transform-async-to-generator";
import transformExponentiationOperator from "babel-plugin-transform-exponentiation-operator";
import transformObjectRestSpread from "babel-plugin-tr... |
var path = require('path')
var webpack = require('webpack')
module.exports = {
devtool: 'eval',
entry: [
'webpack-hot-middleware/client',
'./src/index'
],
output: {
path: path.join(__dirname, 'dist'),
filename: 'bundle.js',
publicPath: '/static/'
},
plugins: [
new webpack.HotModuleR... |
function startApp() {
showHideMenuLinks()
showView('viewHome')
attachAllEvents()
}
|
import React from 'react';
import classNames from 'classnames';
import elementType from 'react-prop-types/lib/elementType';
const Jumbotron = React.createClass({
propTypes: {
/**
* You can use a custom element for this component
*/
componentClass: elementType
},
getDefaultProps() {
return ... |
/**
* Comment Filters Module
* @license MIT
* @author Jim Chen
*/
function CommentFilter(){
this.rulebook = {"all":[]};
this.modifiers = [];
this.runtime = null;
this.allowTypes = {
"1":true,
"4":true,
"5":true,
"6":true,
"7":true,
"8":true,
"17":true
};
this.doModify = function(cmt){
for(var... |
var path = require("path"),
fs = require("fs"),
binding = require("bcrypt"),
bcrypt = require(path.join(__dirname, '..', 'index.js'))/*,
isaac = eval(
fs.readFileSync(path.join(__dirname, "..", "src", "bcrypt", "prng", "accum.js"))+
fs.readFileSync(path.join(__dirname, "..", "src",... |
const EmberApp = require('ember-cli/lib/broccoli/ember-app');
const { isExperimentEnabled } = require('ember-cli/lib/experiments');
module.exports = function (defaults) {
var app = new EmberApp(defaults, {});
app.import('vendor/custom-output-file.js', {outputFile: '/assets/output-file.js'});
app.import('vendor/... |
var moment = require( 'moment' )
, chai = require( 'chai' );
moment.suppressDeprecationWarnings = true;
chai.use( require( 'sinon-chai') );
chai.config.includeStack = true;
global.should = chai.should();
global.expect = chai.expect;
global.AssertionError = chai.AssertionError; |
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
import { Animation } from '../../animations/animation';
import... |
import React from "react"
import { mount } from "enzyme"
import FeaturedGene from "../FeaturedGene"
xdescribe("FeaturedGene", () => {
let rendered
let featuredGene
beforeEach(() => {
featuredGene = {
title: "Gold",
href: "/gene/gold",
image: {
url: "gold.jpg",
},
}
r... |
function timeout(time) {
return new Promise(function (resolve) {
setTimeout(resolve, time);
});
}
module.exports = timeout; |
define({
"_widgetLabel": "Bilah skala"
}); |
/**
* redbasic theme specific JavaScript
*/
$(document).ready(function() {
// CSS3 calc() fallback (for unsupported browsers)
$('body').append('<div id="css3-calc" style="width: 10px; width: calc(10px + 10px); display: none;"></div>');
if( $('#css3-calc').width() == 10) {
$(window).resize(function() {
if($(wi... |
type T = { foo<U>(x: U): number; }
|
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2014 Photon Storm Ltd.
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
// Add an extra properties to p2 that we need
p2.Body.prototype.parent = null;
p2.Spring.prototype.parent = null;
/**
* ... |
module.exports={A:{A:{"1":"E B A","2":"J C G VB"},B:{"1":"D Y g H L"},C:{"1":"0 1 3 4 5 6 F I J C G E B A D Y g H L M N O P Q R S T U V W X v Z a b c d e f K h i j k l m n o p q r s x y u t","2":"TB z RB QB"},D:{"1":"0 1 3 4 5 6 X v Z a b c d e f K h i j k l m n o p q r s x y u t FB AB CB UB DB","132":"F I J C G E B A ... |
goog.require('ol.Attribution');
goog.require('ol.Map');
goog.require('ol.View');
goog.require('ol.control');
goog.require('ol.extent');
goog.require('ol.layer.Tile');
goog.require('ol.proj');
goog.require('ol.source.WMTS');
goog.require('ol.tilegrid.WMTS');
var map = new ol.Map({
target: 'map',
controls: ol.contr... |
/*!
* @atlassian/aui - Atlassian User Interface Framework
* @version v7.5.0-rc-3
* @link https://docs.atlassian.com/aui/latest/
* @license SEE LICENSE IN LICENSE.md
* @author Atlassian Pty Ltd.
*/
// src/js/aui/header-async.js
(typeof window === 'undefined' ? global : window).__2099962405af1a8893c5b00b1120bf59 = ... |
(function (window) {
'use strict';
var patternfly = {
version: "3.37.0"
};
// definition of breakpoint sizes for tablet and desktop modes
patternfly.pfBreakpoints = {
'tablet': 768,
'desktop': 1200
};
window.patternfly = patternfly;
})(window);
|
'use strict';
// Refs: https://github.com/nodejs/node/issues/548
require('../common');
const assert = require('assert');
const vm = require('vm');
const context = vm.createContext();
vm.runInContext('function test() { return 0; }', context);
vm.runInContext('function test() { return 1; }', context);
const result = vm.... |
// Create namespaces
//
window.ionic = {
controllers: {},
views: {},
version: '<%= pkg.version %>'
};
|
// Generated by CoffeeScript 1.7.1
var DEFAULT_ENCODING, MAX, MONEY_DIVISOR, NULL, PLP_NULL, THREE_AND_A_THIRD, UNKNOWN_PLP_LEN, guidParser, iconv, parse, readBinary, readChars, readDate, readDateTime, readDateTime2, readDateTimeOffset, readMax, readMaxBinary, readMaxChars, readMaxNChars, readNChars, readSmallDateTime,... |
'use strict';
const EventEmitter = require('events');
const shared = require('../shared');
const mimeTypes = require('../mime-funcs/mime-types');
const MailComposer = require('../mail-composer');
const DKIM = require('../dkim');
const httpProxyClient = require('../smtp-connection/http-proxy-client');
const util = requ... |
/* jshint esversion: 6 */
"use strict";
const Server = require(__dirname + "/server.js");
const electron = require("electron");
const core = require(__dirname + "/app.js");
// Config
var config = {};
// Module to control application life.
const app = electron.app;
// Module to create native browser window.
const Bro... |
'use strict';
exports.__esModule = true;
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties');
var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProper... |
'use strict';
angular.module('slickExampleApp', ['slickCarousel', 'ngRoute'])
.config(['$routeProvider', function ($routeProvider) {
$routeProvider
.when('/', {
templateUrl: 'views/home.html',
controller: 'SlickController'
})
.otherwise({
redirectTo: '/'
});
}])
... |
"use strict";
var Test = function Test() {};
|
/**
* Virtual DOM patching algorithm based on Snabbdom by
* Simon Friis Vindum (@paldepind)
* Licensed under the MIT License
* https://github.com/paldepind/snabbdom/blob/master/LICENSE
*
* modified by Evan You (@yyx990803)
*
/*
* Not type-checking this because this file is perf-critical and the cost
* of maki... |
console.log(1)
|
/**
* @ngdoc directive
* @function
* @name umbraco.directives.directive:umbPropertyEditor
* @requires formController
* @restrict E
**/
//share property editor directive function
function umbPropEditor(umbPropEditorHelper) {
return {
scope: {
model: "=",
isPreValue: ... |
export * from "./e1";
export * from "./ee2";
|
'use strict';
var SVGO = require(process.env.COVERAGE ?
'../../lib-cov/svgo.js' :
'../../lib/svgo.js');
var JSAPI = require(process.env.COVERAGE ?
'../../lib-cov/svgo/jsAPI.js' :
'../../lib/svgo/jsAPI.js');
describe('svgo object', function() {
it('should has createContentItem method', function()... |
class UserRolesAddController {
constructor (API, $state, $stateParams) {
'ngInject'
this.$state = $state
this.formSubmitted = false
this.API = API
this.alerts = []
if ($stateParams.alerts) {
this.alerts.push($stateParams.alerts)
}
}
save (isValid) {
this.$state.go(this.$st... |
var JSONStreamParser = require('./lib/JSONStreamParser');
var util = require('util');
function respondWithError(err) {
if (util.isError(err)) {
err = err.stack;
}
console.log(JSON.stringify({error: err}, null, 2));
}
function respondWithResult(result) {
console.log(JSON.stringify({response: result}, null,... |
/**
* (c) 2010-2017 Torstein Honsi
*
* License: www.highcharts.com/license
*/
'use strict';
import H from '../parts/Globals.js';
import '../parts/Utilities.js';
/**
* Mathematical Functionility
*/
var deg2rad = H.deg2rad,
pick = H.pick;
/* eslint-disable max-len */
/**
* Apply 3-D rotation
* Euler Angle... |
import React, {Component} from 'react';
import Draggable from 'react-draggable';
import ReactNoop from 'react-noop-renderer';
import Editor from './Editor';
import Fibers from './Fibers';
import describeFibers from './describeFibers';
// The only place where we use it.
const ReactFiberInstrumentation =
ReactNoop.__S... |
import demoTest from '../../../tests/shared/demoTest';
demoTest('badge');
|
/**
* Copyright (c) 2008-2011 The Open Planning Project
*
* Published under the GPL license.
* See https://github.com/opengeo/gxp/raw/master/license.txt for the full text
* of the license.
*/
/** api: (define)
* module = gxp
* class = GoogleEarthPanel
* base_link = `Ext.Panel <http://extjs.com/... |
// Duplicate exports are an early/parse error
export function foo() {};
export class foo {};
|
/*!
* React Popper 0.5.0
* https://github.com/souporserious/react-popper
* Copyright (c) 2017 React Popper Authors
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'f... |
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 { chainPropTypes } from '@material-ui/utils';
import clsx from 'clsx';
import withSty... |
var assert = require('assert');
var math = require('../../../index');
var Matrix = math.type.Matrix;
var DenseMatrix = math.type.DenseMatrix;
var ImmutableDenseMatrix = math.type.ImmutableDenseMatrix;
var SparseMatrix = math.type.SparseMatrix;
var Complex = math.type.Complex;
var Range = math.type.Range;
var index = m... |
Template.replacementInsert.events = {
'click #btnSave': function(e, t) {
e.preventDefault();
Router.current()._post = true;
Router.current().insert(t);
Router.current()._post = false;
},
}; |
/**
* ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v12.0.1
* @link http://www.ag-grid.com/
* @license MIT
*/
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c ... |
/*!
* inferno-redux v1.3.0-rc.0
* (c) 2017 Dominic Gannaway'
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('inferno-component'), require('redux'), require('hoist-non-inferno-statics'), require('inferno-cr... |
import Result from '../lib/result';
import parse from '../lib/parse';
import { expect } from 'chai';
import path from 'path';
import fs from 'fs';
describe('Root', () => {
describe('toString()', () => {
fs.readdirSync(path.join(__dirname, 'cases')).forEach( name => {
if ( !nam... |
/*
Copyright 2014 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 required by applicable law or agreed to i... |
var Symbol = require('./_Symbol');
/** Used for built-in method references. */
var objectProto = Object.prototype;
/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;
/**
* Used to resolve the
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-... |
/*---------------------------------------------------------------------------------------------
@author Constantin Saguin - @brutaldesign
@link http://csag.co
@github http://github.com/brutaldesign/swipebox
@version 1.2.1
@license MIT License
------------------------------------------... |
import PopoverMixin from 'ghost/mixins/popover-mixin';
var GhostPopover = Ember.Component.extend(PopoverMixin, {
classNames: 'ghost-popover fade-in',
name: null,
closeOnClick: false,
//Helps track the user re-opening the menu while it's fading out.
closing: false,
open: function () {
t... |
"use strict";
exports.__esModule = true;
exports.default = void 0;
var _deepDiffer = _interopRequireDefault(require("../deepDiffer"));
var React = _interopRequireWildcard(require("react"));
var _StyleSheet = _interopRequireDefault(require("../../../exports/StyleSheet"));
var _View = _interopRequireDefault(require(... |
/*global angular,inject,describe,it,expect,beforeEach*/
describe('directive: choice-field', function () {
'use strict';
var directive = require('../../../../ng-admin/Crud/field/maChoiceField');
var ChoiceField = require('admin-config/lib/Field/ChoiceField');
angular.module('testapp_ChoiceField', ['ui.... |
module.exports={title:"Tutanota",slug:"tutanota",svg:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Tutanota icon</title><path d="M2.158.934C.978.934.025 1.895.023 3.08.017 9.74.005 16.413 0 23.066c.793-.297 1.67-.56 2.56-.918 6.188-2.485 11.249-4.598 11.253-6.983a1.66 1.66 0 0 0-.016-.2... |
Date.Specification = new Specification({
'Overview': {
setup: function() { },
'Today': {
run: function() { this.date = Date.parse('Today'); },
assert: function() { return Date.today().equals( this.date ) }
},
'Yesterday': {
run: function() { this.date = Date.parse('Yesterday') },
... |
var Waterline = require('../../../lib/waterline'),
assert = require('assert');
describe('Collection Query', function() {
describe('.create()', function() {
describe('with transformed values', function() {
var Model;
before(function() {
Model = Waterline.Collection.extend({
i... |
import { Curve } from '../core/Curve';
import { Vector2 } from '../../math/Vector2';
function EllipseCurve( aX, aY, xRadius, yRadius, aStartAngle, aEndAngle, aClockwise, aRotation ) {
this.aX = aX;
this.aY = aY;
this.xRadius = xRadius;
this.yRadius = yRadius;
this.aStartAngle = aStartAngle;
this.aEndAngle = ... |
/* http://keith-wood.name/svg.html
SVG for jQuery v1.4.5.
Written by Keith Wood (kbwood{at}iinet.com.au) August 2007.
Dual licensed under the GPL (http://dev.jquery.com/browser/trunk/jquery/GPL-LICENSE.txt) and
MIT (http://dev.jquery.com/browser/trunk/jquery/MIT-LICENSE.txt) licenses.
Please attri... |
/*
AngularJS v1.2.0-rc.3
(c) 2010-2012 Google, Inc. http://angularjs.org
License: MIT
*/
(function(u,c,A){'use strict';function w(c,s,g,b,d){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",compile:function(l,m,y){return function(p,l,m){function k(){h&&(h.$destroy(),h=null);q&&(d.leave(q),q=null)}... |
require("../packages/meteor/flush-buffers-on-exit-in-windows.js");
|
export loadInfo from './loadInfo';
export loadAuth from './loadAuth';
export login from './login';
export logout from './logout';
export * as widget from './widget/index';
export * as survey from './survey/index';
|
/*! videojs-contrib-dash - v2.6.0 - 2016-12-12
* Copyright (c) 2016 Brightcove */
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exp... |
/**
* @fileoverview Comma spacing - validates spacing before and after comma
* @author Vignesh Anand aka vegetableman.
* @copyright 2014 Vignesh Anand. All rights reserved.
*/
"use strict";
var astUtils = require("../ast-utils");
//------------------------------------------------------------------------------
// ... |
var cookies = function (data, opt) {
function defaults (obj, defs) {
obj = obj || {};
for (var key in defs) {
if (obj[key] === undefined) {
obj[key] = defs[key];
}
}
return obj;
}
defaults(cookies, {
expires: 365 * 24 * 3600,
path: '/',
secure: window.location.prot... |
import createChainableTypeChecker from 'react-prop-types/lib/utils/createChainableTypeChecker';
import ValidComponentChildren from './ValidComponentChildren';
export function requiredRoles() {
for (var _len = arguments.length, roles = Array(_len), _key = 0; _key < _len; _key++) {
roles[_key] = arguments[_key];
... |
/*
* jQuery MiniColors: A tiny color picker built on jQuery
*
* Copyright Cory LaViska for A Beautiful Site, LLC. (http://www.abeautifulsite.net/)
*
* Dual-licensed under the MIT and GPL Version 2 licenses
*
*/
if(jQuery) (function($) {
// Yay, MiniColors!
$.minicolors = {
// Default settings
defaultSetti... |
"use strict";
var numeric = (typeof exports === "undefined")?(function numeric() {}):(exports);
if(typeof global !== "undefined") { global.numeric = numeric; }
numeric.version = "1.2.4";
// 1. Utility functions
numeric.bench = function bench (f,interval) {
var t1,t2,n,i;
if(typeof interval === "undefined") {... |
var fs = require('fs')
var path = require('path')
var ncp = require('ncp').ncp
var mkdir = require('./mkdir')
var create = require('./create')
var BUF_LENGTH = 64 * 1024
var _buff = new Buffer(BUF_LENGTH)
var copyFileSync = function(srcFile, destFile) {
var fdr = fs.openSync(srcFile, 'r')
var stat = fs.fstatSync(... |
/**
* Sample React Native App
* https://github.com/facebook/react-native
*/
'use strict';
var React = require('react-native');
var {
AppRegistry,
BackAndroid,
Text,
View,
Navigator,
StyleSheet,
ToolbarAndroid,
ToastAndroid,
} = React;
var ToolbarAndroid = require('ToolbarAndroid');
var TimerMixin... |
/*
Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang("uicolor","da",{title:"Brugerflade på farvevælger",options:"Color Options",highlight:"Highlight",selected:"Selected Color",predef... |
(function($) {
/*
======== 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:
ok(value, [message])
... |
import length from "./length";
var coordinates = [null, null],
object = {type: "LineString", coordinates: coordinates};
export default function(a, b) {
coordinates[0] = a;
coordinates[1] = b;
return length(object);
}
|
module.exports = function (html) {
if (typeof document !== 'undefined') {
return;
}
var jsdom = require('jsdom').jsdom;
global.document = jsdom(html || '');
global.window = global.document.parentWindow;
global.navigator = {
userAgent: 'JSDOM'
};
};
|
/**
* interact.js v1.0.14
*
* Copyright (c) 2012, 2013, 2014 Taye Adeyemi <dev@taye.me>
* Open source under the MIT License.
* https://raw.github.com/taye/interact.js/master/LICENSE
*/
(function (window) {
'use strict';
var document = window.document,
console = window.console... |
/**
* @fileoverview Tests for use-isnan rule.
* @author James Allardice, Michael Paulukonis
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
var rule = require("../../.... |
var commands = require('./commands');
var pkg = require('../package.json');
var abbreviations = require('./abbreviations')(commands);
function clearRuntimeCache() {
// Note that in edge cases, some architecture components instance's
// in-memory cache might be skipped.
// If that's a problem, you should cr... |
CKEDITOR.plugins.setLang("image2","fr-ca",{alt:"Texte alternatif",btnUpload:"Envoyer sur le serveur",captioned:"Captioned image",captionPlaceholder:"Caption",infoTab:"Informations sur l'image2",lockRatio:"Verrouiller les proportions",menu:"Propriétés de l'image2",pathName:"image",pathNameCaption:"caption",resetSize:"Ta... |
var moment = require('../../moment');
/**************************************************
Norwegian nynorsk
*************************************************/
exports['locale:nn'] = {
setUp : function (cb) {
moment.locale('nn');
moment.createFromInputFallback = function () {
... |
module.exports = distTag
var log = require('npmlog')
var npa = require('npm-package-arg')
var semver = require('semver')
var npm = require('./npm.js')
var mapToRegistry = require('./utils/map-to-registry.js')
var readLocalPkg = require('./utils/read-local-package.js')
var usage = require('./utils/usage')
var output =... |
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define(["exports", "foo"], factory);
} else if (typeof exports !== "undefined") {
factory(exports, require("foo"));
} else {
var mod = {
exports: {}
};
factory(mod.exports, global.foo);
global.actual = mo... |
/*
Highcharts JS v5.0.9 (2017-03-08)
Exporting module
(c) 2010-2016 Torstein Honsi
License: www.highcharts.com/license
*/
(function(h){"object"===typeof module&&module.exports?module.exports=h:h(Highcharts)})(function(h){(function(f){var h=f.defaultOptions,n=f.doc,A=f.Chart,u=f.addEvent,F=f.removeEvent,D=f.fireEv... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.