code
stringlengths
2
1.05M
const path = require('path') exports.name = 'eject-html' exports.cli = api => { api.cli .command('eject-html [out-file]', 'Eject the default HTML file') .option('--overwrite', 'Overwrite exiting file') .action(async (outFile = 'public/index.html', options) => { const fs = require('fs-extra') ...
/* jshint -W097 */// jshint strict:false /*jslint node: true */ "use strict"; var winston = require('winston'); var fs = require('fs'); var path = require('path'); var os = require('os'); //require('winston-syslog').Syslog; var logger = function (level, files, noStdout, prefix) { var userOptions = {...
module.exports = (event, model) => { const _ = require('lodash'); const sequence = require('../../lib/promise/sequence'); const api = require('../../api'); const apiVersion = model.get('api_version') || 'v2'; const resourceName = event.match(/(\w+)\./)[1]; const docName = `${resourceName}s`; ...
module.exports={A:{A:{"2":"K C G E B A WB"},B:{"2":"D u Y I M H"},C:{"1":"0 1 2 3 5 6 7 z F J K C G E B A D u Y I M H N O P Q R S T U V W X w Z a b c d e f L h i j k l m n o p q r s t y v g SB RB","2":"UB"},D:{"1":"0 1 2 3 5 6 7 F J K C G E B A D u Y I M H N O P Q R S T U V W X w Z a b c d e f L h i j k l m n o p q r s...
'use strict'; /* jshint node:true, undef:true, unused:true */ const Rollup = require('broccoli-rollup'); const Babel = require('broccoli-babel-transpiler'); const merge = require('broccoli-merge-trees'); const uglify = require('broccoli-uglify-js'); const version = require('git-repo-version'); const watchif...
"use strict"; /* global describe, it */ var should = require( "should" ); var Postal = require( "../../../lib/common" ); describe( "Match Object:", function () { it( "Constructor - No Config", function () { var postal = new Postal(); var match = postal.match; should.exist( match ); } ); } );
/** * EditorCommands.js * * Copyright, Moxiecode Systems AB * Released under LGPL License. * * License: http://www.tinymce.com/license * Contributing: http://www.tinymce.com/contributing */ (function(tinymce) { // Added for compression purposes var each = tinymce.each, undef, TRUE = true, FALSE = false; /*...
import { moduleForComponent, test } from 'ember-qunit'; moduleForComponent('credit-card-form', { // specify the other units that are required for this test needs: [ 'component:input-credit-card-number', 'component:input-credit-card-expiration', 'component:input-credit-card-cvc' ] }); test('it ...
/* eslint-disable no-console */ function init( _context) { let { Meteor } = _context; return function () { Meteor.methods({ '_books.wipe'() { console.log('<|> <|> (mmks_book/src/server/methods=>_book.wipe) <|> <|> '); return true; } }); }; } const Methods = { new: init, }...
import React from 'react' import { render } from 'react-testing-library' import Header from '../header' describe(`Header`, () => { it(`renders siteTitle`, () => { const siteTitle = `Hello World` const { getByText } = render(<Header siteTitle={siteTitle} />) const title = getByText(siteTitle) expec...
module.exports = function(grunt) { // Project Configuration grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), watch: { sass: { files: ['src/web/assets/feedme/dist/css/*.scss'], tasks: 'css' }, js: { fi...
'use strict' const EventEmitter = require('events') module.exports = class ChildProcessMock extends EventEmitter { constructor() { super() this.stdout = { on() {} } this.stderr = { on() {} } this.stdin = { end: () => { this.emit('exit', 0) } } } }
var test = require('tape'); var defaults = require('../defaults'); test('defaults', function(t) { t.plan(3); t.equal(defaults({}, { a: true }).a, true, 'Property a copied across'); t.equal(defaults({ a: 1 }, { a: 2 }).a, 1, 'Property value not overriden'); t.equal(defaults(undefined, { a: true }).a, true, 'Pro...
/** * pixi 0.3.1 (a1e2d46) * http://drkibitz.github.io/node-pixi/ * Copyright (c) 2013-2015 Dr. Kibitz, http://drkibitz.com * Super fast 2D rendering engine for browserify, that uses WebGL with a context 2d fallback. * built: Fri May 22 2015 20:31:02 GMT-0700 (PDT) * * Pixi.js - v1.3.0 * Copyright (c) 2012, Mat...
'use strict'; angular .module('javascriptNews') .service('indexFactory', ['$resource', function($resource) { this.getHeadlines = function() { return $resource('/api/v1/headlines', null); }; this.getBestArticles = function() { return $resource('/api/v1/articles/...
var require = patchRequire(require); var fs = require('fs'); var url = 'http://weibo.com/login.php'; var login_cookies = require('weibo_cookies'); module.exports = function(username, password) { /**************************handler*****************************/ var error_handler = function() { this.die(...
var chai = require('chai'); var assert = chai.assert; var sinon = require('sinon'); var fs = require('fs'); var yaml = require('js-yaml'); require('../helpers/globals'); var Config = require('../../lib/config'); describe('Config', function() { var config; var configPath = './tmp-cm-janus-conf.yaml'; context('...
/** * Commands * Pokemon Showdown - https://pokemonshowdown.com/ * * These are commands. For instance, you can define the command 'whois' * here, then use it by typing /whois into Pokemon Showdown. * * A command can be in the form: * ip: 'whois', * This is called an alias: it makes it so /ip does the same th...
import React, { Component } from 'react'; import moment from 'moment'; import glamorous from 'glamorous'; moment.locale('it'); const Time = glamorous.div({ fontSize: '48px', color: '#fff', fontFamily: 'LeroyMerlinSans Bold', textTransform: 'uppercase' }); export default class DateBadge extends Component { ...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
'use strict'; var $npm = { con: require('manakin').local, result: require('./result'), special: require('./special'), context: require('./cnContext'), events: require('./events'), utils: require('./utils'), connect: require('./connect'), query: require('./query'), task: r...
/** * Created by Florin Chelaru ( florin [dot] chelaru [at] gmail [dot] com ) * Date: 8/27/2015 * Time: 9:42 AM */ goog.require('vs.ui.VisualizationFactory'); goog.exportSymbol('vs.ui.VisualizationFactory', vs.ui.VisualizationFactory); goog.exportProperty(vs.ui.VisualizationFactory.prototype, 'createNew', vs.ui.V...
/* * Copyright 2013 The Polymer Authors. All rights reserved. * Use of this source code is governed by a BSD-style * license that can be found in the LICENSE file. */ module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), yuidoc: { compile: { name: '<...
export default function loadInfo() { return new Promise((resolve) => { resolve({ message: '这来自API服务器', time: Date.now() }); }); }
'use strict'; module.exports = { client: { lib: { css: [ 'public/lib/bootstrap/dist/css/bootstrap.css', 'public/lib/bootstrap/dist/css/bootstrap-theme.css' ], js: [ 'public/lib/angular/angular.js', 'public/lib/angular-resource/angular-resource.js', 'publi...
import React from 'react'; import ReactDOM from 'react-dom'; import Profile from './components/Profile'; import { StyleSheet, css } from 'aphrodite'; const styles = StyleSheet.create({ wrapper: { display: 'flex', justifyContent: 'center', alignItems: 'center', width: '100%', height: '100%', },...
'use strict'; /** * Enable dubug mode * This allow to console.log in a firefox default configuration */ require('sdk/preferences/service').set('extensions.sdk.console.logLevel', 'debug'); var data = require('sdk/self').data; var { ToggleButton } = require('sdk/ui/button/toggle');<% if (contentscript) { %> var { Pa...
var _ = require('lodash'); var FieldType = require('../Type'); var https = require('https'); var keystone = require('../../../'); var querystring = require('querystring'); var util = require('util'); var utils = require('keystone-utils'); var RADIUS_KM = 6371; var RADIUS_MILES = 3959; /** * Location FieldType Constr...
/** * A string representing a [CSS font]{@link https://developer.mozilla.org/en-US/docs/Web/CSS/font}. * @typedef {String} Font * @example var sansSerif = '12px sans-serif', * bigBoldArial = '700 24px Arial', * italicSmallCaps = 'italic small-caps 16px Times New Roman'; */
module.exports = function (notes, length, dynamics) { this.stack.push({ notes: notes, length: length, dynamics: dynamics }); };
import Promise from 'bluebird' import _ from 'lodash/fp' export const idAsync = value => new Promise(resolve => setImmediate(resolve, value)) export const getBooksReadAsync = () => new Promise(resolve => resolve(['Moby Dick', 'A Tale of Two Cities'])) export const calculateTasteScoreAsync = () => new Promise(r...
Ext.ns('iwage.image.tools.glfx'); Ext.define('iwage.image.tools.glfx.TiltShift', { toolLabel: 'Tilt Shift', extend: 'iwage.image.tools.glfx.NubFilter', createControls: function() { return [ { xtype: 'slider', fieldLabel: 'Blur radius', ite...
'use strict'; /** * Commands module. * @module command */ module.exports = [ require('./add'), require('./remove'), require('./reset'), require('./list'), require('./pokedex'), require('./start'), require('./stop') ];
'use strict'; ////////////////////////////// // Requires ////////////////////////////// var paths = require('compass-options').paths(), browserSync = require('browser-sync'), reload = browserSync.reload; ////////////////////////////// // Internal Vars ////////////////////////////// var workPaths = [ paths.c...
import { ref, computed, watch, nextTick } from 'vue' function samePagination (oldPag, newPag) { for (const prop in newPag) { if (newPag[ prop ] !== oldPag[ prop ]) { return false } } return true } function fixPagination (p) { if (p.page < 1) { p.page = 1 } if (p.rowsPerPage !== void 0 &&...
#!/usr/bin/env node const electronPath = require('electron'); const childProcess = require('child_process'); const args = process.argv.slice(2); args.unshift(__dirname); childProcess.spawn(electronPath, args, { stdio: 'inherit' });
/** * node-shopify-api * * Copyright (c) 2014 Chris Talkington, contributors. * Licensed under the MIT license. * https://github.com/ctalkington/node-shopify-api/blob/master/LICENSE-MIT */ var Resource = require('../resource'); module.exports = Resource.extend({ path: '/admin/', create: Resource...
import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import withFB from 'common/withFB'; import MessageBoard from '../../components/ExperienceDetail/MessageBoard'; import { login } from '../../actions/auth'; import { statusSelector, } from '../../selectors/authSelector'; const mapStat...
var searchData= [ ['write_5ffinish_5ffn',['write_finish_fn',['../struct__esp__tcp.html#ae885dafd86eabefcff4ead713c21eb82',1,'_esp_tcp']]] ];
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //------------------------------------------------------...
class Globals { constructor() { "ngInject"; this.globals = {} } } export default Globals;
module('JSHint - routes'); test('routes/contact.js should pass jshint', function() { ok(true, 'routes/contact.js should pass jshint.'); });
export const open = (component) => ({ type: 'OPEN', component }) export const close = () => ({ type: 'CLOSE' }) export const clear = () => ({ type: 'CLEAR' })
'use strict'; require('../../modules/core.number.iterator'); var get = require('../../modules/$.iterators').Number; module.exports = function (it) { return get.call(it); }; //# sourceMappingURL=iterator-compiled.js.map
import { EventDispatcher } from '../core/EventDispatcher.js'; import { Texture } from '../textures/Texture.js'; import { LinearFilter } from '../constants.js'; import { Vector4 } from '../math/Vector4.js'; /* In options, we can specify: * Texture parameters for an auto-generated target texture * depthBuffer/stencil...
var searchData= [ ['viewrules',['viewrules',['../quest_8c.html#a33504d3cfa7980c5646061494f95132b',1,'viewrules():&#160;quest.c'],['../quest_8h.html#a33504d3cfa7980c5646061494f95132b',1,'viewrules():&#160;quest.c']]] ];
'use strict'; /* * This test makes sure that `writeFile()` always writes from the current * position of the file, instead of truncating the file. */ const common = require('../common'); const assert = require('assert'); const path = require('path'); const { readFileSync } = require('fs'); const { open } = require(...
(function () { 'use strict'; function GroupsBuilderDirective(contentTypeHelper, contentTypeResource, mediaTypeResource, dataTypeHelper, dataTypeResource, $filter, iconHelper, $q, $timeout, notificationsService, localizationService, editorService, eventsService, overlayService) { functi...
/* * Copyright (c) 2017. MIT-license for Jari Van Melckebeke * Note that there was a lot of educational work in this project, * this project was (or is) used for an assignment from Realdolmen in Belgium. * Please just don't abuse my work */ define(function () { // Slovak // use text for the numbers 2 through...
(function(){Template.formItem.customerMeasurement = function(item) { customerId = Session.get('currentCustomer'); customerMeasurements = Customers.findOne({_id: customerId}).measurements; if(!_.isUndefined(customerMeasurements)) { return 'Currently: ' + customerMeasurements[item] } return 'No Measurement...
'use strict'; const isGeneratorFn = require('is-generator-fn'); const co = require('co-with-promise'); const concordance = require('concordance'); const observableToPromise = require('observable-to-promise'); const isPromise = require('is-promise'); const isObservable = require('is-observable'); const plur = require('p...
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * @name: S11.8.1_A4.12_T2; * @section: 11.8.1, 11.8.5; * @assertion: If neither x, nor y is a prefix of each other, returned result of strings comparison applies a simple lexico...
import { Meteor } from 'meteor/meteor'; const nextTick = Meteor.bindEnvironment( fct => Meteor.defer(() => fct()), ); export default nextTick;
"use strict"; function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); ...
//= require redactor-rails/redactor.min //= require redactor-rails/langs/pt_br //= require ./redactor-rails/config.js
var expect = require('chai').expect var request = require('request') var local_enduro = require('../index').quick_init() var test_utilities = require('./libs/test_utilities') describe('Development server', function () { this.timeout(5000) before(function () { return test_utilities.before(local_enduro, 'devserver...
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M7 5h10v2h2V3c0-1.1-.9-1.99-2-1.99L7 1c-1.1 0-2 .9-2 2v4h2V5zm8.41 11.59L20 12l-4.59-4.59L14 8.83 17.17 12 14 15.17l1.41 1.42zM10 15.17L6.83 12 10 8.83 8.59 7.41 4 12l4.59 4.59L10 15.17zM17 19H7v...
function flip( fn ) { return function () { return fn.apply( fn, Array.prototype.slice.call( arguments ).reverse() ); }; }
"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")...
cordova.define('cordova/plugin_list', function(require, exports, module) { module.exports = [ { "file": "plugins/org.apache.cordova.geolocation/src/firefoxos/GeolocationProxy.js", "id": "org.apache.cordova.geolocation.GeolocationProxy", "runs": true }, { "file": "plugins/org....
new Test.Unit.Runner({ 'setup': function() { scrollTo(0,0); Position.prepare(); Position.includeScrollOffsets = false; }, 'teardown': function() { scrollTo(0,0); Position.prepare(); Position.includeScrollOffsets = false; }, 'testPrepare': function() { Position.prepare(); thi...
// // Autogenerated by Thrift Compiler (0.9.1) // // DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING // if (typeof kibitz === 'undefined') { kibitz = {}; } kibitz.Item = function(args) { this.attributes = null; this.kibitz_generated_id = null; if (args) { if (args.attributes !== undefined...
import gulp from 'gulp'; import co from 'co'; import path from 'path'; import plumber from 'gulp-plumber'; import rm from 'greasebox/rm'; import { paths } from './config'; gulp.task('clean', (cb) => { rm(paths.build) .then(cb) .catch(cb); }); gulp.task('clean:bundle', (cb) => { rm(paths.bundle) .then(cb) ...
define(['durandal/app','lib/pagelayout','lib/prettify'], function (app, pagelayout, prettify) { var activePage = ko.observable(), hash = "", oc; var availablePoints = ko.observableArray([ 'up-1', 'up-2', 'up-3','up-4','up-5','up-6', 'down-1', 'down-2', 'down-3','down-4','down-5'...
function WaitForRegistration(cmdController) { "use strict"; var handlerRegister = function () { cmdController.log('handlerRegister invoked...'); }, handlerSubmitSMS = function () { cmdController.log('handlerSubmitSMS invoked...'); }, validateInputs = funct...
// IMPORTANT!!! // The native getBBox() on text elements isn't always accurate in the decimals. // Therefore sometimes some rounding is used to make test work as expected. describe('Text', function() { var text beforeEach(function() { text = draw.text(loremIpsum).size(5) }) afterEach(function() { ...
// @flow const sum = (acc, next) => acc + next; /** * Calculates the average of multiple vectors (x, y values) */ const getVectorAvg = (vectors: Array<Object>): Object => ({ x: vectors.map(v => (v.x)).reduce(sum) / vectors.length, y: vectors.map(v => (v.y)).reduce(sum) / vectors.length, }); const getElement = ...
var replace = require('cli-util').pedantic; module.exports = function middleware(meta) { if(!meta.pedantic) { return; } return function pedantic(token, tokens, next) { if(!arguments.length) { return; } var types = ['paragraph', 'text']; if(token.text && ~types.indexOf(token.type)) { ...
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * @name: S7.8.5_A2.2_T2; * @section: 7.8.5; * @assertion: RegularExpressionChar :: \ or / is incorrect; * @description: /; * @negative */ //CHECK#1 /a//.source; ...
{ "name": "gradx.js", "url": "https://github.com/PhilippeAssis/gradx.git" }
/** * Tas.js * (c) 2017 Owen Luke * https://github.com/tasjs/tas * Released under the MIT License. */ var tas = require('../../../../../tas'); var tasks = function(){ tas(function t9(){ a ++; // 36 log('wait...'); setTimeout(function(){ a ++; // 37 log('continue...'); tas.next(); }, timeout);...
'use strict'; // From : https://github.com/twisterghost/react-mocha-jsdom-example/blob/master/test/setup.js import jsdom from 'jsdom'; // Define some html to be our basic document // JSDOM will consume this and act as if we were in a browser const DEFAULT_HTML = '<html><body></body></html>'; // Define some variable...
export default { unknown: "未知", anonymous: "匿名", activeCall: "使用中通話" }; // @key: @#@"unknown"@#@ @source: @#@"Unknown"@#@ // @key: @#@"anonymous"@#@ @source: @#@"Anonymous"@#@ // @key: @#@"activeCall"@#@ @source: @#@"Active Call"@#@
/* eslint-disable react/no-unused-prop-types */ /* @flow */ import React from 'react'; import type { Node } from 'react'; import cn from 'classnames'; export type Props = { children: Node, value?: any, onClick?: Function, onSelect?: Function, setHighlighted?: Function, index?: number, disabled?: boolean...
/** * 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 invokeGuardedCallbackImpl from './invokeGuardedCallbackImpl'; // Used by Fiber to simulate a try-catch. let ha...
module.exports=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s...
if (typeof(VisualWebGL) == 'undefined' ){ VisualWebGL = {}; } var VisualWebGL = (function(VisualWebGL){ var scene, camera, projector, plane, Model; var stats, renderer; // init(); // animate(); var _initialized = false; var _height; var _width; VisualWebGL.init = function(width, height){ ...
define([ "require", "./abstract" ], function (require, AbstractView) { "use strict"; var _ = require("underscore"); var GridView = function () { }; GridView.prototype = new AbstractView(); _.extend(GridView.prototype, { _options: { step: 10, strokeStyl...
var searchData= [ ['_7ecqlex',['~Cqlex',['../classCqlex.html#a15bc5b23d36df0a995e0a340f0372cc9',1,'Cqlex']]], ['_7ecregarray',['~Cregarray',['../classCregarray.html#a12f4b61c0fa17913e9076d0748de9210',1,'Cregarray']]] ];
import styled from 'styled-components' const InfoString = styled.span` font-size: 13px; letter-spacing: 0.8px; color: ${props => props.theme.text}; ` export default InfoString
angular.module('app').config(function($locationProvider, $routeProvider) { $locationProvider.html5Mode(true); $routeProvider.otherwise({redirectTo: '/'}); });
var protractor = require('protractor'); var firebase = require('firebase'); require('../../initialize-node.js'); // Various messages sent to demo const MESSAGES_PREFAB = [ { from: "Default Guest 1", content: 'Hey there!' }, { from: "Default Guest 2", content: 'Oh Hi, how are you?' }, { fr...
var test = async_test("Calling a Web Page URL from an Injected Script Process should return null"); function getHandler() { return function(evt) { test.step(function() { assert_equals(evt.data, "success", "Calling a Web Page URL from an Injected Script Process returns null"); }); test.done(); } } ext.onme...
export default function (a, v) { return !!~a.indexOf(v); }
import { getOwner } from '@ember/-internals/owner'; import { scheduleOnce } from '@ember/runloop'; import { get, objectAt, addArrayObserver, removeArrayObserver } from '@ember/-internals/metal'; import { dasherize } from '@ember/string'; import { Namespace, Object as EmberObject, A as emberA } from '@ember/-internals/r...
/* * grunt-string-replace * https://github.com/eruizdechavez/grunt-string-replace * * Copyright (c) 2016 Erick Ruiz de Chavez * Licensed under the MIT license. */ module.exports = function(grunt) { 'use strict'; grunt.initConfig({ base: { env: { test: 'replaced!' } }, packag...
/** * jQuery Unveil * A very lightweight jQuery plugin to lazy load images * http://luis-almeida.github.com/unveil * * Licensed under the MIT license. * Copyright 2013 Luís Almeida * https://github.com/luis-almeida * * Modifications by Yong Chen */ (function(factory) { if(typeof define === 'function' && define.amd) {...
import { get, set } from 'ember';
/** * @providesModule HasteModule */ module.exports = 'HasteModule';
var imgurGallery = require('./imgurGallery'); var imgurSearch = require('./imgurSearch'); var imgurServiceErrors = require('./imgurServiceErrors'); module.exports = { imgur: { serviceError: { apiKey: JSON.stringify(imgurServiceErrors.apiKey), emptySearch: JSON.stringify(imgurService...
{ "ADP_currencyISO" : "peseta andorrana", "ADP_currencyPlural" : "pesetas andorranas", "ADP_currencySingular" : "peseta andorrana", "ADP_currencySymbol" : "ADP", "AED_currencyISO" : "dírham de los Emiratos Árabes Unidos", "AED_currencyPlural" : "dirhams de los Emiratos Árabes Unidos", "AED_currencySingular" : "d...
'use strict'; require('../common'); const assert = require('assert'); const inspect = require('util').inspect; const url = require('url'); // when source is false assert.strictEqual(url.resolveObject('', 'foo'), 'foo'); /* [from, path, expected] */ const relativeTests = [ ['/foo/bar/baz', 'quux', '/foo/bar/quux'],...
var _curry1 = require('./internal/_curry1'); var curryN = require('./curryN'); /** * Returns a curried equivalent of the provided function. The curried * function has two unusual capabilities. First, its arguments needn't * be provided one at a time. If `f` is a ternary function and `g` is * `R.curry(f)`, the fol...
// @flow import React, { Component } from 'react'; import { Header, Icon, Segment } from 'semantic-ui-react'; export default class TitleBar extends Component { render() { const { icon, title, handleClose } = this.props; let { color } = this.props; if (!color) color = "blue"; let closeButton = false; ...
/* globals jQuery, d3, document, metaStates, config, metaActions, currentComboString, loadImages, updatePreview, hideHotSpots */ "use strict"; // Create a graph, exploring all possible interaction pathways: var graph = { nodes : [], links : [] }, linkLookup = {}, visited = {}, allMetaS...
var testData = { videoSrc: "http://www.youtube.com/watch/?v=nfGV32RNkhw", expectedDuration: 151, createMedia: function( id ) { return Popcorn.HTMLYouTubeVideoElement( id ); }, // We need to test YouTube's URL params, which not all // wrappers mimic. Do it as a set of tests specific // to YouTube....
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; import * as React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import Collapse from '../Collapse'; import withStyles from '../styl...
'use strict'; exports.__esModule = true; const Module = require('module'); const path = require('path'); // borrowed from babel-eslint function createModule(filename) { const mod = new Module(filename); mod.filename = filename; mod.paths = Module._nodeModulePaths(path.dirname(filename)); return mod; } export...
{ "name": "g.js", "url": "https://github.com/nodebox/g.js.git" }
'use strict'; exports.__esModule = true; exports.BSNotification = undefined; var _class, _temp; var _notificationController = require('./notification-controller'); var BSNotification = exports.BSNotification = (_temp = _class = function () { function BSNotification(controller) { this.controller = cont...