code stringlengths 2 1.05M |
|---|
const GameAction = require('./GameAction');
class PlaceToken extends GameAction {
constructor() {
super('placeToken');
}
canChangeGameState({ card, amount = 1 }) {
return ['active plot', 'agenda', 'play area', 'shadows', 'title'].includes(card.location) && amount > 0;
}
createEven... |
'use strict';
/**
* Module dependencies.
*/
var _ = require('lodash'),
defaultAssets = require('./config/assets/default'),
testAssets = require('./config/assets/test');
// Karma configuration
module.exports = function(karmaConfig) {
karmaConfig.set({
// Frameworks to use
frameworks: ['jasmine'],
// List o... |
import { moduleFor, test } from 'ember-qunit';
moduleFor('service:sounds', 'Unit | Service | sounds', {
// Specify the other units that are required for this test.
// needs: ['service:foo']
});
// Replace this with your real tests.
test('it exists', function(assert) {
let service = this.subject();
assert.ok(s... |
/*
* Copyright (c) 2012 Adobe Systems Incorporated. All rights reserved.
*
* 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 ri... |
/*
* Copyright (C) 2013 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... |
'use strict';
var util = require('util');
var TapReporter = require('testem/lib/ci/test_reporters/tap_reporter');
function CustomTapReporter() {
this.out = process.stdout;
this.silent = false;
this.stoppedOnError = null;
this.id = 1;
this.total = 0;
this.pass = 0;
this.results = [];
this.errors = [];
... |
const crypto = require('crypto');
module.exports = (replitApiKey) => {
const hmac = crypto.createHmac('sha256', replitApiKey);
const timeCreated = Date.now();
hmac.update(timeCreated.toString());
const msgMac = hmac.digest('base64');
return {
time_created: timeCreated,
msg_mac: msgMac,
};
};
|
var dir_852e4cd3fe6d6e2f3105011427543a0d =
[
[ "GCluster", "dir_7c825f2ecafdda891832b23d8dfadde7.html", "dir_7c825f2ecafdda891832b23d8dfadde7" ],
[ "GSearch", "dir_b0c25d6b2172a49ff6b69618f87aac2f.html", "dir_b0c25d6b2172a49ff6b69618f87aac2f" ],
[ "GStructs", "dir_5bd82506f2b2292737a655567dcd047c.html", "di... |
import React from 'react';
import randomValue from './randomValue';
import Row from '../../../form/Grid/Row';
import LeftColumn from '../../../form/Grid/LeftColumn';
import RightColumn from '../../../form/Grid/RightColumn';
import CarteBlancheInput from '../../../form/CarteBlancheInput';
import Label from '../../../for... |
/*!
* CanJS - 2.2.7
* http://canjs.com/
* Copyright (c) 2015 Bitovi
* Fri, 24 Jul 2015 20:57:32 GMT
* Licensed MIT
*/
/*can@2.2.7#event/event*/
steal('can/util/can.js', function (can) {
can.addEvent = function (event, handler) {
var allEvents = this.__bindEvents || (this.__bindEvents = {}), eventList... |
/**
* @author Titus Wormer
* @copyright 2015 Titus Wormer
* @license MIT
* @module remark:stringify:visitors:list-item
* @fileoverview Stringify a list item.
*/
'use strict';
/* Dependencies. */
var repeat = require('repeat-string');
var pad = require('../util/pad');
/* Expose. */
module.exports = listItem;
/... |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M18 14c0-3.98-6-10.8-6-10.8s-1.18 1.35-2.5 3.19l8.44 8.44c.03-.27.06-.55.06-.83zM5.41 5.14 4 6.55l3.32 3.32C6.55 11.33 6 12.79 6 14c0 3.31 2.69 6 6 6 1.52 0... |
function BEServices(){
var addresses = [];
this.save = function (addressBookItem){
console.log("INITIAL addresses.length: " + addresses.length);
console.log("typeof addressBookItem=" + typeof addressBookItem);
if (addressBookItem instanceof AddressBookItem) {
addresses.push(addressBookItem);
... |
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M19.94 21.12c-1.1-2.94-1.64-6.03-1.64-9.12 0-3.09.55-6.18 1.64-9.12.04-.11.06-.22.06-.31 0-.34-.23-.57-.63-.57H4.63c-.4 0-.63.23-.63.57 0 .1.02.2.06.31C5.16 5.82 5.71 8.91 5.71 12c0 3.09-.55 6.18... |
'use strict';
var defineUsDollar = require('dbjs-ext/number/currency/us-dollar')
, Database = require('dbjs');
module.exports = function (t, a) {
var db = new Database()
, UsDollar = defineUsDollar(db)
, BusinessProcess = require('../../../model/business-process-new')(db)
, businessProcess = BusinessProce... |
/* global describe:true, it:true */
'use strict';
// Utilities:
import chai from 'chai';
import dirtyChai from 'dirty-chai';
import Promise from 'bluebird';
import sinon from 'sinon';
import sinonChai from 'sinon-chai';
// Test setup:
const expect = chai.expect;
chai.use(dirtyChai);
chai.use(sinonChai);
// Dependenc... |
var Class = require('../../../../utils/Class');
var CONST = require('./const');
var DataBuffer32 = require('../../utils/DataBuffer32');
var Earcut = require('../../../../geom/polygon/Earcut');
var PHASER_CONST = require('../../../../const');
var UntexturedAndNormalizedTintedShader = require('../../shaders/UntexturedAnd... |
import marked from 'marked';
marked.setOptions({
renderer: new marked.Renderer(),
gfm: true,
tables: true,
breaks: false,
pedantic: false,
sanitize: true,
smartLists: true,
smartypants: false,
highlight: function (code) {
return require('highlight.js').highlightAuto(code).value;
}
});
export va... |
MobileUserEdit = {
init : function() {
$("#delete_button").click(function() {
MobileUserIndex.verifyIfUserHasSessionData($(this).attr("user_id"));
});
}
}
$(MobileUserEdit.init); |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... |
/*
Cookie Policy Consent by Carlos Cabo 2015-2016
https://github.com/carloscabo/cookie-policy-consent
v.2.1.0
*/
var CPC = {
// Internal data and variables
data: {
script_full_url: document.getElementsByTagName('script')[document.getElementsByTagName('script').length-1].src,
script_name: null,
scr... |
/*
* Copyright (c) 2015 peeracle 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, modify, merg... |
//! moment.js locale configuration
//! locale : siSwati [ss]
//! author : Nicolai Davies<mail@nicolai.io> : https://github.com/nicolaidavies
import moment from '../moment';
export default moment.defineLocale('ss', {
months : "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyon... |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "m9.31 17 2.44-2.44L14.19 17l1.06-1.06-2.44-2.44 2.44-2.44L14.19 10l-2.44 2.44L9.31 10l-1.06 1.06 2.44 2.44-2.44 2.44L9.31 17zM19 3h-1V1h-2v2H8V1H6v2H5c-1.11... |
// LineChart.js (c) 2010-2013 Loren West and other contributors
// May be freely distributed under the MIT license.
// For further details and documentation:
// http://lorenwest.github.com/core-monitor
(function(root){
// Module loading
var Monitor = root.Monitor || require('monitor-dashboard'),
UI = Monitor... |
import React from 'react';
const style = {
marginTop: '30%'
};
export default () => (
<div className="center spinner" style={style}>
<div className="preloader-wrapper big active">
<div className="spinner-layer spinner-blue-only">
<div className="circle-clipper left">
<div className="ci... |
/*global Reply*/
/**
A Gambit is a Trigger + Reply or Reply Set
- We define a Reply as a subDocument in Mongo.
**/
// var regexreply = require("../parse/regexreply");
module.exports = function (mongoose, facts) {
var Utils = require("../utils");
var regexreply = require("../parse/regexreply");
var debug =... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } }... |
/* */
require("./core");
var types = require("../lib/types");
var def = types.Type.def;
var or = types.Type.or;
var builtin = types.builtInTypes;
var isBoolean = builtin.boolean;
var isObject = builtin.object;
var isString = builtin.string;
var defaults = require("../lib/shared").defaults;
def("Function").field("gener... |
(function() {
// The Fork Class
// We'll have lots of forks.
// Each fork will be on object of this
// constructor.
mit.Fork = function() {
// Handle x/y
this.x = 0;
this.y = 0;
// W/H
this.w = 0;
this.h = 0;
// Head x/y
this.head_x = 0;
this.head_y ... |
/*** * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Svidget.js v0.1.3
* Release Date: 2014-12-13
*
* A framework for creating complex widgets using SVG.
*
* http://www.svidget.org/
*
* Copyright 2014, Joe Agster
* Licensed under the MIT license.
*
* Permission is her... |
goog.provide('gmfapp.objectediting');
goog.require('gmf.Themes');
goog.require('gmf.TreeManager');
/** @suppress {extraRequire} */
goog.require('gmf.layertreeDirective');
/** @suppress {extraRequire} */
goog.require('gmf.mapDirective');
/** @suppress {extraRequire} */
goog.require('gmf.objecteditingDirective');
goog.r... |
import fixtures from '../__fixtures__/ValidateSlug';
import { loadFixtures, unloadFixtures } from 'util/fixtures';
import gql from 'util/GraphQL';
import { assertSlugIsValid } from '../ValidateSlug';
import { errors } from 'graphql/models/SlugErrorEnum';
describe('assertSlugIsValid', () => {
beforeAll(() => loadFix... |
var path = require('path');
module.exports = {
cache: true,
entry: './src/scripts/main.js',
output: {
path: path.join(__dirname, 'dist', 'scripts'),
publicPath: 'scripts/',
filename: 'bundle.js'
},
module: {
loaders: [
{ test: /\.css$/, loader: 'style!css' },
{ test: /\.scss$/, lo... |
var val = invContext.keyToWatch;
var argumentsVal = args.cmdArguments;
var argsArr = argumentsVal.split(",");
var argsToCmd = {};
for (i = 0; i < argsArr.length ; i++) {
var keyval = argsArr[i].split("=");
if (keyval.length == 2) {
argsToCmd[keyval[0].trim()] = keyval[1];
}
}
var entry = executeCo... |
(() => {
'use strict';
var dom;
var types;
var PropertyHelper;
var ArrayHelper;
define([
'./helpers/dom-helper',
'./helpers/type-helper',
'./helpers/property-helper',
'./helpers/array-helper'
], main);
function main(
$dom,
$types,
... |
/**
* class WysiHat.Selection
**/
WysiHat.Selection = Class.create((function() {
/**
* new WysiHat.Selection(editor)
* - editor (WysiHat.Editor): the editor object that you want to bind to
**/
function initialize(editor) {
this.window = editor.getWindow();
this.document = editor.getDocument();
... |
import angular from 'angular';
import template from './gifs.template.html';
angular
.module('single-spa-app')
.component('gifs', {
template,
controllerAs: 'vm',
controller($http) {
const vm = this;
$http
.get('https://api.giphy.com/v1/gifs/search?q=ping+pong&api_key=dc6zaTOxFJmzC')
.then(respons... |
/**
Class with static TDS info
*/
exports.TdsConstants = (function() {
var i, key, value, _len, _len2, _ref, _ref2, _ref3, _ref4;
function TdsConstants() {}
/**
* Versions indexed by the TDS protocol version
*/
TdsConstants.versionsByVersion = {
'7.0': 0x70000000,
'7.1': 0x71000000,
'7.1.1': ... |
const jsonSchema = require('../utils/json-schema');
const models = require('../../../../../models');
const {ValidationError} = require('@tryghost/errors');
const tpl = require('@tryghost/tpl');
const messages = {
invalidVisibilityFilter: 'Invalid filter in visibility_filter property'
};
const validateVisibility =... |
/**
* @module ember-paper
*/
import Component from '@ember/component';
import { run } from '@ember/runloop';
import { computed } from '@ember/object';
import { htmlSafe } from '@ember/string';
import layout from '../templates/components/paper-toast-inner';
import TransitionMixin from 'ember-css-transitions/mixins/tr... |
define([
"angular",
// all components added in the list below will automatically
// be registered in the app's main module as component-directives
"components/navigation-menu/navigation-menu",
"components/rectangle/rectangle",
// all decorators
"decorators/draggable"
], function ( angular ) {
"use strict";
v... |
angular.module('ui.bootstrap.modal', ['ui.bootstrap.transition'])
/**
* A helper, internal data structure that acts as a map but also allows getting / removing
* elements in the LIFO order
*/
.factory('$$stackedMap', function () {
return {
createNew: function () {
var stack = [];
return... |
/**
* Conversion functions between IDL attributes and content attributes.
* @see https://html.spec.whatwg.org/multipage/infrastructure.html#reflecting-content-attributes-in-idl-attributes
*/
/*
* For simplicity we assume that there are five data types:
* - Number
* - String
* - Boolean
* - Array (containing d... |
var UserModule;
(function (UserModule) {
var dataServiceId = "userService";
angular.module("user").service(dataServiceId, ["$http", "$q", "$rootScope", dataService]);
function dataService($http, $q, $rootScope) {
var self = this;
self.getBaseUri = function () {
if ($rootScope.con... |
// TODO: refactor
// TODO: This code is now legacy code, none of it will make its way into Beta
window.editorsModified = false;
Request.JSON.implement({
initialize: function(options) {
this.parent(options);
this.setHeader('X-CSRFToken', Cookie.read('csrftoken'));
}
});
Track = {
ui: function(action){
... |
cordova.define("cordova-plugin-call-number.CallNumber", function(require, exports, module) { var CallNumber = function(){};
CallNumber.prototype.callNumber = function(success, failure, number, bypassAppChooser){
cordova.exec(success, failure, "CallNumber", "callNumber", [number, bypassAppChooser]);
};
//Plug in t... |
export const getActiveLoan = (loans, activeLoanId) => {
return loans.filter(loan => loan.id == activeLoanId)[0];
}
export const getUpdatedLoans = (loans, updatedLoan) => {
return loans.map(loan => loan.id == updatedLoan.id ? updatedLoan : loan)
}
|
'use strict';
angular.module('<%=angularAppName%>')
.controller('AuditsController', function ($scope, $filter, AuditsService) {
$scope.onChangeDate = function () {
var dateFormat = 'yyyy-MM-dd';
var fromDate = $filter('date')($scope.fromDate, dateFormat);
var toDate = $f... |
import primitiveSet from 'osg/primitiveSet';
/**
* DrawElements manage rendering of indexed primitives
* @class DrawElements
*/
var DrawElements = function(mode, indices) {
this.mode = primitiveSet.POINTS;
if (mode !== undefined) {
if (typeof mode === 'string') {
mode = primitiveSet[mode... |
import React from 'react'
import Icon from 'react-icon-base'
const TiCogOutline = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m21.7 8.3l1.4 5.7 5.6-1.6 2.5 4.3-4.2 4.1 4.2 4.1-2.5 4.3-5.6-1.6-1.4 5.7h-5l-1.5-5.7-5.6 1.6-2.5-4.3 4.2-4.1-4.2-4.1 2.5-4.3 5.6 1.6 1.5-5.7h5z m0-3.3h-5c-1.6 0-2... |
version https://git-lfs.github.com/spec/v1
oid sha256:92a85a8c1bb38c1319fa5b282be50dd0cbc2ba3b7a69431c65544cbde68f5e7e
size 10038
|
version https://git-lfs.github.com/spec/v1
oid sha256:fc0200b9528c78e2a6bbe09f3ea94548875d8ee1070b585ef40ba5e9a65519e9
size 6318
|
import Ember from 'ember';
import GMapsCirclesMixin from 'ember-cli-g-maps/mixins/g-maps/circles';
import { module, test } from 'qunit';
import sinon from 'sinon';
let subject;
module('Unit | Mixin | g maps/circles', {
beforeEach: function() {
const GMapsCirclesObject = Ember.Object.ext... |
app.controller('AdventureGameController', ['$scope', function($scope){
}]) |
// navbar
angular.module('thatjs', [])
.service('data', function () {
this.navItems = {
};
})
.controller('headerNavCtrl', function ($scope) {
window.headerNav = $scope;
$scope.headerNav = [
{'name': 'About'},
{'name': 'Run'},
{'name':... |
console.assert();
console.count();
console.debug();
console.dir();
console.error();
console.exception();
console.group();
console.groupCollapsed();
console.groupEnd();
console.info();
console.log();
console.profile();
console.profileEnd();
console.time();
console.timeEnd();
console.trace();
console.warn(); |
var Reflux = require("reflux");
var InterestActions = Reflux.createActions([
"get",
"create",
"delete"
]);
module.exports = InterestActions;
|
/* Copyright (c) 2006 Brandon Aaron (brandon.aaron@gmail.com || http://brandonaaron.net)
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
* Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers... |
var components = {
"core": {
"meta": {
"path": "components/prism-core.js",
"option": "mandatory"
},
"core": "Core"
},
"themes": {
"meta": {
"path": "themes/{id}.css",
"link": "index.html?theme={id}",
"exclusive": true
},
"prism": {
"title": "Default",
"option": "default"
},
"pris... |
/**
@module @ember/object
*/
import { FACTORY_FOR } from '@ember/-internals/container';
import { assign, _WeakSet as WeakSet } from '@ember/polyfills';
import {
guidFor,
getName,
setName,
makeArray,
HAS_NATIVE_PROXY,
isInternalSymbol,
} from '@ember/-internals/utils';
import { schedule } from '@ember/run... |
/*
* grunt
* http://gruntjs.com/
*
* Copyright (c) 2012 "Cowboy" Ben Alman
* Licensed under the MIT license.
* http://benalman.com/about/license/
*/
'use strict';
module.exports = function(grunt) {
// ==========================================================================
// HELPERS
// ==============... |
jui.defineUI("ui.progress", [ "jquery", "util.base" ], function($, _) {
/**
* @class ui.slider
* @extends core
* @alias Slider
* @requires jquery
* @requires util.base
*/
var UI = function() {
var self, $root, $area, $bar;
function min() {
... |
/*
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","lv",{title:"UI krāsas izvēle",options:"Color Options",highlight:"Highlight",selected:"Selected Color",predefined:"Prede... |
// import {
// select,
// } from "@kadira/storybook-addon-knobs";
import Forms from "./";
import TagSelect from "../TagSelect";
Forms
.add("TagSelect", () => {
// set channel name options
const GIVING_SCHEDULES = [
{ label: "One time", value: "One-Time" },
{ label: "Every Month", value: "Mon... |
/**
* 遍历数组或对象
*
* @param {Object|Array} object 数组或对象
* @param {Function} callback 回调函数
* @param {Object} [thisObj=undefined] 回调函数的this对象
* @access public
* @return {Object|Array} 被遍历的对象
*
* @example
*
* var arr = [1, 2, 3, 4];
* each(arr, function(item, index, arr){
* console.log(index + ":" + item);
* }... |
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
r... |
// Generated by CoffeeScript 1.12.3
var layerA;
layerA = new Layer({
x: Align.center,
y: Align.center,
width: 200,
height: 200,
backgroundColor: "#FAFB40"
});
layerA.onClick(function() {
return layerA.animate({
properties: {
scale: 3,
backgroundColor: "#C2FF01",
borderRadius: 100
... |
it("should hoist exports in a concatenated module", () => {
return import("./root-ref").then(m => {
m.test();
});
});
if (Math.random() < 0) import("./external-ref");
|
// Publish the current user
Meteor.publish('currentUser', function() {
var user = Meteor.users.find({_id: this.userId}, {fields: ownUserOptions});
return user;
});
// publish all users for admins to make autocomplete work
// TODO: find a better way
Meteor.publish('allUsersAdmin', function() {
var selector = Se... |
version https://git-lfs.github.com/spec/v1
oid sha256:465a631fc04a8b4b50791372b0ff5af28b1401712adeb82541f426e048d2cbd9
size 2064
|
var EventEmitter = require('events').EventEmitter
var Backbone = require('backbone')
var BrowserRunner = require('./browser_runner')
var child_process = require('child_process')
var exec = child_process.exec
var log = require('winston')
var template = require('./strutils').template
var async = require('async')
var proc... |
/*! markdown-it-footnote 3.0.3 https://github.com//markdown-it/markdown-it-footnote @license MIT */(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof gl... |
'use strict';
const request = require('./utils/request');
const R = require('ramda');
function suggest (opts) {
return new Promise(function (resolve, reject) {
if (!opts && !opts.term) {
throw Error('term missing');
}
const lang = opts.lang || 'en';
const country = opts.country || 'us';
... |
const DrawCard = require('../../drawcard.js');
const { Players, CardTypes } = require('../../Constants');
class ShinjoAltansarnai extends DrawCard {
setupCardAbilities(ability) {
this.reaction({
title: 'Discard a character',
when: {
onBreakProvince: (event, context) ... |
"use strict";
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ... |
/* global suite, beforeEach, afterEach, test, assert */
var fs = require('fs');
var path = require('path');
var temp = require('temp');
var rimraf = require('rimraf');
var walkSync = require('walk-sync');
var playground = require('..');
// Set CWD to the test output directory
process.chdir('./test/');
// Automatical... |
import { expect } from 'chai';
import getDefaultDataReducer from './getDefaultDataReducer';
import actionTypes from './baseActionTypes';
describe('getDefaultDataReducer', () => {
it('should be a function', () => {
expect(getDefaultDataReducer).to.be.a('function');
});
it('should return a reducer', () => {
... |
function isBackboneBase(node, settings) {
"use strict";
var prefixes = settings.Collection.concat(settings.Model, settings.View).map(function(item) {
return item.prefix;
});
return node.type === "CallExpression" &&
node.callee.type === "MemberExpression" &&
(
(node.ca... |
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import _extends from "@babel/runtime/helpers/esm/extends";
import * as React from 'react';
import PropTypes from 'prop-types';
import * as ReactDOM from 'react-dom';
import { elementTypeAcceptingRef } from '@material-ui/utils';
i... |
(function(angular) {
'use strict';
var controllers = angular.module('newTab.controllers');
controllers.constant('popularPages', [
{name: 'Google+', location: 'https://plus.google.com'},
{name: 'Facebook', location: 'https://www.facebook.com'},
{name: 'Twitter', location: 'https://tw... |
export { default } from 'ember-d3-components/components/d3-line';
|
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang('specialchar', 'sk', {euro: 'Znak eura',
lsquo: 'Ľavá jednoduchá úvodzovka',
rsquo: 'Pravá jednoduchá úvodzovka',
ldquo: 'Pravá dvojitá úvodzovk... |
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _extends from "@babel/runtime/helpers/esm/extends";
const _excluded = ["checked", "color", "name", "onChange", "size"];
import * as React from 'react';
import PropTypes from 'prop-types';
import { refType } from ... |
import React from 'react'
import { shallow } from 'enzyme'
import TableCell from '.'
const wrap = (props = {}) => shallow(<TableCell {...props} />).dive()
it('renders children when passed in', () => {
const wrapper = wrap({ children: 'test' })
expect(wrapper.contains('test')).toBe(true)
})
it('renders props when... |
/*! jQuery UI - v1.10.3 - 2013-10-05
* http://jqueryui.com
* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
jQuery(function(t){t.datepicker.regional["en-GB"]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","Ju... |
var JobsList = React.createClass({displayName: "JobsList",
getInitialState: function() {
return {
data: JobStore.getState(),
}
}
, componentDidMount: function() {
amplify.subscribe( 'JobStore.change', this._handleChange )
}
, componentDidUnmound: function() {
... |
var _reactJsxDevRuntime = require("react/jsx-dev-runtime");
var _jsxFileName = "<CWD>\\packages\\babel-plugin-transform-react-jsx-development\\test\\fixtures\\windows\\handle-fragments-with-key-windows\\input.js";
var x = /*#__PURE__*/_reactJsxDevRuntime.jsxDEV(React.Fragment, {}, 'foo', false, {
fileName: _jsxFile... |
var streams = require('./main')
, assert = require('assert')
, stream = require('stream')
;
var source = new stream.Stream()
, dest = new stream.Stream()
, buffered = new streams.BufferedStream()
;
source.readable = true
dest.writable = true
source.pause = function () {
throw new Error("Pause should ... |
// Copyright 2013 the V8 project authors. All rights reserved.
// Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions o... |
'use strict';
/**
* @module team/handler/remove
*/
const Team = require('../model/team');
/**
* Delete an existing Team
* @param {Request} request - Hapi request
* @param {Reply} reply - Hapi Reply
* @returns {Null} responds with redirect to Team list
*/
function remove (request, reply) {
const {prefix} =... |
import selftest from '../tool-testing/selftest.js';
import { parse, markBottom } from '../utils/parse-stack';
import _ from 'underscore';
import Fiber from 'fibers';
import Future from 'fibers/future';
import files from '../fs/files';
selftest.define("parse-stack - parse stack traces without fibers", () => {
const e... |
/**
* Main JS file for Casper behaviours
*/
/*globals jQuery, document */
(function ($) {
"use strict";
$(document).ready(function(){
$(".post-content").fitVids();
});
}(jQuery));
|
basis.require('basis.l10n');
/**
* @namespace basis.template
*/
var namespace = this.path;
//
// import names
//
var Class = basis.Class;
var cleaner = basis.cleaner;
var path = basis.path;
var arraySearch = basis.array.search;
var arrayAdd = basis.array.add;
var arrayRemove = basis.ar... |
module.exports={A:{A:{"1":"E A B","2":"H D G mB"},B:{"1":"C K f L N I J q"},C:{"1":"0 1 2 3 4 5 6 8 Q R S T U V W X Y Z a b c d e AB g h i j k l m n o p M r s t u v w x y z EB MB DB BB FB HB IB JB KB LB","2":"jB NB","260":"F O H D G E A B C K f L N I J P dB cB"},D:{"1":"0 1 2 3 4 5 6 8 F O H D G E A B C K f L N I J P Q... |
var assert = require('assert');
var common = require('../../common');
var cluster = common.createPoolCluster({
canRetry : true,
removeNodeErrorCount : 5
});
var connCount = 0;
var poolConfig = common.getTestConfig({port: common.fakeServerPort});
var server = common.createFakeServer();
cluster.ad... |
Meteor.npmRequire = function (moduleName) {
var module = Npm.require(moduleName);
return module;
};
Meteor.require = function (moduleName) {
console.warn('Meteor.require is deprecated. Please use Meteor.npmRequire instead!');
return Meteor.npmRequire(moduleName);
}; |
require({cache:{
'JBrowse/Model/DataView':function(){
/**
* Subclass of jDataView with a getUint64 method.
*/
define("JBrowse/Model/DataView", [
'jDataView'
],
function( jDataView ) {
var DataView = function() {
jDataView.apply( this, arguments );
};
try {
DataView.prototype = new j... |
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @constructor
* @extends {WebInspector.NativeBreakpointsSidebarPane}
* @implements {WebInspector.TargetManager.Observer}
*/
WebInspector.AsyncOpe... |
// Redirect all the existing URLs with fragment identifiers in to the new section
;(function () {
'use strict'
var getNewRouteFor = function (fragment) {
var baseURL = window.location.protocol + '//' + window.location.host
var newRoutes = {
'#guide-layout': '/layout',
'#layout-spacing': '/layou... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.