code
stringlengths
2
1.05M
'use strict' import test from 'ava' import peerid from './' import equals from 'buffer-equals' import {Buffer} from 'safe-buffer' test('random id', t => { const id = peerid() t.true(Buffer.isBuffer(id)) t.is(id.length, 20) const maybe_void = id.slice(0, 9).toString('ascii') t.not(maybe_void, 'undefined') ...
'use strict'; require('comps/header') var render = require('modules/render') // var listTpl = require('./list.tpl') // equal to var listTpl = require('./index.tpl??pagelet=list') module.exports = Reve.component('p-index', { data: function () { return { list: [{title: 'Real'}, {title: 'Comps'}...
'use strict'; var blueprintHelpers = require('ember-cli-blueprint-test-helpers/helpers'); var setupTestHooks = blueprintHelpers.setupTestHooks; var emberNew = blueprintHelpers.emberNew; var emberGenerateDestroy = blueprintHelpers.emberGenerateDestroy; var chai = require('ember-cli-blueprint-test-helpers/chai'); var e...
/* Se almighty gulp hook! ================================ Ge can thank this hook fore brengan freod to se galaxy be handling se mierce force that is opening an terminal ac flowan se gulp command. ^ That is supposeed to be old english, the translator didn't work that well.. shhh... ...
(function (testFns) { var breeze = testFns.breeze; var core = breeze.core; var Event = core.Event; var EntityQuery = breeze.EntityQuery; var DataService = breeze.DataService; var MetadataStore = breeze.MetadataStore; var EntityManager = breeze.EntityManager; var EntityKey = breeze.EntityKey; var Filt...
// Generated by CoffeeScript 1.10.0 $('#navicon').on("click", function() { return $('#mySidenav').css('width', '250px'); }); $('#closebtn').on("click", function() { return $('#mySidenav').css('width', '0px'); }); $('#about-nav').on("click", function() { setTimeout(showOutput, 50); $('#output').html('<div clas...
Delo.SelectionLayer = function(config) { this._initSelectionLayer(config); }; Delo.SelectionLayer.prototype = { _initSelectionLayer : function(config) { config.id = 'selection_layer'; // call super constructor Kinetic.Layer.call(this, config); /* set event handlers */ var stage = th...
/*eslint eqeqeq: "off"*/ /*eslint no-unused-vars: "off"*/ const Box = x => ({ map: f => Box(f(x)), fold: f => f(x), inspect: () => `Box(${x})` }); const Right = x => ({ chain: f => f(x), map: f => Right(f(x)), fold: (l, r) => r(x), inspect: () => `Right(${x})` }); const Left = x => ({ chain: f => Lef...
exports.names = ['*brewerylabel']; exports.hidden = false; exports.enabled = true; exports.matchStart = true; exports.handler = function(data) { bot.chat(brewerylabel); };
define( [ "browser/utils" ], function ( utils ) { console.log( "Module loaded" ) ; const apiUrl = API_URL + "/application/deployment/backlog" ; let $backlogTable, _backlogTimer ; let _latestQColumnWidth ; let $displayPanel = null ; let testCounter = 0 ; return { showBacklogInPa...
/** * Created by schwarzkopfb on 16/1/7. */ 'use strict' const assert = require('assert'), conf = require('../'), opts = { dirs: [ './', './env_spec' ], prefix: 'npm' } process.env = require('./env.json') process.argv = require('./argv.json') conf('./file', opts) .th...
#!/usr/bin/env node /*eslint no-console:0*/ 'use strict'; var fs = require('fs'); var argparse = require('argparse'); //////////////////////////////////////////////////////////////////////////////// var cli = new argparse.ArgumentParser({ prog: 'markdown-it', add_help: true }); cli.add_argument('-v', '--vers...
import Component from '@ember/component'; import layout from '../templates/components/nypr-notification'; export default Component.extend({ layout });
import React from 'react'; import ReactDOM from 'react-dom'; import $ from 'jquery'; import {setProps} from '../../support/jest-helpers'; import {spyOnRender} from '../../support/jest_spy_on_render'; import {Checkbox} from '../../../src/react/checkbox'; import {Icon} from '../../../src/react/iconography'; describe('Ch...
version https://git-lfs.github.com/spec/v1 oid sha256:c1a1c2b64498a1eda357b810916c25bcebe181970310a517db76ba0a092c86a9 size 10174
import { Router, Route, Link,hashHistory } from 'react-router' import Routers from './router' import './style/main.less' let Menu = React.createClass({ render() { return ( <div> <Routers /> </div> ); } }); ReactDOM.render(React.createElement(Menu), docu...
// xLinearScale r2, Copyright 2001-2007 Michael Foster (Cross-Browser.com) // Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL function xLinearScale(val,iL,iH,oL,oH) { var m=(oH-oL)/(iH-iL); var b=oL-(iL*m); return m*val+b; }
'use strict' module.exports = function (message) { global.ABIBAO.debuggers.bus('BUS_EVENT_SENDGRID_CREATE_BOUNCE_WORKING message=%o', message) global.ABIBAO.services.domain.execute('command', 'sendgridCreateBounceForWorkingCommand', message) }
var breadcrumbs=[['-1',"",""],['2',"SOLUTION-WIDE PROPERTIES Reference","topic_0000000000000C16.html"],['2267',"Tlece.Recruitment.Models.RecruitmentPlanning Namespace","topic_0000000000000692.html"],['2618',"StageDto Class","topic_00000000000008D3.html"],['2619',"Properties","topic_00000000000008D3_props--.html"],['262...
'use strict'; //Setting up route angular.module('cutting-registers').config(['$stateProvider', function($stateProvider) { // Cutting registers state routing $stateProvider. state('listCuttingRegisters', { url: '/cutting-registers', templateUrl: 'modules/cutting-registers/views/list-cutting-registers.clien...
/*! * dirname-regex <https://github.com/regexps/dirname-regex> * * Copyright (c) 2014-2015 Jon Schlinkert * Licensed under the MIT License. */ module.exports = function dirnameRegex() { return /^((.*)[\\\/]|\.)[^\\\/]*$/; };
import { createStore, applyMiddleware } from 'redux' import rootReducer from '../reducers' import thunk from 'redux-thunk' export default function configureStore() { const store = createStore(rootReducer, applyMiddleware(thunk)); return store; }
var express = require('express'); var router = express.Router(); router.post('/', function(req, res, next) { res.send(req.body); }); module.exports = router;
/*! * jQuery JavaScript Library v2.1.3 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2014-12-18T15:11Z */ (function( global, factory ) { if (...
var assert = chai.assert; suite('Analizador Descendente Predictivo Recursivo', function() { test('Probando bexec', function() { var str = "analizar" var reg = /ana/ var aux = reg.bexec(str) assert.equal(aux[0], 'ana') }); test('Probando tokens', function() { var exp = "c = 5" var res = '[{"type":"ID...
const should = require('chai').should(); // eslint-disable-line no-unused-vars const mgrs = require('../'); const { readFileSync } = require('fs'); describe('First MGRS set', () => { const mgrsStr = '33UXP04'; const point = mgrs.toPoint(mgrsStr); it('Longitude of point from MGRS correct.', () => { point[0].s...
define({ root: { filterSubmitLabel: 'Filter', gridColumnLabelTitle: 'Title', gridColumnLabelReleaseDate: 'Release Date', gridColumnLabelPublish: 'Publish', gridLoadingState: 'Loading...', gridNoDataAvailable: 'No data available', gridSaveButtonLabel: 'Save', ...
'use strict'; export Colors from './colors' export ColorManipulator from './colorManipulator' export Transitions from './transitions'
/* @flow */ import Client from './client'; import type { InputPagination, PromisedPagination } from './pagination'; import Pagination from './pagination'; /** * Banks class * * @param {Client} client * * @see https://apidocs.bankin.com/v2/docs/bank-resource */ class Banks { _client: Client; constructo...
import gql from 'src/lib/gql'; import ga from 'src/lib/ga'; import { t } from 'ttag'; import { getArticleURL, UPVOTE_PREFIX, DOWNVOTE_PREFIX, createTypeWords, } from 'src/lib/sharedUtils'; import { ellipsis, ManipulationError, FLEX_MESSAGE_ALT_TEXT } from './utils'; /** * @param {{vote: FeedbackVote, articleI...
'use strict'; angular.module('transcript.app.hosting-organization.view', ['ui.router']) .config(['$stateProvider', function($stateProvider) { $stateProvider .state('transcript.app.hosting-organization.view', { views: { "page" : { temp...
/*globals requirejs, expect, console, before*/ /* jshint browser: true, mocha: true, expr: true */ /** * @author lattmann / https://github.com/lattmann * @author kesco / https://github.com/kesco * @author pmeijer / https://github.com/pmeijer */ var WebGMEGlobal = {}; // jshint ignore:line describe('GME client', f...
/** * Copyright 2013 Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
'use strict'; import chai from 'chai'; import bootstrap from '../../../../../backend/src/user/retrieve/bootstrap'; suite('Bootstraps', () => { test(' bootstrap exists in deep-account-adapter-user-retrieve module', () => { chai.expect(bootstrap).to.be.an('object'); }); });
// http://eslint.org/docs/user-guide/configuring module.exports = { root: true, parser: 'babel-eslint', parserOptions: { sourceType: 'module' }, env: { browser: true, }, // https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style extends: 'standard', // required to li...
// Import library to help create a component import React from 'react'; import { AppRegistry, View } from 'react-native'; import Header from './src/components/Header'; import AlbumList from './src/components/AlbumList'; // Create a component const App = () => ( <View style={{ flex: 1 }}> <Header headerText='Albu...
(function () { 'use strict'; /** * This is required for support of bind in browsers who do not fully * support the ECMA 5(JavaScript 1.8.5) standard, ie. Safari(a.k.a. Stupid safari) */ if (!Function.prototype.bind) { Function.prototype.bind = function (oThis) { if (typeof this ...
var test = require("tape"); var usage = require("../"); var cliOptions = require("../example/my-app"); test("basic", function(t){ var result = usage(cliOptions); t.ok(/my-app/.test(result)); t.end(); });
var express = require('express'); var router = express.Router(); var Product = require('../../models/product'); router.post('/', function (req, res, next) { var updateObject = { $set:{ name: req.body.name, price: req.body.price, number: req.body.number, info:...
/* leny/prefiks * * /src/prefiks.js - Main Entry point * * coded by leny@flatLand! * started at 02/04/2019 */ import caniuseData from "caniuse-db/data.json"; import semver from "semver"; import lodash from "lodash"; const browsers={ "ie": ["ie","internet explorer","internet-explorer","internet_explorer","in...
import { SET_LOGIN_FLAG, SET_LOADING_FLAG } from '../mutation-types' // initial state const state = { bLoginPage: false, bLoading: false } // mutations const mutations = { [SET_LOGIN_FLAG] (state, flag) { state.bLoginPage = flag }, [SET_LOADING_FLAG] (state, flag) { state.bLoading = flag } } export d...
'use strict'; angular.module('campaigns').directive('validateMaximumLength', [ function() { var isValid = function(string) { if (string && !angular.isArray(string)) { var array = string.split('\n'); return array.length < 21; } return true;...
'use strict'; /** * Controller for Dishprice **/ dishpriceModule.controller('DishpriceCtrl', ['Dishprice', 'Dishspecificationinfo', '$scope', '$routeParams', '$http', '$location', '$cookies', 'MessageHandler', 'restURL', function(Dishprice, Dishspecificationinfo, $scope, $routeParams, $http, $location, $cookies, Me...
/** * Manapaho (https://github.com/manapaho/) * * Copyright © 2015 Manapaho. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import {default as store, createReaction} from '../store'; let exports = {}; /*...
import Route from '@ember/routing/route'; export default Route.extend({ model() { return false; } });
'use strict'; var gulp = require('gulp'), uglify = require('gulp-uglify'); gulp.task('default', function () { gulp.src('./src/predicate.js') .pipe(uglify()) .pipe(gulp.dest('./dist/')); });
import Ember from 'ember'; export default Ember.Component.extend({ chartOptions: { chart: { type: 'solidgauge' }, title: null, pane: { center: ['50%', '85%'], size: '140%', startAngle: -90, endAngle: 90, background: { backGroundColor: '#EEE', inn...
import React from 'react' import _ from 'lodash' import { ModelLinkWidget } from '../BaseLinkWidget' export const TYPE='specializationRelationship'; export class SpecializationRelationshipWidget extends ModelLinkWidget { getBaseClassName(link) { return TYPE; } }
var root = angular.module("root", ["ui.bootstrap", "ui.router"]); root.config([ "$httpProvider", function($httpProvider) { $httpProvider.defaults.headers.common['X-CSRF-Token'] = $('meta[name=csrf-token]').attr("content"); } ]); root.config(function($stateProvider, $urlRouterProvider) { $urlRouter...
const blockUrl = BLOCK_PATH+'/'+'file'; var model = require(BLOCK_PATH+'/'+'file/model'); exports.getBlockTypeName = function(res){ res('File'); } exports.getBlockTypeDescription = function(res){ res('Link to files stored in the asset library.'); } exports.InterfaceWidth = function(res){ res('300'); } exports.Inte...
import normalizeTransformer from './normalize-transformer.js'; import toArray from './to-array.js'; const asyncMapObj = async (obj, fn) => Object.fromEntries( await Promise.all( Object.entries(obj ?? {}).map(async ([key, val]) => [ key, await fn(val, key) ]) ) ); export default...
/** * 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. * * @format * @flow strict-local * @emails oncall+relay */ // flowlint ambiguous-object-type:error 'use strict'; const RelayMod...
'use strict'; // ++++++++++++++++++++++++++++++++++++++++++++ // DATA - Variable declarations // ++++++++++++++++++++++++++++++++++++++++++++ var allSongs = []; var songChart; var chartDrawn = false; // ++++++++++++++++++++++++++++++++++++++++++++ // DATA - Constructor and instances // +++++++++++++++++++++++++++++++...
'use strict'; var sucursales = require('../controllers/sucursales.controllers'); var verify = require('../services/verificarSesion'); module.exports = function(app){ app.route('/api/sucursales') .get(verify.hasSession, sucursales.list) .post(sucursales.create); app.route('/api/sucursalesByEmpresa/:empre...
if(typeof exports === 'object') { var assert = require("assert"); var alasql = require('..'); } else { __dirname = '.'; }; // Data for test var data = [{a:1},{a:2}]; describe('Test 355 PIVOT', function() { it.skip('1. CREATE DATABASE',function(done){ alasql('CREATE DATABASE test355;USE test355'); don...
Lexicon.add('dregus/TroubleFail', { layout: 'event', links: [ { name:'Complete', action:'event:complete' } ], body:[ { tag:"p", text:"You wander through the crowded streets of the scrap town, but nothing of particular interest "+ "happened. No one even tried to rob you." }, ], });
/* * Copyright (c) 2011 Vinay Pulim <vinay@milewise.com> * MIT Licensed */ "use strict"; var Client = require('./client').Client, Server = require('./server').Server, HttpClient = require('./http'), security = require('./security'), passwordDigest = require('./utils').passwordDigest, BluebirdPromise = re...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.data = undefined; var _utilities = require('../utilities'); var data = exports.data = { settings: { 'numericRegex': /^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/ }, messages: { 'isRequired': 'е задължително', 'onVa...
module.exports = function(app) { // TODO load minified in production environment app.get('/jquery.js', function(req,res) { res.sendfile('bower_components/jquery/dist/jquery.js'); }); app.get('/bootstrap.js', function(req,res) { res.sendfile('bower_components/bootstrap/dist/js/bootstrap.js'); }); ...
import React from 'react'; import isEqual from 'lodash.isEqual'; import debugFactory from 'debug'; import { GoogleMapLoader, GoogleMap, DirectionsRenderer } from 'react-google-maps'; const debug = debugFactory( 'voyageur:trip-map' ); function getGoogleMaps() { if ( window && window.google && window.google.maps ) re...
import {acquireChart, addMatchers, releaseCharts, specsFromFixtures, triggerMouseEvent, afterEvent} from 'chartjs-test-utils'; import {testEvents, eventPoint0, getCenterPoint} from './events'; import {createCanvas, getAnnotationElements, scatterChart, stringifyObject} from './utils'; import * as helpers from '../src/he...
/*! * This file is part of the hyyan/ionic-with-brunch package. * (c) Hyyan Abo Fakher <tiribthea4hyyan@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ // define application modules angular.module('app.controller', []); ...
var path = require("path"); var o = module.exports = {}; o.base = null; o.init = function() { o.base = null; }; o.registerFilePathAs = function(fp) { if (o.base === null) { o.base = path.dirname(fp); } return path.relative(o.base,fp).replace(/\\/g,"/"); };
test('.gershgorin()', 2, function () { var C = MathLib.Complex, m = new MathLib.Matrix([[1, 2, 3], [4, 5, 6], [7, 8, 9]]), n = new MathLib.Matrix([[new C(1, 4), 2, 3], [new C(2, 3), new C(4, 2), 6], [7, new C(0, 5), 9]]), resm = [new MathLib.Circle([1, 0], 5), new MathLib.Circle([5, 0], 10), new MathLib.Circl...
function ServiceWorkerService() { this.checkServiceWorker = function() { if ('serviceWorker' in navigator) { return true; } return false; } this.registerWorker = function(worker) { navigator .serviceWorker .register(worker, { scope: '/data-table/' }) .then(function(regist...
/*jslint node: true */ "use strict"; var Boom = require('boom'); module.exports = function (RateTypes) { var exp = { getAll : function (req, reply) { RateTypes.find({"lang" : req.params.lang}, function (err, result) { if (err) { reply(Boom.badImplementation(err.message)); } ...
'use strict'; angular.module('gb.myGraph') .controller('AddWellbeingController', ["$scope", "$route", "$log", "$http", "Popover", 'Utils', function($scope, $route, $log, $http, Popover, Utils) { // FIXME: Check $scope for wellbeingSelection() var answerSelection = undefined; $scope.submitting = false; $scope.err...
/* * This file is part of "console-plus" application. * Author: Vincent Peybernes * Creation date: 23/09/13 */ var consolePlus = require(__dirname+'/../libs/console.js'); module.exports = { test: function(test){ console.log(console); test.done(); } };
/*! fancyBox v2.1.5 fancyapps.com | fancyapps.com/fancybox/#license */ (function (s, H, f, w) { var K = f("html"), q = f(s), p = f(H), b = f.fancybox = function () { b.open.apply(this, arguments) }, J = navigator.userAgent.match(/msie/i), C = null, t = H.createTouch !== w, u = function (a) { ret...
// Karma configuration // Generated on Sun Feb 19 2017 08:33:23 GMT+0530 (India Standard Time) module.exports = function(config) { config.set({ // base path that will be used to resolve all patterns (eg. files, exclude) basePath: '', // frameworks to use // available frameworks: https:/...
describe('Point', function() { describe('x and y properties', function() { var point = new coconut.Point(); it('should be set', function() { assert.equal(point.x, 0); assert.equal(point.y, 0); point = new coconut.Point(4, 5); assert.equal(point.x, 4)...
'use strict'; var FluxibleApp = require('fluxible'); var app = new FluxibleApp({ component: require('./routes.jsx') }); app.uid = '__example'; app.registerStore(require('./stores/DataStore')); app.plug(require('./plugins/EnvPlugin')); app.plug(require('./plugins/ServicePlugin')); module.exports = app;
define("Navigo.amd", [], () => /******/ (() => { // webpackBootstrap /******/ "use strict"; /******/ var __webpack_modules__ = ({ /***/ "./src/constants.ts": /*!**************************!*\ !*** ./src/constants.ts ***! \**************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_...
const rule = require('../../../lib/rules/no-attrs-snapshot'); const RuleTester = require('eslint').RuleTester; const message = rule.meta.message; const eslintTester = new RuleTester(); eslintTester.run('no-attrs-snapshot', rule, { valid: [ { code: ` export default Ember.Component({ init(...
import {HttpClient, json} from 'aurelia-fetch-client'; /* Provides methods to return promise of data from REST Project api*/ //declare - not define //var virtualfolderbaseurl; export class ProjectApi { static inject = [HttpClient]; constructor(httpclient) { this.httpclient = httpclient; //needs SSO crede...
/*global define:false*/ define(['grasshopperBaseView', 'mastheadViewConfig', 'underscore', 'jquery'], function (GrasshopperBaseView, mastheadViewConfig, _, $) { 'use strict'; return GrasshopperBaseView.extend({ defaultOptions : mastheadViewConfig, beforeRender : beforeRender, afterRe...
import gql from 'graphql-tag' export const DELETE_POST = gql` mutation removePost($title_id: String!) { removePost(title_id: $title_id) } ` export const CREATE_POST = gql` mutation createPost($title: String!, $title_id: String!, $content: String!, $privacy: Boolean!) { createPost(title: $title, title_id...
/** * Module dependencies */ var util = require( './util' ); var assert = require( 'assert' ); /** * site.postType */ describe( 'wpcom.site.postType', function() { // Global instances var wpcom = util.wpcom(); var site = wpcom.site( util.site() ); var postType = site.postType( 'post' ); describe( 'wpcom.site...
'use strict' const raindrop = require('../lib/raindrop') // set options for entityTypeId (0 - 255) // set options for processId (0 - 16777215) // set options for serviceId (0 - 255) const options = { 'entityTypeId': 4, 'processId': 7844, 'serviceId': 1 } // create new raindrop with options const drop = raindro...
/** * Tom Select v2.0.1 * Licensed under the Apache License, Version 2.0 (the "License"); */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global = typeof globalThis !== 'undef...
/* * Wegas * http://wegas.albasim.ch * * Copyright (c) 2013-2021 School of Management and Engineering Vaud, Comem, MEI * Licensed under the MIT License */ /** * @fileOverview * @author Cyril Junod <cyril.junod at gmail.com> */ YUI.add('datatable-csv', function(Y) { "use strict"; var DatatableCSV, imgT...
import React, { Component } from 'react' import PropTypes from 'prop-types' import { WidgetListItem, WidgetAvatar, ExternalLink } from '@mozaik/ui' export default class ProjectMembersItem extends Component { static propTypes = { member: PropTypes.shape({ name: PropTypes.string.isRequired, ...
/* Copyright (c) 2015 NAVER Corp. name: @egjs/infinitegrid license: MIT author: NAVER Corp. repository: https://github.com/naver/egjs-infinitegrid version: 4.0.0-beta.8 */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === ...
/*! * Native JavaScript for Bootstrap - Offcanvas v4.1.0alpha1 (https://thednp.github.io/bootstrap.native/) * Copyright 2015-2022 © dnp_theme * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) */ /** * A global namespace for aria-hidden. * @type {string} */ const ariaHidden...
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) : typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) : (factory((global.concent = {}),global.React)); }(this, (function (exports,React) { 'use strict'; ...
/** * @license Highcharts JS v8.0.2 (2020-03-03) * * (c) 2009-2019 Sebastian Bochan, Rafal Sebestjanski * * License: www.highcharts.com/license */ 'use strict'; (function (factory) { if (typeof module === 'object' && module.exports) { factory['default'] = factory; module.exports = factory; ...
function create_handler (inst, func) { return (function(e){ func.call(inst, e); }); } function Tag (tag_item, tag_name, tag_value) { this.tag_item = tag_item; this.tag_name = tag_name; this.tag_value = tag_value; this.tag_num = Math.floor(Math.random()*122231); this.show(); } Tag.prototype...
/** * This file uses the Page Object pattern to define the main page for tests * https://docs.google.com/presentation/d/1B6manhG0zEXkC-H-tPo2vwU06JhL8w9-XCF9oehXzAQ */ 'use strict'; var MainPage = function() { this.jumbEl = element(by.css('.jumbotron')); this.h1El = this.jumbEl.element(by.css('h1')); }; modul...
(function() { var accountsByCurrency, gatewayByName, gatewayByAddress, queue = []; ripple.currencyDropdown = function(currencyList) { var event = d3.dispatch("change"), selected; if (!accountsByCurrency) { accountsByCurrency = {}; gatewayByName = {}; gatewayByAddress ...
/* globals Bottle */ ;(function() { 'use strict'; /** * Bottle Digest test suite */ describe('Bottle#digest', function() { it('will get an instance of all services in the container', function() { var b = new Bottle(); var thinga = function() { this.foo = 'a'; }; ...
/* eslint-env node */ module.exports = { "framework": "qunit", "test_page": "tests/index.html?hidepassed", "disable_watching": true, "launch_in_ci": [ "Chrome" ], "launch_in_dev": [ "Chrome" ], 'browser_args': { 'Chrome': [ '--disable-gpu', '--headless', '--remote-debugging...
var fs = require('fs'); var config = require('./config.js'); var secureParser = require('koa-bodyparser-secure'); module.exports = function (app, koaPGP){ fs.readFile('./example_files/private.key', 'utf8', function(err, privkey) { if (err) { throw err; } else { fs.readFile('./exam...
module.exports = require('./actionCreators');
// @lupa labels: file, loc, lines, count, size, info module.exports = function () { return function (code, filename) { var lines = code.split('\n').length; var size = code.length; return { lines: lines, size: size, name: filename }; }; }
var fs = require('fs') var http = require('http') var IncrementalDOM = require('../../index.js') var app = require('./main.js') /* Add a slash before a commented block to pick an example Hit a request on localhost:port Throttle the connection to see it in action */ var requestListener = function (req, res) { res...
import { devices, listensTo, fn } from '../util'; const url = 'http://webaim.org/techniques/javascript/eventhandlers#onmouseover'; const affects = [ devices.keyboardOnly ]; export default [{ msg: 'onMouseOver must be accompanied by onFocus for accessibility.', url, affects, test(tagNa...
/*global define*/ /*jslint white:true,browser:true*/ define([ 'common/runtime', 'common/busEventManager', 'common/props', 'common/ui', 'common/html', 'common/jupyter' ], function( Runtime, BusEventManager, Props, UI, html, Jupyter ) { 'use strict'; var t = html....
import { isArray } from '../utils/array'; /** * Issue #569: collapse::toggle::state triggered too many times * @link https://github.com/bootstrap-vue/bootstrap-vue/issues/569 */ const BVRL = '__BV_root_listeners__'; export default { methods: { /** * Safely register event listeners on the root ...
import environment from '../../environment'; import {inject} from 'aurelia-framework'; import {EventAggregator} from 'aurelia-event-aggregator'; import * as retry from 'retry'; import AuthService from 'resources/services/auth-service'; @inject(EventAggregator, AuthService) export default class SignalRService { const...
module.exports = function(accept) { return function(req, res, next) { var headersSet , reason , tamper , buffer function mustCapture() { if (!headersSet) res.writeHead(res.statusCode) return !!tamper } var original = patch(res, { writeHead: function(statusCode,...