code
stringlengths
2
1.05M
module.exports = extend var hasOwnProperty = Object.prototype.hasOwnProperty; function extend() { var target = {} for (var i = 0; i < arguments.length; i++) { var source = arguments[i] for (var key in source) { if (hasOwnProperty.call(source, key)) { t...
/*! * exec-series | MIT (c) Shinnosuke Watanabe * https://github.com/shinnn/exec-series */ 'use strict'; var exec = require('child_process').exec; var eachSeries = require('async-each-series'); module.exports = function execSeries(commands, options, cb) { if (!Array.isArray(commands)) { throw new TypeError(...
/** * Rangy, a cross-browser JavaScript range and selection library * https://github.com/timdown/rangy * * Copyright 2015, Tim Down * Licensed under the MIT license. * Version: 1.3.1-dev * Build date: 20 May 2015 */ (function(factory, root) { if (typeof define == "function" && define.amd) { // AMD....
define("ace/snippets/mushcode",["require","exports","module"],function(e,t,n){"use strict";t.snippetText="",t.scope="mushcode"}); (function() { window.require(["ace/snippets/mushcode"], function(m) { if (typeof module == "object" && typeof exports == "object" ...
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global.Dexie = factory()); }(this, (function () { 'use strict'; /* * Dexie.js - a minimalistic wrapper for IndexedDB * ===...
import { generateUtilityClasses, generateUtilityClass } from '@material-ui/unstyled'; export function getFormControlLabelUtilityClasses(slot) { return generateUtilityClass('MuiFormControlLabel', slot); } const formControlLabelClasses = generateUtilityClasses('MuiFormControlLabel', ['root', 'labelPlacementStart', 'lab...
var EventEmitter = require('events').EventEmitter; var util = require('util'); var WSProcessor = require('./wsprocessor'); var TCPProcessor = require('./tcpprocessor'); var logger = require('pomelo-logger').getLogger('pomelo', __filename); var HTTP_METHODS = [ 'GET', 'POST', 'DELETE', 'PUT', 'HEAD' ]; var ST_STARTE...
// Avoid `console` errors in browsers that lack a console. (function() { var method; var noop = function noop() {}; var methods = [ 'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error', 'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log', 'markTimeline',...
// Instantiate the object var I18n = I18n || {}; // Set default locale to english I18n.defaultLocale = "en"; // Set default separator I18n.defaultSeparator = "."; // Set current locale to null I18n.locale = null; // Set the placeholder format. Accepts `{{placeholder}}` and `%{placeholder}`. I18n.PLACEHOLDER = /(?:\...
/** * Angular Selectize2 * https://github.com/machineboy2045/angular-selectize **/ angular.module('selectize', []).value('selectizeConfig', {}).directive("selectize", ['selectizeConfig', '$timeout', function(selectizeConfig, $timeout) { return { restrict: 'A', require: '^ngModel', template: '<select>...
/** * * jquery.sparkline.js * * v2.1.2 * (c) Splunk, Inc * Contact: Gareth Watts (gareth@splunk.com) * http://omnipotent.net/jquery.sparkline/ * * Generates inline sparkline charts from data supplied either to the method * or inline in HTML * * Compatible with Internet Explorer 6.0+ and modern browsers equipped with th...
"use strict"; exports.__esModule = true; // istanbul ignore next function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj["default"] = obj;...
angular.module('ngTranslate').directive('translate', [ '$filter', '$interpolate', function ($filter, $interpolate) { var translate = $filter('translate'); return { restrict: 'A', scope: true, link: function linkFn(scope, element, attr) { attr.$observe('translate', function (trans...
(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(n?n:e)},l,l.ex...
/** * Test dependencies */ var assert = require('assert'); var httpHelper = require('./helpers/httpHelper.js'); var appHelper = require('./helpers/appHelper'); var util = require('util'); var wrench = require('wrench'); var path = require('path'); var fs = require('fs-extra'); describe('hooks :: ', function() { v...
Events = new Mongo.Collection('events'); Events.schema = new SimpleSchema({ createdAt: { type: Date }, name: { type: String }, description: { type: String, optional: true }, unique: { type: Boolean, optional: true }, important: { // marking an event as important means it shoul...
var bar = require('./bar'); module.exports = function (n) { return n * 111 + bar(n); };
/** * Globalize v1.1.0-rc.7 * * http://github.com/jquery/globalize * * Copyright 2010, 2014 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2015-12-01T17:27Z */ /*! * Globalize v1.1.0-rc.7 2015-12-01T17:27Z Released under the MIT license ...
(function ($) { var methods = { init : function() { return this.each(function() { // For each set of tabs, we want to keep track of // which tab is active and its associated content var $this = $(this), window_width = $(window).width(); $this.width('100%'); // Set ...
'use strict'; var util = require('gulp-util'); var assign = require('object-assign'); var path = require('path'); var PluginError = require('gulp-util').PluginError; var chokidar = require('chokidar'); var Duplex = require('readable-stream').Duplex; var vinyl = require('vinyl-file'); var File = require('vinyl'); var an...
var higher = require('../higher') , assert = require ('assert') , render = require('render') exports ['apply an assertion'] = function () { var called = 0 // assert.doesNotThrow(function () { higher.apply(true, function (actual) { assert.equal(actual, true) called ++ }) //}) assert.equa...
/* * Copyright (c) 2014 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...
'use strict'; ;(function (window, linkify) { var linkifyHtml = function (linkify) { 'use strict'; var HTML5NamedCharRefs = {}; function EntityParser(named) { this.named = named; } var HEXCHARCODE = /^#[xX]([A-Fa-f0-9]+)$/; var CHARCODE = /^#([0-9]+)$/; var NAMED = /^([A-Za-z0-9]+...
/* * Copyright (c) 2012 Trent Mick. All rights reserved. * * Test type checking on creation of the Logger. */ var bunyan = require('../lib/bunyan'), Logger = bunyan; // node-tap API if (require.cache[__dirname + '/tap4nodeunit.js']) delete require.cache[__dirname + '/tap4nodeunit.js']; var tap4nod...
// Copyright (c) Microsoft, All rights reserved. See License.txt in the project root for license information. ;(function (undefined) { var objectTypes = { 'function': true, 'object': true }; function checkGlobal(value) { return (value && value.Object === Object) ? value : null; } var freeExpor...
(function () { var lang = { months : "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), monthsShort : "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), weekdays : "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturda...
/* * /MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Italic/GeneralPunctuation.js * * Copyright (c) 2009-2016 The MathJax Consortium * * 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 *...
var TA = require('../'); var test = require('tape'); test('tiny u8a test', function (t) { var ua = new(TA.Uint8Array)(5); t.equal(ua.length, 5); ua[1] = 256 + 55; t.equal(ua[1], 55); t.end(); });
!function(e){e.datepick.regional.hu={clearText:"törlés",clearStatus:"",closeText:"bezárás",closeStatus:"",prevText:"&laquo;&nbsp;vissza",prevStatus:"",prevBigText:"&#x3c;&#x3c;",prevBigStatus:"",nextText:"előre&nbsp;&raquo;",nextStatus:"",nextBigText:"&#x3e;&#x3e;",nextBigStatus:"",currentText:"ma",currentStatus:"",mon...
/** * Springy v2.6.1 * * Copyright (c) 2010-2013 Dennis Hotson * * 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,...
IntlMessageFormat.__addLocaleData({"locale":"ga","pluralRuleFunction":function (n,ord){var s=String(n).split("."),t0=Number(s[0])==n;if(ord)return"other";return n==1?"one":n==2?"two":t0&&n>=3&&n<=6?"few":t0&&n>=7&&n<=10?"many":"other"}}); IntlMessageFormat.__addLocaleData({"locale":"ga-IE","parentLocale":"ga"});
// lib/handlebars/base.js var Handlebars = {}; Handlebars.VERSION = "1.0.beta.6"; Handlebars.helpers = {}; Handlebars.partials = {}; Handlebars.registerHelper = function(name, fn, inverse) { if(inverse) { fn.not = inverse; } this.helpers[name] = fn; }; Handlebars.registerPartial = function(name, str) { this....
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_pre...
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_pre...
/** The YUI module contains the components required for building the YUI seed file. This includes the script loading mechanism, a simple queue, and the core utilities for the library. @module yui @main yui @submodule yui-base **/ /*jshint eqeqeq: false*/ if (typeof YUI != 'undefined') { YUI._YUI = YUI; } /** The...
var tape = require('tape') var crypto = require('pbkdf2/browser') var vectors = require('hash-test-vectors/pbkdf2') tape('pbkdf2', function (t) { vectors.forEach(function (input) { //skip inputs that will take way too long if(input.iterations > 10000) return var key = crypto.pbkdf2Sync(input.password,...
YUI.add('escape', function(Y) { /** Provides utility methods for escaping strings. @module escape @class Escape @static @since 3.3.0 **/ var HTML_CHARS = { '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#x27;', '/': '&#x2F;', '`': '&#x60;' },...
import composeArgs from './_composeArgs.js'; import composeArgsRight from './_composeArgsRight.js'; import countHolders from './_countHolders.js'; import createCtor from './_createCtor.js'; import createRecurry from './_createRecurry.js'; import getHolder from './_getHolder.js'; import reorder from './_reorder.js'; imp...
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang('placeholder','da',{placeholder:{title:'Egenskaber for pladsholder',toolbar:'Opret pladsholder',text:'Tekst til pladsholder',edit:'Rediger plad...
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "\u202eAM\u202c", "\u202ePM\u202c" ], "DAY": [ ...
/** * @fileoverview Wrapper around estraverse * @author Nicholas C. Zakas */ "use strict"; //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ const estraverse = require("estraverse"); //-...
/** * An Array.prototype.slice.call(arguments) alternative * * @param {Object} args something with a length * @param {Number} slice * @param {Number} sliceEnd * @api public */ module.exports = function () { var args = arguments[0]; var slice = arguments[1]; var sliceEnd = arguments[2]; var ret = []; ...
/** * Ignores values from an observable sequence which are followed by another value within a computed throttle duration. * @param {Function} durationSelector Selector function to retrieve a sequence indicating the throttle duration for each given element. * @returns {Observable} The debounced sequence. *...
/* YUI 3.17.1 (build 0eb5a52) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add("file",function(e,t){var n=e.config.win;n&&n.File&&n.FormData&&n.XMLHttpRequest?e.File=e.FileHTML5:e.File=e.FileFlash},"3.17.1",{requires:["file-flash","file-html5"]})...
import { render } from 'react-dom' import React from 'react' const App = React.createClass({ render: function () { return <div>Hello</div> } }) const $app = document.createElement('div') document.body.appendChild($app) render(<App />, $app)
module.exports = function (options, template, data, cb) { var html = template.replace('~~thing~~', data.thing) cb(null, html) }
/** * maryamyriameliamurphies.js * A library of Haskell-style morphisms ported to ES2015 JavaScript. * * type.js * * @file Type system foundation. * @license ISC */ /** @module type */ import {partial} from './base'; import {error} from './error'; /** * The base class for all other types. This class is not...
import mod445 from './mod445'; var value=mod445+1; export default value;
import mod292 from './mod292'; var value=mod292+1; export default value;
var assert = require("chai").assert; var crossbow = require("../../index"); describe("Adding a partial", function() { it("Add & update 1 partial", function(done) { var site = crossbow.builder(); var content = "<p>{{itemTitle}} is rad, {{page.url}}, {{site.title}}</p>"; var content2 ...
import { Exception } from 'orbit/lib/exceptions'; export class InvalidServerResponse extends Exception { constructor(message) { super(message); this.name = 'OrbitJSONAPI.InvalidServerResponse'; } }
import React from 'react' import { connect } from 'react-redux' import initializeObjectShape from './initializeObjectShape' import addInitialExpectedBreakTeams from './addInitialExpectedBreakTeams' import addSucceedingExpectedBreakTeams from './addSucceedingExpectedBreakTeams' import addBreakRooms from './addBreakRoom...
class TwoFer{ constructor() {} twoFer(name = ""){ return `One for ${name == "" ? "you" : name}, one for me.`; } } module.exports = TwoFer;
/*! Copyright (c) 2011 Piotr Rochala (http://rocha.la) * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. * * Version: 1.3.8 * */ (function(e){e.fn.extend({slimScroll:function(f){var a=e.extend({width:"auto",h...
var clv = require("../../../../index.js"); var assert = require("assert"); describe("Generated test - ins/ins/rm/rm/ins/rm/ins/rm/ins/ins/ins/ins/undo/rm/ins/rm/rm/rm/ins/rm/ins/undo/redo/ins/undo/redo/ins/undo/undo/rm/rm/ins/rm/rm/rm/undo/rm/rm/undo/rm/ins/ins/ins/rm/rm/rm/ins/rm/rm/ins/ins/rm/ins/undo/rm/rm/undo/ins...
// Regular expression that matches all symbols in the Miao block as per Unicode v6.1.0: /\uD81B[\uDF00-\uDF9F]/;
// Dependencies --------------------------------------------------------------- // ---------------------------------------------------------------------------- const Errors = require('../Errors'); // Token streaming interface for the Parser ----------------------------------- // --------------------------------------...
/** @jsx jsx */ import { Node } from 'slate' import { jsx } from 'slate-hyperscript' export const input = ( <editor> <element> <text key="a" /> <text key="b" /> </element> </editor> ) export const test = value => { return Array.from(Node.descendants(value, { reverse: true })) } export con...
import { Model as GenerationStepLogMixin, defineProjections } from '../mixins/regenerated/models/fd-generation-step-log'; import model from 'ember-flexberry-data/models/model'; import OfflineModelMixin from 'ember-flexberry-data/mixins/offline-model'; let Model = model.extend(OfflineModelMixin, GenerationStepLogMixin...
var express = require('express'); var router = express.Router(); router.get('/', function(req, res) { res.json('admin home api'); }); router.get('/contents', function(req, res) { res.json('admin contents api'); }); module.exports = router;
var searchData= [ ['width',['width',['../classvku_1_1_window.html#a313d031caea0a2ebd0c7ba3d28fc0a72',1,'vku::Window']]], ['window',['Window',['../classvku_1_1_window.html',1,'vku']]], ['window',['Window',['../classvku_1_1_window.html#afa10614c5dee3dda4393a0e83a337330',1,'vku::Window']]], ['write',['write',['../...
define({ root: ({ _widgetLabel: "Chart", executeChartTip: "Click one of the following task items to execute chart.", invalidConfig: "Invalid configuration.", noneChartTip: "No chart task was configured for this widget.", chartParams: "Options", charts: "CHARTS", apply: "APPLY", useSpat...
//文本框获取焦点时下划线变色,提示用户已获取焦点 var input_sousuo=document.getElementsByTagName("input")[0]; var sousuo=document.getElementsByClassName("sousuo")[0]; input_sousuo.onfocus=function(){ sousuo.style.borderBottom="0.02rem solid greenyellow"; } input_sousuo.onblur=function(){ sousuo.style.borderBottom="0.02rem solid #999999"; } ...
/* Simple JavaScript Inheritance with NFE's * MIT Licensed. */ // Inspired by base2 and Prototype and John Resig's class system (function() { var initializing = false; // The base Class implementation (does nothing) this.Class = function(){}; // Create a new Class that inherits from this class C...
#!/usr/bin/env node 'use strict'; const fs = require('fs'); const path = require('path'); const assert = require('assert'); const utils = require('../utils.js'); assert(!module.parent); assert(__dirname === process.cwd()); const host = 'node' + process.version.match(/^v(\d+)/)[1]; const target = process.argv[2] || ...
// Write an expression that calculates rectangle’s area by given width and height. taskName = "Rectangle area"; function Main(bufferElement) { var width = 2.5, // Change value to TEST height = 3, area = width * height; WriteLine(Format("Width is {0}.", width)); WriteLine(Format("Height is ...
[ { "fileName" : "test2.js", "order" : 1 }, { "fileName" : "test.js", "order" : 1 } ]
class qedit_dxtkey { constructor() { // int Capabilities () {get} this.Capabilities = undefined; // float Duration () {get} {set} this.Duration = undefined; // int Hue () {get} {set} this.Hue = undefined; // int Invert () {get} {set} this.Invert = u...
angular.module('fdb.directives', ['mcus.directives']); angular.module('fdb.services', ['mcus.services']); angular.module('fdb.filters', []); angular.module('fdb', ['fdb.services', 'fdb.directives', 'fdb.filters']). controller('ContactsCtrl', function($scope, $http, $timeout, $filter) { $scope.pageName = 'Contacts';...
// @flow import React from 'react'; import withData from '../libs/withData'; import Screen from '../components/Screen'; function Playerlist() { return ( <div> <Screen size="1080p" screenId="cj5jb9cz9jrzu0110lpdq9cf4" /> </div> ); } export default withData(Playerlist);
/* * SearcherView that provides data-binding between the "[name=query]" DOM element * and the Searcher's query attribute. */ define([ 'backbone', 'synapse', 'synapse/hooks/object', 'synapse/hooks/jquery', 'synapse/hooks/backbone-model' ], function(Backbone, Synapse, Object...
import React from 'react'; import ReactTestUtils from 'react-dom/test-utils'; import buttonHeaderDriverFactory from './ButtonHeader.driver'; import {createDriverFactory} from '../../test-common'; import ButtonHeader from './ButtonHeader'; import {buttonTestkitFactory, buttonHeaderTestkitFactory} from '../../../testkit'...
// http://travismaynard.com/writing/getting-started-with-gulp // Include gulp var gulp = require('gulp'); // Include Our Plugins var concat = require('gulp-concat'), uglify = require('gulp-uglify'), rename = require('gulp-rename'), path = require('path') // combine array of names with their sources var c...
Package.describe({ summary: 'Famo.us wrapper for Accounts Templates.', version: '1.13.1', name: 'useraccounts:famous-wrapper', git: 'https://github.com/meteor-useraccounts/famous-wrapper.git', }); Package.on_use(function(api, where) { api.versionsFrom('METEOR@1.0'); api.use([ 'reactive-dict', 'tem...
steal( 'jquery/controller', 'jquery/view/ejs', 'jquery/dom/form_params', 'jquery/controller/view', 'naxx/models' ) .then('./views/init.ejs', function($){ /** * @class Naxx.Encoder.Create * @parent index * @inherits jQuery.Controller * Creates encoders */ $.Controller('Naxx.Encoder.Create', /**...
var request = require('superagent'); var debug = require('debug')('Discovery'); var chai = require('chai'); var AssertionError = chai.AssertionError; describe('Discovery Service', function(){ var result; describe('GetCapabilities Document', function() { it('should be accessible', function(done) { var r...
var React = require('react'); var ReactDOM = require('react-dom'); function topPosition(domElt) { if (!domElt) { return 0; } return domElt.offsetTop + topPosition(domElt.offsetParent); } var InfiniteScroll = React.createClass({ componentDidMount: function () { this.offsetLoaded = this...
require.ensure([], function(require) { require("./21.async.js"); require("./43.async.js"); require("./86.async.js"); require("./172.async.js"); }); module.exports = 173;
'use strict'; /** * An asset upload manager that uses pkgcloud to upload to the various cloud service providers (amazon s3, rackspace cloud files * @{@link https://github.com/typesettin/periodicjs.ext.clouduploads} * @author Yaw Joseph Etse * @copyright Copyright (c) 2014 Typesettin. All rights reserved. * @licen...
'use strict' // // var app = app || {}; // // (function(module) { // // // $('#genreDropDown').on('click', function(event) { // event.console.log('sup') // }); // // $('#durationDropDown').on('click', function(event) { // event.console.log('sup') // }); // // $('#voteAverageDropDown').on('click', func...
(function () { 'use strict'; angular .module('falconcmsApp') .config(pagerConfig); pagerConfig.$inject = ['uibPagerConfig', 'paginationConstants']; function pagerConfig(uibPagerConfig, paginationConstants) { uibPagerConfig.itemsPerPage = paginationConstants.itemsPerPage; ...
'use strict'; /** * Contains methods for retrieving and parsing rulings from a website. */ var website = { /** * @param {string} options.url Url of the website. Will be used for * pattern-matching, etc. * @param {Function} options.getRulings Accepts a card name as a * parameter. Returns the ...
import { connect } from 'react-redux' import SimpleForm from '../components/SimpleForm' import { updateText } from '../actions' const mapStateToProps = (state) => ({ text: state.text }) const mapDispatchToProps = (dispatch) => ({ onChange: (e) => { e.preventDefault() console.log(e.target) dispatch(upd...
#!/usr/bin/env node // @flow import { download } from "./download/download"; import { insert } from "./elasticsearch/insert"; import fileExists from "file-exists"; import * as path from "path"; import {expand} from 'pattern-expander'; import { getSettings } from './settings/settings'; import type { DownloadSettings } f...
#!/usr/bin/env node /** * Module dependencies. */ require('dotenv').config(); let db = require('./connection'); let app = require('./app'); let http = require('http'); /** * Get port from environment and store in Express. */ let port = normalizePort(process.env.PORT || '3010'); app.set('port', po...
var g = require("../../include"); function Server() { var self = this; self.server = null; self.defaults = new(require("../defaults"))(); function Response(request, response){ var self = this; self.request = request; self.response = response; self.question = request.question[0]; self.reply = func...
/** File : diff.spec.js Date : 2016年01月03日 星期日 08时32分09秒 */ import Element from '../../src/lib/Element' import diff from '../../src/lib/diff' import patch from '../../src/lib/patch' function el(...args) { return new Element(...args) } describe('Test diff algorithm', () => { it('Node replacing', () => { ...
const PARAM_LIST = require('./param_list'); const DEV_KEYSTORE = require('./dev_keystore'); const CLIENT_ATTRIBUTES = require('./client_attributes'); const JWA = require('./jwa'); const PUSHED_REQUEST_URN = 'urn:ietf:params:oauth:request_uri:'; module.exports = { CLIENT_ATTRIBUTES, DEV_KEYSTORE, JWA, PARAM_LI...
'use strict'; const assert = require('power-assert'); const Assembler = require('../../../lib/deco/assembler'); const Context = require('../../../lib/context'); describe('deco/assembler', () => { let context = new Context(); describe('constructor()', () => { it('should create assembler', () => { ...
import React, { useRef } from "react"; import { useAppReducer } from "../AppContext"; import styles from "./AddItemForm.module.scss"; // Form to populate todo items function AddItemForm() { const dispatch = useAppReducer(); let inputRef = useRef(); function addItem(e) { const newItem = { text: inputR...
import Ember from 'ember'; import { moduleForModel, test } from 'ember-qunit'; import SmackHooks from 'smack-ember-adapters/adapters/smackHooks'; const {run} = Ember; moduleForModel('execute-event', 'Unit | Model | execute event', { // Specify the other units that are required for this test. needs: [] }); test('...
import test from 'tape'; import React from 'react'; import {mount} from 'enzyme'; import LabelSeries from 'plot/series/label-series'; import {testRenderWithProps, GENERIC_XYPLOT_SERIES_PROPS} from '../test-utils'; import LabelSeriesExample from '../../showcase/misc/label-series-example'; testRenderWithProps(LabelSerie...
import * as ReactNative from "react-native"; var bounce = ReactNative.Easing.bounce; var circle = ReactNative.Easing.circle; var cubic = ReactNative.Easing.cubic; var ease = ReactNative.Easing.ease; var exp = ReactNative.Easing.exp; var linear = ReactNative.Easing.linear; function poly(prim) { return ReactNa...
'use strict'; describe('angular slick testing', function () { });
var door_open = function(){ $.ajax( { url : linda_url+"/"+space+".write", type : 'POST', data : {tuple: JSON.stringify(tuple)}, success : function(data,type){ alert('door open!!') }, error : function(xhr, stat, err){ alert('door error..'); }, complet...
version https://git-lfs.github.com/spec/v1 oid sha256:168561eb5c5dd372ac45bd7d72b5646374e2e2098b4cba3770d0f4de2044b903 size 12367
import { clickable, /* text */ } from 'ember-cli-page-object'; export default { tabInline: clickable('.t-tab-inline'), tabBlock: clickable('.t-tab-block'), tabData: clickable('.t-tab-data') };
/** * Dependencies */ var path = require('path'); var read = require('fs-readdir-recursive'); /** * Expose `readPartials` */ module.exports = readPartials; /** * Helper for reading a folder with partials, returns a `partials` object that * can be consumed by consolidate. * * @param {String} partialsRel * @pa...
import React from 'react'; import propTypes from '../iconPropTypes'; const Boat = ({ fill, styles }) => ( <svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 512 512" style={{ ...styles, enableBackground: 'new 0 0 512 512' }} > <g> <g...
'use strict' var Q = require('q') var electron = require('electron-prebuilt') var pathUtil = require('path') var childProcess = require('child_process') var kill = require('tree-kill') var utils = require('./utils') var watch var gulpPath = pathUtil.resolve('./node_modules/.bin/gulp') if (process.platform === 'win32'...