code stringlengths 2 1.05M |
|---|
/*
* __ ___
* _____/ /___ __/ (_)____
* / ___/ __/ / / / / / ___/
* (__ ) /_/ /_/ / / (__ )
* /____/\__/\__, /_/_/____/
* /____/
*
* stylis is a feature-rich css preprocessor
*
* @licence MIT
*/
(function (factory) {
if (typeof exports === 'object' && typeof module !== 'und... |
exports.Employee = require("./employee");
exports.Staff = require("./staff");
exports.Manager = require("./manager");
exports.Executive = require("./executive"); |
import type { Action } from '../actions/types';
import { SET_INDEX } from '../actions/list';
export type State = {
list: string
}
const initialState = {
list: [
'React Native starter kit',
'RN Navigator',
'NB Easy Grid',
'NativeBase',
'CodePush',
'Redux',
],
selectedIndex: undefined... |
'use strict';
var expect = require('chai').expect,
countdown = require('../../countdown'),
moment = require('moment-timezone');
describe('Countdown', function() {
it('returns formatted time', function(done) {
countdown.liveDateResponse = '2014-11-01 11:00 +0800';
expect(countdown.calculateCountdown).t... |
/*
* 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.
*/
'... |
/*
Battle Feature
*/
exports.id = 'battle';
exports.desc = 'Automated battle bot';
var BattleBot = exports.BattleBot = require('./battle-bot.js');
var TeamBuilder = exports.TeamBuilder = require('./teambuilder.js');
var ChallManager = exports.ChallManager = require('./challenges.js');
var TourManager = exports.To... |
/**
* @fileoverview Tests for no-wrap-func rule.
* @author Ilya Volodin
* @copyright 2013 Ilya Volodin. All rights reserved.
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//-------------------------------------------------------------------------... |
/**
* Copyright (c) 2015-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.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
function load(id = 0) {
return [
{ id: id + 1, name... |
const stylelint = require('stylelint');
const utils = require('./stylelint-utils');
const utilityClasses = require('./utility-classes-map.js');
const ruleName = 'stylelint-gitlab/utility-classes';
const messages = stylelint.utils.ruleMessages(ruleName, {
expected: (selector1, selector2) => {
return `"${selector... |
var notify = require("gulp-notify");
var gutil = require("gulp-util");
var beep = require("./beep");
module.exports = function() {
var args = Array.prototype.slice.call(arguments);
// Send error to notification center with gulp-notify
notify.onError({
title: "Compile Error",
message: "<%= error.message... |
'use strict';
/**
* Here is the problem: http://bugs.jquery.com/ticket/7292
* basically jQuery treats change event on some browsers (IE) as a
* special event and changes it form 'change' to 'click/keydown' and
* few others. This horrible hack removes the special treatment
*/
_jQuery.event.special.change = undefin... |
/**
* 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.
*
* @emails react-core
*/
/* eslint-disable no-func-assign */
'use strict';
const ReactDOMServerIntegrationUtils = require('./uti... |
/**
* $Id: editor_plugin_src.js 162 2007-01-03 16:16:52Z spocke $
*
* @author Moxiecode
* @copyright Copyright © 2004-2007, Moxiecode Systems AB, All rights reserved.
*/
/* Import theme specific language pack */
tinyMCE.importPluginLanguagePack('print');
var TinyMCE_PrintPlugin = {
getInfo : function() {
retu... |
angular
.module('automata-simulation')
.controller('DFACtrl', DFACtrl);
function DFACtrl($scope) {
$scope.saveApply = scopeSaveApply;
$scope.automatonData = new autoSim.AutomatonData();
$scope.core = new autoSim.DFACore($scope);
$scope.states = new autoSim.States($scope);
$scope.transitio... |
import path from "path";
import normalizePath from "normalize-path";
export default function normalizeRelativeDir(testDir, filePath) {
return normalizePath(
path.relative(testDir, filePath)
);
}
|
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
var _objectWithoutProperties... |
module('Ember.String.fmt');
if (!Ember.EXTEND_PROTOTYPES && !Ember.EXTEND_PROTOTYPES.String) {
test("String.prototype.fmt is not modified without EXTEND_PROTOTYPES", function() {
ok("undefined" === typeof String.prototype.fmt, 'String.prototype helper disabled');
});
}
test("'Hello %@ %@'.fmt('John', 'Doe') =... |
'use strict';
var P = require('bluebird');
var R = require('ramda');
var plaidEnvironments = require('./plaidEnvironments');
var plaidRequest = require('./plaidRequest');
var wrapPromise = require('./wrapPromise');
// Default version of Plaid API, if not specified by the client.
const DEFAULT_VERSION = '2020-09-14';... |
function _slicedToArray(r,t){return _arrayWithHoles(r)||_iterableToArrayLimit(r,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function _iterableToArrayLimit(r,t){if(Symbol.iterator in Object(r)||"[object Arguments]"===Object.prototype.toSt... |
import{useMemo}from"react";import{TargetConnector}from"../../internals";import{useDragDropManager}from"../useDragDropManager";import{useIsomorphicLayoutEffect}from"../useIsomorphicLayoutEffect";function useDropTargetConnector(r){var o=useDragDropManager(),e=useMemo(function(){return new TargetConnector(o.getBackend())}... |
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.1
* @link http://www.ag-grid.com/
* @license MIT
*/
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.leng... |
(function() {
this.AwardsHandler = (function() {
const FROM_SENTENCE_REGEX = /(?:, and | and |, )/; //For separating lists produced by ruby's Array#toSentence
function AwardsHandler() {
this.aliases = gl.emojiAliases();
$(document).off('click', '.js-add-award').on('click', '.js-add-award', (functi... |
/*!
* Bootstrap-select v1.13.8 (https://developer.snapappointments.com/bootstrap-select)
*
* Copyright 2012-2019 SnapAppointments, LLC
* Licensed under MIT (https://github.com/snapappointments/bootstrap-select/blob/master/LICENSE)
*/
(function (root, factory) {
if (root === undefined && window !== undef... |
export function ensureProtocol(protocol, url) {
if (url && url.match(/^\/\//)) {
return `${protocol}:${url}`;
}
return url;
}
|
"use strict";
exports.__esModule = true;
exports.ThrowStatement = exports.BreakStatement = exports.ReturnStatement = exports.ContinueStatement = exports.ForOfStatement = exports.ForInStatement = undefined;
var _getIterator2 = require("babel-runtime/core-js/get-iterator");
var _getIterator3 = _interopRequireDefault(_... |
/*
Highcharts JS v7.1.0 (2019-04-01)
Indicator series type for Highstock
(c) 2010-2019 Pawe Fus
License: www.highcharts.com/license
*/
(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/indicators/bollinger-bands",["h... |
/**
* https://github.com/facebook/react-native/blob/master/Libraries/Components/StatusBar/StatusBar.js
*/
import React from 'react';
import ColorPropType from '../propTypes/ColorPropType';
let _backgroundColor = '';
let _barStyle = {};
let _hidden = false;
let _networkActivityIndicatorVisible = false;
let _transluc... |
const encodeBase64URL = require('./encodeBase64URL');
const fetch = require('node-fetch');
// Exchanges an access token from OAuth provider.
module.exports = async function exchangeAccessToken(
tokenURL,
clientID,
clientSecret,
code,
redirectURI,
state,
codeVerifier
) {
const params = new URLSearchPara... |
import Ember from 'ember';
import LayoutRules from '../mixins/layout-rules';
var MdToolbar = Ember.Component.extend(LayoutRules, {
tagName: ['md-toolbar'],
shrinkSpeedFactor: 0.5,
setupScrollShrink: function() {
}
});
export default MdToolbar;
|
'use strict';
const assert = require('assert').strict;
const common = require('./../../common');
let battle;
const unimportantPokemon = {species: 'magikarp', moves: ['splash']};
describe(`[Hackmons] Arceus`, function () {
it(`in untyped forme should change its type to match the plate held`, function () {
battle =... |
require('babel-register');
require('./server/index.js'); |
/*
* @package jsDAV
* @subpackage DAV
* @copyright Copyright(c) 2011 Ajax.org B.V. <info AT ajax DOT org>
* @author Mike de Boer <info AT mikedeboer DOT nl>
* @license http://github.com/mikedeboer/jsDAV/blob/master/LICENSE MIT License
*/
"use strict";
// DAV classes used directly by the Handler object
var jsDAV ... |
/* */
System.register(['core-js', './state', './segments'], function (_export) {
var core, State, StaticSegment, DynamicSegment, StarSegment, EpsilonSegment, _classCallCheck, RouteRecognizer, RecognizeResults;
function parse(route, names, types) {
if (route.charAt(0) === '/') {
route = route.substr(1);
... |
var pizza = 'pizza is alright';
pizza = pizza.replace('alright', 'wonderful');
console.log(pizza);
|
/*
* grunt-bless
* https://github.com/Ponginae/grunt-bless
*
* Copyright (c) 2013 Aki Alexandra Nofftz
* Licensed under the MIT license.
*/
'use strict';
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON( "../package.json" ),
// Configuration to be r... |
/*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2015 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
sap.ui.define(['sap/m/semantic/SemanticButton'],function(S){"use strict";var a=S.extend("sap.m.semantic.SendEmailAction",{});return a;... |
define(["knockout", "service!taskever/user"], function (ko, userService) {
var currentUser = ko.mapping.fromJS({});
var start = function () {
return userService.getCurrentUserInfo({ }).done(function(data) {
ko.mapping.fromJS(data.user, currentUser);
});
};
return {
... |
'use strict';
const assert = require('./../../assert');
const common = require('./../../common');
let battle;
describe('Truant', function () {
afterEach(function () {
battle.destroy();
});
it('should prevent the user from acting the turn after using a move', function () {
battle = common.createBattle();
ba... |
import Base from './base';
class Award extends Base {
_type = 'Award';
}
export default Award;
|
// defer script
// By Theodoor van Donge
Modernizr.addTest('scriptdefer', 'defer' in document.createElement('script'));
|
import React from 'react'
import { createDevTools } from 'redux-devtools'
import LogMonitor from 'redux-devtools-log-monitor'
import DockMonitor from 'redux-devtools-dock-monitor'
export default createDevTools(
<DockMonitor toggleVisibilityKey="ctrl-H"
changePositionKey="ctrl-Q">
<LogMonitor />
... |
export interface Environment1 extends GenericEnvironment<
SomeType,
AnotherType,
YetAnotherType,
> {
m(): void;
};
export class Environment2 extends GenericEnvironment<
SomeType,
AnotherType,
YetAnotherType,
DifferentType1,
DifferentType2,
DifferentType3,
DifferentType4,
> {
m() {};
};
// Decla... |
var mysql = require('mysql');
var _ = require('underscore');
_.str = require('underscore.string');
var utils = require('./utils');
var sql = {
// Convert mysql format to standard javascript object
normalizeSchema: function (schema) {
return _.reduce(schema, function(memo, field) {
// Marshal mysql DESC... |
module.exports = {
name: 'ember-masonry-grid',
description: 'Add ember-masonry-grid bower dependencies to app.',
normalizeEntityName: function () {
},
afterInstall: function () {
return this.addBowerPackagesToProject([
{ name: 'jquery-masonry' },
{ name: 'imagesloaded' }
]);
}
};
|
exports.worker = function (task, config) {
var input = JSON.parse(task.config.input);
task.respondCompleted({
_OUTPUT: input._INPUT.reverse()
});
};
|
/*
Ratings and how they work:
-2: Extremely detrimental
The sort of ability that relegates Pokemon with Uber-level BSTs
into NU.
ex. Slow Start, Truant
-1: Detrimental
An ability that does more harm than good.
ex. Defeatist, Normalize
0: Useless
An ability with no net effect on a Pokemon during a bat... |
var Base = require("../base.js");
var C = require("../interface/constants.js");
var VSProgram = require("./vs-program.js");
var CLProgram = require("./cl-program.js");
/**
* Data for a OperatorList, generated by an Executor
* @constructor
*/
var ProgramData = function(){
/**
* @type {Array.<ProgramInputCon... |
/*---------------------------------------------------------------
:: sails-mongo
-> adapter
---------------------------------------------------------------*/
var util = require('util');
var async = require('async');
var _ = require('@sailshq/lodash');
var ObjectId = require('mongodb').ObjectID;
var Errors = requir... |
import { Meteor } from 'meteor/meteor';
import { hasPermission } from '../../../authorization';
import { Imports } from '../../../models';
import { Importers } from '..';
Meteor.methods({
getImportProgress() {
if (!Meteor.userId()) {
throw new Meteor.Error('error-invalid-user', 'Invalid user', { method: 'getIm... |
/*
* Copyright © 2017 Regular Labs - All Rights Reserved
* License http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
*/
(function($){$(document).ready(function(){$(".rl_multiselect").each(function(){var controls=$(this).find("div.rl_multiselect-controls");var list=$(this).find("ul.rl_multiselect-ul");var menu=$(this)... |
import Embed from '../blots/embed';
import Quill from '../core/quill';
import Module from '../core/module';
class FormulaBlot extends Embed {
static create(value) {
let node = super.create(value);
if (typeof value === 'string') {
window.katex.render(value, node);
node.setAttribute('data-value', ... |
jasmine.TrivialReporter = function(doc) {
this.document = doc || document;
this.suiteDivs = {};
this.logRunningSpecs = false;
};
jasmine.TrivialReporter.prototype.createDom = function(type, attrs, childrenVarArgs) {
var el = document.createElement(type);
for (var i = 2; i < arguments.length; i++) {
var ... |
version https://git-lfs.github.com/spec/v1
oid sha256:493787bfad6152faa3fa4c50c22539315cb90cb5157e76b9705d9f1509a97c7a
size 3137
|
(function() {
function updateProgressBar(successFullCompressions) {
var totalToOptimize = parseInt(jQuery("div#compression-progress-bar").data("number-to-optimize"))
var optimizedSoFar = parseInt(jQuery("#optimized-so-far").text())
jQuery("#optimized-so-far").html(successFullCompressions + optimizedSoFar... |
var searchData=
[
['input',['input',['../class_graphics.html#a8e717bcc093d11075aa97bc488585d10',1,'Graphics']]],
['isbuttonclicked',['isButtonClicked',['../class_graphics.html#a385271f5dd02e8a2e6f74c72b5cb2639',1,'Graphics::isButtonClicked(String tag, ShieldEvent *shieldEvent=0)'],['../class_graphics.html#a8407aa0c... |
/**
* @author alteredq / http://alteredqualia.com/
*
* - shows point light color, intensity, position and distance
*/
THREE.PointLightHelper = function ( light, sphereSize ) {
THREE.Object3D.call( this );
this.light = light;
// position
this.position = light.position;
// color
this.color = light.color.... |
'use strict';
describe('ok', function() {
it('ok', function() {
});
});
|
import relativeDep from './nonexistent-relative-dependency.js';
relativeDep.wasAltered = true;
|
QUnit.extend( QUnit, {
imageEqual: function(actual, expected, message) {
var passes = actual === expected || imagediff.equal(actual, expected);
QUnit.push(passes, actual, expected, message);
},
imageClose: function(actual, expected, maxDifference, message) {
var passes = actual === e... |
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
const asyncLib = require("neo-async");
const EntryDependency = require("./dependencies/EntryDependency");
const { someInIterable } = require("./util/IterableHelpers");
const { compareModulesById } = requi... |
console.log(require('path').relative('.', __dirname)); |
/* global __webpack_public_path__ __HOST__ __PORT__ */
/* eslint no-native-reassign: 0 camelcase: 0 */
if (process.env.NODE_ENV === 'production') {
__webpack_public_path__ = chrome.extension.getURL('/js/');
} else {
// In development mode,
// the iframe of injectpage cannot get correct path,
// it need to get ... |
'use strict';
var clc = require('cli-color');
var write = require('./printers').write;
var shell = require('./shell').getInstance();
function DrawUtil(numOfLines) {
var width = shell.getWidth() * 0.75 | 0;
var maxHeight = shell.getHeight() - 1;
this.numberOfLines = Math.max(4, Math.min(numOfLines, maxHeight));... |
var gateway = require(__dirname+'/../../');
function getKey(){
gateway.api.getKey(function(err, key){
if (err) { console.log('error:', err); return };
console.log(key);
});
}
module.exports = getKey;
|
"use strict";
var ConnectionManager = require("./ConnectionManager"),
DomainManager = require("./DomainManager");
function init(srv) {
var root = srv.httpRoot + "-ext",
apiUrl = root + "/api";
srv.httpServer.on("request", function (req, res) {
if (req.url.startsWith(apiUrl)) {
... |
'use strict';
var React = require('react');
var expect = require('chai').expect;
var buildMarty = require('../../../test/lib/buildMarty');
var renderIntoDocument = require('react/addons').addons.TestUtils.renderIntoDocument;
describe('Container application Propagation', function () {
var Marty, app;
beforeEach(... |
/*************************************************************
*
* MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/Fraktur.js
*
* Copyright (c) 2009-2016 The MathJax Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance w... |
(function() {
var Ext = window.Ext4 || window.Ext;
/**
* Allows configuring of rows for the cardboard
*
*
* @example
* Ext.create('Ext.Container', {
* items: [{
* xtype: 'rowsettingsfield',
* value: {
* s... |
// Licensed to the Software Freedom Conservancy (SFC) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The SFC licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you m... |
// 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.15_A1_T11;
* @section: 15.5.4.15;
* @assertion: String.prototype.substring (start, end);
* @description: Arguments are objects, and instance is string, objects have o... |
var vows = require("vows"),
assert = require("assert"),
transformProperties = require("../lib/topojson/transform-properties");
var suite = vows.describe("transform-properties");
suite.addBatch({
"transform-properties": {
"by default, deletes properties from Features": function() {
assert.deepEqual... |
describe('materialIcon directive', function() {
});
|
'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
function getDecimals(n) {
n = n + '';
var i = n.indexOf('.');
return (i == -1) ? 0 : n.length - i - 1;
}
function getVF(n, opt_pre... |
// Parallax Occlusion shaders from
// http://sunandblackcat.com/tipFullView.php?topicid=28
// No tangent-space transforms logic based on
// http://mmikkelsen3d.blogspot.sk/2012/02/parallaxpoc-mapping-and-no-tangent.html
var ParallaxShader = {
// Ordered from fastest to best quality.
modes: {
none: 'NO_PARALL... |
"use strict";
/**
* Validates a device token
*
* Will convert to string and removes invalid characters as required.
*/
function token(input) {
let token;
if (typeof input === "string") {
token = input;
} else if (Buffer.isBuffer(input)) {
token = input.toString("hex");
}
token = token.replace(... |
/*
____ ___ _ _ ___ _____ _____ ____ ___ _____
| _ \ / _ \ | \ | |/ _ \_ _| | ____| _ \_ _|_ _|
| | | | | | | | \| | | | || | | _| | | | | | | |
| |_| | |_| | | |\ | |_| || | | |___| |_| | | | |
|____/ \___/ |_| \_|\___/ |_| |_____|____/___| |_|
_____ _ _ ___ ____ _____ ___ _... |
const a = {
"3": "three",
"foo": "bar"
};
const {
[3]: omit
} = a,
rest = babelHelpers.objectWithoutProperties(a, ["3"]);
assert.deepEqual(rest, {
"foo": "bar"
});
assert.equal(omit, "three");
const [k1, k2, k3, k4, k5] = [null, undefined, true, false, {
toString() {
return "warrior";
}
}];
const... |
/*global google */
/*jshint unused:true */
define([
'dojo/_base/declare',
'dijit/_WidgetBase',
'dijit/_TemplatedMixin',
'dijit/_WidgetsInTemplateMixin',
'dojo/_base/lang',
'dojo/aspect',
'dojo/topic',
'esri/layers/GraphicsLayer',
'esri/graphic',
'esri/renderers/SimpleRenderer',
'dojo/text!./StreetView/templa... |
// ==UserScript==
// @id ingress-intel-total-conversion@jonatkins
// @name IITC: Ingress intel map total conversion
// @version 0.25.2.@@DATETIMEVERSION@@
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
// @updateURL @@UPDATEURL@@
// @downloadURL @@DOW... |
version https://git-lfs.github.com/spec/v1
oid sha256:80841356ff68b9a03b926a06f556fa7e6df2cc8f7a9908e449a5918f9c2279a7
size 3740
|
'use strict';
/* eslint-disable no-for-of-loops/no-for-of-loops */
// Copies the contents of the new fork into the old fork
const {promisify} = require('util');
const glob = promisify(require('glob'));
const {spawnSync} = require('child_process');
const fs = require('fs');
const minimist = require('minimist');
cons... |
/**
* 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 required by appli... |
export default function(event) {
var message;
if (event.wasClean === false && event.code !== 1000 && event.code !== 1006) {
var reason = event.reason || 'Unkown reason.';
message = 'Disconnected from live stream: ' + event.code + ' ' + reason;
}
return message;
}
|
// Generated on 2013-07-08 using generator-angular-module 0.2.0
'use strict';
module.exports = function(grunt) {
// Configurable paths
var yoConfig = {
livereload: 35729,
src: 'src',
dist: 'dist'
};
// Livereload setup
var lrSnippet = require('connect-livereload')({port: yoConfig.livereload});
... |
import xs from 'xstream';
import {div, ul, li, a, section, h1, p} from '@cycle/dom';
function renderMenu() {
return (
ul([
li([ a('.link', {attrs: {href: '/'}}, 'Home') ]),
li([ a('.link', {attrs: {href: '/about'}}, 'About') ]),
])
);
}
function renderHomePage() {
return (
section('.home... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S11.4.4_A2.2_T1;
* @section: 11.4.4, 8.6.2.6;
* @assertion: Operator ++x uses [[Default Value]];
* @description: If Type(value) is Object, evaluate ToPrimitive(value, Num... |
import { mod } from './second';
assert.strictEqual(mod.a, 1);
assert.strictEqual(mod.b, 2);
|
/*global describe, beforeEach, it*/
'use strict';
var assert = require('assert');
describe('bespoke generator', function () {
it('can be imported without blowing up', function () {
var app = require('../app');
assert(app !== undefined);
});
});
|
import _ from 'lodash'
import React, { PropTypes } from 'react'
import { getUnhandledProps, META } from '../../lib'
import Button from '../../elements/Button'
import Modal from '../../modules/Modal'
/**
* A Confirm modal gives the user a choice to confirm or cancel an action
* @see Modal
*/
function Confirm(props)... |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("vue"));
else if(typeof define === 'function' && define.amd)
define(["vue"], factory);
else if(typeof exports === 'object')
exports["Vuetify"] = factory(req... |
import ApplicationAdapter from './application';
import buildURLWithPrefixMap from '../utils/build-url-with-prefix-map';
export default ApplicationAdapter.extend({
buildURL: buildURLWithPrefixMap({
'services': {property: 'service.id', only:['create']}
})
});
|
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.tooltipContainerAttr = exports.TooltipCo... |
/*
* Test that we can continue after a valstack limit error.
*/
/*---
{
"custom": true
}
---*/
/*===
RangeError: valstack limit
still here
===*/
function test() {
// Use an Ecmascript-to-Ecmascript call to hit the value stack limit
// without hitting the native call limit. Use a function with a lot
... |
import {Headers} from './headers';
export class HttpResponseMessage {
constructor(requestMessage, xhr, responseType, reviver){
this.requestMessage = requestMessage;
this.statusCode = xhr.status;
this.response = xhr.response;
this.isSuccess = xhr.status >= 200 && xhr.status < 400;
this.statusText ... |
import { TRIPLE } from '../../../config/types';
import readExpression from '../readExpression';
import refineExpression from '../../utils/refineExpression';
export default function readTriple ( parser, tag ) {
var expression = readExpression( parser ), triple;
if ( !expression ) {
return null;
}
if ( !parser.m... |
/*
This file is part of Ext JS 4.2
Copyright (c) 2011-2013 Sencha Inc
Contact: http://www.sencha.com/contact
Commercial Usage
Licensees holding valid commercial licenses may use this file in accordance with the Commercial
Software License Agreement provided with the Software or, alternatively, in accordance with th... |
/**
* Quirks.js
*
* Copyright, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://www.tinymce.com/license
* Contributing: http://www.tinymce.com/contributing
*/
/**
* This class includes fixes for various browser quirks.
*
* @class tinymce.tableplugin.Quirks
* @private
*/
define("tiny... |
import yeboOrder from 'yebo-ember-storefront/components/yebo-order';
export default yeboOrder;
|
Prism.languages.fsharp = Prism.languages.extend('clike', {
'comment': [
{
pattern: /(^|[^\\])\(\*[\s\S]*?\*\)/,
lookbehind: true
},
{
pattern: /(^|[^\\:])\/\/.*/,
lookbehind: true
}
],
'string': {
pattern: /(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?|'(?:[^\\']|\\.)'B?/,
greed... |
/*jslint node: true */
"use strict";
var options = JSON.parse(new Buffer(process.argv[2], 'hex')),
QlobberFSQ = require('../..').QlobberFSQ,
fsq = new QlobberFSQ(options),
cbs = {},
cb_count = 0,
handlers = {},
host = require('os').hostname();
//console.log(options);
//console.log('run', host... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.