code stringlengths 2 1.05M |
|---|
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
module('JobsStateController', function(hooks) {
setupTest(hooks);
// Replace this with your real tests.
test('it exists', function(assert) {
var controller = this.owner.lookup('controller:jobs/state');
assert.ok(controller);
... |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M12 10.9c-.61 0-1.1.49-1.1 1.1s.49 1.1 1.1 1.1c.61 0 1.1-.49 1.1-1.1s-.49-1.1-1.1-1.1zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm2.1... |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2019 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var GameObjectFactory = require('../../GameObjectFactory');
var IsoTriangle = require('./IsoTriangle');
/**
* Creates a new IsoTriangle Shape ... |
/*
server.js
=========
Testem's server. Serves up the HTML, JS, and CSS required for
running the tests in a browser.
*/
var Express = require('express')
, SocketIO = require('socket.io')
, BrowserRunner = require('./browser_runner')
, fs = require('fs')
, path = require('path')
, util = require('util')
... |
module = module.exports = (function () {
var _ = {};
_.extract3x3 = function (model, screen, oldpos) {
function getValue(offset) {
var
x = oldpos.col + offset.x,
y = oldpos.row + offset.y;
if (x < 0 || y < 0 || x >= model.gridCols || y >= model.gridRows)
return ' ';
... |
import React from 'react'
import Icon from 'react-icon-base'
const IoFork = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m21.1 11.6z m3.9 1.4c0 2-1.2 3.7-2.9 4.5-0.9 0.5-0.8 0.9-0.8 0.9s1.2 15.6 1.2 16.6-0.2 1.4-0.7 1.9-1.2 0.6-1.8 0.6-1.2-0.2-1.7-0.6-0.8-1-0.8-1.9 1.3-16.6 1.3-16.6 0-0.5-... |
/**
* Created by hooxin on 14-10-12.
*/
Ext.define('Techsupport.view.sysadmin.dictItem.Detail', {
extend: 'Techsupport.view.base.BaseDetail',
alias: 'widget.dictItemDetail',
initComponent: function () {
this.callParent(arguments)
this.down('form').add({
xtype: 'panel',
... |
'use strict';
/* global
VALID_CLASS: false,
INVALID_CLASS: false,
PRISTINE_CLASS: false,
DIRTY_CLASS: false,
ngModelMinErr: false
*/
// Regex code was initially obtained from SO prior to modification: https://stackoverflow.com/questions/3143070/javascript-regex-iso-datetime#answer-3143231
var ISO_DATE_REGEX... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V8h5.47L13 7v1h4V5.33C17 4.6 16.4 4 15.67 4z" /><path d="M13 12.5h2L11 20v-5.5H9L1... |
import errors from 'restify-errors'
import joi from 'joi'
import User from '../models/user'
import logger from '../lib/logger'
import { send200, send201, send400, send500 } from '../lib/rest-helper'
async function get(req, res, next) {
let data
const inputSchema = joi
.object({
locnNbr: joi.number().inte... |
const DrawCard = require('../../../drawcard.js');
class Lady extends DrawCard {
setupCardAbilities(ability) {
this.whileAttached({
effect: ability.effects.modifyStrength(2)
});
this.action({
title: 'Pay 1 gold to attach Lady to another character',
method... |
/**
* @class AccessProfile
* @classdesc The AccessProfile class has been added to the DOCUMENTS PortalScripting API to gain full access to the DOCUMENTS access profiles by scripting means.
* A SystemUser can be assigned to an AccessProfile. At the filetype it is possible to define several rights depending on the Acces... |
var Simwp = (function($){
var simwp = {};
simwp.locale = 'en';
// ajax options
simwp.set = function(key, val){
$.ajax({
url : '.',
data : {
key : val
},
method : 'POST',
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
};
simwp.trigger = function(a... |
'use strict';
/* Need to load them manually when doing jscover */
require('../models/article');
require('../../../users/server-cov/models/user');
var mongoose = require('mongoose');
var Article = mongoose.model('Article');
var User = mongoose.model('User');
exports.addFriend = function(req, res) {
User.update({
... |
(function() {
'use strict';
angular
.module('groceries')
.controller('LoginController', LoginController);
LoginController.$inject = ['$location', 'groceriesService', 'localStorageService'];
function LoginController($location, groceriesService, localStorageService) {
var vm = t... |
/**
* gollum.editor.js
* A jQuery plugin that creates the Gollum Editor.
*
* Usage:
* $.GollumEditor(); on DOM ready.
*/
(function($) {
// Editor options
var DefaultOptions = {
MarkupType: 'markdown',
EditorMode: 'code',
NewFile: false,
HasFunctionBar: true,
Debug: false,
NoDefini... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.MultiSelectPanel = void 0;
var _react = _interopRequireWildcard(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _reactDom = _interopRequireDefault(require("react-dom"));
var _classnames = _... |
import { Injectable, defineInjectable, inject } from '@angular/core';
import { Angulartics2 } from 'angulartics2';
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var Angulartics2Piwik = /** @class */ (function () {
func... |
(function(window){
var urlCount = 0,
NativeMediaSource = window.MediaSource || window.WebKitMediaSource || {},
nativeUrl = window.URL || {},
EventEmitter,
flvCodec = /video\/flv; codecs=["']vp6,aac["']/,
objectUrlPrefix = 'blob:vjs-media-source/';
EventEmitter = function(){};
EventE... |
// PLUGIN: TV - an interactive debug console plugin for hapi
// TV is a simple web page in which developers can view server logs for their requests.
// https://github.com/hapijs/tv
/*
var config = require("config");
module.exports = function registerTv(server){
server.register(
{
register: r... |
#!/usr/bin/env babel-node --optional es7.asyncFunctions
import fs from 'fs';
import path from 'path';
import { Schema } from '../data/schema';
import { graphql } from 'graphql';
import { introspectionQuery } from 'graphql/utilities';
async () => {
var result = await (graphql(Schema, introspectionQuery));
if (resu... |
import generateConfig from '../../rollup-generate-config';
import pkg from './package.json';
export default generateConfig(pkg, 'valueTypes');
|
(function (angular) {
'use strict';
angular.module('birdyard.users')
.factory('authService', ['$rootScope', '$timeout', '$q', 'firebaseService', '$Auth', '$firebaseObject', 'colorService', 'presenceService',
function ($rootScope, $timeout, $q, firebaseService, $Auth, $firebaseObject, colorService, pre... |
import { RequestHook, Selector } from 'testcafe';
import { resolve } from 'path';
const ReExecutablePromise = require(resolve('./lib/utils/re-executable-promise'));
export default class CustomHook extends RequestHook {
constructor (config) {
super(null, config);
this.pendingAjaxRequestIds = new S... |
module.exports = {
blog: require('./blog'),
auth: require('./auth')
};
|
import mixpanel from 'mixpanel-browser';
import {editorReady} from '../../actions/instrumentation';
import {makeInstrumentEnvironmentReady} from '../instrumentEnvironmentReady';
import {makeTestLogic} from './helpers';
test('dispatches to mixpanel on the first editor ready action', async () => {
const testLogic = ... |
(function (define) {
define( function ( ){
return { name: 'one' };
});
}(typeof define === 'function' && define.amd ? define : function () {
}));
|
// If you want to suggest a new language you can use this file as a template.
// To reduce the file size you should remove the comment lines (the ones that start with // )
if(!window.calendar_languages) {
window.calendar_languages = {};
}
// Here you define the language and Country code. Replace en-US with your own.
/... |
require("./node");
var transform = module.exports = require("../transformation");
transform.options = require("../transformation/file/options");
transform.version = require("../../../package").version;
transform.transform = transform;
transform.run = function (code, opts = {}) {
opts.sourceMaps = "inline";
retur... |
module.exports = require('./lib/connect')
|
import Ember from 'ember';
export default Ember.Component.extend({
tagName: '',
errorMessages: Ember.computed('errors', function() {
if (this.get('errors.length')) {
return `${ this.get('errors').join(', ') }.`;
}
}),
actions: {
clearMessages() {
this.set('errors', null);
}
}
})... |
var cp_space_serializer_8h =
[
[ "cpSpaceSerializerDelegate", "classcp_space_serializer_delegate.html", "classcp_space_serializer_delegate" ],
[ "cpSpaceSerializer", "classcp_space_serializer.html", "classcp_space_serializer" ],
[ "__CPSPACESERIALIZER_H__", "cp_space_serializer_8h.html#aa21d15bcdad4b0f9b8c8... |
/*
Siesta 2.0.5
Copyright(c) 2009-2013 Bryntum AB
http://bryntum.com/contact
http://bryntum.com/products/siesta/license
*/
/**
@class Siesta.Recorder.TargetExtractor.Recognizer.DatePicker
*
* A class recognizing the Ext JS DatePicker component
**/
Class('Siesta.Recorder.TargetExtractor.Recognizer.DatePicker', {
... |
var mongoose = require('mongoose');
var User = mongoose.model('User');
// Estrategia de autenticación con Twitter
var TwitterStrategy = require('passport-twitter').Strategy;
// Estrategia de autenticación con Facebook
var FacebookStrategy = require('passport-facebook').Strategy;
// Fichero de configuración donde se enc... |
/*!
* Bootstrap-select v1.13.1 (https://developer.snapappointments.com/bootstrap-select)
*
* Copyright 2012-2018 SnapAppointments, LLC
* Licensed under MIT (https://github.com/snapappointments/bootstrap-select/blob/master/LICENSE)
*/
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
... |
'use_strict';
/*
* Model Names Register:
* only registered model can have relations
*
* Relations register:
* there must be some evidence of relations, to prevent duplicities,
* and easy getting relation details, such as type, or constructor
*
*/
var _models = {};
var _relations = {};
module.exports = {
... |
var _ = require('lodash'),
deepExtend = require('deep-extend');
module.exports = function (queryObj, properties, deep) {
return function updateRelations(assetGraph) {
assetGraph.findRelations(queryObj).forEach(function (relation) {
if (deep) {
deepExtend(relation, properties... |
Date.prototype.format = function(format) {
var o = {
"M+" : this.getMonth() + 1, // month
"d+" : this.getDate(), // day
"h+" : this.getHours(), // hour
"m+" : this.getMinutes(), // minute
"s+" : this.getSeconds(), // second
"q+" : Math.floor((this.getMonth() + 3) / 3), // quarter
"S" : this.getMillisecon... |
(function() {
"use strict";
describe('Mouse controls - noSwitching Range Horizontal', function() {
var helper,
RzSliderOptions,
$rootScope,
$timeout;
beforeEach(module('test-helper'));
beforeEach(inject(function(TestHelper, _RzSliderOptions_, _$rootScope_, _$timeout_) {
helper... |
function exposeTestFunctionNames() {
return [
'testGetItems',
'testGetNext',
'testGetPrev',
'testEach'
];
}
function testGetItems() {
var eventSource = tm.timeline.getBand(0).getEventSource(), items, item;
assertEquals("Four items in eventSource", 4, eventSource.getCount... |
module.exports = function (grunt) {
require('load-grunt-tasks')(grunt);
var pkg = grunt.file.readJSON('package.json');
var colors = {
'red': '#F44336',
'pink': '#E91E63',
'purple': '#9C27B0',
'deep-purple': '#673AB7',
'indigo': '#3F51B5',
'blue': '#2196F3',
... |
/**
* @license
* Copyright Google Inc. 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) {
glo... |
Resizeable = Class.create();
Resizeable.prototype = {
startX: null,
startY: null,
startWidth: null,
startHeight: null,
active: false,
elem: null,
cont: null,
handle: null,
onend: null,
minWidth: 0,
minHeight: 0,
initialize: function(container,element,options) {
this.cont = $(co... |
var path = require('path');
var webpack = require('webpack');
module.exports = {
entry: [
'webpack-dev-server/client?http://localhost:3000',
'webpack/hot/only-dev-server',
'./src/main'
],
output: {
path: path.join(__dirname, 'public', 'dist'),
filename: 'app.js',
publicPath: 'http://local... |
$(function() {
$(".article-sidebar .sticky").css('width', $(".article-sidebar .sticky").width()-2);
$(".article-sidebar .sticky").sticky({topSpacing:45});
$(".article-sidebar ul.categories a").on('click', function(e) {
if (!$(this).siblings('ul').length)
return;
e.preventDefault(... |
"use strict";
// this prevents Rekuire from being cached, so 'parent' is always updated
delete require.cache[require.resolve(__filename)];
var path = require('path');
var scanner = require('./helpers/scanner');
var findBase = require('./helpers/findBase');
var baseDir = findBase(module.parent.paths);
var pkg = requi... |
let WebpackExtractPlugin = require('extract-text-webpack-plugin')
class ExtractTextPluginFactory {
/**
* Create a new class instance.
*
* @param {string|boolean} cssPath
*/
constructor(mix, cssPath) {
if (typeof cssPath === 'boolean') {
cssPath = path.join(global.entry.b... |
'use strict';
var extname = require('../extname');
/**
* Constants
*/
var TARGET_TYPES = ['html', 'jade', 'slm', 'jsx', 'haml'];
var IMAGES = ['jpeg', 'jpg', 'png', 'gif'];
var DEFAULT_TARGET = TARGET_TYPES[0];
/**
* Transform module
*/
var transform = module.exports = exports = function (filepath, i, length, sou... |
var response_lib = require('../lib/response_lib');
var reql = require('../lib/request_lib');
function timestags (keys) {
this.myKeys = keys;
}
timestags.prototype.search = function (args, callback, myKeys) {
var callbackReturn = response_lib.checkCallback(args, callback);
args = callbackReturn.args;
callback = ca... |
var errors = require('./errors');
function Collection() {
this.store = {};
this.lastId = 0;
}
Collection.prototype.seed = function(obj, cb) {
this.store = obj;
cb();
};
Collection.prototype.findAll = function(cb) {
var items = [];
for (var id in this.store) {
items.push(this.store[id]);
}
cb(nu... |
/* */
"format global";
/**
* Copyright 2015 Telerik AD
*
* 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 appl... |
import React from 'react';
import SvgIcon from '../../SvgIcon';
const HardwareKeyboardArrowLeft = (props) => (
<SvgIcon {...props}>
<path d="M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"/>
</SvgIcon>
);
HardwareKeyboardArrowLeft.displayName = 'HardwareKeyboardArrowLeft';
HardwareKeyboardArrowLeft.muiName... |
var _ = require('underscore'),
$ = require('jquery'),
React = require('react'),
Field = require('../Field'),
Note = require('../../components/Note'),
Select = require('react-select');
module.exports = Field.create({
shouldCollapse: function() {
return this.props.collapse && !this.hasExisting();
},
fileFie... |
var _ = require('lodash');
var jsParser = require('esprima');
var walk = require('dgeni-packages/jsdoc/lib/walk');
var LEADING_STAR = /^[^\S\r\n]*\*[^\S\n\r]?/gm;
module.exports = {
name: 'jsdoc',
description: 'Read js documents',
runAfter: ['files-read'],
runBefore: ['parsing-tags'],
exports: {
//The js... |
var extend = require('extend');
var _ = require('lodash');
var async = require('async');
var nodemailer = require('nodemailer');
var nunjucks = require('nunjucks');
var urls = require('url');
/**
* emailMixin
* @augments Augments the apos object with a mixin method for attaching
* a simple self.email method to modu... |
'use strict';
var _ = require('underscore'),
path = require('path'),
Promise = require('bluebird'),
errorHelper = require(path.join(global.__libdir, 'errorHelper')),
recallHelper = require(path.join(global.__libdir, 'recallHelper')),
mongoAdapter = require(path.join(global.__adptsdir, 'mongo'));
/**
* Adds a co... |
var _ = require('underscore');
var runLog = require('../run-log.js');
var catalog = require('../catalog/catalog.js');
var archinfo = require('../archinfo.js');
var isopack = require('../isobuild/isopack.js');
var buildmessage = require('../buildmessage.js');
var Console = require('../console.js').Console;
var auth = r... |
/* global document, clearTimeout, setTimeout */
import View from './View';
import Speaker from './Speaker';
/*
* Bar represents the bottom menu bar of every mediaPlayer.
* It contains a Speaker and an icon.
* Every Bar is a View.
* Ex.: var bar = Bar({elementID: element, id: id});
*/
const Bar = (spec) => {
co... |
/**
* @depends {nrs.js}
*/
var NRS = (function(NRS, $, undefined) {
var _password;
var _decryptionPassword;
var _decryptedTransactions = {};
var _encryptedNote = null;
var _sharedKeys = {};
var _hash = {
init: SHA256_init,
update: SHA256_write,
getBytes: SHA256_finalize
};
NRS.generatePublicKey = func... |
jui.define("chart.brush.scatter", [ "util.base" ], function(_) {
/**
* @class chart.brush.scatter
*
* 점으로 이루어진 데이타를 표현하는 브러쉬
*
* @extends chart.brush.core
*/
var ScatterBrush = function() {
this.getSymbolType = function(key, value) {
var symbol = this.brush.sy... |
import sinon from 'sinon';
import {expect} from 'chai';
import FetchPlease from '../src/fetch-please';
let XMLHttpRequest = sinon.useFakeXMLHttpRequest();
describe('Method putRequest()', () => {
before(function() {
this.requests = [];
this.api = new FetchPlease('/api/', {XMLHttpRequest});
... |
"use strict";
/**
* DateFormat モジュール
*
* @module {DateFormat} DateFormat
* @class {DateFormat}
*/
module.exports = new (function DateFormat() {
/**
* 実行コンテキスト
*
* @type {Function}
*/
const self = this;
/**
* 日時文字列にする
*/
const _init = function _init() {
};... |
Clazz.declarePackage ("JS");
Clazz.load (["JU.JmolMolecule", "JU.BS", "$.Lst", "JS.VTemp"], "JS.SmilesSearch", ["java.util.Arrays", "$.Hashtable", "JU.AU", "$.SB", "$.V3", "JS.SmilesAromatic", "$.SmilesAtom", "$.SmilesBond", "$.SmilesMeasure", "$.SmilesParser", "JU.BSUtil", "$.Logger"], function () {
c$ = Clazz.decor... |
'use strict'
const fs = require('../fs')
const path = require('path')
const util = require('util')
function getStats (src, dest, opts) {
const statFunc = opts.dereference
? (file) => fs.stat(file, { bigint: true })
: (file) => fs.lstat(file, { bigint: true })
return Promise.all([
statFunc(src),
st... |
import { T as Transport } from './transport-ce07b771.js';
import { S as Sync } from './util-89055384.js';
import { M as Master } from './master-04a42192.js';
import { g as getFilterPlayerView } from './filter-player-view-43ed49b0.js';
import ioNamespace__default from 'socket.io-client';
/*
* Copyright 2017 The board... |
var optimizeConfig = {
constantConstraintFactor: 100,
repulsionPower1: -8,
repulsionFactor: 50000,
repulsionThreshold: 5,
repulsionPower2: 2
};
var makeSegment = function(params) {
var groupIdx = params.groupIdx;
var tileIdx = params.tileIdx;
var patternIdx = params.patternIdx;
params.polygonID = polylist[gro... |
Clazz.declarePackage ("JS");
Clazz.load (null, "JS.ScriptContext", ["java.util.Hashtable", "JS.SV"], function () {
c$ = Clazz.decorateAsClass (function () {
this.aatoken = null;
this.allowJSThreads = false;
this.chk = false;
this.contextPath = " >> ";
this.vars = null;
this.displayLoadErrorsSave = false;
this.... |
"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=getClasses;var _react=_interopRequireDefault(require("react")),_createShallow=_interopRequireDefault(require("./createShallow")),shallow=(0,_createShallo... |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("./turn-order-4ab12333.js"),require("immer"),require("./plugin-random-7425844d.js"),require("lodash.isplainobject");var reducer=require("./reducer-fa65c6b2.js");require("rfc6902");var initialize=require("./initialize-d89f4805.js"),transport=req... |
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = exports.FormLabelRoot = exports.overridesResol... |
/**
* useful colors for bash
*/
'use strict';
module.exports = {
black: '\x1b[0;30m',
dkgray: '\x1b[1;30m',
brick: '\x1b[0;31m',
red: '\x1b[1;31m',
green: '\x1b[0;32m',
lime: '\x1b[1;32m',
brown: '\x1b[0;33m',
yellow: '\x1b[1;33m',
navy: '\x1b[0;34m',
blue: '\x1b[1;34m',
... |
/*!
* express
* Copyright(c) 2009-2013 TJ Holowaychuk
* Copyright(c) 2013 Roman Shtylman
* Copyright(c) 2014-2015 Douglas Christopher Wilson
* MIT Licensed
*/
'use strict';
/**
* Module dependencies.
* @private
*/
var finalhandler = require('finalhandler');
var Router = require('./router');
... |
document.write('Hello HTML'); |
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'preview', 'ja', {
preview: 'プレビュー'
} );
|
var util = require('util');
function ConfigurationError(message) {
this.name = 'ConfigurationError';
this.message = message || 'Invalid configuration file given';
}
util.inherits(ConfigurationError, Error);
exports.ConfigurationError = ConfigurationError;
|
/*
Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
dojo.require("dojox.gfx.svg");
dojo.experimental("dojox.gfx.svg_attach");
(function(){
dojox.gfx.attachNode=function(_1){
i... |
// Authentication using passport, a node module
var passport = require('passport');
// logging out
exports.logout = function (req, res) {
req.logout();
res.redirect('/login');
};
module.exports.googleCallback = function (req, res) {
req.session.googleCredentials = req.authInfo;
// Return user profile back to clie... |
'use strict';
let path = require('path');
let webpack = require('webpack');
module.exports = {
entry: {
maskedinput_defaultfunctionality: './app/maskedinput/defaultfunctionality/main.ts',
maskedinput_fluidsize: './app/maskedinput/fluidsize/main.ts',
maskedinput_events: './app/maskedinput/ev... |
/*
* Crypto-JS v2.5.3
* http://code.google.com/p/crypto-js/
* (c) 2009-2012 by Jeff Mott. All rights reserved.
* http://code.google.com/p/crypto-js/wiki/License
*/
(function(){
// Shortcuts
var C = Crypto,
util = C.util,
charenc = C.charenc,
UTF8 = charenc.UTF8,
Binary = charenc.Binary;
var MARC4... |
lychee.define('game.entity.Ball').includes([
'lychee.game.Sprite'
]).exports(function(lychee, game, global, attachments) {
var _texture = attachments['png'];
var Class = function() {
var settings = {
radius: 11,
collision: lychee.game.Entity.COLLISION.A,
shape: lychee.game.Entity.SHAPE.circle,... |
var express = require('express');
var router = express.Router();
/* GET home page. */
router.get('/', function(req, res) {
res.render('index', {
title: 'Express'
});
});
module.exports = router;
|
"use strict";
var CSSStyleDeclaration = require("cssstyle").CSSStyleDeclaration;
var XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest;
var notImplemented = require("./not-implemented");
var History = require("./history");
var VirtualConsole = require("../virtual-console");
var define = require("../utils").def... |
import path from 'path';
/*
* Return path to write file to inside outputDir.
*
* @param {object} svgPathObj
* path objects from path.parse
*
* @param {string} innerPath
* Path (relative to options.svgDir) to svg file
* e.g. if svgFile was /home/user/icons/path/to/svg/file.svg
* options.svgDir is /home/use... |
var Builder = require('../index');
var expect = require('chai').expect;
var toFileURL = require('../lib/utils.js').toFileURL;
var fs = require('fs');
suite('Test compiler cache', function() {
var builder = new Builder('test/fixtures/test-cache-tree');
builder.config({ transpiler: 'babel' });
test('Use compile c... |
'use strict';
module.exports = {
isModuleUnificationProject(project) {
return project && project.isModuleUnification && project.isModuleUnification();
}
}; |
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
// import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
// registerServiceWorker();
|
/*
Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
if(!dojo._hasResource["dojox.cometd.timestamp"]){dojo._hasResource["dojox.cometd.timestamp"]=true;dojo.provide("dojox.comet... |
/*
YUI 3.8.0pr2 (build 154)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add("lang/datatype-date-format",function(e){e.Intl.add("datatype-date-format","",{a:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],A:["Sunday","Monday","Tuesday","Wednesday","Th... |
var
// A central reference to the root jQuery(document)
rootjQuery,
// The deferred used on DOM ready
readyList,
// Support: IE9
// For `typeof xmlNode.method` instead of `xmlNode.method !== undefined`
core_strundefined = typeof undefined,
// Use the correct document accordingly with window argument (sandbox... |
import { deprecate } from '@ember/application/deprecations';
import materializeRadios from './md-radios';
export default materializeRadios.extend({
init() {
this._super(...arguments);
deprecate('{{materialize-radios}} has been deprecated. Please use {{md-radios}} instead', false, {
url: 'https://github... |
'use strict';
(function() {
// Cursos Controller Spec
describe('Cursos Controller Tests', function() {
// Initialize global variables
var CursosController,
scope,
$httpBackend,
$stateParams,
$location;
// The $resource service augments the response object with methods for updating and deleting the res... |
/*!
* Bootstrap-select v1.13.6 (https://developer.snapappointments.com/bootstrap-select)
*
* Copyright 2012-2019 SnapAppointments, LLC
* Licensed under MIT (https://github.com/snapappointments/bootstrap-select/blob/master/LICENSE)
*/
!function(e,t){void 0===e&&void 0!==window&&(e=window),"function"==typeof... |
/*!
* jQuery JavaScript Library v1.10.1 -wrap,-offset
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-06-03T15:13Z
*/
(function( window, unde... |
'use strict';
const config = {
nitro: {
patterns: {
atom: {
template: 'project/blueprints/pattern',
path: 'src/patterns/atoms',
patternPrefix: 'a',
},
molecule: {
template: 'project/blueprints/pattern',
path: 'src/patterns/molecules',
patternPrefix: 'm',
},
organism: {
tem... |
// Description:
// Ask a question of the form 'should we ...'
//
// Dependencies:
// None
//
// Configuration:
// None
//
// Commands:
// hubot should we <query>
// hubot should I <query>
//
// Author:
// andyroyle
var responses = [
'It is certain',
'It is decidedly so',
'Without a doubt',
... |
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v19.1.3
* @link http://www.ag-grid.com/
* @license MIT
*/
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.leng... |
/**
* @license
* v1.2.10-1
* MIT (https://github.com/pnp/pnpjs/blob/master/LICENSE)
* Copyright (c) 2019 Microsoft
* docs: https://pnp.github.io/pnpjs/
* source: https://github.com/pnp/pnpjs
* bugs: https://github.com/pnp/pnpjs/issues
*/
import { mergeMaps, objectToMap, jsS, PnPClientStorage } from '@pnp/common... |
/*!
* OOUI v0.29.6
* https://www.mediawiki.org/wiki/OOUI
*
* Copyright 2011–2018 OOUI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
* Date: 2018-12-05T00:15:55Z
*/
( function ( OO ) {
'use strict';
/**
* Namespace for all classes, static methods and static pro... |
/*!
* # Semantic UI 2.4.4 - Search
* http://github.com/semantic-org/semantic-ui/
*
*
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
;(function ($, window, document, undefined) {
'use strict';
window = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof sel... |
/*
Copyright (c) 2015-present NAVER Corp.
name: @egjs/flicking
license: MIT
author: NAVER Corp.
repository: https://github.com/naver/egjs-flicking
version: 3.2.1
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@egjs/component'), requi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.