code
stringlengths
2
1.05M
/* * ContactCard Messages * * This contains all the text for the ContactCard component. */ import { defineMessages } from 'react-intl'; export default defineMessages({ header: { id: 'app.components.ContactCard.header', defaultMessage: 'This is the ContactCard component !', }, });
// @flow import type { UnaryOperator, BinaryOperator, } from '../types' import { fact } from './runtime-values' import { EvalNumber, type EvalValue, } from './values' export function binaryOperator( operator: BinaryOperator, lhs: EvalValue, rhs: EvalValue, ) { switch (operator) { case '+': return lhs.add(rhs...
/** * Just an empty file. */ /** * Detect the location of Springboard based on * the default template path. */ parts = window.location.pathname.split('/'); parts.splice(parts.indexOf('templates')); items = document.getElementsByClassName('sbpath'); SB_PATH = parts.join('/'); for (var i = 0, n = items.length; ...
"use strict" /** * Construct URL for Odoo. * * @param {string} path path to part of the Odoo (absolute path started with "/", alias - w/o) */ var result = function getUrlWeb(path) { // shortcuts for globals var casper = global.casper var mobi = global.mobi casper.echo(" construct Odoo Web URL fo...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.ThrottleBindingBehavior = undefined; var _aureliaBinding = require('aurelia-binding'); function throttle(newValue) { var _this = this; var state = this.throttleState; var elapsed = +new Date() - state.last; if (elapsed ...
let { writeFile } = require('fs').promises let { join } = require('path') let mkdirp = require('mkdirp') module.exports = async function processImport(check, output) { if (!check.import) { return } let loader = '' for (let i in check.import) { let list = check.import[i].replace(/}|{/g, '').trim() ...
module.exports = { name: "radiansToDegrees", ns: "math", description: "Convert Radians to degrees", async: true, phrases: { active: "Converting radians to degrees" }, ports: { input: { "in": { title: "Radians", type: "number", async: true, required: true, ...
import nodeResolve from "rollup-plugin-node-resolve"; import commonjs from "rollup-plugin-commonjs"; import { eslint } from "rollup-plugin-eslint"; import { terser } from "rollup-plugin-terser"; import liveserver from "rollup-plugin-live-server"; import pkg from "./package.json"; const exclude = ["@npolar/mdc", "@npola...
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class AwesomeProjectDemo extends Component { render() { return ( <View style={styles....
/* global $:true */ + function($) { "use strict"; var defaults; var selects = []; var Select = function(input, config) { var self = this; this.config = config; //init empty data this.data = { values: '', titles: '', origins: [], length: 0 }; this.$input = $(...
var path = require('path'); var webpack = require('webpack'); var BundleTracker = require('webpack-bundle-tracker'); var config = require('./webpack.base.config.js'); config.entry = config.entry.concat([ 'webpack-dev-server/client?http://localhost:3000', 'webpack/hot/only-dev-server', ]); config.output.publi...
(function($) { /* ======== A Handy Little QUnit Reference ======== http://api.qunitjs.com/ Test methods: module(name, {[setup][ ,teardown]}) test(name, callback) expect(numberOfAssertions) stop(increment) start(decrement) Test assertions: ok(value, [message]) ...
class wmp11_assocmime_wmd { constructor() { // IDispatch ActiveMovie () {get} this.ActiveMovie = undefined; // bool AllowChangeDisplaySize () {get} {set} this.AllowChangeDisplaySize = undefined; // bool AllowScan () {get} {set} this.AllowScan = undefined; /...
/* Curso Arduino Avanzado 3ed Practica 04 Alumno: Ulises Gascón */ /* Titulo: Valor del Bitcoin en tiempo real con Firebase Descripción: En esta práctica el objetivo es que podamos ver en la pantalla LCD, el valor en Dolares o Euros de un Bitcon. Se incluye una función para depurar usando la consola de Nodejs, que...
import cx from 'classnames'; import React from 'react'; import PropTypes from 'prop-types'; import pure from 'recompose/pure'; const SongTitle = ({ className, artist, title, size = 'large', }) => ( <div className={cx('SongTitle', `SongTitle--${size}`, className)} title={`${artist} – ${title}`} > <spa...
'use strict'; var requireHelper = require(process.env.TEST_DIR + '/require_helper'); requireHelper('server.js'); var io = require('socket.io-client'); var expect = require('chai').expect; var url = 'http://localhost:' + process.env.PORT; var options = { transports: ['websocket'], 'force new connection': true }; ...
var windowWidth = window.innerWidth; var windowHeight = window.innerHeight; var arySID = []; //幫每個Program編一個 SID var aryDate = []; //儲存日期 var aryTimeFrom = []; //儲存每個日期的時段 二維陣列 var aryTimeTo = []; //儲存每個日期的時段 二維陣列 var obj_Rooms = []; var obj_OtherRooms = []; var obj_MyProgram = []; //var aryProgram = []; //儲存 Progra...
var uglify = require("uglify-js"), jsp = uglify.parser, pro = uglify.uglify, vm = require('vm'); function Dual(a, b) { return {a: a, b: b || 0}; } var AD = { neg: function(x) { return Dual(-x.a, -x.b); }, incr: function(x) { ++x.a; }, decr: function(x) { --x.a; }, gt: function(x0, x1) { return x...
THREE.WebGLRenderer.Object3DRenderer = function ( lowlevelrenderer, info ) { this.renderer = lowlevelrenderer; this.info = info; }; THREE.extend( THREE.WebGLRenderer.Object3DRenderer.prototype, { getBufferMaterial: function ( object, geometryGroup ) { return object.material instanceof THREE.MeshF...
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * @name: S12.10_A3.12_T2; * @section: 12.10; * @assertion: No matter how control leaves the embedded 'Statement', * the scope chain is always restored to its former state;...
import Node from "./node"; import {addKey} from "./utils"; export default class If extends Node { get reactive() { return true; } compile(data) { this.start(data); if (this.attribute) { this.push("("); } this.indent().indent(); let tabs = this.tabs(); this.outdent().outdent(); this.children.for...
/*! * Fierce Planet - Utils * Various utility methods * Copyright (C) 2011 Liam Magee * MIT Licensed */ // Modify the namespace /** * Always send the authenticity_token with ajax */ $(document).ajaxSend(function(event, request, settings) { if ( settings.type == 'post' ) { settings.data = (settings...
import '../common' require.ensure(['knockout', '../models/users/create-city-admin'], function (require) { var ko = require('knockout') var Model = require('../models/users/create-city-admin') const model = new Model() model.init() ko.applyBindings(model) })
describe('PomodoroCtrl', function(){ var scope; //we'll use this scope in our tests var ctrl; var theInterval; var rootScope; var mockPomodoroService={ startPomodoro:function(){ rootScope.$broadcast('focNewPomodoroStarted','task',25); }, getStatus:function(){ return 'task'; }, getStatusDuration:fun...
// Copyright 2018-2021, University of Colorado Boulder /** * a scenery node that represents a light bulb in the view * * @author John Blanco * @author Andrew Adare * @author Jesse Greenberg * @author Chris Klusendorf (PhET Interactive Simulations) */ import Vector2 from '../../../../dot/js/Vector2.js'; import ...
/*! * gliding * Copyright(c) 2014 Xinyu Zhang bevis@mail.ustc.edu.cn * MIT Licensed */ var router = require('router'); var walk = require('walk'); // for file serving var getArg = require('../util/getArg.js'); var mime = require('mime'); var url = require('url'); var path = require('path'); var fs = require('fs');...
/** * * Main * */ import React from 'react'; import Helmet from 'react-helmet'; import Responsive from 'react-responsive'; import {Link} from 'react-router'; import Menu from 'material-ui/svg-icons/navigation/Menu'; import TextField from 'material-ui/TextField'; import Person from 'material-ui/svg-icons/social/person'...
var rfr = require('rfr'); var Lab = require('lab'); var lab = exports.lab = Lab.script(); var Code = require('code'); var expect = Code.expect; var Promise = require('bluebird'); var Utility = rfr('app/util/Utility'); var CustomError = rfr('app/util/Error'); var logger = Utility.createLogger(__filename); var Storage ...
import { Asset } from './asset'; export class Sound extends Asset { play() {} pause() {} stop() {} }
(function (global) { System.config({ paths: { 'npm:': 'node_modules/' }, map: { app: 'app', '@angular/core': 'npm:@angular/core/bundles/core.umd.js', '@angular/common': 'npm:@angular/common/bundles/common.umd.js', '@angular/compiler...
'use strict'; const assign = require('lodash/assign'); const clone = require('lodash/clone'); const cloneDeep = require('lodash/cloneDeep'); const defaults = require('lodash/defaults'); const extend = require('lodash/extend'); const filter = require('lodash/filter'); const find = require('lodash/find'); const findIndex...
//use with: mongo api --eval "var arg1=5000; arg2=1" place.js // db.place.createIndex({name: "text", code: "text", "tinh.name": "text"}) // db.place.createIndex({code: 1}, {unique: true}) // db.nhanvien.update({ma: 1012}, {$set: {quyen: [1001, 1002]}}) var data = [ { "code": 1000003, "name": "Dabaco Đền ...
import highland from "highland"; import toNvd3 from "../../../../source/iml/charting/to-nvd3.js"; describe("the to nvd3 plugin", () => { let spy; beforeEach(() => { spy = jest.fn(); }); it("should convert items to nvd3 format", () => { highland([ { ts: "2015-05-10T23:50:50.000Z", data: { read: ...
'use strict'; var User; var bcrypt = require('bcrypt'); module.exports = (sequelize, DataTypes) => { User = sequelize.define('User', { first_name: { type: DataTypes.STRING, allowNull: false, validate: { notEmpty: { msg: "firstName passed is empty." } ...
#!/usr/bin/env node var GuessWhoStream = require('./lib/GuessWhoStream'); var jsonStream = require('JSONStream'); process.stdin.setEncoding("utf8"); // convert bytes to utf8 process.stdin.pipe(new GuessWhoStream()) .pipe(process.stdout);
var _ = require('./utils') module.exports = Task function Task(thread, env) { this.id = _.uuid() this.thread = thread this.worker = thread.worker this.env = env || {} this.time = this.memoized = null this.listeners = { error: [], success: [], end: [] } } Task.intervalCheckTime = 200 Task.prototype.bind ...
import {toNumber} from './../../helper/number'; import {ERROR_VALUE} from './../../error'; import Decimal from 'decimal.js'; export const SYMBOL = '+'; export default function func(first, ...rest) { try { const result = rest.reduce((acc, value) => { return (new Decimal(acc)).plus(new Decimal(value)).toNum...
/** * Definition for a binary tree node. * function TreeNode(val) { * this.val = val; * this.left = this.right = null; * } */ /** * @param {TreeNode} root * @param {number} x * @param {number} y * @return {boolean} */ let isCousins = function(root, x, y) { const nodes = {}; const traverse = (node...
const html = require('es6-string-html-template').html const raw = require('es6-string-html-template').raw module.exports = function welcomeEmail (vars, { lang }) { const t = translations[lang] || translations.en return t(vars) } const styles = raw(` <style> p { margin: 0; } </style> `) const translations...
/************************************************************* * * MathJax/localization/gl/HTML-CSS.js * * Copyright (c) 2009-2016 The MathJax Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a...
/* eslint-env mocha */ describe('ReactGoban Component', () => { });
// (c) 2013-2014 dimaninc // dimaninc@gmail.com, http://dalance.ru/users/dimaninc/ // changes history: // 2014-10-04 some improvements (function($) { $.fn.diCrossfade = function(settings) { var transitions = { DEFAULT: 0, CROSSFADE: 1, SLIDE_L2R: 2, SLIDE_R2L: 3, SLIDE_T2B: 4, SLIDE_B2T: 5 };...
//Checks if the enter key has been pressed, if so, runs the thing function checkEnter(e){ var characterCode; if(e && e.which){ characterCode = e.which; }else{ e = event characterCode = e.keyCode; } if(characterCode == 13){ document.getElementById("name").blur(); run(); } } //Runs the loader to get ...
var data = require('../data.json'); exports.addFriend = function(req, res) {
 // Your code goes here var name = req.query.name; var description = req.query.description; var imageURL = 'http://lorempixel.com/400/400/people'; var newFriend = {"name": name, "description" : descrip...
/* * * * GAME MENU * * * */ gd.gameMenuPrev = []; gd.gameMenuSetPrev = function(dontSetPrev) { if(!dontSetPrev){ var el = document.getElementsByClassName('game-menu-modal-body')[0]; var classList = []; for(var i=0;i<el.childNodes.length;i++){ if(el.childNodes[i].style.display != 'none') { ...
/*! * circuitbox * Copyright (c) 2014-2015 Ranganath Kini <codematix@codematix.me> * Copyright (c) 2015 intuitivcloud Systems <engineering@intuitivcloud.com> * MIT Licensed */ 'use strict'; var _ = require('lodash'), expect = require('chai').expect, sinon = require('sinon'), circuitbox = require('../...
Crafty.c('Actor', { init: function() { this.requires( '2D, DOM' ); } })
function admin() { window.location.href = "admin.html"; } function voter() { window.location.href = "voter.html"; }
/* eslint key-spacing:0 spaced-comment:0 */ import _debug from 'debug'; import path from 'path'; import { argv } from 'yargs'; const debug = _debug('app:config:_base'); const config = { env : process.env.NODE_ENV || 'development', // ---------------------------------- // Project Structure // -----------------...
import Chance from 'chance'; import Occupation from 'constants/orbital-ruin/occupation'; import Situation from 'constants/orbital-ruin/situation'; import Entities from 'constants/entities'; import commonGenerator from './common-generator'; export const generateOrbitalRuin = commonGenerator( (entity, { hideOccAndSit...
var searchData= [ ['password_341',['Password',['../class_n_a_t_s_1_1_client_1_1_options.html#a7b529b02f42f29ff4016a5b91138ba5e',1,'NATS::Client::Options']]], ['pedantic_342',['Pedantic',['../class_n_a_t_s_1_1_client_1_1_options.html#a5095fd095d6db679465eb80dfe37fbdf',1,'NATS::Client::Options']]], ['pendingbytelim...
CanvasRenderingContext2D.prototype.line = function(x0, y0, x1, y1) { this.beginPath(); this.moveTo(x0, y0); this.lineTo(x1, y1); this.stroke(); }; function ChordDrawingDecorator(chordForm, maxVisibleFrets) { this.chordForm = chordForm; this.maxVisibleFrets = maxVisibleFrets; } ChordDrawingD...
const server = require( "./runtime/headless" ).default; const { bus } = server; const metrics = require( "./domain/metrics" ); require( "./agents/prometheus-metrics" ); bus.on( "metrics", x => metrics.publish( JSON.parse( x ) ) ); const FileDiagnostics = require( "./agents/file-diagnostics" ); const diagnostics = new...
angular.module('mro').controller('LoginController', function(AUTH_EVENTS, $state, $rootScope, $scope, UserService, Session) { $scope.login = function(credentials) { if(!credentials) { $scope.error = 'All fields must be filled.'; return; } if(!credentials.username || !credentials.password) { $scope.erro...
(function() { 'use strict'; angular .module('myApp') .controller('DashBoardController', DashBoardController); DashBoardController.$inject = ['highChartDataService'] function DashBoardController(highChartDataService) { this.name = "Lets display some graphs"; } })();
module.exports = { "login": { "analytics-pageview": { "callbacks": { "success": [ { "value": "prompt" } ] }, "source": "./steps/analytics-pageview", "subflows": [] }, "prompt": { "callbacks": { "cancel": [ { ...
template.helper('parseFloat', function (value) { return parseFloat(value); }); /** * @timestamp {String|Number} 毫秒为单位的时间戳 * @return {String} 格式:2017-03-01 13:08:28 */ template.helper('tsFormater', function (timestamp) { var date = new Date(+timestamp); var trans = function (num) { retur...
"use strict"; module.exports = function (plugin) { var test = describe("'page'' should have all its functions", function () { it("Page should ...", function testOn(item) { assert(false, "page function failed..."); }); }); return test; };
.directive('rowSelector', ['$document', '$timeout', function ($document, $timeout) { return { restrict: 'A', link: function (scope, elem, attrs, ctrl) { var rowsName = attrs.stTable; var singleExpr = attrs.rowSelectorSingle; var rowSelector = attrs.rowSelector; ...
"use strict"; 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; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
// Generated on 2013-12-03 using generator-angular 0.6.0-rc.2 'use strict'; // # Globbing // for performance reasons we're only matching one level down: // 'test/spec/{,*/}*.js' // use this if you want to recursively match all subfolders: // 'test/spec/**/*.js' module.exports = function (grunt) { // Load grunt tas...
(function(angular, undefined){'use strict'; var eResource = angular.module('epixa-resource', []); eResource.provider('resource-api', function eResourceProvider(){ var defaultConfig = {}; /* Supported config: headers */ this.defaultConfig = function(config) { defaultConfig = angular.copy(confi...
import React from 'react'; import { shallow } from 'enzyme'; import { shallowToJson } from 'enzyme-to-json'; import GameInfos from './GameInfos'; import BombTracker from './BombTracker'; import GameReset from './GameReset'; import GameTimer from './GameTimer'; test('Snapshot', () => { const component = shallow(<Game...
// dataLoopExample2-wdio.js // // This is a simple test script that does the following: // open a website // validate title // The example demos how to use an array of data // Loop through the data to populate form fields, then submit the form // Wait for results page // Verify first / last name on the results page ...
import _ from 'lodash'; import { encrypt, decrypt } from 'lib/encryption'; import request from 'lib/request'; import LS from './localStorage'; import tetherToken from '@coinspace/crypto-db/crypto/tether@ethereum.json'; import CsWallet from '@coinspace/cs-wallet'; class Details { constructor(baseURL) { this.baseU...
define(function (require) { 'use strict'; /** * Module dependencies */ var defineComponent = require('flight/lib/component'); /** * Module exports */ return defineComponent(pic); /** * Module function */ function pic() { this.defaultAttrs({ }); this.after('initialize...
'use strict'; const crypto = require("crypto"); const env = require('../../env'); const algorithm = 'aes-256-ctr'; const password = env.crypto.key; module.exports.encrypt = (text) => { const cipher = crypto.createCipher(algorithm, password); let crypted = cipher.update(text, 'utf8', 'hex'); crypted += cipher.fina...
// Generated by CoffeeScript 1.9.2 var Comments, Datarank, Datasources, Fizzle, Live, Locations, Reach, Retailers, Search, Sentiment, Themes, Topics, Volume, Wordcloud; Topics = require('./datarank/topics'); Comments = require('./datarank/comments'); Datasources = require('./datarank/datasources'); Fizzle = require...
(function() { var amdify, fast, optimize, process, tested; fast = require('coffee-fast-compile'); amdify = require('./converters/amdify'); tested = require('../tested'); optimize = require('./converters/optimize'); process = function(coffeeStream, pack) { var amdifyPipe, optimizePipe; amdifyP...
(function (w) { var d = function() { this.preView = function (editor) { var delay; updatePreview = function () { var previewFrame = document.getElementById('preview'); var preview = previewFrame.contentDocument || previewFrame.contentWindow.documen...
/* Map-People Copyright (c) 2015, Drew Heintz. All rights reserved. Use of this source code is governed by the MIT License, which can be found in the LICENSE.txt file. */ // The file specifies configuration settings for the server. Be extremely // careful when changing things. var config = module.e...
/** * 问卷详情首页 */ import React, { Component } from "react"; import { message } from "antd"; import { Layout, Icon } from "antd"; import JobQuestionsForm from "./Form"; const { Header, Footer, Content } = Layout; class JobDetail extends Component { constructor(props) { super(props); // 问卷的id ...
'use strict' const Transform = require('stream').Transform const Writable = require('stream').Writable const restream = require('restream') const BEGIN_READY_RE = /{begin(\d+)}([\s\S]*){ready\1}/g /** * A transform stream which will mutate data from regex stream into an object * with commandNumber and data. * @r...
game.resources = [ /* Graphics. * @example * {name: "example", type:"image", src: "data/img/example.png"}, */ {name: "background-tiles", type:"image", src: "data/img/background-tiles.png"}, /* uses the .png file for the tiles */ {name: "meta-tiles", type:"image", src: "data/img/meta-tiles.png"}...
/** * Defines a view in the column template */ angular.module("lightGrid").directive("lgView", function () { "use strict"; return { restrict: "EA", require: "^lgColumn", compile: function viewCompile(tElement, tAttrs) { var innerHtml = tElement.html(); // we don't want to compile the contents of the ...
var newsModule = function(){}; newsModule.prototype.newstypeList = function(){ var emitter = new events.EventEmitter(); dataSource.getConn().on("success",function( conn ){ conn.query("select *,(select count(*) from news n where n.typeid = nt.typeid) as newcount from newtype nt order by typeorder",function( err,r...
'use strict'; var isEqual = require('./support/is-equal'); describe('head', function() { it('should render an empty string', function() { isEqual('head'); }); it('should render <title> when `options.title` is true', function() { isEqual('head-title', {title: true}); }); });
var UtilityModule = (function (module) { module.showMessage = function (message) { alert(message); }; return module; }(UtilityModule || {}));
var path = require("path"); var fs = require("fs"); var brands = {}; function ReloadCache(basePath, cb) { hotswap("BRAND_DB", function (jobCB) { try { var dirs = fs.readdirSync(basePath); for (var i = 0; i < dirs.length; i++) { if (fs.statSync(path.join(basePath, dirs...
import routes from './routes'; import AboutController from './controller/AboutController'; export default angular .module('app.about', ['ui.router']) .config(routes) .controller('AboutController', AboutController) .name;
/** * Created by nuintun on 2016/5/25. */ 'use strict'; require('./css/toast.css'); var $ = require('jquery'); var GUID = new Date().getTime(); var Mask = { // 遮罩分配 alloc: [], // 遮罩节点 node: $('<div class="ui-toast-mask" tableindex="0"></div>'), /** * 显示遮罩 * @param {HTMLElement} anchor 定位节点 */ ...
$(function(){ var productId=$.query.get("productId"); //var arr=new Array(); // arr=productId.split("|"); initContentList(productId); }); /**列表**/ function initContentList(productId){ $.post("/Clientmgr.do?method=selectproductCompare",{arry:productId},function(json){ if(json!=null && json...
angular.module("myDiveLogbook").factory("Logbook", Logbook); Logbook.$inject = []; function Logbook() { var Logbook = null; return { setLogbook: (logbook) => { Logbook = logbook; }, getLogbook: () => { return Logbook; } }; }
/** @license * DHTML Snowstorm! JavaScript-based snow for web pages * Making it snow on the internets since 2003. You're welcome. * ----------------------------------------------------------- * Version 1.44.20131208 (Previous rev: 1.44.20131125) * Copyright (c) 2007, Scott Schiller. All rights reserved. * C...
// import the tasks import './tasks/bump'; import './tasks/changelog'; // export default script export default ['bump', 'changelog'];
//>>built define("dojo/_base/array dojo/aspect dojo/_base/declare dojo/dom-attr dojo/dom-construct dojo/dom-geometry dojo/dom-style dojo/i18n dojo/keys dojo/_base/lang dojo/on dojo/sniff dojo/window ../../focus ../_Plugin ../../form/ToggleButton ../.. ../../registry dojo/i18n!../nls/commands".split(" "),function(m,x,y,...
import BaseType from '../../../lib/types/abstract/BaseType'; import jsdocRequire from '../jsdoc-require'; import buildInstanceForParsedType from './buildParsedType'; import { buildInstanceForTypedef } from './buildTypedef'; const typeParser = jsdocRequire('jsdoc-75lb/lib/jsdoc/tag/type.js'); /** * Parses a type stri...
var EventEmitter = require("events").EventEmitter; function FakeProcessHelper(input, output) { this.input = input; this.output = output; } FakeProcessHelper.prototype = { input: null, output: null, on: function (event, callback) { setImmediate(this.input.on.bind(this.input, event, callback)); return this; },...
module.exports = { description: 'Blueprint for ember-cli-formbuilder', afterInstall: function() { // return this.addAddonToProject('ember-i18n', '^4.1.3').then(function () { return this.addBowerPackageToProject('coreweb-css', 'git://github.com/hilotus/coreweb-css.git'); // }.bind(this)); } };
module.exports ={ aritGeo:function(arr){ var arithemeticPattern; var geometricPattern; for (var i = 0; i< (arr.length - 2); i++) if(!(arithemeticPattern = arr[i+1] - arr[i] == arr[i+2] - arr[i+1])) break; if(arithemeticPattern) return "Arithmetic"; for (var i = 0; i< (arr.length - 2)...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); //# sourceMappingURL=ReportResponse.js.map
import "../arrays/map"; import "../core/functor"; import "../math/trigonometry"; import "svg"; d3.svg.symbol = function() { var type = d3_svg_symbolType, size = d3_svg_symbolSize; function symbol(d, i) { return (d3_svg_symbols.get(type.call(this, d, i)) || d3_svg_symbolCircle) ...
'use strict'; let loginUser = require('./firebase/fb-auth'); let dom = require('./dom'); let user; // contains all functions for clicks //signing in $('#signin').click(function(){ loginUser() .then(function(results){ user = results.user; dom.addUserProfile(user); dom.addZipcodeSelect(); ...
import 'prism/themes/prism-okaidia.css!'; export class App { configureRouter(config, router){ config.title = 'Aurelia Smooth Scroll'; config.map([ { route: ['','home'], moduleId: './home', nav: true, title:'Home' }, { route: 'demo', moduleId: './demo', nav: true, title:'Demo' } ...
var fs = require('fs-extra'); var path = require('path'); var copy_list = [ 'res/manifest.json', 'res/db.json', 'res/_locales/', 'res/icon-16.png', 'res/icon-128.png' ]; var out_dir = 'out'; fs.emptyDirSync(out_dir); for (i = 0; i < copy_list.length; i++) { var item = copy_list[i]; if (ty...
import React from 'react'; const LocationValue =({value}) => { if (!value || value.length < 2) { return null; } return (<span>{`${value[0]} ${value[1]}`}</span>) } export default LocationValue;
import mongoose from 'mongoose' const userSchema = new mongoose.Schema({ userId: { type: String, required: true, index: { unique: true }, }, name: { type: String, required: true, }, email: { type: String, required: true, }, }) module.exports = mongoose.model('User', userSchema)...
SeriesPage = function() { this.$seriesGrid = $('#series-video-list'); this.seriesSlug = this.$seriesGrid.data('series-slug'); this.videohubBase = this.$seriesGrid.data('videohub-base'); var sourceUrl = this.videohubBase + '/api/series/' + this.seriesSlug + '/videos'; this.seriesVideoGrid = new SeriesVideoGrid...
var thispage = document.location.href; $.getJSON('http://pooleapp.com/data/bb27bcff-6b5b-45ef-a146-8a4e3f596f4b.json', function(d) { $.each(d, function(key, val) { $.each(val, function(comm){ if(val[comm]["path"] == savedUrl){ console.log(JSON.stringify(val[comm])); }...
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. 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 React from 'react'; import LayoutContainer from ...