code
stringlengths
2
1.05M
'use strict'; /* * Defining the Package */ var Module = require('meanio').Module; var Recruits = new Module('recruits'); /* * All MEAN packages require registration * Dependency injection is used to define required modules */ Recruits.register(function(app, auth, database) { //We enable routing. By default...
'use strict'; var path = require('path'); var fs = require('fs'); var errorHandler = require('errorhandler'); var logger = require('@bicjs/bic-logger').get('routers/web'); var bic = require('@bicjs/bic'); var cfg = bic.config.getAll(); var template = require('../template'); var pageNames = []; // Get the name of ...
import { connect } from 'react-redux'; import { withRouter } from 'react-router'; import actions from 'components/modal-share/modal-share-actions'; import Component from './share-button-component'; export default withRouter(connect(null, actions)(Component));
version https://git-lfs.github.com/spec/v1 oid sha256:5151413f0c21a6b1fa730b459d7b2cc3ef9aafaa23d4512a11812c3d34ce6250 size 17841
'use strict'; class ListNode { constructor(value, next) { this._value = value; this._next = next; } get value() { return this._value; } set value(val) { this._value = val; } get next() { return this._next; } set next(val) { this._nex...
// flow-typed signature: 867a600e6b26ddfb663b6b5bb8d80bcf // flow-typed version: <<STUB>>/redux-thunk_v2.2.0/flow_v0.41.0 /** * This is an autogenerated libdef stub for: * * 'redux-thunk' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share your work with the...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }...
var isFunction = require('./isFunction') module.exports = function isNativeCode (input) { return isFunction(input) && input.toString().indexOf('{ [native code] }') > -1 }
import React from 'react' import {Grid, Row, Col} from 'react-bootstrap' import Topbar from '../../components/top-bar/top-bar' import Footer from '../../components/footer/footer' export default class AboutUS extends React.Component { render() { const style = require('./about-us.scss'); return ( <div> ...
var gulp = require("gulp"); var plugins = {}; var config = {}; function copy(src, dest) { return gulp.src(src) .pipe(gulp.dest(dest)); } module.exports = function (callback) { plugins = this.opts.plugins; config = this.opts.config; plugins.runSequence( "copy:scripts:app", "copy:scripts:common", "copy:scr...
// test/setup.js Agent.create(); // test/fixture/posts.js var postIds = Agent.instance.makeIds('posts', 2); Agent.instance.group('posts', function() { var commentIds = Agent.instance.getIds('comments'); this.fixture(postIds[1], { title: 'Title 1', body: 'Body content.', comments: [commentIds[1], com...
/** * Created by mitch on 2014-03-31. */ var express = require('express'); var server = express(); server.use(express.static(__dirname + "/app")); var port = process.env.PORT || 8000; server.listen(port, function () { console.log("Listening on port " + port) });
_bb10_toggle = { apply: function(elements) { for (var i = 0; i < elements.length; i++) { bb.toggle.style(elements[i],true); } }, style: function(outerElement,offdom) { var table, tr, td, color = bb.screen.controlColor; outerElement.checked = false; outerElement.enabled = true; outerElem...
import makeActionCreator from 'utils/makeActionCreator'; export const UPDATE_LOGIN_MODAL_VISIBILITY = 'UPDATE_LOGIN_MODAL_VISIBILITY'; export const UPDATE_USER_LOGGED_STATUS = 'UPDATE_USER_LOGGED_STATUS'; export const UPDATE_BACK_END_AUTH_SUPPORT = 'UPDATE_BACK_END_AUTH_SUPPORT'; export const UPDATE_LOGGED_USERNAME = ...
#!/usr/bin/env node module.exports = function(context) { var fs = context.requireCordovaModule('fs'), path = context.requireCordovaModule('path'); var platformRoot = path.join(context.opts.projectRoot, 'platforms/android'); var manifestFile = path.join(platformRoot, 'AndroidManifest.xml'); if (fs.exis...
var classHelix_1_1Logic_1_1dev_1_1ProjectDataTest = [ [ "ProjectDataTest", "classHelix_1_1Logic_1_1dev_1_1ProjectDataTest.html#adf151731e2b95574f0d386a52320f6d6", null ], [ "ProjectDataTest", "classHelix_1_1Logic_1_1dev_1_1ProjectDataTest.html#a0f8be0f4f9e3333ff9fec292568beb34", null ], [ "~ProjectDataTest"...
(function(module) { var password = 'accessGranted'; var passAtempts = 0; var access = false; $('#password-input').focus(); $('#password-input').on('keydown', function(enter) { if(enter.which === 13) { if($('#password-input').val() === password) { $('.password').hide(); $('.contentDiv...
(function() { define(['jquery', 'backbone', 'mustache', 'text!javascripts/template/base.js.html'], function($, Backbone, Mustache, baseTemplate) { return Backbone.View.extend({ initialize: function(options) { options = options || {}; this.template = baseTemplate; return this.app = o...
'use strict' function resolveStringValues(strings, values) { let resolved = '' strings.forEach((string, index) => { resolved += string if (values.length > index) { const value = values[ index ] if (typeof value === 'function') { throw new Error(`Functions are not supported (value #${...
const Config = { LOAD_LIVE_DATA: false }; export default Config;
import curryN from 'funny-curry-n' import fold from 'funny-fold' /** * Reduce applies a function to an accumulator and each value of an array (from * left-to-right), reducing it to a single value. * * @param {Function} reducer Reducer function. * @param {Array} list List to reduce. * @return {*} ...
var should = require('should'); describe('Battle', function() { it('should test the player battling'); })
const assign = require('../util/assign'); module.exports = request => { const Order = { name: 'Order', path: 'orders', authenticate: function() { return request(assign(Order._authenticate(), { args: Array.prototype.slice.call(arguments) })); }, cancelForMe: function() { return request(assign(Order._c...
var gulp = require('gulp'), util = require('gulp-util'), ts = require('gulp-typescript'), tslint = require('gulp-tslint'), gulpprint = require('gulp-print'), sourcemaps = require('gulp-sourcemaps'), gulpprint = require('gulp-print'); var config = require('../config')(); var tsProject = ts.crea...
import * as APIUtil from '../util/project_api_util'; export const RECEIVE_ERRORS = 'RECEIVE_ERRORS'; export const RECEIVE_GIF = 'RECEIVE_GIF'; export const scrapeGif = () => dispatch => ( APIUtil.scrapeGif() .then((gif) => (dispatch(receiveGif(gif)))) .fail((errors) => (dispatch(receiveErrors(errors.response...
'use strict'; /** * @ngdoc object * @name conferenceApp * @requires $routeProvider * @requires conferenceControllers * @requires ui.bootstrap * * @description * Root app, which routes and specifies the partial html and controller depending on the url requested. * */ var app = angular.module('conferenceApp', ...
window.onload = function () { var tl1 = new TimelineMax({repeat:4, repeatDelay:1.8}) tl1 .to("#text1", 1.2, { delay: 0.3, autoAlpha: 0, autoAlpha: 1}, "intro") .to("#text1", 0.3, { autoAlpha: 1, autoAlpha: 0}, "intro2") .fromTo("#image2", 2, {delay: 1.8, visibility: "hidden", autoAlpha: 0}, { scale:"1", visibility:...
import React from 'react'; import ReactDOM from 'react-dom'; import App from './js/App'; require('./less/style.less'); ReactDOM.render(<App />, document.getElementById('root'));
var path = require('path'); var webpack = require('webpack'); var HtmlWebpackPlugin = require('html-webpack-plugin'); var ExtractTextPlugin = require('extract-text-webpack-plugin'); var buildPath = path.resolve('./dist'); var webpack_config = { entry: { 'app' : ['./src/js/app.js'], 'vendor' : ['rea...
/* eslint-env node, mocha */ /* global $pg_database, $should */ import expect from 'unexpected'; import { isNull } from 'lodash'; import cleanDB from '../../dbCleaner'; import { dbAdapter, Comment, Post, User } from '../../../app/models'; describe('Comment', () => { before(() => cleanDB($pg_database)); describe(...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends2 = require('babel-runtime/helpers/extends'); var _extends3 = _interopRequireDefault(_extends2); var _defineProperty2 = require('babel-runtime/helpers/defineProperty'); var _defineProperty3 = _interopRequireDefault(_define...
"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...
"use strict"; module.exports = function(sequelize, DataTypes) { var DeploymentsHistory = sequelize.define("DeploymentsHistory", { id: { type: DataTypes.INTEGER(10), allowNull: false, autoIncrement: true, primaryKey: true }, deployment_id: DataTypes.INTEGER(10), package_id: Data...
import React from 'react' import { View, Button } from 'react-native' import EaseTitle from '../../components/art/easeTitle' export default class CreamScreen extends React.Component { constructor(props) { super(props) } componentDidMount() { } render() { const { navigation, banner } = this.props ...
//this function is for switch To Primary Window when using FB, twitter, google+ exports.command = function ( socialmedia ) { this.windowHandles( function ( newwindow ) { var new_handle = newwindow.value[ 0 ]; this.switchWindow( new_handle ); } ). //check whether the new window open a facebook link verif...
import path from 'path'; const repoRoot = path.resolve(__dirname, '../'); const srcRoot = path.join(repoRoot, 'src/'); const distRoot = path.join(repoRoot, 'dist/'); const libRoot = path.join(repoRoot, 'lib/'); const docsRoot = path.join(repoRoot, 'docs-built/'); export { repoRoot, srcRoot, distRoot, libRoot...
import { POPOVERS_OPEN } from '../constants/ActionsType' const initialState = false; export function isOpen( state = initialState, action=[]) { switch( action.type ) { case POPOVERS_OPEN: return !state; default: return state; } }
/* * ***** BEGIN LICENSE BLOCK ***** * Zimbra Collaboration Suite Web Client * Copyright (C) 2006, 2007, 2009, 2010 Zimbra, Inc. * * The contents of this file are subject to the Zimbra Public License * Version 1.3 ("License"); you may not use this file except in * compliance with the License. You may obtain a ...
import Vue from 'vue' const noopData = () => ({}) // window.onNuxtReady(() => console.log('Ready')) hook // Useful for jsdom testing or plugins (https://github.com/tmpvar/jsdom#dealing-with-asynchronous-script-loading) if (process.browser) { window._nuxtReadyCbs = [] window.onNuxtReady = function (cb) { windo...
/** * Interface to the User model. */ var util = require('util'); /** * Constructor to the Log object. * * @param model * The model of the log document. */ function UserActivity(model) { this.docModel = model; } /** * Converts a timestamp in seconds to a Date object. * * @param timestamp * Timesta...
/** * Copyright 2012-2018, Plotly, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; module.exports = { moduleType: 'locale', name: 'bs', dictionary: {}, format: { days: [ ...
import { RelationshipChange } from "ember-data/system/changes"; var get = Ember.get; var set = Ember.set; var isNone = Ember.isNone; var map = Ember.ArrayPolyfills.map; var merge = Ember.merge; /** In Ember Data a Serializer is used to serialize and deserialize records when they are transferred in and out of an ex...
siege = require('siege'); siege() .concurrent(100) .on(8001) .get('/rooms').for(10000).times .get('/rooms/1').for(10000).times /* .get('/persons').for(10000).times .get('/buildings').for(10000).times .get('/users').for(10000).times .get('/users/1').for(10000).times */ .attack()
/*jshint camelcase: false*/ module.exports = function (grunt) { 'use strict'; // load all grunt tasks require('time-grunt')(grunt); require('load-grunt-tasks')(grunt); // configurable paths var config = { app: 'app', min: '.min', vendor: 'vendor', dist: 'dist', distMac32: 'dist/MacOS3...
// Import a renamed version of d3 with just the formatting methods // It should avoid compatibility issues require('./d3f') /* o looks like : { value: 567.456, unitLabel: 'km' } */ function format(fmt, o, appendUnit) { /* We're using d3's value formatter https://github.com/mbostock/d3/wiki/Formatting */ ...
/** * THIS FILE IS AUTO-GENERATED * DON'T MAKE CHANGES HERE */ import { createSubset } from '../../factoriesNumber.js'; export var subsetDependencies = { createSubset: createSubset };
// import { connect } from 'react-redux' // import { firebaseConnect } from 'react-redux-firebase' // import { compose } from 'recompose' // import withAuth from 'hocs/withAuth' // import withIntl from 'hocs/withIntl' // import EditorView from '../components/EditorView' // const mapDispatchToProps = dispatch => { //...
/* * Copyright Adam Pritchard 2014 * MIT License : http://adampritchard.mit-license.org/ */ /* * Utilities and helpers that are needed in multiple places. * If this module is being instantiated without a global `window` object being * available (providing XMLHttpRequest, for example), then `Utils.global` must *...
function DragToHighlight(contentSelector, options) { const ELEMENT_NODE_TYPE = 1; const TEXT_NODE_TYPE = 3; var _this = this; // User-configurable options var options = options || {}; var contentEls; var highlightableElements = ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'blockquote']; var highlightColor = '#...
import * as actions from './constants'; import api from '../services/authApi'; export function getProfile(status) { return dispatch => { dispatch({ type: actions.FETCHING_PROFILE }); api.getUser(status) .then(profile => { dispatch({ type: actions.FETCHED_PROFILE, payload: profile }); ...
'use strict'; /** * Module dependencies. */ var AbstractGrantType = require('./abstract-grant-type'); var InvalidArgumentError = require('../errors/invalid-argument-error'); var InvalidGrantError = require('../errors/invalid-grant-error'); var InvalidRequestError = require('../errors/invalid-request-error'); var Pr...
'use strict'; var fs = require('fs'); var path = require('path'); var gulp = require('gulp'); var git = require('gulp-git'); var tag_version = require('gulp-tag-version'); var argv = require('yargs').argv; var $ = require('gulp-load-plugins')(); module.exports = function(options) { var packageSrc = './package.json'...
import React from 'react'; import ReactDOM from 'react-dom'; import Test from 'legit-tests/no-dom'; import * as middleware from 'test/helpers/middleware'; export function createRender(containerTag = 'div') { const dummy = document.createElement(containerTag); return function(instance) { return ReactD...
angular.module('starter.controllers', []) .controller('DashCtrl', function($scope) {}) .controller('ChatsCtrl', function($scope, Chats) { // With the new view caching in Ionic, Controllers are only called // when they are recreated or on app start, instead of every page change. // To listen for when this...
module.exports = function (config) { config.set({ // base path, that will be used to resolve files and exclude basePath: '', frameworks: ['mocha', 'chai', 'sinon', 'sinon-chai'], // list of files / patterns to load in the browser files: [ //'app/**/*.js', 'app/scripts/QueueRunner.js/...
window.Cow = window.Cow || {}; //Synstore keeps track of records Cow.syncstore = function(config){ var self = this; this._dbname = config.dbname; this._core = config.core; console.log('new store',this._dbname); this.loaded = new Promise(function(resolve, reject){ console.log('reading db ',s...
/* * grunt-phantom-benchmark * https://github.com/kevincennis/grunt-phantom-benchmark * * Copyright (c) 2014 Kevin Ennis * Licensed under the MIT license. */ 'use strict'; module.exports = function(grunt) { // Project configuration. grunt.initConfig({ jshint: { all: [ 'Gruntfile.js', ...
var listing = require('./listing.js'), mapping = require('./mapping.js'); /** * The base implementation of `convert` which accepts a `util` object of methods * required to perform conversions. * * @param {Object} util The util object. * @param {string} name The name of the function to wrap. * @param {Functio...
module.exports = { name: "isBlank", ns: "string", async: true, description: "Determines whether a string is blank (whitespace, new line, etc.)", phrases: { active: "Checking for blank string" }, ports: { input: { "in": { title: "String", type: "string", async: true, ...
'use strict'; // Configuring the Consumptions module angular.module('consumptions').run(['Menus', function (Menus) { } ]);
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2014 Photon Storm Ltd. * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} */ /** * Phaser.TilemapParser parses data objects from Phaser.Loader that need more preparation before they can be inserted i...
(function () { 'use strict'; /** Virtual DOM Node */ function VNode() {} function getGlobal() { if (typeof global !== 'object' || !global || global.Math !== Math || global.Array !== Array) { return self || window || global || function () { return this; }(); } return global; }...
'use strict'; /* Controllers */ var contactControllers = angular.module('contactControllers', []); contactControllers.controller('ContactListCtrl', ['$scope', 'Contacts', function($scope, Contacts) { $scope.contacts = Contacts.query(); $scope.updateData = function(){ console.log("Code for posting or update...
require('./tests/algolia-test')();
$(document).ready(function() { var template = _.template( '<div><audio controls>\ <source src="sounds/<%= filename %>" type="audio/wav">\ </audio></div>'); $.get('/sounds', function(d) { _.each(d.sounds, function(arg) { $('.container').append(template({filename: arg})); }); }); });
var Map = $.extend(true, {}, Map, { Model: { Column: function () { var self = this; self.Name = ko.observable(null); } } });
"use strict"; // external modules var md5 = require("blueimp-md5"); var Sequelize = require("sequelize"); // core var logger = require("../logger.js"); module.exports = function (sequelize, DataTypes) { var User = sequelize.define("User", { id: { type: DataTypes.UUID, primaryKey: ...
import Entity from './Entity'; import { Body } from 'matter-js'; export default class Ship extends Entity { constructor(app) { super(app); this.accelerating = false; this.turningLeft = false; this.turningRight = false; this.app.physics.createBody(this, 'circle', this.x, ...
var indexSectionsWithContent = { 0: "abcdefghijklmnopqrstuvwxyz~", 1: "cefikmnpsuv", 2: "l", 3: "cefikmnpsuv", 4: "abcdefghiklmnoprsuv~", 5: "ehimotw", 6: "c", 7: "ckmv", 8: "abcdefghijklmnopqrstuvwxyz", 9: "m", 10: "dgms" }; var indexSectionNames = { 0: "all", 1: "classes", 2: "namespaces"...
(function(window, factory) { if (typeof define === 'function' && define.amd) { define([], function() { return factory(); }); } else if (typeof module === 'object' && typeof module.exports === 'object') { module.exports = factory(); } else { (window.LocaleData || (...
import LatLng from './latlng' import Point from './point' const {min, max, sin, log, PI, atan, exp} = Math class SphericalMercator { constructor() { this.R = 6378137 this.MAX_LATITUDE = 85.0511287798 } // @method project(latlng: LatLng): Point // converts latlng to Point (meters) project(latlng) { //conv...
import { uuid } from 'utils/utils'; export const defaultState = { id: null, condition: '', name: '', description: '', finalMember: '', initialMember: '', }; export const defaultForm = { condition: '', name: '', description: '', initialMember: '', finalMember: '', }; export function formToState(...
jui.define("chart.widget.topologyctrl", [ "util.base" ], function(_) { /** * @class chart.widget.topologyctrl * @extends chart.widget.core */ var TopologyControlWidget = function(chart, axis, widget) { var self = this; var targetKey, startX, startY; var renderWai...
'use babel' /* eslint-env jasmine */ import path from 'path' import fs from 'fs-extra' import {lifecycle} from './../spec-helpers' describe('gorename', () => { let gorename = null let editor = null let gopath = null let source = null let target = null beforeEach(() => { runs(() => { lifecycle.s...
var class_tempo_1_1_current_thread = [ [ "AnyCurrentScope", "class_tempo_1_1_current_thread.html#a48a61021d19eb06b0d64b346a78a0b1f", null ], [ "ConstructScope", "class_tempo_1_1_current_thread.html#a7fec7793c297c5a6823c0776d3e7e4d3", null ], [ "ConstructScope< TResult >", "class_tempo_1_1_current_thread.htm...
/** * nengine * https://nuintun.github.io/nengine * * Licensed under the MIT license * https://github.com/Nuintun/nengine/blob/master/LICENSE */ 'use strict'; // external lib var path = require('path'); // nodejs libs var nopt = require('nopt'); // external libs // variable declaration var parsed; var known = ...
'use strict'; var tester = require('./_lib/tester'); exports.examples = tester([ { rules: 'not', value: 33, error: 'RNOT1' }, { rules: 'not hello', value: 33, error: 'R8' }, { rules: 'not format ^3$', value: 33, expect: true }, { rules: 'not format ^3$', value: 3, verr: { rule: 'not'...
'use strict'; const Promise = require('promise') const chai = require('chai') const { assert } = chai const rzpInstance = require('../razorpay'); const mocker = require('../mocker') const equal = require('deep-equal') const { getDateInSecs, normalizeDate, normalizeNotes } = require('../../dist/ut...
//Welcome to the annotated source code of the interpreter for [𝔼𝕊𝕄𝕚𝕟 3](https://github.com/molarmanful/ESMin), a wonderful JavaScript ES6 golfing language created by [@molarmanful](https://github.com/molarmanful)! //This will serve as documentation for those who want to learn the language. // //--- // //Let's get ...
const url = require('url'); const log = require('gutil-color-log'); const path = require('path'); const types = require('./mimetype').types; // const routes = require('../router').routes; function route(req, routes) { let indexPath; let pathname = url.parse(req.url).pathname; // let route = routes[pathname]...
var unirest = require('unirest'); var secrets = require('../secrets'); /* Requests an access token from the Lufthansa API. An access token is valid for 1.5 day, so don't keep your server running for more than 1.5 day ;-) */ exports.register = function (server, options, next) { var postData = { client_id:...
export default { key: 'D', suffix: 'mmaj9', positions: [ { frets: 'x53650', fingers: '021430' }, { frets: 'x70665', fingers: '040231' }, { frets: 'x809a9', fingers: '010243' }, { frets: 'acbaac', fingers: '132114', barres: 10, ...
/* Create a function that: * **Takes** a collection of books * Each book has propeties `title` and `author` ** `author` is an object that has properties `firstName` and `lastName` * **finds** the most popular author (the author with biggest number of books) * **prints** the author to the console * if t...
/** * Using Rails-like standard naming convention for endpoints. * GET /things -> index * POST /things -> create * GET /things/:id -> show * PUT /things/:id -> update * DELETE /things/:id -> destroy */ var mongoose = require('mongoose'), ...
// Generated by CoffeeScript 1.10.0 import config from 'travis/config/environment'; var GAInitializer, initialize; initialize = function(application) { var ga, s; if (config.gaCode) { window._gaq = []; _gaq.push(['_setAccount', config.gaCode]); ga = document.createElement('script'); ga.type = 'text...
import { combineReducers } from 'redux-immutable'; import webrtcReducer from 'containers/Webrtc/reducer'; import { SET_ROOM_NAME } from './constants'; function roomName(state = '', { type, payload }) { switch (type) { case SET_ROOM_NAME: return payload; default: return state; } } export defa...
// @flow import React from 'react' import { Route } from 'react-router-dom' import WorkCard from '../work/WorkCard' import { Header, Article, Page } from '../ui' import selector from '../../store/selector' import style from './style.scss' import type { Store } from '../../store/entities' type Props = { store: Sto...
(() => { "use strict"; class KwcDateFormat { beforeRegister() { this.is = "kwc-date-format"; this.properties = { date: { type: String, value: null }, inputFormat: { type: String, value: null }, format: { ty...
import {almostEquals, distanceBetweenPoints, sign} from './helpers.math'; import {_isPointInArea} from './helpers.canvas'; const EPSILON = Number.EPSILON || 1e-14; const getPoint = (points, i) => i < points.length && !points[i].skip && points[i]; const getValueAxis = (indexAxis) => indexAxis === 'x' ? 'y' : 'x'; expo...
(function(root, factory) { if (typeof define === 'function' && define.amd) { define(['angular', 'objectpath', 'tv4'], factory); } else if (typeof exports === 'object') { module.exports = factory(require('angular'), require('objectpath'), require('tv4')); } else { root.schemaForm = factory(root.angular...
module.exports = { '/':{ fields: ['apply-uk', 'application-country'], controller: require('../../../controllers/go-overseas'), backLink: '/../prototype_oix_171004/startpage', next: '/../intro', /* if Yes is selected */ nextAlt: 'what-do-you-want-to-do-overseas', /* if they are from Ger...
import * as schemas from "../lib/onvif_schemas"; import { curryCMD, getKey } from './utils'; import onvifCMD from './onvifCMD'; /** User's Level **/ const UserLevel = { 0: 'Administrator', 1: 'Operator', 2: 'User', //3: 'Anonymous', //4: 'Extended' } /** * GetUsers() * * @expor...
'use strict'; const firstDay = new Date('1900-01-01').getTime(); async function getData(config, callback, meta) { const { latestDate } = meta; if (latestDate.getTime() === firstDay) { return callback([ { id: 'a'.repeat(2000), commonID: 'b'.repeat(2000), modificationDate: new Date...
/* 作者: dailc * 时间: 2017-06-31 * 描述: Number-of-Digit-One * * 来自: https://leetcode.com/problems/number-of-digit-one */ (function(exports) { /** * @param {number} n * @return {number} */ var countDigitOne = function(n) { var count = 0; for (var m = 1; m <= n; m *= 10)...
'use strict' module.exports = function (RED) { // var deviceFW = require('node-red-device-framework') // var coreHelper = deviceFW.deviceFWHelper // var Device = coreHelper.Device // var coreTypes = coreHelper.getDeviceTypesConfig(RED) // const path = require('path') // Initialize HTTP Configs var DNCont...
require([ 'app/router', 'dojo/hash' ], function ( router, hash ) { describe('app/router', function () { afterEach(function () { hash(''); }); describe('setHash', function () { it('sets the correct URL parameters', function () { route...
// Run a batch operation against the Word object model. Word.run(function (context) { var ooxmlText = "<w:p xmlns:w='http://schemas.microsoft.com/office/word/2003/wordml'>" + "<w:r><w:rPr><w:b/><w:b-cs/><w:color w:val='FF0000'/><w:sz w:val='28'/><w:sz-cs w:val='28'/>" + "</w:rPr><w:t>Hello world (thi...
import * as angular from 'angular' import services from '../../../services/services.js' import * as angularUiRouter from 'angular-ui-router' const name = 'profile' angular.module(name, [services, 'ui.router']) .component(name, { templateUrl: 'lib/components/user/' + name + '/' + name + '.html', co...
/** * Sample React Native App * https://github.com/facebook/react-native * @flow * * 首页 - 问答 * */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, ListView, ScrollView, Image, Dimensions, TouchableOpacity } from 'react-native'; const { width, height } = ...
$.Class('core.Options', function (that) { var isOpened = false; var closedElement; var openedElement; that.__container = $.Load('$.Dom.Body'); that.__id = 'options'; that.__class = 'closed'; this.__construct = function () { this.parentCall("__construct", "div"); initClos...