code stringlengths 2 1.05M |
|---|
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
import { InjectionToken } from '@angular/core';
/**
* @record
*/
export function Angulartics2Token() { }
if (false) {
/** @type {?} */
Angulartics2Token.prototype.sett... |
function simEmpDilemma2() {
//SIM WRAPPER CONFIG =====================
//Wrapper constants----------------
const scaleFactor = 2; //To compensate for retina screens
const width = 400;
const height = 520;
const bigWidth = width * scaleFactor;
const bigHeight = height * scaleFactor;
const ... |
#!/usr/local/bin/node
/**
* Build a release for the gh-pages docs site.
*/
var fs = require('fs');
var execSync = require('child_process').execSync;
var usage = '\nbuild <vn.n.n[-pre[.n]]> | <HEAD> [-p]\n';
var versionsFile = './src/www/versions.json';
// Read the command-line args
var args = process.argv;
if (ar... |
//>>built
define("dijit/form/nls/validate",{root:{invalidMessage:"The value entered is not valid.",missingMessage:"This value is required.",rangeMessage:"This value is out of range."},bs:!0,mk:!0,sr:!0,zh:!0,"zh-tw":!0,vi:!0,uk:!0,tr:!0,th:!0,sv:!0,sl:!0,sk:!0,ru:!0,ro:!0,pt:!0,"pt-pt":!0,pl:!0,nl:!0,nb:!0,lv:!0,lt:!0,... |
/**
* Story maker module.
* @return {[type]} [description]
*/
import postal from 'postal';
import asyncWaterfall from 'async/waterfall';
import FileSaver from 'file-saver';
import _ from 'lodash';
import swal from 'sweetalert2';
import StoryPlayer from 'apispots-lib-stories/lib/stories/story-player';
import StoryVi... |
import React, {PropTypes, cloneElement} from 'react';
import { findDOMNode } from 'react-dom';
import cx from 'classnames';
import jss from 'js-stylesheet';
import uuid from '../helpers/uuid';
import childrenPropType from '../helpers/childrenPropType';
// Determine if a tab node is disabled
function isTabDisabled(node... |
/* @flow */
import type { ConfigState } from '../types';
const initialState = {
appName: '',
appVersion: '',
firebase: null,
sentryUrl: '',
};
const reducer = (
state: ConfigState = initialState,
): ConfigState => state;
export default reducer;
|
'use strict';
module.exports = {
USER: {
refresh_token: 'refresh_token',
user_id: 1
},
TOKEN_RESPONSE: {
'access_token': 'eyJraWQiOiJibG...9txBQDpu4wau5FECUsw',
'token_type': 'bearer',
'expires_in': 1800,
'refresh_token': 'IjG05bcBnnbuXV2b32Xz7-0WK-VNtnr2Bnch8P8BqyI',
'user_id': 'urn:blinkbox:zuul:use... |
'use strict';
var RSVP = require('rsvp');
var logger = require('../logger');
var api = require('../api');
var chalk = require('chalk');
var _ = require('lodash');
var getProjectId = require('../getProjectId');
var utils = require('../utils');
var FirebaseError = require('../error');
var track = require('../track');
v... |
import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import * as React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import withStyles from '../styles/withStyles';
import capitalize from '../uti... |
export default {
scriptUrl: '//s3.amazonaws.com/totango-cdn/totango3.js',
disabled: false
}; |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.generateRowGap = generateRowGap;
exports.generateColumnGap = generateColumnGap;
exports.default = void 0;
var _objectWithoutPropertiesLoose2 = _... |
module.exports={title:'Vagrant',slug:'vagrant',svg:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Vagrant icon</title><path d="M5.672 6.774V4.917l3.164-1.822L3.56.005.397 1.852v2.263L7.52 21.41 12 23.995v-6.496l2.107-1.224-.024-.015 4.245-9.486V4.917l5.275-3.065L20.439.005l-5.272 3.087h-... |
// Generated by CoffeeScript 1.6.2
/*
jQuery Waypoints - v2.0.4
Copyright (c) 2011-2014 Caleb Troughton
Dual licensed under the MIT license and GPL license.
https://github.com/imakewebthings/jquery-waypoints/blob/master/licenses.txt
*/
(function() {
var __indexOf = [].indexOf || function(item) { for (var i = 0, l =... |
var WebDriver = require('selenium-webdriver').WebDriver;
var By = require('selenium-webdriver').By;
var Setup = require('./setup');
var Chrome = require('selenium-webdriver/chrome');
var Firefox = require('selenium-webdriver/firefox');
var Executors = require('selenium-webdriver/executors');
var SeleniumError = require... |
/* eslint-env jest */
import cheerio from 'cheerio'
import { readdir, readFile, unlink } from 'fs-extra'
import {
nextBuild,
killApp,
nextStart,
findPort,
renderViaHTTP,
} from 'next-test-utils'
import webdriver from 'next-webdriver'
import { join } from 'path'
const appDir = join(__dirname, '../')
let chu... |
beforeEach(function() {
module('compiledTemplates');
}); |
$(document).ready(function(){
//Set opacity on each span to 0%
$(".rollover").css({'opacity':'0'});
$(".rollover-zoom").css({'opacity':'0'});
$(".rollover-list").css({'opacity':'0'});
$('ul a').hover(
function() {
$(this).find('.rollover').stop().fadeTo(500, 1);
$(this).find('.rollover-zoom').stop... |
/* COMPONENT */
// See the properties declaration for details of constructor arguments.
//
Monocle.Component = function (book, id, index, chapters, source) {
var API = { constructor: Monocle.Component }
var k = API.constants = API.constructor;
var p = API.properties = {
// a back-reference to the public API... |
/**
* Resolves the authentication status of a given token.
*
* @memberOf Jymfony.Component.Security.Authentication
*/
class AuthenticationTrustResolverInterface {
/**
* Resolves whether the passed token implementation is authenticated
* anonymously.
*
* If null is passed, the method must ret... |
/* eslint-env jest */
import {
check,
File,
findPort,
hasRedbox,
killApp,
launchApp,
} from 'next-test-utils'
import webdriver from 'next-webdriver'
import { join } from 'path'
const appDir = join(__dirname, '../')
describe('no duplicate compile error output', () => {
it('should not show compile error o... |
// Karma configuration
// Generated on Sat Oct 05 2013 22:00:14 GMT+0700 (ICT)
module.exports = function(config) {
config.set({
// base path, that will be used to resolve files and exclude
basePath: '../../',
// frameworks to use
frameworks: ['jasmine'],
// list of file... |
'use strict';
const functions = require('firebase-functions');
const gcs = require('@google-cloud/storage')();
const path = require('path');
const gcsBucketId = `${process.env.GCLOUD_PROJECT}.appspot.com`;
const BROWSER_CACHE_DURATION = 60 * 10;
const CDN_CACHE_DURATION = 60 * 60 * 12;
function sendStoredFile(reque... |
var OAuth2 = require("./oauth2")
, util = require("util")
, url = require("url")
function Foursquare(options) {
this.code = {
protocol: "https",
host: "foursquare.com",
pathname: "/oauth2/authenticate",
query: {
client_id: options.id,
response_type: "code",
scope: options.scope ... |
YUI.add("gallery-datasource-async-function",function(e,t){"use strict";function n(){n.superclass.constructor.apply(this,arguments)}n.NAME="asyncFunctionDataSource",n.ATTRS={source:{validator:e.Lang.isFunction}},e.extend(n,e.DataSource.Local,{_defRequestFn:function(t){function i(e,t){e?r.error=e:t.data&&t.meta?(r.data=t... |
/*global window, $, jQuery*/
/**
* Note: This script is a modified version of
* apps/navigation/js/tree-drag-drop/tree-drag-drop.js
*/
if (typeof String.prototype.trim !== 'function') {
String.prototype.trim = function () {
"use strict";
return this.replace(/^\s+|\s+$/g, '');
};
}
(function ($, undef) {
"u... |
/**
* Module dependencies.
*/
var utils = require('./utils')
, merge = utils.merge
, Promise = require('./promise')
, Document = require('./document')
, Types = require('./schema/index')
, inGroupsOf = utils.inGroupsOf
, tick = utils.tick
, QueryStream = require('./querystream')
/**
* Query construct... |
'use strict';
const inspection = require('inspection');
module.exports.handler = function(event, context, cb) {
const inspect = inspection();
cb(null, inspect);
};
|
/**
* @author fernandojsg / http://fernandojsg.com
* @author Don McCurdy / https://www.donmccurdy.com
* @author Takahiro / https://github.com/takahirox
*/
import {
BufferAttribute,
BufferGeometry,
ClampToEdgeWrapping,
DoubleSide,
InterpolateDiscrete,
InterpolateLinear,
LinearFilter,
LinearMipmapLinearFilte... |
import { NumberInput, Element } from '../../libs/flow.module.js';
import { BaseNode } from '../core/BaseNode.js';
import { FloatNode } from 'three-nodes/Nodes.js';
export class FloatEditor extends BaseNode {
constructor() {
const node = new FloatNode();
super( 'Float', 1, node, 150 );
const field = new Numb... |
/* globals Slingshot */
import filesize from 'filesize';
const slingShotConfig = {
authorize: function(file/*, metaContext*/) {
//Deny uploads if user is not logged in.
if (!this.userId) {
throw new Meteor.Error('login-required', 'Please login before posting files');
}
if (!RocketChat.fileUploadIsValidCo... |
/*!
* 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(['jquery.sap.global','./DateRange','./library'],function(q,D,l){"use strict";var a=D.extend("sap.ui.unified.DateTypeRang... |
define(function (require) {
var welcome = function () {
this.displayName = 'Welcome to the Durandal Starter Project!';
this.description = 'Durandal is a cross-device, cross-platform client framework written in JavaScript and designed to make Single Page Applications (SPAs) easy to create and mainta... |
"use strict";
var Cylon = require("cylon");
Cylon.robot({
connections: {
arduino: { adaptor: "firmata", port: "/dev/ttyACM0" }
},
devices: {
relay: { driver: "relay", pin: 2, type: "closed" }
},
work: function(my) {
every((1).second(), function() {
my.relay.toggle();
});
}
}).start... |
var fs = require('fs');
module.exports = {
rawinclude: function(path) {
return fs.readFileSync(path);
}
}; |
export { default } from './ModalUnstyled';
export { default as ModalManager } from './ModalManager';
export { default as modalUnstyledClasses, getModalUtilityClass } from './modalUnstyledClasses';
|
require('../modules/es.error.to-string');
require('../modules/es.object.to-string');
require('../modules/web.btoa');
require('../modules/web.dom-exception.constructor');
require('../modules/web.dom-exception.stack');
require('../modules/web.dom-exception.to-string-tag');
var path = require('../internals/path');
module... |
/****************************************************************************
Copyright (c) 2010-2012 Michael Berkovich, Ian McDaniel, tr8n.net
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 Softw... |
window.react = window.React;
window['react-dom'] = window.ReactDOM;
|
var register = require("./util").register;
var Factory = require("../factory").Factory;
var Workspace = require("./workspace").Workspace;
var UTIL = require("../util");
var geotools = Packages.org.geotools;
var ShapefileDataStoreFactory = geotools.data.shapefile.ShapefileDataStoreFactory;
var prepConfig = function(co... |
import React, {PropTypes} from 'react';
import {Link, IndexLink} from 'react-router';
import LoadingDots from './LoadingDots';
import LoginLink from './LoginLink';
import LogoutLink from './LogoutLink';
import AdminLink from './AdminLink';
const Header = ({loading, signOut, auth, user}) => {
let loginLogoutLink = a... |
'use strict';
describe('By', function() {
var assert = require('assert');
var path = require('path');
var driver = require(path.resolve(__dirname, '..', 'lib', 'driver')).driver;
var By = require(
path.resolve(__dirname, '..', '..', 'src', 'webdriver-sync')
).By;
beforeEach(function() {
drive... |
(function(global) {
var SETTINGS_KEY = "remotestorage:access";
/**
* Class: RemoteStorage.Access
*
* Keeps track of claimed access and scopes.
*/
RemoteStorage.Access = function() {
this.reset();
};
RemoteStorage.Access.prototype = {
/**
* Method: claim
*
* Claim access ... |
$(document).ready(function () {
'use strict';
$.tablesorter.addParser({
id : 'status',
is : function (s) {
return false;
},
format: function (s) {
return s.replace('未知', 0).replace('人工维护', 1).replace('同步失败', 2).replace('正在同步', 3).replace('同步完成', 4);
... |
var HTTP_STATUS_CODES = require('http').STATUS_CODES;
var fs = require('fs');
var os = require('os');
var EventEmitter = require('events').EventEmitter;
var util = require('util');
var request = require('request');
var xmlbuilder = require('xmlbuilder');
var stackTrace = require('stack-trace');
var hashish = require('... |
// Setup basic express server
const express = require('express');
const app = express();
const path = require('path');
const server = require('http').createServer(app);
const io = require('socket.io')(server);
const port = process.env.PORT || 3000;
server.listen(port, () => {
console.log('Server listening at port %d... |
/** vim: et:ts=4:sw=4:sts=4
* @license RequireJS 2.1.5 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
* Available via the MIT or new BSD license.
* see: http://github.com/jrburke/requirejs for details
*/
//Not using strict: uneven strict support in browsers, #392, and causes
//problems with requi... |
'use strict';
import gulp from 'gulp';
import htmlhint from 'gulp-htmlhint';
import paths from '../paths';
import {ENV} from '../utils.js';
/**
* The 'htmlhint' task defines the rules of our hinter as well as which files we
* should check. It helps to detect errors and potential problems in our
* HTML code.
*
* ... |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'about', 'en-ca', {
copy: 'Copyright © $1. All rights reserved.',
dlgTitle: 'About CKEditor',
help: 'Check $1 for help.', // MISSING
... |
const escapeBackticks = (string) => string.replace(/`/g, '\\`');
module.exports = (
body,
{
category,
id,
title,
description,
published,
siteName,
section,
next,
author,
},
isHomepage = false
) =>
isHomepage
? `
import marksy from 'marksy';
import Homepage from '~/comp... |
'use strict';
require('mocha');
var assert = require('assert');
var update = require('..');
var app;
describe('app.cli', function() {
beforeEach(function() {
app = update({cli: true});
});
describe('app.cli.map', function() {
it('should add a property to app.cli', function() {
app.cli.map('abc', ... |
require('./warning-esm-transpiled-a.js').missingPropESM;
|
/**
* @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... |
const tuple1 = #[1, 2, 3];
|
const AuthenticationServiceException = Jymfony.Component.Security.Exception.AuthenticationServiceException;
/**
* This exception is thrown when an account is reloaded from a provider which
* doesn't support the passed implementation of UserInterface.
*
* @memberOf Jymfony.Component.Security.Exception
*/
export de... |
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
sass: {
dist: {
options: {
style: 'expanded'
},
files: {
'css/hover.css': 'scss/hover.scss'
}
}
}... |
import { ChangeDetectorRef, Component, ElementRef, EventEmitter, forwardRef, Input, Optional, Output, Renderer, ViewChild, ViewEncapsulation } from '@angular/core';
import { NG_VALUE_ACCESSOR } from '@angular/forms';
import { clamp, isPresent, isTrueProperty } from '../../util/util';
import { Config } from '../../confi... |
// Copyright IBM Corp. 2015,2016. All Rights Reserved.
// Node module: loopback-example-database
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
var path = require('path');
var app = require(path.resolve(__dirname, '../server/server'));
var ds = app.dat... |
require('./test.jpg');
require('./test.png');
require('./test.svg');
|
this.cloudopacity = 0.0;
this.dataopacity = 1;
function createEarth() {
var geometry = new THREE.SphereGeometry(1, 32, 32)
var material = new THREE.MeshPhongMaterial({
map : THREE.ImageUtils.loadTexture('img/earthmap1k.jpg'),
bumpMap : THREE.ImageUtils.loadTexture('img/earthbump1k.jpg'),
bumpScale : 0.05,
}... |
/**
@module ember
@submodule ember-handlebars-compiler
*/
// Eliminate dependency on any Ember to simplify precompilation workflow
var objectCreate = Object.create || function(parent) {
function F() {}
F.prototype = parent;
return new F();
};
var Handlebars = this.Handlebars || (Ember.imports && Ember.imports.H... |
import Ember from 'ember';
const { computed, get } = Ember;
export default Ember.Controller.extend({
selectedColor: '',
colors: 5,
hues: 5,
halfHues: computed('hues', function() {
return Math.round(get(this, 'hues') / 2);
})
});
|
/*
* 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.
*/
'... |
import { extend } from 'flarum/extend';
import AdminNav from 'flarum/components/AdminNav';
import AdminLinkButton from 'flarum/components/AdminLinkButton';
import ImageUploadPage from 'flagrow/image-upload/components/ImageUploadPage';
export default function() {
// create the route
app.routes['image-upload'] ... |
import Ember from "ember-metal/core";
import {dasherize} from "ember-runtime/system/string";
module('EmberStringUtils.dasherize');
if (!Ember.EXTEND_PROTOTYPES && !Ember.EXTEND_PROTOTYPES.String) {
test("String.prototype.dasherize is not modified without EXTEND_PROTOTYPES", function() {
ok("undefined" === typeo... |
// JavaScript Document
/*------------------------------------------------------------------------*/
function showcataloghierarchical(catalogmasterid){
var POSTDATA="action=getallcatalogvalues&catalogmasterid="+encodeURIComponent(catalogmasterid);
callservicebyajax(POSTDATA,"service/catalogserver.php",function(){s... |
/*
* Globalize Culture se-SE
*
* http://github.com/jquery/globalize
*
* Copyright Software Freedom Conservancy, Inc.
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* This file was generated by the Globalize Culture Generator
* Translation: bugs found in this f... |
var webpack = require('webpack')
var license = require('./license.js')
module.exports = {
context: __dirname,
entry: [
'./src/synaptic.js'
],
output: {
path: 'dist',
filename: 'synaptic.js',
},
plugins: [
new webpack.NoErrorsPlugin(),
new webpack.BannerPlugin(license())
]
}
|
export function formatCurrency(valueInMilliDollars, hideSymbol) {
const {
currencyFormatter,
} = ynab.YNABSharedLibWebInstance.firstInstanceCreated.formattingManager;
const userCurrency = currencyFormatter.getCurrency();
let formattedCurrency = currencyFormatter.format(valueInMilliDollars).toString();
i... |
// Retrieve information about screen size, displays, cursor position, etc.
//
// For more info, see:
// https://electronjs.org/docs/api/screen
const { app, BrowserWindow } = require('electron')
let mainWindow = null
app.whenReady().then(() => {
// We cannot require the screen module until the app is ready.
const... |
var buildings = {};
buildings.db = [];
function Building(name, types, price_ratio, price_resource, multiplying_formula, base_rate, text) {
this.name = name;
this.types = types; // [] of: simple, upgradable, maintainable
this.price_ratio = price_ratio;
this.price_resource = price_resource;
this.mu... |
(function (Prism) {
// https://freemarker.apache.org/docs/dgui_template_exp.html
// FTL expression with 4 levels of nesting supported
var FTL_EXPR = /[^<()"']|\((?:<expr>)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source;
for (var i = 0; i < 2; i++) {
FTL_EXPR = FTL_EXPR.replace(... |
import * as React from 'react';
import ApiPage from 'docs/src/modules/components/ApiPage';
import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
import jsonPageContent from './portal.json';
export default function Page(props) {
const { descriptions, pageContent } = props;
return <ApiP... |
/**
* Copyright (c) 2015-present, goreutils
* All rights reserved.
*
* This source code is licensed under the MIT-style license found in the
* LICENSE file in the root directory of this source tree.
*/
"use strict";
|
/*
*
* https://github.com/fatlinesofcode/ngDraggable
*/
/* jshint ignore:start */
angular.module("ngDraggable", [])
.directive('ngDrag', ['$rootScope', '$parse', '$document', '$window', function($rootScope, $parse, $document, $window) {
return {
restrict: 'A',
scope: true,
link: function(scop... |
var StatementKind = {
PROPOSITION: 0,
NEGATION: 1,
AND: 2,
OR: 3,
IMPLIES: 4
}
Polymer({
is: 'marklogic-play',
properties: {
answers: Array,
premises: Array,
selectedAnswer: Object,
isCorrect: Boolean,
formattedPremises: {
type: Array,
readOnly: tr... |
// taken from https://github.com/remy/polyfills and modified
define(function() {
"use strict";
var toggle = function(token, force) {
if (typeof force === 'boolean') {
this[force ? 'add' : 'remove'](token);
} else {
this[!this.contains(token) ? 'add' : 'remove'](token);
}
return this.contains(token);
}... |
/****************************************************************************
Copyright (c) 2011-2012 cocos2d-x.org
Copyright (c) 2013-2014 Chukong Technologies Inc.
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated docume... |
/* YeAPF 0.8.57-15 built on 2017-05-18 18:44 (-3 DST) Copyright (C) 2004-2017 Esteban Daniel Dortta - dortta@yahoo.com */
importScripts("yloader.js");yCommWorker=function(b){var a=b.data;switch(a.cmd){case "start":var c=a.invoker.callbackFunction;a.invoker.callbackFunction=function(b){a.invoker.callbackFunction=c;self.... |
'use strict';
var Pooling = require('generic-pool')
, Promise = require('../../promise')
, _ = require('lodash')
, semver = require('semver')
, defaultPoolingConfig = {
max: 5,
min: 0,
idle: 10000,
handleDisconnects: true
}
, ConnectionManager;
ConnectionManager = function(dialect, sequeli... |
'use strict';
const chalk = require('chalk');
const format = require('date-fns/format');
exports.log = (options, output) => {
const timestamp = format(new Date(), options.dateFormat);
console.log(chalk.dim(`[${timestamp}]`) + ` ${output}`);
};
|
exports.require = require;
exports.__filename = __filename;
exports.__dirname = __dirname;
exports.module = module;
exports.exports = exports;
|
import test from 'tape';
import getDisplayName from '../getDisplayName';
test('getDisplayName should return String or Component for empty object', assert => {
const mapped = [
{ displayName: 'hey' },
{ name: 'ho' },
{}
].map(getDisplayName);
assert.deepEqual(mapped, ['hey', 'ho', 'Component']);
a... |
/*
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.wire.XmlWire"]){
dojo._hasResource["dojox.wire.XmlWire"]=true;
dojo.provide("dojox.wire.XmlWir... |
'use strict';
var React = require('react');
var PureRenderMixin = require('react-addons-pure-render-mixin');
var SvgIcon = require('../../svg-icon');
var HardwareMemory = React.createClass({
displayName: 'HardwareMemory',
mixins: [PureRenderMixin],
render: function render() {
return React.createElement(
... |
'use strict'
const multiaddr = require('multiaddr')
function ensureMultiaddr (ma) {
if (multiaddr.isMultiaddr(ma)) {
return ma
}
return multiaddr(ma)
}
module.exports = {
ensureMultiaddr: ensureMultiaddr
}
|
var editorXX={};
editorXX.addCustomLink("");
editorXX.removeCustomLink("");
editorXX.removeCustomStyle("");
editorXX._onSetMode("");
editorXX.addAttrs({},{});
editorXX._onSetElAttrs();
editorXX._onSetElCls();
editorXX._onSetElStyle();
editorXX._onSetElAttrs();
editorXX._onSetElAttrs(); |
const { expect } = require('chai');
const proxyquire = require('proxyquire');
const Packet = require('../../lib/services/utils/ipc/packet');
describe('IPC Packet', () => {
it('Should serialize and parse data', () => {
const originalMessage = Buffer.from('hello world');
let packet = Pac... |
import Ember from "ember-metal/core";
import { get } from "ember-metal/property_get";
import { set } from "ember-metal/property_set";
import run from "ember-metal/run_loop";
import {
addObserver,
removeObserver
} from "ember-metal/observer";
import EmberObject from "ember-runtime/system/object";
import EmberDataAda... |
goog.provide('ns.reserved.a');
goog.provide('ns.reserved.switch');
/** @const */
ns.reserved.a = 0;
/** @const */
ns.reserved.switch = 0;
|
//// Copyright (c) Microsoft Corporation. All rights reserved
(function () {
"use strict";
// Commonly-used types.
var StandardDataFormats = Windows.ApplicationModel.DataTransfer.StandardDataFormats;
var HtmlFormatHelper = Windows.ApplicationModel.DataTransfer.HtmlFormatHelper;
var QuickLink = Wi... |
// ----------------------------------------------------------------------------
// markItUp! Universal MarkUp Engine, JQuery plugin
// v 1.1.6.1
// Dual licensed under the MIT and GPL licenses.
// ----------------------------------------------------------------------------
// Copyright (C) 2007-2010 Jay Salvat
// http:... |
'use strict';
/*
* This is a regression test for https://github.com/joyent/node/issues/8874.
*/
require('../common');
const assert = require('assert');
const spawn = require('child_process').spawn;
// Use -i to force node into interactive mode, despite stdout not being a TTY
const args = [ '-i' ];
const child = spaw... |
var FoodChain = require('./food-chain');
describe('Food Chain', function () {
var song = new FoodChain();
it('fly', function () {
var expected = 'I know an old lady who swallowed a fly.\nI don\'t know why she swallowed the fly. Perhaps she\'ll die.\n';
expect(song.verse(1)).toEqual(expected);
});
it... |
import { isPresent, isBlank, BaseException, FunctionWrapper } from 'angular2/src/facade/lang';
import { ListWrapper } from 'angular2/src/facade/collection';
import { AbstractChangeDetector } from './abstract_change_detector';
import { ChangeDetectionUtil, uninitialized } from './change_detection_util';
import { RecordT... |
/**
* Tests for the environmental (browser, jquery, etc.) options
*/
"use strict";
var JSHINT = require('../../src/jshint.js').JSHINT;
var fs = require('fs');
var TestRun = require("../helpers/testhelper").setup.testRun;
function wrap(globals) {
return '(function () { return [ ' + globals.join(',') + ' ]; ... |
class Padding {
constructor (padding) {
this.left = padding.left
this.right = padding.right
}
length () {
return this.left.length + this.right.length
}
}
/**
@module padding
*/
module.exports = Padding
|
function send_to_Enrichr(options) { // http://amp.pharm.mssm.edu/Enrichr/#help
var defaultOptions = {
description: "",
popup: false
};
if (typeof options.description == 'undefined')
options.description = defaultOptions.description;
if (typeof options.popup == 'undefined')
options.popup = defa... |
!function(a,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):a.dayjs_locale_eu=e(a.dayjs)}(this,function(a){"use strict";a=a&&a.hasOwnProperty("default")?a.default:a;var e={name:"eu",weekdays:"igandea_astelehena_astearte... |
/*!
FullCalendar RRule Plugin v4.1.0
Docs & License: https://fullcalendar.io/
(c) 2019 Adam Shaw
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('rrule'), require('@fullcalendar/core')) :
typeof define === 'function' && define.amd ? define... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.