code
stringlengths
2
1.05M
'use strict'; describe('cashewApp.version module', function() { beforeEach(module('cashewApp.version')); describe('version service', function() { it('should return current version', inject(function(version) { expect(version).toEqual('1.1.4'); })); }); });
const setupRoutes = require('../utils/setupRoutes.js'); const graphql = require('../routes/api/graphql/api.graphql.route'); const graphiql = require('../routes/api/graphiql/api.graphiql.route'); module.exports = () => setupRoutes([ graphql, graphiql, ]);
angular.module("ui.rCalendar.tpls", ["templates/rcalendar/calendar.html","templates/rcalendar/day.html","templates/rcalendar/displayEvent.html","templates/rcalendar/month.html","templates/rcalendar/monthviewDisplayEvent.html","templates/rcalendar/monthviewEventDetail.html","templates/rcalendar/week.html"]); angular.mod...
/** * Created by mbassale on 24-01-17. */ import * as mobx from 'mobx'; import Task from './Task'; class TaskList { constructor(title = 'New Task List', tasks = []) { mobx.extendObservable(this, { title: title, tasks: tasks, sortTasks: mobx.action.bound(function (prio...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.requiredParam = requiredParam; /** * Gets called if a required parameter is missing and the expression * specifying the default value is evaluated. * @param {string} parameter name * @throws {Error} */ function requiredParam(pa...
/* global describe it before beforeEach afterEach */ /* eslint no-new: 0 */ var chai = require('chai') var async = require('async') var bitcore = require('bitcore-lib') var extend = require('shallow-extend') var factories = require('../test/factories/factories') var messages = require('../lib/messages') var drivers =...
/* * Globalize Culture cs-CZ * * http://github.com/jquery/globalize * * Copyright Software Freedom Conservancy, Inc. * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * This file was generated by the Globalize Culture Generator * Translation: bugs found in this f...
{ "file": "documon/index.js", "filename": "index.js", "package": "root", "docfile": "root.html", "id": "root", "prettyLangs": [], "projectName": "Documon", "projectVersion": "0.0.1", "search": {} }
import React, { Component, PropTypes } from 'react'; import { createStructuredSelector } from 'reselect'; import { connect } from 'react-redux'; import { browserHistory } from 'react-router'; import marked from 'marked'; import hljs from 'highlight.js'; marked.setOptions({ renderer: new marked.Renderer(), gfm: tru...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ $(function(){ //if they scroll past the first page we show the side navigation $(window).scroll(function(){ //console.log($(window).scrollTop()); if($(window).scrollTop() > $(window).height()){ ...
import React, { Component, PropTypes } from 'react'; import PatientForm from '../PatientForm'; export default class PatientInput extends Component { static propTypes = { patient: PropTypes.object.isRequired, diaperTypes: PropTypes.array.isRequired, onSubmit: PropTypes.func.isRequired, onReset: Pro...
var moment = require('moment-timezone'); var server = require('../models/server'); var pool = server.pool; //var permissions = require('../config/permissions'); /**************************** Utility Functions *******************************/ var sendJSONResponse = function(res, status, content) { res.status(stat...
/// <reference path="ChangeLinr-0.2.0.ts" /> /// <reference path="StringFilr-0.2.1.ts" /> var PixelRendr; (function (PixelRendr) { "use strict"; /** * Container for a "multiple" sprite, which is a sprite that contains separate * Uint8ClampedArray pieces of data for different sections (such as top, mid...
// Karma configuration // Generated on Wed Nov 18 2015 17:58:09 GMT-0600 (CST) var path = require('path'); var _ = require('lodash'); module.exports = function(config) { config.set({ reportSlowerThan: 500, // base path that will be used to resolve all patterns (eg. files, exclude) baseP...
var WarArchive = { imagesArray: null, zoomIcon:'', isTouch: document.createTouch !== undefined, init: function(icon){ $(".archive-table tr").click(function(e){ WarArchive.zoomIcon = icon; var index = $(".archive-table tr").index($(this)).toString(); WarArchive.fa...
import React, { Component, PropTypes } from 'react'; /* Components */ import ProfileDetails from './ProfileDetails'; import ProfileLinkedTeams from './ProfileLinkedTeams'; import ProfileLinkedConferences from './ProfileLinkedConferences'; class Profile extends Component { render() { return ( <div id="Prof...
#!/usr/bin/env node var util = require('util'), colors = require('colors'), formatNumber = require('format-number')(), minimist = require('minimist'), musicVideo = require('youtube-best-video').findBestMusicVideo, search = require('youtube-search'), slashes = require('slashes'), timelabel =...
'use strict'; const color = require('../config/color'); let demFeels = function () {}; demFeels.getEmotes = function () { return {}; }; try { demFeels = require('dem-feels'); } catch (e) { console.error(e); } exports.parseEmoticons = parseEmoticons; // for travis build if (typeof demFeels.extendEmotes === 'functi...
var test = require('tape'); var sub = require('level-sublevel'); var level = require('level-test')(); var db = sub(level('update-test', { valueEncoding: 'json' })); var assoc = require('../')(db); assoc.add('hackerspace') .hasMany('hackers', [ 'type', 'hacker' ]) .hasMany('tools', [ 'type', 'tool' ]) ; assoc.a...
// karma configuration var karmaConf = { browserify: { debug: true, transform: [ ['babelify'] ] }, browsers: ['Firefox_NoVR', 'Chrome'], // machinima: prevent timeout during recording playback browserNoActivityTimeout: 600000, client: { captureConsole: false, mocha: {'ui': 'tdd'} ...
var gulp = require("gulp"), jshint = require("gulp-jshint"), jsreporter = require("jshint-stylish"), shell = require("gulp-shell"); gulp.task("jshint", function () { gulp.src("./dnssearch.js") .pipe(jshint()) .pipe(jshint.reporter(jsreporter)); }); gulp.task("test", function () { gulp.src("") .p...
/** * Course Controller * * Handles viewing and editing courses */ import Config from '../../config/webbox.config'; import { EventLog, EventLogTypes } from '../models/eventLog'; import TestResult from '../models/testResult'; import CodeEmbed from '../models/codeEmbed'; import Thinky from '../util/thinky'; import Pr...
const { defineEventAttribute } = (EventTarget = window.EventTargetShim); const NULL_FN = () => 0; function createSpeechRecognitionResults(isFinal, transcript) { const results = [ [ { confidence: 0.9, transcript } ] ]; results[0].isFinal = isFinal; return results; } functi...
$("#application").ready(function(){ $("#my-profile").click(function(e){ e.preventDefault(); hideMessage("#profile-alerts-container"); unboundErrors("#profile-form"); $.ajax( base_url("users/get_current_user"), { method: "GET", dataType: "json", success: fun...
/*! * Piwik - free/libre analytics platform * * @link http://piwik.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */ // see https://github.com/piwik/piwik/issues/5094 used to detect an ad blocker var hasBlockedContent = false; (function () { angular.module('piwikApp.service').factory...
'use strict'; System.register(['../common/widget-base', '../common/constants', '../common/decorators', '../common/common', 'syncfusion-javascript/Scripts/ej/datavisualization/ej.sunburstchart.min'], function (_export, _context) { "use strict"; var WidgetBase, constants, generateBindables, inject, inlineView, cust...
'use strict' let fs = require('fs') let path = require('path') let _ = require('isa.js') let Structurer = require('./generator/Structurer') let Injector = require('./generator/Injector') global.done = function ( message ) { console.log( message || 'Done.' ) process.exit( -1 ) } global.forceExit = function ( err )...
/* ** ** datetime.js ** ** Yahya Ayash Luqman ** yaluqman@gmail.com ** */ // install dependencies var React = require('react'); // nice date var niceDate = function( date ) { if ( !date ) { return ""; } var x = new Date( date ); return x.toDateString(); } // the date of each post module.exports = React.create...
// Karma configuration // Generated on Mon Sep 29 2014 13:20:26 GMT+0200 (W. Europe Daylight Time) module.exports = function (config) { 'use strict'; config.set({ // base path that will be used to resolve all patterns (eg. files, exclude) basePath: '', // frameworks to use // a...
'use strict'; var mongoose = require('mongoose'), Schema = mongoose.Schema; var AdjectiveSchema = new Schema({ name: String }); module.exports = mongoose.model('Adjective', AdjectiveSchema);
var Util = require('./../src/Util'); var s = require("underscore.string"); var reverse = function(){ this.properties = { inline: true, onlyInline: true, shortDescription: "Reverse any text.", fullHelp: "Only available inline.\n`reverse <text>`" }; this.on("inline_query", f...
import React from 'react'; import Navigation from './Navigation'; import { Grid, Row, Column } from '../../../lib'; let PageLayout = ({ children }) => ( <Grid> <Row column={1}> <Column> <Navigation /> </Column> </Row> <div className="ts fluid container"> <div className="ts conta...
'use strict'; var tests = Object.keys(window.__karma__.files).filter(function (file) { return (/\.spec\.js$/.test(file)); }); requirejs.config({ // Karma serves files from '/base' baseUrl: '/base', paths: { 'flight': 'bower_components/flight', 'flight-attach': 'lib/flight-attach' }, // ask Requi...
/** * setup * * @author Siyuan Gao <siyuangao@gmail.com> * @license MIT */ /* eslint no-process-env: 0 */ import ReadableId from 'funky-sloth-42'; import Express from 'express'; import Bunyan from 'bunyan'; import bunyantcp from 'bunyan-logstash-tcp'; import NodeGeocod...
var EventEmitter = require('events').EventEmitter, util = require('util') var xycrypt = require('./xycrypt') //var xycrypt = require('../build/Release/xycrypt') function Decrypter() { } util.inherits(Decrypter, EventEmitter) Decrypter.prototype.decrypt = function(buffer, data) { var out = null, error d...
/** * Compares two specificity vectors, returning the winning one. * * @param {Array} vector a * @param {Array} vector b * @return {Array} * @api public */ function compareSpecificity(a, b) { let i; for (i = 0; i < 4; i++) { if (a[i] === b[i]) { continue; } if (a[i] ...
'use strict'; describe('Service: Dreams', function () { // load the service's module beforeEach(module('realizeChangeApp')); // instantiate service var Dreams; beforeEach(inject(function (_Dreams_) { Dreams = _Dreams_; })); // it('should do something', function () { // expect(true).toBe(true);...
var clone = require('clone'); var Subscriber = function (hashParams, cb) { 'use strict'; var _subscriptions = hashParams; var _cb = cb; var notify = function (params) { _cb.call(this, params); }; return { subscriptions: _subscriptions, notify: notify }; }; var Hash = (function () { 'use...
var Processor, mixable, processor, stacker; require('highland-array'); mixable = require('../mixable'); stacker = require('../helpers/stacker'); processor = require('../helpers/processor'); /** * Represents a processor. * * A simple implement of proto/processor. * * @param *task */ module.exports = Process...
// Show a list of all existing NNTP groups // 'use strict'; module.exports = function (N, apiPath) { N.validate(apiPath, {}); N.wire.on(apiPath, async function nntp_groups_list(env) { env.res.head.title = env.t('title'); let groups = await N.models.nntp.Group.find() .sort('n...
"use strict"; /** * Generates randomized boolean value. * * @returns {boolean} */ function booleanGenerator() { return Math.random() > 0.5; } module.exports = booleanGenerator;
export { default, timeScale } from 'ember-d3-scale/helpers/time-scale';
var assert = require('assert') var bindArgs = require('../bind-args') bindArgs(func1, 'a', 2)('c', 4) function func1 (a, b, c, d) { assert.strictEqual(a, 'a') assert.strictEqual(b, 2) assert.strictEqual(c, 'c') assert.strictEqual(d, 4) }
(function (app) { 'use strict'; app.registerModule('dispositivos'); }(ApplicationConfiguration));
const {describe, it} = global; import {expect} from 'chai'; import {shallow} from 'enzyme'; import Badges from '../badges'; describe('testmod.components.badges', () => { it('should do something'); });
module.exports = (() => { 'use strict'; function Calculator() {} Calculator.prototype.add = (a, b) => { return a + b; }; Calculator.prototype.subtract = (a, b) => { return a - b; }; Calculator.prototype.divide = (a, b) => { return a / b; }; Calculator.protot...
/*! * Reality.js v@@version * https://github.com/d-4-ni/reality * * Copyright @@year D[4]ni * Released under the MIT license */ (function(window, undefined) { "use strict"; var oldR = window.R; var oldRC = window.RC; var R = { Collection: function(elems) { if (elems) { for (var i = 0; i < elems.le...
import { BuildInfo } from "_generated_/_auto_generated_BuildInfo"; export default BuildInfo;
var assert = require("assert"), fbuffer = require('../'); describe('Buffer', function() { var buffer = fbuffer() .byte(1) .sbyte(-1) .ushort(256) .short(-256) .uint(65536) .int(-32769) .ulong(4294967296) .long(-214748365) .double(Number.MAX_VALUE) .string('中华民族') .pack(); var reader = fbuffer(buffe...
(function () { angular .module('angular-c360') .factory('c360Model', c360Model); function c360Model() { var DT = breeze.DataType; // alias return { initialize: initialize }; function initialize(metadataStore) { metadataStore.addEntityTyp...
var path = require('path'); var pg = require('pg'); var connectionString = require(path.join(__dirname, '../', '../', 'config')).connectionString; module.exports = function(req, res) { var results = []; // Grab data from the URL parameters var idCompra = req.params.idCompra; // Grab data from http request ...
define([ 'ractive', 'vendor/ractive-events-tap' ], function ( Ractive ) { 'use strict'; return function () { var fixture, Foo; module( 'Miscellaneous' ); // some set-up fixture = document.getElementById( 'qunit-fixture' ); Foo = function ( content ) { this.content = content; }; Ractive.adaptor...
/** * A 'Toast' is a simple modal message that is displayed on the screen and then automatically closed by a timeout or by a user tapping * outside of the toast itself. Think about it like a text only alert box that will self destruct. **A Toast should not be instantiated manually** * but creating by calling 'Ext.to...
var defaults = { // display allDaySlot: false, defaultView: 'month', aspectRatio: 1.35, header: false, //header: { // left: 'title', // center: '', // right: 'today prev,next' //}, weekends: true, // editin...
module.exports = { getObjectName: function(list, obj) { for(var attr in list) { if (list[attr] === obj) { return attr; } } return ""; } }
/** * Created by SANDUN on 6/30/2017. */ /** * Created by SANDUN on 6/29/2017. */ const mongoose = require('mongoose'); const Schema = mongoose.Schema; const OrderSchema = new Schema({ ids: { type: String, }, iname: { type: String, }, department: { type: String, ...
var config = { default: { "baseUrl": "", "paths": { "app": "scripts/app", "bootstrap": "scripts/bootstrap", "config": "scripts/config" }, "packages": [ { "name": "myCourseWidget", "location": "bower_components/myCourseWidget/dist/component/src", "main": ...
/*$( window ).resize(function() { location.reload(); }); */ $(document).ready(function(){ });
/*================================================== Copyright (c) 2013-2015 司徒正美 and other contributors http://www.cnblogs.com/rubylouvre/ https://github.com/RubyLouvre http://weibo.com/jslouvre/ Released under the MIT license avalon.modern.js 1.44 built in 2015.6.5 support IE10+ and other browsers =========...
console.log('jenks.js'); function httpGet(theUrl) { /* Retourne un texte GeoJSON à partir de la requête "GET" vers geoserver. NOTE: Requête synchrone pour pouvoir utiliser la variable mais pas top. Exemple: var response = httpGet('http://host:8080/geoserver/websig/ows?service=WFS&version=1.0.0&r...
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), Schema = mongoose.Schema, crypto = require('crypto'); /** * A Validation function for local strategy properties */ var validateLocalStrategyProperty = function(property) { return ((this.provider !== 'local' && !this.updated) || pro...
$(function () { 'use strict'; function initTables() { var cardView = false; if ($(window).width() < 640) { cardView = true; } $('#table, #column, #event, #method, #localization').bootstrapTable('destroy'); var tableColumns = [ {field: 'name', t...
define(['handlebars'], function ( Handlebars ){ function genderValue (value) { var out = ""; if (value != null) { if (value === 1) { out = "Female"; } else if (value === 2) { out = "Male"; } } return out; } Handlebars.registerHelper( 'genderValue', genderValue );...
import React from 'react'; import PropTypes from 'prop-types'; import Styled from 'rsg-components/Styled'; import SectionHeading from 'rsg-components/SectionHeading'; import Markdown from 'rsg-components/Markdown'; const styles = ({ space }) => ({ root: { marginBottom: space[4], }, }); export function SectionRend...
class Node { constructor(key, val) { this.key = key this.val = val this.lft = null this.rgt = null } } class BinarySearchTree { constructor() { this.root = null } get_node_with_parent(key) { let [node, parent] = [this.root, null] while (node...
import convertToMarkdown from './convert-to-markdown'; import resolveApiSpec from './resolve-api-spec'; const api = { convertToMarkdown, resolveApiSpec, }; export default api;
/* eslint-env mocha */ 'use strict' const { expect } = require('interface-ipfs-core/src/utils/mocha') const platform = require('browser-process-platform') const f = require('./utils/factory')() describe('.diag', function () { this.timeout(50 * 1000) // go-ipfs does not support these on Windows if (platform ===...
var http = require('http'); var fs = require('fs') var url = require('url') var webpack = require("webpack") var path = require('path') build('test.web', function() { // build tests, then... startTestServer() }) function startTestServer() { var port = 8100 var server = http.createServer(function (req...
require('babel-core/register')({ presets: ['es2015', 'react'] }); var express = require('express'); var path = require("path"); var bodyParser = require('body-parser'); var React = require('react'); var ReactDOMServer = require('react-dom/server') var exphbs = require('express-handlebars'); var RRouter = require('...
var utils = require('./test-utils'); var assert = require('chai').assert; var fs = require('fs'); var Domain = require('../lib/database').Domain; suite('Search API', function() { var server; var context; var temporaryDatabase; setup(function() { temporaryDatabase = utils.createTemporaryDatabase(); co...
define(['router/index'], function(Router){ function User(data){ for (var k in data) { this[k] = data[k]; } } User.prototype.showPath = function(path){ return Router.generate('users/' + this.id); }; User.prototype.editPath = function(path){ return Router.generate('users/' + this.id + '/...
import FileField from 'ember-uploader/components/file-field'; import Uploader from 'ember-uploader/uploaders/uploader'; import { computed } from '@ember/object'; import { inject as service } from '@ember/service'; import { isEmpty } from '@ember/utils'; import readableFileSize from 'ilios/utils/readable-file-size'; imp...
'use strict'; var express = require('express'); var bodyParser = require('body-parser'); var cookieParser = require('cookie-parser'); var stylus = require('stylus'); var nib = require('nib'); var config = require('./server/config.json'); var Logger = require('./server/common/Logger'); var app = express(); var ...
import { guidFor, OWNER } from 'ember-utils'; import { Cache, assert, warn, runInDebug, isFeatureEnabled } from 'ember-metal'; import { lookupPartial, hasPartial, lookupComponent, STYLE_WARNING } from 'ember-views'; import { Environment as GlimmerEnvironment, AttributeManager, isSafeString, compileLayou...
var Sequelize = require('sequelize'); module.exports = function(url) { return new Sequelize(url, { native: true, dialect: "postgres" }); }
module.exports = { name: 'highcharts', description: '', example_data: '{ "chart":{ "type":"bar" }, "series":[ { "data":[ 1, 0, 4 ], "name":"Jane" }, { "data":[ 5, 7,...
import React /* { Component } */ from "react" import { Link } from "gatsby" import Img from "gatsby-image" import FaExtLink from "react-icons/lib/fa/external-link" import FaGithub from "react-icons/lib/fa/github" import FaClipboard from "react-icons/lib/fa/clipboard" import { /* options, rhythm, */ scale, rhythm } from...
'use strict'; function GithubReposComponent($scope, $modalInstance, franklinAPIService, franklinReposModel) { const dmc = this; dmc.showLoader = false; dmc.showLoaders = new Array($scope.deployableRepos.length); dmc.showLoaders.map((x) => x = false); const functions = { registerRepo, ...
(function () { var app = angular.module('contactApp'); app.controller('contactController', contactController); function contactController($scope, $http, $routeParams, filterFilter, contactFactory) { vm = this vm.dclocation = $routeParams.siteId vm.selectedUserEmail = []; ...
import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; const FormElementLabel = (props) => { const { className, hideLabel, id, label, legend, readOnly, required, ...rest } = props; const renderRequired = () => { if (required) { retur...
;(function () { function ResizeHandler(el) { el.remember('_resizeHandler', this); this.el = el; this.parameters = {}; this.lastUpdateCall = null; this.p = el.doc().node.createSVGPoint(); } ResizeHandler.prototype.transformPoint = function(x, y, m){ this.p...
import axios from 'axios'; import {globalState} from '../state'; import BaseModel from './base'; export default class Guild extends BaseModel { constructor(obj) { super(); this.fromData(obj); this.config = null; } fromData(obj) { this.id = obj.id; this.ownerID = obj.owner_id; this.name =...
'use strict'; var isA = require("Espresso/oop").isA; var oop = require("Espresso/oop").oop; var init = require("Espresso/oop").init; var trim = require("Espresso/trim").trim; var isA = require("Espresso/oop").isA; var oop = require("Espresso/oop").oop; var AuthenticationProviderInterface = require("Espresso/Security/...
import React, { Component, PropTypes } from 'react' import classNames from 'classnames' import './List.scss' export default class List extends Component { static propTypes = { className: PropTypes.string, children: PropTypes.node, value: PropTypes.any, onChange: PropTypes.func, onSelect: PropType...
// Description // A Hubot script that returns 海腹川背 videos // // Configuration: // HUBOT_UMIHARAKAWASE_API_KEY // // Commands: // hubot 海腹川背 F<N> - returns 海腹川背 videos // // Author: // bouzuya <m@bouzuya.net> // module.exports = function(robot) { var API_KEY, request; request = require('request-b'); API_KE...
var http = require('http') , URL = require('url') , fs = require('fs') , path = require('path') , async = require('async'); exports.exec = function(config, data, callback) { var url = config.url , outDir = path.resolve(config.dir) , urls = []; if (url) { urls.push(url); } if (Array.isArra...
// Karma configuration // Generated on Sat Sep 20 2014 20:50:04 GMT+0000 (UTC) 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://npmjs.org/browse/keywor...
var data = [ { stars: 5, secondsPerPlaces: 2, touchDiv: 5 }, { stars: 4, secondsPerPlaces: 3, touchDiv: 4 }, { stars: 3, secondsPerPlaces: 4, touchDiv: 3 }, { stars: 2, secondsPerPlaces: 5, touchDiv: 2 }, { stars: 1, secondsPerPlaces: 6, touchDiv: 1 } ]; function CounterCoins(_l...
var qrsInteract = require('./qrsInstance'); var Promise = require('bluebird'); var getAppOwner = { getAppOwner : function(appId) { return new Promise(function(resolve,reject) { var path = "/app/full"; path += "?filter=id eq " + appId; return qrsInteract.Get...
!function(){"use strict";var d=document.createElementNS("http://www.w3.org/1999/xhtml","div"),e=document.createElementNS("http://www.w3.org/1999/xhtml","div");$(d).addClass("loadingComponent hidden"),$(e).addClass("sk-circle");for(var t=1;13>t;t++){var n=document.createElementNS("http://www.w3.org/1999/xhtml","div");$(...
import Promise from 'bluebird' import getMemberInfo from 'src/server/actions/getMemberInfo' import {Cycle, Phase, Project} from 'src/server/services/dataService' export default async function sendCycleReflectionAnnouncements(cycleId) { const [cycle, phases] = await Promise.all([ await Cycle.get(cycleId), awa...
var StickyNav = { config: { viewportHeight : Helpers.windowHeight(), navSelector : document.querySelector('[data-js="nav"]') }, init: function(options) { if( typeof options === "object" ) { this.config = options; } var $this = this; window.addEventListener( 'scroll' , function() { var topOffs...
module.exports = require('util-ex/lib/is/type/undefined');
import localizedLanguageMap from './localizedLanguageMap'; import { locales } from 'mwp-config'; describe('localizedLanguageMap', () => { it('has a localized name for every item in `mwp-config/locales`', () => { locales.forEach(locale => { expect(Object.keys(localizedLanguageMap).includes(locale)).toBeTruthy(); ...
const MAX = 2147483647; const FACTOR_A = 16807; const FACTOR_B = 48271; const B16 = 0b1111111111111111; function getGeneratorsStart(input) { const [, genA, genB] = input.match(/Generator A starts with (\d+)\nGenerator B starts with (\d+)/); return { genA, genB }; } exports.part1 = (input) => { let matches = 0; ...
import React from 'react'; import {connect} from 'react-redux'; import Component from '../components/terms'; import {goTo} from '../modules/navigation/actions'; function mapStateToProps(state) { return {}; } const mapDispatchToProps = (dispatch, ownProps) => { return { goTo(path) { dispatch(goTo(path))...
/** * Main JS file for Casper behaviours */ /*globals jQuery, document */ (function ($) { "use strict"; $(document).ready(function(){ let language = localStorage.getItem('language') if(language == null || language == 'null') { language = 'french' } // open subscribe link to a new tab: $("li.nav-...
(function() { 'use strict'; /************************************************************************************ * @ngdoc controller * @name PageController * @module metricapp * @requires $scope * @requires $location * * @description * Manages the navbar for all users. * Realizes the control layer for {navbar.view}. ...
var breadcrumbs=[['-1',"",""],['2',"SOLUTION-WIDE PROPERTIES Reference","topic_0000000000000C16.html"],['2897',"Tlece.Recruitment.Models.TleceAccount Namespace","topic_00000000000009CC.html"],['2907',"LoginResponseDto Class","topic_00000000000009D4.html"],['2908',"Properties","topic_00000000000009D4_props--.html"],['29...
'use strict'; describe('myApp.searchview module', function() { beforeEach(module('myApp.searchview')); describe('searchview controller', function(){ it('should ....', inject(function($controller) { //spec body var view1Ctrl = $controller('SearchCtrl'); expect(view1Ctrl).toBeDefined(); ...