code stringlengths 2 1.05M |
|---|
import requireDirectory from 'require-directory';
export default requireDirectory(module, __dirname);
|
'use strict';
var Scan = require('./scan'),
async = require('async'),
NodeUtil = require('util'),
utils = require('./utils'),
Readable = require('stream').Readable,
_ = require('lodash');
var ParallelScan = module.exports = function (table, serializer, totalSegments) {
Scan.call... |
export default value => {
if (typeof value !== 'object' || value === null) return false;
let proto = value;
while (Object.getPrototypeOf(proto) !== null) {
proto = Object.getPrototypeOf(proto);
}
return Object.getPrototypeOf(value) === proto;
};
|
jest.autoMockOff();
var _ = require('underscore');
var { evaluate } = require('../src/index.js');
var { base } = require('../src/config.js');
var keyGen = require('../src/key-gen.js');
// Generated offline with key-gen to avoid weird Jest import bug with CoinKey
var signatures = [
{
signatureString: '8459... |
import React from 'react';
import SvgIcon from '../../SvgIcon';
const ContentArchive = (props) => (
<SvgIcon {...props}>
<path d="M20.54 5.23l-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-.17-.93-.46-1.27zM12 17.5L6.5 12H1... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict
* @format
*/
'use strict';
export interface GraphQLReporter {
reportMessage(message: string): void;
reportTi... |
'use strict';
var should = require('should'),
request = require('supertest'),
app = require('../../server'),
mongoose = require('mongoose'),
User = mongoose.model('User'),
LogrosAcademico = mongoose.model('LogrosAcademico'),
agent = request.agent(app);
/**
* Globals
*/
var credentials, user, logrosAcademico;
... |
var express = require('express');
var app = express();
var mongoose = require('mongoose');
mongoose.connect('mongodb://localhost/messageBoard');
mongoose.Promise = global.Promise;
var Schema = mongoose.Schema;
var MessageSchema = new mongoose.Schema({
name: {type: String, required: true, minlength: 1},
... |
(function() {
"use strict";
(function() {
var NGUeditor;
NGUeditor = angular.module("ng.ueditor", []);
NGUeditor.directive("ueditor", ['$timeout',
function($timeout) {
return {
restrict: "C",
require: "ngModel",
scope: {
config: "=",
re... |
"use strict";
var _interopRequire = require("babel-runtime/helpers/interop-require")["default"];
Object.defineProperty(exports, "__esModule", {
value: true
});
var isNumber = require("lodash").isNumber;
var includeIoMixin = _interopRequire(require("./io-mixin"));
var UnsignedInt = {
read: function read(io) {
... |
function Writer(properties) {
this._data = '';
}
module.exports = Writer;
Writer.prototype.write = function(line) {
if (arguments.length === 0) {
line = '';
}
this._data += line + '\n';
};
Writer.prototype.file = function(uri) {
this.write(uri);
};
Writer.prototype.comment = function(comment) {
this... |
'use strict'
export class Cursor {
constructor () {
this._size = 14
this._timeout = 400
this._initTransition = `all ${this._timeout}ms ease-in-out`
this._position = {
x: 0,
y: 0
}
this._point = window.document.getElementById('mocha-extjs-testing-tool-pointer')
if (!this._po... |
angular.module('quiz.ctrl', [])
// 一次性填写个性标签的控制器
.controller('QuizCtrl',
function($scope, $ionicSlideBoxDelegate, $ionicLoading,
QuizModel, QuizSubmit, PersonalInfo, PersonalInfoMange) {
var quiz = QuizModel.quiz;
// 当前的问卷序号
$scope.index = 0;
$scope.quiz = quiz;
// 禁止滑动
$scope.disableS... |
CKEDITOR.plugins.setLang("colorbutton","no",{auto:"Automatisk",bgColorTitle:"Bakgrunnsfarge",colors:{"000":"Svart",8E5:"Rødbrun","8B4513":"Salbrun","2F4F4F":"Grønnsvart","008080":"Blågrønn","000080":"Marineblått","4B0082":"Indigo",696969:"Mørk grå",B22222:"Mørkerød",A52A2A:"Brun",DAA520:"Lys brun","006400":"Mørk grønn"... |
function render() {
var div = <div>
{fn(i++)}
</div>;
return <root>{div}</root>;
}
|
/*
* 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";
// local modules _must_ be explicitly mocked
jest.mock("../lib/git-push");
jest.mock("../lib/is-anything-committed");
jest.mock("../lib/is-behind-upstream");
jest.mock("../lib/remote-branch-exists");
const path = require("path");
// mocked modules
const { promptSelectOne } = require("@lerna/prompt");
... |
var App = App || {};
(function () {
var appLocalizationSource = abp.localization.getSource('BackgroundJobAndNotificationsDemo');
App.localize = function () {
return appLocalizationSource.apply(this, arguments);
};
})(App); |
var hammerhead = window.getTestCafeModule('hammerhead');
var browserUtils = hammerhead.utils.browser;
var iframeSandbox = hammerhead.sandbox.iframe;
var testCafeCore = window.getTestCafeModule('testCafeCore');
var domUtils = testCafeCore.get('./utils/dom');
var textSelection = testCafeCore.get('./utils/text-... |
import React from 'react'
import ReactDOM from 'react-dom'
import 'font-awesome/css/font-awesome.css'
import './app.css'
import App from 'containers/App/App'
import {hashHistory} from 'react-router'
import makeRoutes from './routes'
const routes = makeRoutes()
const mountNode = document.querySelector('#root');
Rea... |
var EVENT_NAME_MAP = {
transitionend: {
transition: 'transitionend',
WebkitTransition: 'webkitTransitionEnd',
MozTransition: 'mozTransitionEnd',
OTransition: 'oTransitionEnd',
msTransition: 'MSTransitionEnd'
},
animationend: {
animation: 'animationend',
WebkitAnimation: 'webkitAnimati... |
(function() {
"use strict"
/**
* Finds the series of n numbers in which each
* number is the sum of the two preceding numbers.
* @param {integer} n The number of iterations of Fibonacci
*/
function fibonacci(n) {
if (n == 1) {
return [ 1 ];
}
// Defi... |
import {Box} from './util';
const Web3 = require('web3');
const web3 = new Web3();
const Tx = require('ethereumjs-tx');
const Wallet = require('ethereumjs-wallet');
const setWeb3Provider = () => {
web3.setProvider(new web3.providers.HttpProvider(process.env.REACT_APP_PROVIDER));
};
const CHAIN_ID = process.env.REA... |
$(document).ready(function () {
$(".todo-list").css({'overflow':'auto'});
$("#minute-step-timepicker").val("");
$("#todo-addform").hide();
$("#basic-datepicker").datepicker({
autoclose: true,
startDate: new Date(),
format:'MM d, yyyy',
});
//task-done
$('#minute-st... |
//////////////////////////////////////////////////////////////////////////
// //
// This is a generated file. You can view the original //
// source in your browser if your browser supports source maps. //
// ... |
import { lastItem } from 'utils/array';
export default function ( items, leadingPattern, trailingPattern ) {
var item;
if ( leadingPattern ) {
item = items[0];
if ( typeof item === 'string' ) {
item = item.replace( leadingPattern, '' );
if ( !item ) {
items.shift();
} else {
items[0] = item;
... |
/*
AngularJS v1.3.0
(c) 2010-2014 Google, Inc. http://angularjs.org
License: MIT
*/
(function (q, g, r) {
'use strict'; function F(a) { var d = []; t(d, g.noop).chars(a); return d.join("") } function m(a) { var d = {}; a = a.split(","); var c; for (c = 0; c < a.length; c++) d[a[c]] = !0; return d } function G(a, d... |
Clazz.declarePackage ("J.shapespecial");
Clazz.load (["J.shape.AtomShape", "JU.P3", "$.V3"], "J.shapespecial.Polyhedra", ["java.lang.Boolean", "JU.AU", "$.BS", "$.Measure", "$.P3i", "$.SB", "J.c.PAL", "J.shapespecial.Polyhedron", "JU.Logger", "$.Normix"], function () {
c$ = Clazz.decorateAsClass (function () {
this.... |
/*
Data Downloader
*/
var datenow = Date.now();
var data = exports.data = [
{
url: "https://raw.githubusercontent.com/Zarel/Pokemon-Showdown/master/config/formats.js",
file: "formats.js"
},
{
url: "https://raw.githubusercontent.com/Zarel/Pokemon-Showdown/master/data/formats-data.js",
file: "formats-data.j... |
var expect = require('chai').expect,
FILL_ME_IN;
describe("About Expects", function() {
// We shall contemplate truth by testing reality, via spec expectations.
it("should expect true", function() {
expect(true).to.be.true; //This should be true
});
// To understand reality, we must compare our expect... |
// Platform: ubuntu
// ab3fc0f59dbba0cc402d40a26276675f05924ae1
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under th... |
'use strict';
require('../common');
const assert = require('assert');
const initHooks = require('./init-hooks');
const tick = require('./tick');
const { checkInvocations } = require('./hook-checks');
const fs = require('fs');
const hooks = initHooks();
hooks.enable();
const watcher = fs.watch(__filename, onwatcherCh... |
import { assertProps, shallowRender } from '../../modules/specHelpers'
import assert from 'assert'
import React from 'react/addons'
import Touchable from '.'
const children = <span style={{}}>children</span>
const requiredProps = { children }
suite('Touchable', () => {
test('prop "accessibilityLabel"', () => {
... |
module.exports = function(Module3) {
return {
prop: "Module",
mod3: Module3
};
};
module.exports.__module = {
properties: {
mod2: "./Module2",
mod1: "../Module1"
},
args: ["./namespace1/Module3"]
}
|
module.exports = test
var fs = require("fs")
var through2 = require("through2")
var devnull = require("terminus").devnull
function test(file, transform) {
var chunks = 0
var bytes = 0
var start = Date.now()
var fileStream = fs.createReadStream(file)
var spy = through2(function (chunk, encoding, callback) ... |
var webpack = require('webpack')
var path = require('path')
var name = require('./package.json').name.replace(/-(\w)/g, function (match) { return match.slice(1).toUpperCase() } )
module.exports = {
entry: './src/main.js',
output: {
path: './dist',
publicPath: '/',
filename: 'build.js',
library: nam... |
'use strict';
// See documentation here: http://www.microsoft.com/typography/otspec/maxp.htm
var _ = require('lodash');
var ByteBuffer = require('microbuffer');
// Find max points in glyph TTF contours.
function getMaxPoints(font) {
return _.max(_.map(font.glyphs, function (glyph) {
return _.reduce(glyph.ttfCo... |
var R = require('../source');
var eq = require('./shared/eq');
describe('useWith', function() {
function max() { return Math.max.apply(Math, arguments); }
function add1(x) { return x + 1; }
function mult2(x) { return x * 2; }
function div3(x) { return x / 3; }
var f = R.useWith(max, [add1, mult2, div3]);
... |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.add('docprops', {init:function(a) {
var b = new CKEDITOR.dialogCommand('docProps');
b.modes = {wysiwyg:a.config.fullPage};
a.addCommand('docProps',... |
'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... |
define({
"labelBookmarkName": "Skapa ett bokmärke för den aktuella vyn",
"labelPlay": "Spela alla",
"labelStop": "Stoppa",
"labelDelete": "Ta bort",
"placeholderBookmarkName": "Skapa ett bokmärke för namn",
"errorNameExist": "Det finns ett bokmärke!",
"errorNameNull": "Ogiltigt namn på bokmärke!",
"_wid... |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.tools} object, which contains
* utility functions.
*/
(function() {
var functions = [];
CKEDITOR.on('reset', f... |
/* */
System.register(["aurelia-templating"], function (_export) {
"use strict";
var Behavior, _prototypeProperties, Show;
function addStyleString(str) {
var node = document.createElement("style");
node.innerHTML = str;
node.type = "text/css";
document.head.appendChild(node);
}
return {
... |
YUI.add('gallery-notifications', function(Y) {
/*
* Copyright (c) 2010 Ricardo Ramirez. All rights reserved.
*
* Holds information about a Notification. The Notifications (plural) class has a collection of
* Notification that are then displayed. This maps the needed information for the notification like a
... |
'use strict';
exports = module.exports = {
// List of user roles
userRoles: ['guest', 'employee', 'admin']
};
|
/**
** pequeña función para animar scroll
*/
$(document).ready(function() {
$('.popoverable').popover({});
$('a[href*=#]:not([href=#])').click(function() {
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
var target = $(this.hash);
... |
/* global define, require */
(function (root, factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['seriously'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
factory(require('seriously'));
} else {
if (!root.Se... |
/**
* lodash 3.9.0 (Custom Build) <https://lodash.com/>
* Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigat... |
export default function ({ types: t }) {
let IGNORE = Symbol();
return {
visitor: {
Scope({ scope }) {
if (!scope.getBinding("Symbol")) {
return;
}
scope.rename("Symbol");
},
UnaryExpression(path) {
let { node, parent } = path;
if (node[IGNO... |
/**
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
module.exports = require.main;
|
/**
* Copyright (c) 2015-present, Alibaba Group Holding Limited.
* All rights reserved.
*
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* @providesModule ReactBuildStyleInterpolator
*/
/**
* Cannot "use strict" because we must use eval in this file.
*/
/* eslint-disable global-strict ... |
(function(addon) {
var component;
if (window.UIkit) {
component = addon(UIkit);
}
if (typeof define == "function" && define.amd) {
define("uikit-datepicker", ["uikit"], function(){
return component || addon(UIkit);
});
}
})(function(UI){
"use strict";
... |
version https://git-lfs.github.com/spec/v1
oid sha256:6bfe5674f3b96fded2a4abade313e072b80f089c3b3f597b6bc37e789b817915
size 2515
|
/*! grunt-grunticon Stylesheet Loader - v2.1.6 | https://github.com/filamentgroup/grunticon | (c) 2015 Scott Jehl, Filament Group, Inc. | MIT license. */
|
/**
* Grid is a region which contains at most 4 cartesian systems
*
* TODO Default cartesian
*/
define(function(require, factory) {
var layout = require('../../util/layout');
var axisHelper = require('../../coord/axisHelper');
var zrUtil = require('zrender/core/util');
var Cartesian2D = require('.... |
import BelongsToHelper from './belongs-to-helper';
import Mirage from 'ember-cli-mirage';
import Model from 'ember-cli-mirage/orm/model';
import Schema from 'ember-cli-mirage/orm/schema';
import Db from 'ember-cli-mirage/db';
import {module, test} from 'qunit';
module('Integration | ORM | belongsTo #accessor', {
bef... |
define({
"_widgetLabel": "Pengukuran"
}); |
// Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.
$(function () {
var active = 'active';
var expanded = 'in';
var collapsed = 'collapsed';
var filtered = 'filtered';
var show = 'show';
var hide = 'hide';
var ... |
/*globals ENV */
require('ember-metal');
/**
@module ember
@submodule ember-runtime
*/
var indexOf = Ember.EnumerableUtils.indexOf;
/**
This will compare two javascript values of possibly different types.
It will tell you which one is greater than the other by returning:
- -1 if the first is smaller than the s... |
/*
set display:inline if the element with the specified id
only if compare1 and compare2 are equal strings. Otherwise
set display:none on the element. When set to none, the
element is hidden from view, and all surrounding content
cinches up to occupy whatever space the element would
normally occupy. ... |
'use strict';
var debug = require('debug')('licenses::npm');
/**
* Parser for npm based license information.
*
* @constructor
* @api public
*/
module.exports = require('./parser').extend({
/**
* The name of this parser.
*
* @type {String}
* @private
*/
name: 'npm',
/**
* Parse the npm li... |
/**
* @license Highcharts JS v7.2.0 (2019-09-03)
*
* Highcharts funnel module
*
* (c) 2010-2019 Kacper Madej
*
* License: www.highcharts.com/license
*/
'use strict';
(function (factory) {
if (typeof module === 'object' && module.exports) {
factory['default'] = factory;
module.exports = facto... |
import React, { PropTypes } from 'react';
import { Provider } from 'react-redux';
import { Router } from 'react-router';
import { getRoutes } from './routes';
export default function Root({history, store}) {
return (
<Provider store={store}>
<Router history={history} routes={getRoutes(store.getState)} />
... |
var gulp = require('gulp')
var gutil = require('gulp-util')
var path = require('path')
var merge = require('merge-stream')
gulp.task('init-config', function() {
var configStream = gulp.src(['gulpfile.js/path-config.json', 'gulpfile.js/task-config.js'])
.pipe(gulp.dest(path.join(process.env.PWD, 'config')))
gu... |
import waitForPromises from 'helpers/wait_for_promises';
import suppressAjaxErrorsDuringNavigation from '~/lib/utils/suppress_ajax_errors_during_navigation';
describe('suppressAjaxErrorsDuringNavigation', () => {
const OTHER_ERR_CODE = 'foo';
const NAV_ERR_CODE = 'ECONNABORTED';
it.each`
isUserNavigating | ... |
var fs = {};
fs.readFile = function (filename, options, callback) {
// Note: options is the optional element here, not callback.
if (arguments.length < 3) {
callback = options;
options = {};
}
if (filename[0] == '/')
throw new Error("Don't use absolute paths!");
var xhr = new XMLHttpRequest();
x... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import type {
Destination,
Chunk,
BundlerConfig,
ModuleMetaData,
ModuleReference,
} from './ReactFlightServe... |
/*!
* remark (http://getbootstrapadmin.com/remark)
* Copyright 2016 amazingsurge
* Licensed under the Themeforest Standard Licenses
*/
$.components.register("selectpicker", {
mode: "default",
defaults: {
style: "btn-select",
iconBase: "icon",
tickIcon: "md-check"
}
});
|
/**
* Room settings commands
* Pokemon Showdown - http://pokemonshowdown.com/
*
* Commands for settings relating to room setting filtering.
*
* @license MIT license
*/
'use strict';
const RANKS = Config.groupsranking;
const SLOWCHAT_MINIMUM = 2;
const SLOWCHAT_MAXIMUM = 60;
const SLOWCHAT_USER_REQUIREMENT = 1... |
(function () {
// a stupidly simple copy button
// - copies on awesome browsers/devices
// - selects text on underwhelming mobile devices
var copyBtn = document.querySelector('.js-copy-btn');
copyBtn.addEventListener('click', function (event) {
// select the text
var copyItem = docum... |
define("rollbar", [], function() { return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(in... |
define('abc', {
a: 1
});
define('bcd', {
b: 1
}); |
import _curry2 from './internal/_curry2.js';
import _assertPromise from './internal/_assertPromise.js';
/**
* Returns the result of applying the onSuccess function to the value inside
* a successfully resolved promise. This is useful for working with promises
* inside function compositions.
*
* @func
* @memberO... |
'use strict';
var WebElement = require('./WebElement');
var addFinalProp = require('../utils').addFinalProp;
var collectionsToArrayList = require('../utils').collectionsToArrayList;
module.exports = FindsByName;
function FindsByName(instance) {
addFinalProp(this, '_instance', instance);
}
FindsByName.prototype.fi... |
/**
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
* Licensed under the LGPL or a commercial license.
* For LGPL see License.txt in the project root for license information.
* For commercial licenses see https://www.tiny.cloud/
*
* Version: 5.0.8 (2019-06-18)
*/
!function(){"use strict";var e=tinym... |
/**
* @license Highcharts JS v7.1.2 (2019-06-04)
*
* StaticScale
*
* (c) 2016-2019 Torstein Honsi, Lars A. V. Cabrera
*
* License: www.highcharts.com/license
*/
'use strict';
(function (factory) {
if (typeof module === 'object' && module.exports) {
factory['default'] = factory;
module.export... |
'use strict';
module.exports = srcPath => {
const Broadcast = require(srcPath + 'Broadcast');
const Flag = require(srcPath + 'EffectFlag');
return {
config: {
name: 'Buff Strength',
description: "You feel stronger!",
duration: 30 * 1000,
type: 'buff.strength',
},
flags: [Flag... |
var PV = PackageVersion;
var CS = ConstraintSolver;
// `check` can be really slow, so this line is a valve that makes it
// easy to turn off when debugging performance problems.
var _check = check;
// The "Input" object completely specifies the input to the resolver,
// and it holds the data loaded from the Catalog a... |
// Copyright Joyent, Inc. and other Node contributors.
//
// 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 the rights to use, copy, modi... |
// dna.js ~~ MIT License
const dna = {
version: '[VERSION]',
// API:
// dna.clone()
// dna.cloneSub()
// dna.createTemplate()
// dna.getModel()
// dna.empty()
// dna.insert()
// dna.refresh()
// dna.refreshAll()
// dna.destroy()
// dna.getClone()
// ... |
import Ember from 'ember';
import DS from 'ember-data';
import syncLoads from 'ember-data-offline/logics/sync-loads';
import Queue from 'ember-data-offline/queue';
import Config from 'ember-data-offline/config';
import config from '../config/environment';
var mainConfig = Config.create({
custom: Ember.getWithDefault... |
$(function() {
var searchWidth = $('#npm-search').outerWidth() - $('#site-search-submit').outerWidth();
$.getScript("//cnstrc.com/js/ac.js", function() {
$('#site-search').constructorAutocomplete({ key: 'CD06z4gVeqSXRiDL2ZNK', directResults: true, maxHeight: 400, width: searchWidth });
});
$(window).resi... |
var parent = require('../../actual/array/entries');
module.exports = parent;
|
// Generated by CoffeeScript 1.9.1
'use strict';
var addDeprecatedOpts, aliases, buildCmd, commands, program, watchCmd,
indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
program = require('commander');
commands = requ... |
import Parchment from 'parchment';
import { sanitize } from '../formats/link';
const ATTRIBUTES = [
'alt',
'height',
'width'
];
class Image extends Parchment.Embed {
static create(value) {
let node = super.create(value);
if (typeof value === 'string') {
node.setAttribute('src', this.sanitize(va... |
window.common = (function () {
var common = {};
common.getFragment = function getFragment() {
if (window.location.hash.indexOf("#") === 0) {
return parseQueryString(window.location.hash.substr(1));
} else {
return {};
}
};
function parseQueryString(quer... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
/* eslint-disable no-param-r... |
//>>built
define("dojox/form/nls/eu/CheckedMultiSelect",{invalidMessage:"Gutxienez elementu bat hautatu behar da.",multiSelectLabelText:"{num} item hautatu d(ir)a"});
|
import $ from 'jquery';
import Vue from 'vue';
import Translate from '~/vue_shared/translate';
import csrf from '~/lib/utils/csrf';
import deleteProjectModal from './components/delete_project_modal.vue';
document.addEventListener('DOMContentLoaded', () => {
Vue.use(Translate);
const deleteProjectModalEl = docum... |
version https://git-lfs.github.com/spec/v1
oid sha256:aa3bc3a51f3077fb6fcbb4c210e296852bb15f3961a6e0e3a176fb7071a59ac0
size 3469
|
(function() {
var Events, Mediator, mediator;
Events = require('backbone-events-standalone');
Mediator = (function() {
Mediator.prototype.attributes = {};
function Mediator() {}
Mediator.prototype.set = function(key, data) {
return this.attributes[key] = data;
... |
'use strict';
require('../common');
const assert = require('assert');
const { AsyncLocalStorage } = require('async_hooks');
const asyncLocalStorage = new AsyncLocalStorage();
async function test() {
asyncLocalStorage.getStore().set('foo', 'bar');
await Promise.resolve();
assert.strictEqual(asyncLocalStorage.get... |
module.exports = (function() {
// This requires module requests jQuery; if jQuery isn't found...
if (!window.jQuery) {
// ...exit the function.
return;
}
return {
// The "misc" property contains any miscellaneous properties that we might need throughout this module.
misc... |
/* global QUnit */
// import { TextureLoader } from '../../../../src/loaders/TextureLoader.js';
export default QUnit.module( 'Loaders', () => {
QUnit.module( 'TextureLoader', () => {
// INSTANCING
QUnit.todo( 'Instancing', ( assert ) => {
assert.ok( false, 'everything\'s gonna be alright' );
} );
// ... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _reactAddonsPureRenderMixin = require('react-addons-pure-render-mixin');
var _reactAddonsPureRenderMixin2 = _interopRequireDefault(_reactAddonsPureRenderMi... |
!function(){var e;jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd&&(e=jQuery.fn.select2.amd),e.define("select2/i18n/tk",[],function(){return{errorLoading:function(){return"Netije ýüklenmedi."},inputTooLong:function(e){return e.input.length-e.maximum+" harp bozuň."},inputTooShort:function(e){return"Ýene-de i... |
(function() {
var sync = Backbone.sync;
var ajax = Backbone.ajax;
var history = window.history;
var pushState = history.pushState;
var replaceState = history.replaceState;
QUnit.testStart(function() {
var env = this.config.current.testEnvironment;
// We never want to actually call these during te... |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('primeng/dom'), require('primeng/api')) :
typeof define === 'function' && define.amd ? define('primeng/blockui', ['exports', '@angular/core'... |
'use strict';
// Users service used for communicating with the users REST endpoint
angular.module('user').factory('User', ['$resource',
function($resource) {
return $resource('api/user', {}, {
get: {
method: 'GET'
},
update: {
method: 'PUT'
}
});
}
]);
angular.modul... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S15.9.5.33_A1_T1;
* @section: 15.9.5.33;
* @assertion: The Date.prototype property "setUTCMinutes" has { DontEnum } attributes;
* @description: Checking absence of ReadOn... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.