code
stringlengths
2
1.05M
import React from 'react'; import { shallow, mount, render } from 'enzyme'; import reducer from '../../src/reducers/finalReducer.js'; describe('actions', () => { const intialState = { splitTotal: '', totalTax: '', totalTip: '', splitName: '', splitter: { name: '', phone: '', ite...
import { getLog } from '../../core/log'; const log = getLog('data/source/commentRepository'); import { Comment, Like, User } from '../models'; import sequelize from '../sequelize'; const getByUuid = async (uuid) => { const comment = await Comment.findOne({ where: { uuid }, include: { model: User, as: 'user...
const assert = require('assert'); const path = require('path'); const http = require('http'); const url = require('url'); describe('<webview> tag', function() { this.timeout(10000); var fixtures = path.join(__dirname, 'fixtures'); var webview = null; beforeEach(function() { webview = new WebView; }); ...
"use strict"; /** * This class contains methods to build common {@link https://cs.cmu.edu/~kmcrane/Projects/DDG/paper.pdf discrete exterior calculus} operators. * @memberof module:Core */ class DEC { /** * Builds a sparse diagonal matrix encoding the Hodge operator on 0-forms. * By convention, the area of a ve...
var User = Ember.Object.extend({ isAnonymous: function () { return this.get("provider") === "anonymous"; }.property("email"), emailMD5: function () { return md5(this.getWithDefault("email", "")); }.property("email"), gravatarURL: function () { return "//www.gravatar.com/ava...
import { h } from 'omi'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon(h("path", { d: "M4.49 4.21L3.43 5.27 7.85 16.4l1.48-1.48-.92-2.19 3.54-3.54 2.19.92 1.48-1.48L4.49 4.21zm3.09 6.8L5.36 6.14l4.87 2.23-2.65 2.64zm12.99-1.68h-4.24l1.41 1.41-8.84 8.84L10.32 21l8.84-8.84 1.41 1.41V9....
'use strict'; const passport = require('passport'); const BasicStrategy = require('passport-http').BasicStrategy; const Logger = require('./logger')('debug', 'auth-basic'); const User = require('../models/user'); passport.use(new BasicStrategy((username, password, callback) => { Logger.info('Checking credentia...
System.register(['angular2/core', 'angular2/router', './dashboard.component', './view.component', './add.component', './edit.component'], function(exports_1, context_1) { "use strict"; var __moduleName = context_1 && context_1.id; var __decorate = (this && this.__decorate) || function (decorators, target, k...
var fs = require( 'fs' ) var path = require( 'path' ) var assert = require( 'assert' ) var MBR = require( 'mbr' ) var GPT = require( '../' ) var inspect = require( './inspect' ) describe( 'GUID Partition Table', function() { // TODO: // - Add a test GPT blob with entries set to zero // (the thing that still c...
function filterStatus(filter){ filtered = $("td[data-status]").filter(function(index) { return this.dataset.status !== filter; }); return filtered; } function getStatus(filter){ filtered = $("td[data-status]").filter(function(index) { return this.dataset.status === filter; }); return filtered; ...
angular.module('app.controllers') .controller('overviewCtrl', function($scope,$state,$ionicModal,sharedInfo, Auth, User, currentAuth, $window) { $scope.hasAPlan=false; $scope.logout = function(){ Auth.$unauth(); } console.log(currentAuth); Auth.$onAuth(function(authData){ if(!authData){ $stat...
'use strict'; // Declare app level module which depends on views, and components var myApp = angular.module('myApp', [ 'ngRoute', 'myApp.view1', 'myApp.view2', 'myApp.version', 'todoList' ]).config(['$locationProvider', '$routeProvider', '$httpProvider', function ($locationProvider, $routeProvider,...
//Autogenerated by ../../build_app.js import provenance_entity_component from 'ember-fhir-adapter/models/provenance-entity-component'; export default provenance_entity_component;
import config from '../config'; import changed from 'gulp-changed'; import gulp from 'gulp'; import browserSync from 'browser-sync'; gulp.task('fonts', function () { return gulp.src(config.fonts.src) .pipe(changed(config.fonts.dest)) // Ignore unchanged files .pipe(gulp.dest(config...
(function() { 'use strict'; angular .module('material-lite') .controller('ChartsController', ['$scope', ChartsController]); function ChartsController($scope) { var pattern = []; pattern.push('#4CAF50'); pattern.push('#2196F3'); pattern.push('#9c27b0'); pattern.push('#ff9800'); p...
version https://git-lfs.github.com/spec/v1 oid sha256:970259e146984753268ea62411a482bf6e89ddc12a0da22705aace8276a89f80 size 9774
function main(args) { return {text: args.text.reverse()}; }
$(document).ready(function () { var scrollTop = 0; // Datapicker settings var datepickerOptions = { format: "dd.mm.yyyy", language: "ua", orientation: "top auto", todayHighlight: true, daysOfWeekDisabled: "0" }; // Init datapicker $('.input-group.date').e...
//@flow import React, { Component } from "react"; import { Shaders, Node, GLSL } from "gl-react"; import { Surface } from "../../gl-react-implementation"; const shaders = Shaders.create({ DiamondCrop: { frag: GLSL` precision highp float; varying vec2 uv; uniform sampler2D t; void main() { gl_FragColor = mix( t...
{url:'stun:stun.12connect.com:3478'}, {url:'stun:stun.12voip.com:3478'}, {url:'stun:stun.1und1.de:3478'}, {url:'stun:stun.2talk.co.nz:3478'}, {url:'stun:stun.2talk.com:3478'}, {url:'stun:stun.3clogic.com:3478'}, {url:'stun:stun.3cx.com:3478'}, {url:'stun:stun.a-mm.tv:3478'}, {url:'stun:stun.aa.net.uk:3478'}, {url:'stun...
global.electron = require('electron'); global.BrowserWindow = electron.BrowserWindow; global.Dialog = electron.dialog; var Fs = require('fs'); var ipc = require("electron").ipcMain; var path = require('path'); var temp = require('temp'); var request = require('request'); var querystring = require('querystring'); var ...
'use strict'; var _ = require('underscore'), Irc = require('irc'); var IrcBot = function(config) { if (!(this instanceof IrcBot)) { return new IrcBot(config); } this.config = _.defaults(config, { server: 'irc.freenode.com', // IRC server username: 'slackbot', // Bot IRC nickname nick: '...
import {Draw, Anim, Preload, Sound, Elements, Components} from 'evolve-js'; import Core from './Core'; import Constants from './Constants'; import Helpers from './Helpers'; import Managers from './Managers'; import Engine from './Engine'; import release from '../release'; const status = { initialized: true, versi...
(function($) { /** * The Dutch language package * Translated by @jvanderheide */ FormValidation.I18n = $.extend(true, FormValidation.I18n, { 'nl_NL': { base64: { 'default': 'Voer een geldige Base64 geëncodeerde tekst in' }, between: { ...
/** * @author joel * 25-11-15. */ /// <reference path="../typings/tsd.d.ts" /> /// <reference path="../typings/app.d.ts" /> 'use strict'; var _ = require('lodash'); var Promise = require('bluebird'); var IsPromise = require('is-promise'); var PromiseEnsurer = (function () { function PromiseEnsurer() { } ...
/// <reference path="jquery-3.1.0.min.js" /> /// <reference path="jquery.touchSwipe.min.js" /> // Redirect user to SSL version of site. if (location.protocol != "https:" && location.href.indexOf("localhost") == -1 && location.href.indexOf("192.") == -1) { location.href = location.href.replace("http:", "https...
/** * Forward renderer */ var ForwardRenderStage = PostProcessRenderStage.extend({ init: function() { this._super(); this.debugActive = false; this.debugger = null; }, onPostRender: function(context, scene, camera) { this._super(context, scene, camera); if (this.debugActive) { if (!this.debugger) ...
"use strict"; var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; var SearchMailboxesResult_1 = require("../../Mai...
var classstd_1_1allocator = [ [ "allocator", "d7/d75/classstd_1_1allocator.html#af58fb50c569cbd3244176fcbaedd8130", null ], [ "~allocator", "d7/d75/classstd_1_1allocator.html#a2391d38030fc1dca45118d2369ace201", null ], [ "allocate", "d7/d75/classstd_1_1allocator.html#aa134fbfdd3f8043f97cef77ce1956a40", null...
import React from 'react' import PropTypes from 'prop-types' import Control from '../control' import Fields from './fields' import _ from 'lodash' class Field extends React.Component { static propTypes = { action: PropTypes.string, columns: PropTypes.array, data: PropTypes.object, endpoint: PropType...
export default class End extends Phaser.State { constructor() { super(); } preload() { } create() { } update() { } }
'use strict'; var meta = $('.e2-player-meta-song').text().split(' · '); /* global Connector */ Connector.playerSelector = '.e2-player'; Connector.playButtonSelector = '.e2-player-control-play'; Connector.isPlaying = function() { return !$('.e2-player-control-play').is(':visible'); }; Connector.getArtist = function(...
/* * Copyright (c) 2012-2015 S-Core Co., Ltd. * * 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 agree...
var jsdom = require('jsdom').jsdom; var exposedProperties = ['window', 'navigator', 'document']; global.document = jsdom(''); global.window = document.defaultView; Object.keys(document.defaultView).forEach((property) => { if (typeof global[property] === 'undefined') { exposedProperties.push(property); globa...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var batteryEmpty = exports.batteryEmpty = { "viewBox": "0 0 2304 1792", "children": [{ "name": "path", "attribs": { "d": "M2176 576q53 0 90.5 37.5t37.5 90.5v384q0 53-37.5 90.5t-90.5 37.5v160q0 66-47 113t-113 47h-1856q-66 0-113-47t-47-113v-9...
// Array.includes is not available in IE or Edge if (!Array.prototype.includes) { Array.prototype.includes = function(searchElement /*, fromIndex*/ ) { 'use strict'; var O = Object(this); var len = parseInt(O.length) || 0; if (len === 0) { return false; } var n = parseInt(arguments[1]) |...
'use strict'; const sequelizeErrors = require('../../errors'); const QueryTypes = require('../../query-types'); const { QueryInterface } = require('../abstract/query-interface'); const { cloneDeep } = require('../../utils'); /** * The interface that Sequelize uses to talk with SQLite database */ class SQLiteQueryIn...
export { default } from "@getflights/ember-field-components/helpers/route-exists";
'use strict'; module.exports = { db: 'mongodb://localhost/choreminder-dev', assets: { lib: { css: [ 'public/lib/bootstrap/dist/css/bootstrap.min.css', 'public/lib/bootstrap/dist/css/bootstrap-theme.min.css', 'public/lib/ng-sortable/dist/ng-sortable.css', 'public/lib/ng-sortable/dist/ng-sortable....
version https://git-lfs.github.com/spec/v1 oid sha256:27f38ba2dada0d9f7367caca39e865462a9c84337c41916d19e3bbb9e4307f0f size 2595
var script = new Script(); function Product () { this.showProductResult = function (){ var that = this; $("#excelDataTable").find("tbody").remove(); var data = { ProductCount: $('#ProductCount').val(), ProductCountry: $('#ProductCountry').val() }; $.aj...
var fs = require('fs'); var protobuf = require('protobufjs'); var protoStr = fs.readFileSync(__dirname + '/remotecontrolmessages.proto', 'utf8'); var builder = protobuf.loadProto(protoStr); var ns = 'pb.remote'; function build(type) { return builder.build(ns+'.'+type); } var proto = { MsgType: build('MsgType'), E...
// vi: sts=2 sw=2 et const Lang = imports.lang; const Signals = imports.signals; const St = imports.gi.St; const Gio = imports.gi.Gio; const Gtk = imports.gi.Gtk; const GdkPixbuf = imports.gi.GdkPixbuf; const Main = imports.ui.main; const MessageTray = imports.ui.messageTray; const Util = imports.misc.util; const G...
const test = require('tape') const nlp = require('./_lib') test('topics:', function(t) { let list = [ ['Tony Hawk lives in Toronto. Tony Hawk is cool.', 'tony hawk'], ['I live Toronto. I think Toronto is cool.', 'toronto'], ['The EACD united in 1972. EACD must follow regulations.', 'eacd'], // ['The ...
gulp.task('default',['assets']);
// -------------------------------------------------------------------------- \\ // File: SearchTextView.js \\ // Module: ControlViews \\ // Requires: TextView.js ...
System.register(['angular2/core', 'angular2/router', './hero.service'], function(exports_1) { var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;...
'use strict'; /*eslint no-unused-vars: 0 no-undefined:0 */ var tester = require('./_lib/tester'); exports.examples = tester([ { rules: { contains: null }, value: null, error: true }, { rules: { contains: [ 123, 234, 345 ] }, value: 333, verr: { rule: 'contains', params: [ 123, 234, 345 ...
 jQuery(window).load(function() { "use strict"; // Page Preloader jQuery('#preloader').delay(350).fadeOut(function(){ jQuery('body').delay(350).css({'overflow':'visible'}); }); }); jQuery(document).ready(function() { "use strict"; // Toggle Left Menu jQuery('.leftpanel .nav-parent > a')...
(function(chai, expect, sinon) { describe(__filename, function() { var resolve1Spy, resolveSpy; before(function() { require("../setup.config.js"); }); before(function(done) { var ajaxStub = sinon.stub($, "ajax"); ajaxStub.returns(Promise.resolve()); // routeMatchedSpy = sino...
function addPercentMetric(metricName, metricDescription, metricPercent) { function genPercentMarkup(metricName, metricDescription) { var metricMarkupTemplate = ['<tr class="metrics element container" data-metric="', '"><td class="metrics element info"> <div class="metrics element title">', ...
"use strict"; module.exports = exports = rebuild; exports.usage = 'Runs "clean" and "build" at once'; function rebuild(gyp, argv, callback) { gyp.todo.unshift({ name: 'clean', args: [] }, { name: 'build', args: ['rebuild'] }); process.nextTick(callback); } //# sourceMappingURL=rebuild-compiled.js.map
/** * @author weism * copyright 2015 Qcplay All Rights Reserved. */ /** * 颜色渐变动画 * @class qc.TweenAlpha */ var TweenColor = defineBehaviour('qc.TweenColor', qc.Tween, function() { var self = this; /** * @property {qc.Color} from - 起始的颜色值 */ self.from = Color.black; /** * @propert...
import React, { Component } from 'react'; import { Link } from 'react-router'; import Pagination from "../../components/Pagination"; import DeviceProfileStore from "../../stores/DeviceProfileStore"; import SessionStore from "../../stores/SessionStore"; class DeviceProfileRow extends Component { render() { retu...
var rangeUtil = { focusNode: function(node) { var range = document.createRange(); range.selectNode(node.childNodes[0]); range.collapse(); var selection = document.getSelection(); selection.removeAllRanges(); selection.addRange(range); }, selectNode: function(node) { var range = document.createRange(); ...
angular.module('davico.simone.webpage.nav', []) .service('navigationItems', function(){ var navigationItems = []; this.register = function(item){ navigationItems.push('/'+item); } this.items = function(){ return navigationItems; } this.indexOf = function(item) { retur...
"use strict"; /* eslint-disable node/no-unpublished-require */ const fs = require("fs"); const gulp = require("gulp"); const gutil = require("gulp-util"); const del = require("del"); const NwBuilder = require("nw-builder"); const archiver = require("archiver"); const runSequence = require("run-sequence"); /* eslint-en...
var diff = require('../utils').diff; var debug = require('../utils/debug'); var registerComponent = require('../core/component').registerComponent; var THREE = require('../lib/three'); var degToRad = THREE.Math.degToRad; var warn = debug('components:light:warn'); /** * Light component. */ module.exports.Component =...
module.exports = function(config) { config.set({ basePath: '', frameworks: ['jasmine'], /* Important to have here all files related to the project. Double check your dependencies in Angular module and HTML. */ files: [ 'https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.8/angular.min....
(function() { 'use strict'; let EE = require('./ee'); let ES6 = require('./es6'); let log = require('ee-log'); let iterations = 100; let start; let ee = 0; let es6 = 0; for (let k = 0; k < 1000; k++) { start = process.hrtime(); for (let i = 0; i < iterations; i+...
import React from 'react' import {Row, Col, Tabs, Carousel} from 'antd' const TabPane = Tabs.TabPane import PCNewsBlock from './PC_news_block' import PCNewsImageBlock from './PC_news_image_block' export default class PCNewsContainer extends React.Component { render() { const settings = { dots: true, ...
/** * naive SDK * Kevin Lee 31 March 2017 * Major Start on 26 July 2017 * * "Too Simple, Sometimes Naive ... UI gonna be" * A react-NAtIVE component for simple User Interface development * * Install (Vector Icon): * npm install react-native-vector-icons --save * * Edit android/app/build.gradle: // beg...
var path = require('path'); var cheerio = require('cheerio'); var URI = require('URIjs'); var _ = require('lodash'); var Source = require('webpack/lib/Source'); /** * @class * @extends Source * @param {Module} sourceModule * @param {Chunk} sourceChunk * @param {Compilation} compilation */ function IndexHtmlSourc...
var express = require('express'); var router = express.Router(); var Examples = require('../models/Example'); var data; //出来通用数据 router.use(function(req, res, next) { data = { examples: [] }; Examples.find().then(function(examples) { data.examples = examples; next(); }); }); rou...
define(function () { return function (states) { if ( typeof states.initialize !== 'function' ) { throw new Error('Must have an initialize method'); } function FiniteStateMachine (options) { var state = states.initialize.call(this, options); if ( ! state...
export const REQUEST_POKEMONS = 'REQUEST_POKEMONS'; export const RECEIVE_POKEMONS = 'RECEIVE_POKEMONS'; export const REQUEST_POKEMON = 'REQUEST_POKEMON'; export const RECEIVE_POKEMON = 'RECEIVE_POKEMON'; export const SET_SEARCH_TERM = 'SET_SEARCH_TERM';
const win = typeof window == 'object' let THREE = win && window.THREE let { Camera, ClampToEdgeWrapping, DataTexture, FloatType, Mesh, NearestFilter, PlaneBufferGeometry, RGBAFormat, Scene, ShaderMaterial, WebGLRenderTarget } = (THREE || {}) /** * GPUComputationRenderer, based on SimulationRenderer by zz85...
'use strict'; (function (angular,buildfire) { angular.module('fixedTimerPluginContent', ['ngRoute', 'ui.bootstrap', 'ui.tinymce', 'timerModals', 'ui.sortable']) //injected ngRoute for routing .config(['$routeProvider', function ($routeProvider) { $routeProvider .when('/'...
function outerWidth(el, includeMargin){ var height = el.offsetWidth; if(includeMargin){ var style = getComputedStyle(el); height += parseInt(style.marginLeft) + parseInt(style.marginRight); } return height; } outerWidth(el, true);
/* jshint expr: true */ 'use strict' let chai = require ('chai') let assert = chai.assert let expect = chai.expect let BaeBaeModule = require('../../lib/baebae-module') describe('BaeBaeModule test suite', () => { let module = null describe('constructor tests', () => { it('should not throw ...
var _ = require('lodash'); var express = require('express'); var fs = require('fs'); var grappling = require('grappling-hook'); var path = require('path'); var utils = require('keystone-utils'); /** * Don't use process.cwd() as it breaks module encapsulation * Instead, let's use module.parent if it's present, or the...
/** * @file * @author Bryan Hazelbaker <bryan.hazelbaker@gmail.com> * @version 0.1 * * @copyright Copyright (c) 2013 Bryan Hazelbaker <bryan.hazelbaker@gmail.com> * Released under the MIT license. Read the entire license located in the * project root or at http://opensource.org/licenses/mit-license.php * * @...
/** * only adapted XMLHttpRequest object. **/ let xhrObjectList = []; let proxyXhrOpen = () => { let handle = () => { let e = document.createEvent('Events'); e.initEvent('xhrRequestOpen'); let option = { url: arguments[1], method: arguments[0] }; e.opt = option; document.dispatchEven...
describe('Hidden Moon Dōjō', function() { integration(function() { describe('Hidden Moon Dōjō\'s ability', function() { beforeEach(function() { this.setupTest({ phase: 'conflict', player1: { fate: 7, ...
(function() { 'use strict'; angular .module('projectTask') .directive('datepickerValidationFix', datepickerValidationFix); function datepickerValidationFix() { return { restrict: 'A', require: 'mdDatepicker', link: function(scope, elemen...
"use strict"; // Definition of the application"s AngularJS module and routes // begins here. HTML5 history option is used to eliminate #hash // symbols in route URLs. var blogApp = angular.module("blogApp", ["ngRoute"]); blogApp.config([ "$routeProvider", "$locationProvider", function($routeProvider, $locati...
//Better loop with magic attributes Handlebars.registerHelper ( 'loop', function ( context, fn, inverse) { var ret = ""; if ( context ) { if ( context instanceof Array && context.length < 1 ) { ret = inverse ( ret ); } else { var i = 0; for ( var attr in context ) { ...
angular.module('bookings.services', []) .factory('LoadingService', ['$ionicLoading', function($loading) { return { show: function(text) { text = text || '正在加载数据...' $loading.show({ template: '<ion-spinner icon="android" class="spinner"></ion-spinner>' + '<span>' + ...
'use strict'; var cheerio = require('cheerio'); var sinon = require('sinon'); var expect = require('chai').expect; var BBPromise = require('bluebird'); var UserController = require('../../server/controllers/user_controller.js'); var OrganisationController = require('../../server/controllers/organisation_controller.js')...
let DEFAULT_PATH_SEGMENT_SEPARATOR = '/'; /** * Class exposing some options that allow to control the formatting of path * when they are converted into String or parsed from String. */ export default class PathFormattingOptions { /** * */ constructor() { /** * Absolute path will ...
// // Copyright (c) 2011 Mashery, Inc. // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // 'Software'), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publi...
const errors = { espree: ["class-property.js"], }; run_spec(__dirname, ["babel", "flow", "typescript"], { errors, }); run_spec(__dirname, ["babel", "flow", "typescript"], { trailingComma: "all", errors, }); run_spec(__dirname, ["babel", "flow", "typescript"], { arrowParens: "always", errors, });
if(!process.env['TEST_VERSIONS'] || process.env['TEST_VERSIONS'] != 'generated_project') { process.exit(); } var fs = require('fs'); var ejs = require('ejs'); var options = { name: "Test1", author: "JB", nameSlug: "test-1", nameCamel: "Test1", projectType: "fe", has_jquery: true, has_jquery_vendor_con...
/******************************* Build Task *******************************/ var gulp = require('gulp'), // node dependencies console = require('better-console'), fs = require('fs'), // gulp dependencies autoprefixer = require('gulp-autoprefixer'), chmod = requir...
import {Object} from 'j0'; export default Object.freeze;
/* jshint expr:true */ 'use strict'; /*! * node-bb10 * Copyright(c) 2013 Endare bvba <info@endare.com> * MIT Licensed * * * This file runs all the tests of the library * * @author Sam Verschueren <sam.verschueren@gmail.com> * @since 20 Mar. 2015 */ var chai = require('chai'), sinon = require('sin...
version https://git-lfs.github.com/spec/v1 oid sha256:aa442f1bc126171f12d93e8a97d2bf92fbb38d7773e392c265d41c11ccf7a4eb size 65862
'use strict'; (function () { var utils = require('./utils'); var VALID_CHILD_NODES = [ 'arg', 'flag', 'kwarg', 'command' ]; function RequireAll () { var children = utils.argsToArray(arguments); if (!children.length) { throw new Error('No child nodes supplied to RequireAll node...
// ==UserScript== // @name Agar.io Expose // @version 6.0 // @namespace xzfc // @updateURL https://raw.githubusercontent.com/xzfc/agar-expose/master/expose.user.js // @match http://agar.io/* // @match http://ogar.mivabe.nl/?ip=* // @run-at document-start // @grant GM_xmlhttpRequest...
import 'core-js/fn/array/find'; import RcModule from '../../lib/RcModule'; import getRegionSettingsReducer, { getCountryCodeReducer, getAreaCodeReducer, } from './getRegionSettingsReducer'; import moduleStatuses from '../../enums/moduleStatuses'; import regionSettingsMessages from '../RegionSettings/regionSettingsM...
describe('Shameless Gossip', function() { integration(function() { describe('Shameless Gossip\'s ability', function() { beforeEach(function() { this.setupTest({ phase: 'conflict', player1: { inPlay: ['shameless-gossi...
const assert = require("chai").assert; const obj = require("../arithmetic") //Addition describe("Arithmetic operations:-", function(){ describe("Addition", function(){ it("addition(10, 5) equals 15", function(){ let result = obj.addition(10, 5) assert.equal(result, 15) }) it("addition(10, 5) is greater ...
$(function(){ // $('.ui.sticky').sticky(); $("#input-query").on("keyup", function(event) { var query = $.trim($("#input-query").val()); console.log(query); $("#btn-query").attr("data-action-id", query); }); $("#input-query").on("keypress", function(event){ i...
// ClientDS (Client Data Storage) works with Local/Session Storage, Cached Data, etc. // Note that __SERVER__ side will crash when accessing Local/Session Storage => do a check for __CLIENT__ // Usage: ClientDS.Local.setItem('myKey', 'value') let isClient = false if (typeof __CLIENT__ === 'undefined') { isClient = ...
export default class User { constructor($http, $q) { 'ngInject'; this.Q = $q; this.HTTP = $http; this.init(); } init(){ this.HTTP.get("orbital.json").then( (res)=>{ this.modules = res.data; }).catch( (error)=>{ console.log(error); }); } }
import { inject, bindable, bindingMode } from 'aurelia-framework'; @inject(Element) export class LlStepFieldCustomElement { @bindable field = {}; @bindable calculations; @bindable({defaultBindingMode: bindingMode.twoWay}) outputTo; constructor(element) { this.element = element; this.fi...
'use strict'; const assert = require('assert'); let http = require('http'); let https = require('https'); const os = require('os'); const fs = require('fs'); const express = require('../support/express'); const request = require('../support/client'); const app = express(); const key = fs.readFileSync(`${__dirname}/f...
(function(){ angular.module('ui.grid') .factory('Grid', ['$q', '$compile', '$parse', 'gridUtil', 'uiGridConstants', 'GridOptions', 'GridColumn', 'GridRow', 'GridApi', 'rowSorter', 'rowSearcher', 'GridRenderContainer', '$timeout','ScrollEvent', function($q, $compile, $parse, gridUtil, uiGridConstants, GridOptions, ...
import regionSettingsMessages from 'ringcentral-integration/modules/RegionSettings/regionSettingsMessages'; export default { region: "Región", [regionSettingsMessages.saveSuccess]: "La configuración se guardó correctamente.", [regionSettingsMessages.dialingPlansChanged]: "Su cuenta ya no se admite para su cuenta....
var hasOwn = {}.hasOwnProperty; var toString = {}.toString; var utils = module.exports = { isObject: function(o) { return toString.call(o) === '[object Object]'; }, protoExtend: function(sub) { var Super = this; var Constructor = hasOwn.call(sub, 'constructor') ? sub.constructor : f...