code
stringlengths
2
1.05M
/** * Created by md on 10.09.16. */ export const ADD_MOD = 'mods/add_mod'; export const REMOVE_MOD = 'mods/remove_mod'; export function addMod(id, name) { return { type: ADD_MOD, id, name, }; } export function removeMod(id) { return { type: REMOVE_MOD, id, } }
/* */ (function(process) { 'use strict'; var EventConstants = require("./EventConstants"); var ReactErrorUtils = require("./ReactErrorUtils"); var invariant = require("fbjs/lib/invariant"); var warning = require("fbjs/lib/warning"); var injection = { Mount: null, injectMount: function(InjectedMount...
(function () { }());
'use strict'; var should = require('should'), mockexec = require('../tasks/lib/mockexec'), fs = require('fs'); describe('Nexus Deployer', function () { var releaseHistory, snapshotHistory; var INNER_METADATA_FILE_PATTERN = /inner\.xml/; beforeEach(function () { var exec = mockexec(); sn...
import React from 'react' import App from '../App' import renderer from 'react-test-renderer' describe('App Component', () => { it('should correct rendered.', () => { const component = renderer.create(<App />) let tree = component.toJSON() expect(tree).toMatchSnapshot() }) })
/* Require "mongoose" for connection to database */ const mongoose = require('mongoose'); /* Require schemas for interactions with it */ const locationSchema = require('../models/locations').locationSchema; /* Require "connection" for setting "model" */ const connection = require('../models/db').connection; /** * Mod...
import { ACTIVITIES } from './../constants'; import fetch from 'isomorphic-fetch'; export function activitiesRequest() { return { type: ACTIVITIES.REQUEST }; } export function activitiesSuccess(activities) { return { type: ACTIVITIES.SUCCESS, activities: activities }; } export functio...
//~ name b426 alert(b426); //~ component b427.js
export const ic_send_to_mobile = {"viewBox":"0 0 24 24","children":[{"name":"rect","attribs":{"fill":"none","height":"24","width":"24"},"children":[]},{"name":"path","attribs":{"d":"M17,17h2v4c0,1.1-0.9,2-2,2H7c-1.1,0-2-0.9-2-2V3c0-1.1,0.9-1.99,2-1.99L17,1c1.1,0,2,0.9,2,2v4h-2V6H7v12h10V17z M22,12 l-4-4v3h-5v2h5v3L22,1...
UnicodeFileToHtmlTextConverter = function(fileBlob) { this._fileBlob = fileBlob; }; UnicodeFileToHtmlTextConverter.prototype = { convertToHtml: function () { var fileReader = new FileReader(); var text; fileReader.onload = function(evt) { text = evt.target.result; }; fileReader.readAs...
'use strict'; /* Controllers */ var controllers = angular.module('deadlineController', ['services']); controllers.controller('DeadlineController', ['$scope', 'Deadline', 'Project', function($scope, Deadline, Project) { $scope.data = Deadline.query(function(rawData) { _(rawData).forEach(function(p...
// ------------------------------------- // Task: clean // ------------------------------------- // // - nukes globs // - scorched earth // // ------------------------------------- import del from 'del'; import globs from '../globs'; const cleanTask = (cb) => { del(globs.to.clean).then(() => { cb(); ...
var data = {}; var modules = { "__default__": process.cwd() + "/i18n-data" }; function addLocales(catalogue, messages) { for (var locale in messages) { addMessages(catalogue, locale, messages[locale] || {}); } } function addMessages(catalogue, locale, messages) { if (!data[catalogue]) { data[catalogue] = {};...
var app = angular.module('myApp'); app.controller('page1', ['$scope', function ($scope) { $scope.title = 'page 1'; } ]); app.controller('page2', ['$scope', function ($scope) { $scope.title = 'page 2'; } ]);
L2.aux.prt('----- some data -----'); L2_X = L2.aux.prt((new L2.ArSh((new L2.ArJSA_Sh([(10),(3)],2,1,1))))._setRand()._appendAr((L2.sc.range('a','c')["sample"]("r",(10))),"c",true)["key:"]("c",undefined,((new L2.ArJSA(['x-coord','y-coord','z-coord','category']))))); L2.aux.prt('----- basic scatter plot -----'); L2_V...
/*! jQuery UI - v1.11.4 - 2015-12-04 * http://jqueryui.com * Includes: effect.js, effect-slide.js * Copyright jQuery Foundation and other contributors; Licensed MIT */ (function( factory ) { if ( typeof define === "function" && define.amd ) { // AMD. Register as an anonymous module. define([ "jquery" ], factory ...
var $ = require('jquery'); var _ = require('lodash'); function Intro() { this.DURATION = 4000; this.DELAY = 2000; this.END_DELAY = 1000; this.FADES = ['posters','flags','logo']; this.hasEnded = false; } Object.defineProperty(Intro.prototype, 'init', { value: function init() { $(document).one('click', this.end...
'use strict'; var mongo = require('mongodb').MongoClient; var express = require('express'); //var env = require('node-env-file'); //env('.env'); // load .env var app = express(); function insertUrlsIntoDatabase(urlObject){ mongo.connect(process.env.MONGOLAB_URI, function(err, db) { if (err) throw err; var urls =...
version https://git-lfs.github.com/spec/v1 oid sha256:d92c1b31309618a549bbe959b4670aa767689b2612097eb1ea8e56109fb31b99 size 9152
var React = require('react'); var ContentList = React.createClass({ render: function(){ var items = this.props.items, contentItems = items.map(function(item, i){ return <li className="text-list-item" key={i}> <span className="user-icon">{item.user}</span...
module.exports = { context: { text: 'label', class: 'label' } }
var Symbol = require('./_Symbol'); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.pro...
// FUNCIÓN PARA ELIMINAR CLIENTE, RECIBE EL cliente function eliminarCliente(cliente){ // VARIABLE QUE GUARDA LA REFERENCIA PARA ELIMINAR UN CLIENTE (eliminarCliente) var url = '../php/eliminarCliente.php'; // VARIABLE DE CONFIRMACIÓN PARA ELIMINAR REGISTRO var pregunta = confirm('¿Esta seguro de eliminar est...
import React from 'react'; import ReactDOM from 'react-dom'; import UserStore from '../stores/UserStore'; import AppActions from '../actions/app-actions'; class Home extends React.Component { constructor(props) { super(props); this.state = { users: UserStore.getUsers() }; ...
var _ = require('icebreaker') var net = require('net') var fs = require('fs') var Peer = require('icebreaker-peer') var to = require('stream-to-pull-stream') function isString(obj) { return typeof obj === 'string' } function isPath(p) { return isString(p) && isNaN(p) } function PeerNet(params) { if (!(this ins...
/** * This file is part of Wizkers.io * * The MIT License (MIT) * Copyright (c) 2017 Edouard Lafargue, ed@wizkers.io * * 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 restric...
(function () { 'use strict'; angular .module('customquestions') .run(menuConfig); menuConfig.$inject = ['Menus']; function menuConfig(menuService) { // Set top bar menu items menuService.addMenuItem('topbar', { title: 'Customquestions', state: 'customquestions', type: 'dropd...
import { moduleForModel, test } from 'ember-qunit'; moduleForModel('unidimensional-dataset', 'Unit | Model | unidimensional dataset', { // Specify the other units that are required for this test. needs: [] }); test('it exists', function(assert) { let model = this.subject(); // let store = this.store(); asse...
//thisground mean test 'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), passport = require('passport'), logger = require('mean-logger'); /** * Main application entry file. * Please note that the order of loading is important. */ // Initializing system variables var config ...
function brent(ax, bx, f, tol) { // // a zero of the function f(x) is computed in the interval ax,bx . //zero // input.. // // ax left endpoint of initial interval // bx right endpoint of initial interval // f function subprogram which evaluates f(x) for any x in ...
const gulp = require('./tasks/esds_tasks.js'); gulp.task('esds-hook:prebuild:all', function(done){ console.log("I heard you like prebuild hooks so I put a prebuild hook on your prebuild hook so you can prebuild your hook."); done(); }); gulp.task('esds-hook:postbuild:all', function(done){ console.log("Tidying u...
const cheerio = require('cheerio') let parser = {} parser.parse = function (isChinese, body) { const $ = cheerio.load(body) let result = '' let sentenceSample = '' if (isChinese) { $('div.trans-container > ul').find('p.wordGroup').each(function (i, elm) { result += $(this).text().replace(/\s+/g, ' ') }) } ...
/* slider */ $(window).load(function(){ $('.flexslider').flexslider({ animation : "slide", controlNav : false, start : function(slider){ $('body').removeClass('loading'); } }); }); /* copy loaded thumbnails into carousel */ $('.row .thumbnail').on('load', function() { }).each(function(i) { if(this.com...
var test_comparisons = { 'mid-travel-mtbs': [{ "seat_angle": 73.599999999999994, "seatpost_diameter": 30.899999999999999, "axle_to_crown": 539150.0, "head_angle": 66.5, "year": 2017.0, "bb_type": 92.0, "wheel_size": 584, "title": "Yeti SB5 2017 M", ...
var backbone = require('../dep/backbone.js') , $ = require('jquery') , _ = require('../dep/underscore.js') , _s = require('../dep/underscore.string.js') , Feeds = require('../model/feeds.js') , FeedView = require('./feed.js') , SearchView = require('./search_results.js') ...
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return O...
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import Snackbar from 'material-ui/Snackbar'; import Portal from '../Portal'; import { snackBarClose } from '../../redux/actions'; class SnackBar extends Compo...
// Copyright 2008 the V8 project authors. All rights reserved. // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this li...
import ListFormRoute from 'ember-flexberry/routes/list-form'; export default ListFormRoute.extend({ /** Name of model projection to be used as record's properties limitation. @property modelProjection @type String @default 'SuggestionTypeL' */ modelProjection: 'SuggestionTypeL', /** develo...
// DEPENDENCIES // ============================================================================= // THIRD-PARTY ---------------------------------- import angular from "angular"; // APP ---------------------------------- import addButtonComponent from "./button.component"; // MODULE // ================================...
exports.up = function(knex, Promise) { return Promise; }; exports.down = function(knex, Promise) { return Promise; };
(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...
import React from 'react'; import Item from './item'; class Inventory extends React.Component { render() { return ( <section className="col-lg-9 col-md-12 col-sm-12 inventory"> <header>INVENTORY</header> <div className="row"> <ul className="nav nav-tabs" role="tablist"> <li role="presentatio...
define(function() { function SceneObject(px, py, pw, ph) { return { x: px, y: py, width: pw, height: ph, sceneObjects: [ ], render: function(context) { var index; var sceneObject; this.renderSceneObject(context); for (index = 0; index < this.sceneObjects.length; index++) { ...
import React, { useRef, useEffect } from 'react' import PropTypes from 'prop-types' import style from './Spotlight.module.scss' const Spotlight = ({ onSubmit, onChange, onKeyDown, value }) => { const ref = useRef() useEffect(() => { ref.current.focus() }, []) const handleSubmit = event => { onSubmit...
'use strict'; /** * @ngInject */ module.exports = function ($scope, DS, ProductService) { var getProductsAndFeatures; getProductsAndFeatures = function () { var params; params = { type: 'all' }; DS.findAll('product', params); DS.findAll('feature', {}); }; getProductsAndFeatures(); ...
// Given an array of n integers where n > 1, nums, return an array output such that output[i] is equal to the product of all the elements of nums except nums[i]. // // Solve it without division and in O(n). // // For example, given [1,2,3,4], return [24,12,8,6]. // // Follow up: // Could you solve it with constant spac...
export Alerts from './Alerts'; export App from './App'; export Cellar from './Cellar'; export Container from './Container'; export BottleEdit from './BottleEdit'; export BottleNew from './BottleNew'; export Bottles from './Bottles'; export WineEdit from './WineEdit'; export WineNew from './WineNew'; export Wines from '...
/** * findAndReplaceDOMText v 0.3.0 * @author James Padolsey http://james.padolsey.com * @license http://unlicense.org/UNLICENSE * * Matches the text of a DOM node against a regular expression * and replaces each match (or node-separated portions of the match) * in the specified element. * * Example: Wrap 'tes...
import { fromJS } from 'immutable'; import appReducer from '../reducer'; import { loadRepos, reposLoaded, repoLoadingError } from '../actions'; describe('appReducer', () => { let state; beforeEach(() => { state = fromJS({ loading: false, error: false, currentUser: false, userData: from...
const crypto = require("crypto"), Promise = require("bluebird"); module.exports = { "name": "pick", "aliases": ["choose", "select", "compare"], "command": (stanley, message, args) => { let options = args.join(" ").split(","); // We compare hashes of the items, that way results are consistent. return Promise...
module.exports = { $pkg: { name: 'mock-apemanfile-01' } }
import config from './rollup.config.js'; config.output.format = 'es'; config.output.file = 'dist/JSONP.es6.js'; export default config;
var express = require('express') , expressLayouts = require('..') , request = require('supertest') , should = require('should') var app, req beforeEach(function() { app = express() app.use(expressLayouts) app.set('env', 'test'); app.set('view engine', 'ejs') app.set('views', __dirname + '/fixtures') }...
'use strict'; let mkdir = require('./mkdir'), build = require('./build'), path = __dirname + '/../build', //build目录下为项目所需配置文件 dist = process.cwd() + '/'; //当前目录下 /** * [创建生成目录,复制build目录下文件,形成最终目录结构] * @return {[type]} [description] */ exports.init = () => { mkdir.init(); build.init(path, dist); }
'use strict'; var WorldAnimator = require('../game/worldanimator'); function DomWorldAnimator(world, tickRate) { WorldAnimator.call(this, world, tickRate); } DomWorldAnimator.prototype = Object.create(WorldAnimator.prototype); DomWorldAnimator.prototype.tick = function() { this.world.turn(); document.querySel...
// Start client app import '/imports/startup/client';
require("ember-forms/fields/text"); require("ember-forms/fields/textarea"); require("ember-forms/fields/select"); require("ember-forms/fields/date"); require("ember-forms/fields/password");
// Manipulating JavaScript Objects // I worked on this challenge: [by myself, with: ] // There is a section below where you will write your code. // DO NOT ALTER THIS OBJECT BY ADDING ANYTHING WITHIN THE CURLY BRACES! var terah = { name: "Terah", age: 32, height: 66, weight: 130, hairColor: "brown", eye...
let moment = require('moment') let dayTemplate = require('../../html/shared/day.nunjucks') let detailsItems = [] const DATE_FORMAT = 'YYYY-MM-DD' const ACTIVE_CLASS = 'is-active' export default class Calendar { constructor(el, data) { this.init(el, data) } init(el, data) { this.element =...
/** * Created by Yuvv on 2016/2/26. */ 'use strict'; function getMD5Sum(file) { var blobSlice = File.prototype.slice || File.prototype.mozSlice || File.prototype.webkitSlice, chunkSize = 2097152, // read in chunks of 2MB chunks = Math.ceil(file.size / chunkSize), currentChunk = 0, ...
Hud = function(config, context) { this.config = config; this.context = context; this.score = 0; this.level = 0; this.lives = config.playerLives; } Hud.prototype.draw = function() { this.context.font = '20px sans-serif'; var scoreString = 'score: ' + this.score; var levelString = 'level: ' + t...
// Remove "use strict"; from transpiled module until // https://bugs.webkit.org/show_bug.cgi?id=138038 is fixed // // REMOVE_USE_STRICT: true /** @module ember @submodule ember-runtime */ // using ember-metal/lib/main here to ensure that ember-debug is setup // if present import Ember from "ember-metal"; import m...
/* jshint strict: true */ /* global console, require, module */ /** * module dependencies */ var http = require('http'); var latency = require('response-time'); var router = require('express').Router(); var bodyparser = require("body-parser"); /** * setup middlewares */ router.use(latency()); rou...
"use strict"; var inherits = require("../util.js").inherits; var getTypeIndexer = require("../util.js").getTypeIndexer; var ShortFunction = require("../passes/short_function.js"); var Issue = require("../issue.js"); var ignoreMap = Object.create(null); var reasonMap = Object.create(null); var inliningMap = Object.crea...
/** * runBridges - function to run bridge functions async waterfall * * @param {array} bridges Array of bridge functions to run (see bin/batch-parse) * @param {function} moduleCallback called with error/null and response objects from bridges * @return {undefined} */ module.exports = function runBridges(b...
import $ from 'jquery'; import 'jquery-ui/widgets/slider'; import { EffectUIBase } from './base'; import * as fx from '../../../audio/effects/delay'; import template from './templates/delay.marko'; class DelayEffectUI extends EffectUIBase { render() { this.panel = $(template.renderToString({ location: this.loc...
import LuDecomposition from './dc/lu'; import QrDecomposition from './dc/qr'; import SingularValueDecomposition from './dc/svd'; import Matrix from './matrix'; import WrapperMatrix2D from './wrap/WrapperMatrix2D'; export function inverse(matrix, useSVD = false) { matrix = WrapperMatrix2D.checkMatrix(matrix); if (u...
import without from 'lodash/without'; export const ATTRIBUTE_NAMES = { ID: 'w-id', WIDGET_TYPE: 'w-type', DEFAULT_VALUE: 'data-default-value', WIDGET_THEME: 'w-theme', WIDGET_LAYOUT: 'w-layout', WIDGET_HEIGHT: 'w-height', WIDGET_BORDER: 'w-border', WIDGET_EVENTS_PERIOD: 'w-period', WIDGET_EVENTS_DATE...
import LandingView from './components/LandingView'; // Sync route definition export default { component : LandingView, };
/*! WebUploader 0.1.6 */ /** * @fileOverview 让内部各个部件的代码可以用[amd](https://github.com/amdjs/amdjs-api/wiki/AMD)模块定义方式组织起来。 * * AMD API 内部的简单不完全实现,请忽略。只有当WebUploader被合并成一个文件的时候才会引入。 */ (function( root, factory ) { var modules = {}, // 内部require, 简单不完全实现。 // https://github.com/amdjs/amdjs-api/wiki...
'use strict'; var api = require('./controllers/api'), index = require('./controllers'); /** * Application routes */ module.exports = function(app) { // Server API Routes app.route('/api/questionsTest') .get(api.questionsTest); // Server API Valorations app.route('/api/valorations') .get(api.va...
/* global m,USER */ 'use strict'; /** * Copyright (c) 2016 Ricoh Company, Ltd. All Rights Reserved. * See LICENSE for more information */ const App = require('./app').App; const Compo = require('./components'); // window.__oneway = true; if (typeof m === 'undefined') { // headless const app = App.getInstance()...
export default { name: 'BLANK', };
//= link_directory ../javascripts/shopping_cart .js //= link_directory ../stylesheets/shopping_cart .css
angular.module('saveCrop.posts.controllers',[]).controller ('PostController',['$scope','$http', function($scope,$http){ $http.get('modules/posts/views/getPosts.php').success(function(data) { $scope.posts = data; var image = new Image(); angular.forEach($scope.posts, function(elem, key) { ...
import { mount } from '@vue/test-utils'; import store from '../../../store'; import router from '../../../router'; import CatalogFilterBar from '../CatalogFilterBar'; const collection = { id: 'test-collection', }; const query = { keywords: 'testing', languages: 'en,es', coach: true, collection: 'some-collec...
// @flow type Throttled = ((...args: any[]) => void) & { cancel: () => void }; export default function throttle(callback: (...args: any[]) => void): Throttled { let id; const deferred = (...args: any[]) => () => { id = null; callback(...args); }; const throttled = (...args: any[]) => { if (!id) ...
'use strict'; var bluebird = require('bluebird'), Promise = bluebird; var bcrypt = bluebird.promisifyAll(require('bcrypt')); var raise = require('../raise'); var helpers = require('../helpers'), findUser = helpers.findUser, extractParams = helpers.extractParams; module.exports = function(adapter, middleware, ...
webpackJsonp([0xaf6cfaa80c60],{633:function(o,t){o.exports={data:{markdownRemark:{html:'<h2><a href="https://pomodoro-timer-rs.herokuapp.com">https://pomodoro-timer-rs.herokuapp.com</a></h2>',frontmatter:{date:"February 02, 2016",path:"/portfolio/pomodoro-timer/",title:"Pomodoro Timer",type:"portfolio"}}},pathContext:{...
import React from 'react'; import {IndexRoute, Route} from 'react-router'; import { isLoaded as isAuthLoaded, load as loadAuth } from 'redux/modules/auth'; import App from './containers/App/App.js'; import Chat from './containers/Chat/Chat.js'; import Home from './containers/Home/Home.js'; import Widgets from './conta...
version https://git-lfs.github.com/spec/v1 oid sha256:e480e4fc917877d8f21a07482e1f61e10580acf821ac12f927f10e7a1aeafd96 size 1921
"use strict"; var nfa = require("../nfa"); var automaton = nfa.create({ start: "START", finals: ["SB"], states: { START: [ {on: "a", to: "SA"} ], SA: [ {on: "a", to: "SA"}, {on: "b", to: "SA"}, {on: "b", to: "SB"} ], S...
var searchData= [ ['make_5ffuture_5fwith_5fexception_410',['make_future_with_exception',['../namespacetranswarp_1_1detail.html#a34c09a6639f52048a1e4642d32520783',1,'transwarp::detail']]], ['make_5ffuture_5fwith_5fvalue_411',['make_future_with_value',['../namespacetranswarp_1_1detail.html#ac5851824847b3e272e5c4b0864...
(function () { 'use strict'; alphabot.Engine = alphabot.Engine || {}; if (alphabot.Engine.Log) { if (console !== undefined && console.log !== undefined) { console.log('alphabot.Engine.Log is already defined.'); } return; } alphabot.Engine.Log = alphabot.Infra...
(function (ang) { var app = ang.module('app'); app.directive('appContainer', function () { return { restrict: 'EA', templateUrl: '/statics/modules/admin/app/app.html', controller: 'appController' } }); })(angular);
/****************************************************************************** Name: Highslide JS Version: 4.1.8 (October 27 2009) Config: default +events +unobtrusive +imagemap +slideshow +positioning +transitions +viewport +thumbstrip +inline +ajax +iframe +flash Author: Torstein Hønsi Support: http://h...
import React from 'react'; import Utils from '../utils/utils'; import Mixins from '../utils/mixins'; import __reactComponentSetProps from '../runtime-helpers/react-component-set-props.js'; class F7Preloader extends React.Component { constructor(props, context) { super(props, context); } get sizeComputed() {...
angular.module('footballApp.controllers').controller('GroupPointsController', ['$scope', '$stateParams', function ($scope, $stateParams) { $scope.chart = null; /** * Initialize data for chart * @param $promise promise that will be resolved when statistic downloaded */ $scope.initialize = func...
'use strict'; var util = require('util'); var path = require('path'); var genUtils = require('../../util.js'); var yeoman = require('yeoman-generator'); var yosay = require('yosay'); var chalk = require('chalk'); var PhaserJsStateGenerator = yeoman.generators.NamedBase.extend({ init: function () { this....
'use strict'; angular.module('tilesApp').directive('header', [ function () { return { templateUrl: 'views/header.html', controller: 'headerController', restrict: 'ACE' }; }]);
(function () { 'use strict'; /** * @ngdoc service * @name watchedMovies.loader * @description * # loader * Factory in the watchedMovies module. */ function loader($timeout, $rootScope) { return { restrict: 'EA', replace: true, scope: {}, link: function (scope) { ...
/** * Copyright 2015 Google Inc. All Rights Reserved. * * 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 appli...
"use strict";$(document).ready(function(){var t=$("div.main-image");t&&$.get(t.attr("data-svg-src"),function(a){var e=$(a);e.css({width:t.attr("data-width"),height:t.attr("data-height")}),e.insertAfter(t),t.remove()})});
/** * @summary Race timing system * @author Guillaume Deconinck & Wojciech Grynczel */ 'use strict'; // race-model.js - A mongoose model // // See http://mongoosejs.com/docs/models.html // for more of what you can do here. const mongoose = require('mongoose'); const Schema = mongoose.Schema; const raceSchema = ne...
var audienceEvaluator = require('./'); var chai = require('chai'); var assert = chai.assert; var chromeUserAudience = { conditions: ['and', {'name': 'browser_type', 'value': 'chrome'}], }; var iphoneUserAudience = { conditions: ['and', {'name': 'device_model', 'value': 'iphone'}], }; describe('lib/core/audience_e...
import { parse } from 'url'; import kue from 'kue'; import debuglog from 'debug'; import { inspect } from 'util'; import lookup from '../lib/lookup.js'; import services from '../lib/services.js'; import { find, create } from '../lib/share.js'; const debug = debuglog('combine.fm:search'); const queue = kue.createQueu...
var init = 0; // a variable recording the condition of initialization var cal = 0; // a variable recording the condition of calculation var error = 0; // a variable recording error var ope = 0; // a variable showing if the operator has been added var current = "0"; // the expression put in the input screen var ...
'use strict'; describe('Controller: MainCtrl', function () { // load the controller's module beforeEach(module('app2App')); var MainCtrl, scope; // Initialize the controller and a mock scope beforeEach(inject(function ($controller, $rootScope) { scope = $rootScope.$new(); MainCtrl = $controlle...
/** * Observable with history tracking * @param {object} object object to observe * @extends Observable * @returns {HistoryObserver} */ var HistoricObservable = function (object) { var _base = new Observable(object); this.history = {}; for(var property in _base) { this[property] = _base[p...