code
stringlengths
2
1.05M
'use strict'; /*! * V4Fire Client Core * https://github.com/V4Fire/Client * * Released under the MIT license * https://github.com/V4Fire/Client/blob/master/LICENSE */ const {validators} = require('@pzlr/build-core'); /** * RegExp to match a tag declaration body * * @type {!RegExp} * @example * ``` * <di...
'use strict'; var mysql = require('mysql'); // https://www.npmjs.com/package/mysql /* MySQL washer input: TODO output: Writes an array of Items to a MySQL table */ ns('Washers', global); Washers.MySQL = function(config, job) { Washer.call(this, config, job); this.name = 'MySQL'; this.className = Helpers...
export const ic_print_outline = {"viewBox":"0 0 24 24","children":[{"name":"path","attribs":{"d":"M0 0h24v24H0V0z","fill":"none"},"children":[]},{"name":"path","attribs":{"d":"M19 8h-1V3H6v5H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zM8 5h8v3H8V5zm8 12v2H8v-4h8v2zm2-2v-2H6v2H4v-4c0-.55.45-1 1-1h14c.55 0 1 ...
// Call this somethings that is triggered when upload page is loaded function init() { // Globals var user = window.globaData.user; var focusEntity = window.globaData.focusEntity; var path = location.pathname; var columnTypes = []; var file = null; var title...
var foo = [1, 2]; foo.push(3, 4), foo.push(5); foo.push(6);
import React from 'react'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import {List, Button} from 'react-onsenui'; import Medicine from './Medicine'; import * as Actions from '../actions'; const MedicineList = ({medicines, navigator, actions}) => { const changeVisibility = (isVi...
// BASE SETUP // ====================================== // CALL THE PACKAGES -------------------- var express = require('express'); // call express var app = express(); // define our app using express var bodyParser = require('body-parser'); // get body-parser var morgan = require('morgan'); // u...
import React, {Component} from 'react' import './myCreateTeam.scss' import { connect } from 'react-redux' import {Link} from 'react-router' import { tipShow } from '../../../../components/Tips/modules/tips' import Select from '../../../../components/Select' import Confirm,{confirmShow} from '../../../../components/Con...
'use strict'; var bcrypt = require('bcrypt'); var expect = require('chai').expect; var uuid = require('node-uuid'); var chance = new require('chance')(); var PostgreStore = require('../'); var TokenStore = require('passwordless-tokenstore'); var pg = require('pg'); var standardTests = require('passwordless-tokensto...
'use strict'; const path = require('path'); const assert = require('yeoman-assert'); const helpers = require('yeoman-test'); describe('generator-rtjs:app', () => { it('creates webapp base setup', () => { return helpers.run(path.join(__dirname, '../generators/app')) .withPrompts({ name: 'my-test-app...
import { isLeapYear as _isLeapYear, validateDate } from '../lib/utils'; export function isLeapYear(date) { date = date ?? new Date(); validateDate(date); return _isLeapYear(date); } export function isLeapYearUTC(date) { date = date ?? new Date(); validateDate(date); return _isLeapYear(date, 'UTC'); }
'use strict'; var React = require('react-native'); var { PropTypes, StyleSheet, PanResponder, View, Platform } = React; var TRACK_SIZE = 4; var THUMB_SIZE = 20; function Rect(x, y, width, height) { this.x = x; this.y = y; this.width = width; this.height = height; } Rect.prototype.containsPoint = f...
'use strict'; var angular = require('angular'); var translate = require('../node_modules/angular-translate/dist/angular-translate.min'); var angularLocalStorage = require('../node_modules/angular-local-storage/dist/angular-local-storage.min'); var uiBootstrap = require('../node_modules/angular-bootstrap/dist/ui-bootst...
/** * Created by ZK on 16/12/1. */ //接口IP地址和端口 var baseUrl = 'http://wx.hoootao.com/api/'; // var domainConfig = {}; // if (!$.cookie('downloadDomain')) { // $.ajax({ // url: baseUrl + 'data/getDomainInfo', // type: 'POST', // data: { // platform: '2', // }, // ...
/* eslint no-else-return: 0 */ const router = require('express').Router(); const Auth = require('./helper/api/auth'); const Actions = require('./helper/api/actions'); // Handing `action` & `provider` & `id` Params router.param('action', (req, res, next, action) => { req.olAction = action; next(); }); rout...
define(["app/app"], function(App) { "use strict"; App.Router.map(function() { this.route('home', { path: '/about'}) this.resource('session', function() { this.route('new', { path: '/signin' }) this.route('destroy', { path: '/logout' }) }) this.resource('users', function() { this.r...
module.exports = window.React.addons.TestUtils;
'use strict' // refer to https://github.com/zloirock/core-js import 'core-js/es6' // pulls in all ES6 polyfills (adds about 15KB to our bundle [minified/gzipped]) // example of individual includes ... // import 'core-js/modules/es6.object.assign' // import 'core-js/es6/symbol' // import 'core-js/es6/array'
// Generated on 2015-05-08 using generator-angular 0.11.1 '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 tasks...
import test from 'ava'; import textExtensions from '.'; test('main', t => { t.true(Array.isArray(textExtensions)); t.true(textExtensions.length > 0); });
pref('extensions.skts.prevTabKey', '1'); pref('extensions.skts.nextTabKey', '2');
/* * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, O...
/* global it, describe */ import { expect } from 'chai'; import FlowTemplate from '../src/template/flow-template'; import card from './cards/card.json'; describe('Flow Template', () => { describe('Constructor', () => { it('Should construct an instance', () => { let instance = new FlowTemplate({ l...
// In this file you can configure migrate-mongo const config = { mongodb: { // TODO Change (or review) the url to your MongoDB: url: "mongodb://localhost:27017", // TODO Change this to your database name: databaseName: "YOURDATABASENAME", options: { useNewUrlParser: true, // removes a dep...
class DashboardCtrl { constructor(Wallet, Alert, $location, DataBridge, $scope, $filter, Transactions, NetworkRequests) { 'ngInject'; // Alert service this._Alert = Alert; // Filters this._$filter = $filter; // $location to redirect this._location = $location...
var should = require('should'); var assert = require('assert'); var request = require('supertest'); var mongoose = require('mongoose'); var _ = require('underscore'); var cfg = require('../../../config.js'); var bunyan = require('bunyan'); var log = bunyan.createLogger(_.extend(cfg.test_log, {name: 'test_message'})...
/** * Created by amos on 14-8-18. */ LBF.define('util.Event', function(require, exports){ var toArray = require('lang.toArray'), Callbacks = require('util.Callbacks'); var ATTR = '_EVENTS'; /** * [mixable] Common event handler. Can be extended to any object that wants event handler. * ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); const vscode_languageserver_1 = require("vscode-languageserver"); const vscode_uri_1 = require("vscode-uri"); const nodes_1 = require("../types/nodes"); const parser_1 = require("../services/parser"); const symbols_1 = require("../utils/...
'use strict'; var express = require('express'), mongoose = require('mongoose'), async = require('async'), mock = require('./mock'), User = require('./models/User'), Post = require('./models/Post'), admin = require('../../'); var dbURL = 'mongodb://localhost/siracha-simple-example'; mongoose....
(function () { 'use strict'; /** Defines the Category module, which handles all interaction with the * server for Category objects. * - ngResource is required in order to interact with the server's REST API, * by sending HTTP requests. */ angular.module('core.category', [ 'ngResource...
module.exports = { simpleNameSchema: { first_name: [ ['minLength', 8, 'minLength.fail'], ], email: [ ['isEmail', 'isEmail.fail'], ], custom_validator: [ [v => !!v, 'customValidator.fail'], ], custom_validator_with_args: [ [ (value, attribute, model, v1, v...
var Demo = {}; Demo.Helpers = (function (undefined) { function getPage(array, page, pageSize) { var result = []; for (var i = (page - 1) * pageSize; i < page * pageSize; i++) { if (array[i] === undefined) return result; result.push(array[i]); ...
var fs = require('fs'); var events = require('events'); var util = require('util'); // id is the file system index of the joystick (e.g. /dev/input/js0 has id '0') // deadzone is the amount of sensitivity at the center of the axis to ignore. // Axis reads from -32k to +32k and empirical testing on an XBox360 contro...
/** * @param {number} n * @return {number} */ var numSquares = function(n) { var nums = [0]; for (var i = 1; i <= n; i++) { var least = i; for (var x = 1; x * x <= i; x++) { var num = 1 + nums[i - x * x]; if (least > num) { least = num; ...
import { Environment } from '../environment'; @Environment export class EntryBuilder { constructor(name) { this._name = name; this._files = []; } get name() { return this._name; } get and() { return this; } from(...files) { this._files = [...this._files, ...files]; ...
'use strict'; /** * Module dependencies. */ var _ = require('lodash'), Q = require('q'), errorHandler = require('./errors.server.controller'), storeService = require('../services/store.service'), commonService = require('../services/common.service.js'); //新建商铺 exports.create = function (req, res) { ...
/* globals XMLHttpRequest */ exports.create = function () { return this; }; /** * Browser based GET request * @param options {Object} * options.request {Object} - Request data including host and path * options.https {Boolean} - Whether to utilize HTTPS library for requests or HTTP. Defaults to HTTP. * op...
module.exports = function() { this.loadNpmTasks("grunt-karma-coveralls"); return this.config("coveralls", { options: { coverage_dir: "test/coverage" } }); };
var util = require("../lib/6to5/util"); var path = require("path"); var fs = require("fs"); var _ = require("lodash"); var humanise = function (val, noext) { if (noext) val = path.basename(val, path.extname(val)); return val.replace(/-/g, " "); }; var readFile = exports.readFile = function (filename) { if ...
/* Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'format', 'bg', { label: 'Формат', panelTitle: 'Формат на параграф', tag_address: 'Адрес', tag_div: 'Нормален (DIV)', ...
###Client### function(cabrillo, $timeout) { /* widget controller */ var c = this; c.isNative = cabrillo.isNative(); function setScanButton() { cabrillo.viewLayout.setBottomButtons([{ title: 'Scan Code', enabled: true, backgroundColor: '#2d86d5', textColor: '#FFFFFF' }], f...
export const inverted = {"viewBox":"0 0 20 20","children":[{"name":"path","attribs":{"d":"M18,3H2C1.447,3,1,3.447,1,4v12c0,0.552,0.447,1,1,1h16c0.553,0,1-0.448,1-1V4C19,3.448,18.553,3,18,3z M13.25,6.5\r\n\tc0.69,0,1.25,0.56,1.25,1.25S13.94,9,13.25,9S12,8.44,12,7.75S12.56,6.5,13.25,6.5z M4,14l3.314-7.619l3.769,6.102l3.2...
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ return installedModu...
import React, { Component, PropTypes } from 'react'; import SolutionBase from '../Shared/Solution'; import { Pairs } from './Algorithm'; import MultTargetStepItem from './MultTargetStepItem'; import MultTargetClock from './MultTargetClock'; import StepList from './StepList'; export default class Solution extends R...
/// <reference name="MicrosoftAjax.js" /> /// <reference name="MicrosoftAjaxTimer.debug.js" /> /// <reference name="MicrosoftAjaxWebForms.debug.js" /> /// <reference name="AjaxControlToolkit.ExtenderBase.BaseScripts.js" assembly="AjaxControlToolkit" /> //TODO: Need to control if setting activeIndex or selectedIndex, ...
'use strict'; var child = require('./child.js'); var defaults = { viewportSize: { // this should be equal to paper size width: 1050, height: 1485 }, paperSize: { /** * A4 ratio in millimeters: 210 x 297 * DPI is hardcoded 72 in phantomJS. * A resolution of 1050px will give 1050 / ...
import { assert } from '@ember/debug'; import { computed, get } from '@ember/object'; export default function createTranslatedComputedProperty(key, interpolations = {}) { const values = Object.keys(interpolations).map(key => interpolations[key]); const dependencies = [ 'i18n.locale' ].concat(values); return com...
jui.define("chart.brush.area", [], function() { /** * @class chart.brush.area * * @extends chart.brush.line */ var AreaBrush = function() { this.drawArea = function(path) { var g = this.chart.svg.group(), y = this.axis.y(this.brush.startZero ? 0 : this.a...
/** * Unit test for the PropTypes.any validator */ import Ember from 'ember' const {Logger} = Ember import {afterEach, beforeEach, describe} from 'mocha' import sinon from 'sinon' import {itValidatesTheProperty, spyOnValidateMethods} from 'dummy/tests/helpers/validator' import PropTypesMixin, {PropTypes} from 'ember...
smalltalk.addPackage('Helios-Inspector'); smalltalk.addClass('HLInspectorDisplayWidget', smalltalk.HLNavigationListWidget, ['model'], 'Helios-Inspector'); smalltalk.addMethod( smalltalk.method({ selector: "model", category: 'accessing', fn: function (){ var self=this; return smalltalk.withContext(function($ctx1...
class MVVM { constructor(opt) { this.$el = opt.el; this.$data = opt.data; this.init(); } init() { if (this.$el) { // 数据劫持 new Observer(this.$data); // 数据代理 proxyData(this, this.$data); // 模版编译 new Compile...
import { module, test } from 'qunit'; import { setupRenderingTest } from 'ember-qunit'; import { render } from '@ember/test-helpers'; import { hbs } from 'ember-cli-htmlbars'; module('Integration | Component | range-slider', function(hooks) { setupRenderingTest(hooks); test('it renders', async function(assert) { ...
module.exports = function (wallaby) { return { files: [ {pattern: 'node_modules/chai/chai.js', instrument: false}, 'src/**/*.js' ], tests: [ 'test/**/*.js' ], testFramework: 'mocha', compilers: { '**/*.js': wallaby.compi...
import {Page, NavController, NavParams} from 'ionic-angular'; @Page({ templateUrl: 'build/pages/bicicleteria-details/bicicleteria-details.html' }) export class BicicleteriaDetailsPage { static get parameters() { return [[NavController], [NavParams]]; } constructor(nav, navParams, mostrarHorario) { ...
module.exports = (function () { var fs = require("fs"); var path = require("path"); var stream = require("stream"); var gutil = require("gulp-util"); var Project = require("./project"); var PluginError = gutil.PluginError; var Compiler = require("./compiler"); var normalizePath = require...
/** * @ngdoc function * @name angfirePlaygroundApp.directive:ngHideAuth * @description * # ngHideAuthDirective * A directive that shows elements only when user is logged out. It also waits for Auth * to be initialized so there is no initial flashing of incorrect state. */ angular.module('angfirePlaygroundApp') ...
const chalk = require('chalk'); const _ = require('lodash'); const APP = require('./text/app.json'); module.exports = { info: function () { const log = createLog(arguments); console.log(chalk.green.apply(null, log)); }, error: function () { const log = createLog(arguments); console.log(chalk.red...
version https://git-lfs.github.com/spec/v1 oid sha256:d44ca40bafc8724cc111251e6438b81115f10085dde856c67a7c95f3b773c96a size 915
describe('Rendering content to the page', function(){ it('should render the template to the view', function(){ loadFixtures('complete_pagination_dom.html'); var $canvas = $('.pagination_canvas'); var template = $('.pagination_container').data('template'); var response = {status: 'success', data: [{...
var errorPrefix = 'Model#set(key[, value][, options][, cb]): '; module.exports = function (Promise, utils, errors) { var IllegalArgumentError = errors.IllegalArgumentError; /** * @doc method * @id Model.instance_methods:set * @name set * @description * Set (asynchronously) the given values on this ...
/** @jsxRuntime classic */ <font-face />;
export default { el: { datepicker: { now: 'Sekarang', today: 'Hari ini', cancel: 'Batal', clear: 'Kosongkan', confirm: 'YA', selectDate: 'Pilih tanggal', selectTime: 'Pilih waktu', startDate: 'Tanggal Mulai', startTime: 'Waktu Mulai', endDate: 'Tanggal S...
"use strict"; var Mocha = require("mocha"); var path = require("path"); var fs = require("fs"); var _ = require("underscore"); var testsDir = path.resolve(__dirname, "tests"); function normalizeAdapter(adapter) { if (!adapter.fulfilled) { adapter.fulfilled = function (value) { var tuple = ada...
photosApp.controller('loginPhotographerCtrl', ['$scope', '$state', '$filter', 'UserService', function ($scope, $state, $filter, UserService) { $scope.UserService = UserService ; $scope.login = function () { $scope.UserService.login($scope.email, $scope.password) .then...
${namespace}.mapFunc=function () { // see http://cookbook.mongodb.org/patterns/count_tags/ if (!this.tags) { return; } for (index in this.tags) { emit(this.tags[index], 1); } } ${namespace}.reduceFunc=function (previous, current) { var count = 0; for (index in current) { ...
import { dedupingMixin } from '../utils/mixin.js'; // Common implementation for mixin & behavior function mutablePropertyChange(inst, property, value, old, mutableData) { let isObject; if (mutableData) { isObject = (typeof value === 'object' && value !== null); // Pull `old` for Objects from temp cache, bu...
import Immutable from "immutable"; import Constants from "./Events/Constants.json"; import Predicates from "./Predicates"; function getFiltered (todos, filter) { switch (filter) { case Constants.FILTER_ACTIVE: return todos.filterNot(Predicates.completed); case Constants.FILTER_COMPLE...
var s = require('./support'); var t = s.t; describe('maroon.loadConfigs', function() { it('should load configs from given directory', function() { var maroon = s.getMaroon(); maroon.loadConfigs(__dirname + '/fixtures/config'); t.ok(maroon.conf.get('database'), 'load database config'); ...
var breadcrumbs=[['-1',"",""],['2',"SOLUTION-WIDE PROPERTIES Reference","topic_0000000000000C16.html"],['2267',"Tlece.Recruitment.Models.RecruitmentPlanning Namespace","topic_0000000000000692.html"],['2333',"ApplicationDetailDto Class","topic_00000000000007D9.html"],['2334',"Properties","topic_00000000000007D9_props--....
import { defaultAction, } from '../actions'; import { DEFAULT_ACTION, } from '../constants'; describe('ProfilePage actions', () => { describe('Default Action', () => { it('has a type of DEFAULT_ACTION', () => { const expected = { type: DEFAULT_ACTION, }; expect(defaultAction()).toE...
import { createSelector } from 'reselect'; /** * Direct selector to the accountBox state domain */ const selectAccountBoxDomain = () => state => state.get('accountBox'); /** * Other specific selectors */ /** * Default selector used by AccountBox */ const selectAccountBox = () => createSelector( selectAccou...
const Rebase = require('../../../src/rebase'); var React = require('react'); var ReactDOM = require('react-dom'); var firebase = require('firebase'); var database = require('firebase/database'); var invalidEndpoints = require('../../fixtures/invalidEndpoints'); var dummyObjData = require('../../fixtures/dummyObjData')...
export { default } from 'dsember-core/components/items/detailed/item-metadatum-row';
// { "framework": "Vue" } /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /*****...
angular.module('phonegular.services') .run(['popupManager', function(popupManager) { if ('cordova' in window) { // Replaces only the alert function. Use popupManager for the other implementation /** * @param {String} message */ window.alert = function(message) { popupManager.alert(message); ...
/*! * Angular Material Design * https://github.com/angular/material * @license MIT * v1.1.1-master-70cecda */ function MdWhiteframeDirective(e){function a(a,n,o){var d="";o.$observe("mdWhiteframe",function(a){a=parseInt(a,10)||m,a!=r&&(a>i||a<t)&&(e.warn("md-whiteframe attribute value is invalid. It should be a nu...
angular .module('root') .factory('CommunicationFactory', function(DatabaseService, UtilityFactory, Gparams) { var _theData = {}; var _showFlag; var query = "id=" + Gparams.curUserID; DatabaseService.getRecipients(query) .then(function successCallback(response) { _theData = response.data.names...
/** * # Player type implementation of the game stages * Copyright(c) {YEAR} {AUTHOR} <{AUTHOR_EMAIL}> * MIT Licensed * * Each client type must extend / implement the stages defined in `game.stages`. * Upon connection each client is assigned a client type and it is automatically * setup with it. * * http://www....
function isolatedTwoWay() { return { restrict: 'E', scope: { dirName: '=name' }, template: '<p>Name: <input ng-model="dirName" /></p>' }; } export default isolatedTwoWay; export const name = 'nsIsolatedTwoWay';
/* global window */ import EventEmitter from '../sync/EventEmitter'; import SelectCoords from './SelectCoords'; import ActivityManager from './ActivityManager'; const ns = window.fivenations; export default { activate(entityManager, controlPanel) { const activity = ActivityManager.getInstance().start(SelectCoor...
import Ember from 'ember'; import moment from 'moment'; import layout from '../templates/components/ui-date-picker'; const { on, computed, generateGuid } = Ember; const { reads } = computed; /** * @module DatePickerDay * * Represents a day, binds computed properties to the date. */ const DatePickerDay = Em...
/* copy files from %scaffold% to newly created git repo replace %scaffold% to appname */ var fs=require('fs'); var argv=process.argv; var app=argv; app.shift();app.shift(); var appname=app[0]; var forcecreate=app.length>2 &&app[2]=='--overwrite'; var templatepath=(app[1]||"kse") +'/'; var path=require('path'); va...
var Fibers = Npm.require('fibers'); var Future = Npm.require('fibers/future'); var util = Npm.require('util'); var EventEmitter = Npm.require('events').EventEmitter; function Cursor(query, collection, options) { this._id = ++Cursor._instances; this.setMaxListeners(0); this._debug = Npm.require('debug')('sc:curso...
dm.VerticalListContentView = dm.View.clone().newSlots({ type: "dm.VerticalListContentView", items: [], selectedItemIndex: null, itemHMargin: 15, itemVMargin: 15, confirmsRemove: true, closeButton: null, }).setSlots({ init: function() { dm.View.init.call(this); this.setItems(this.items().copy()); if...
import React from 'react'; import ReactTestRenderer from 'react-test-renderer'; import 'styled-components-test-utils/lib/jest'; import theme from '../src/theme'; import InlineText from '../src/InlineText'; import * as utils from '../src/utils/'; describe('InlineText', () => { test('should render a InlineText', () =>...
//Kata: Rock Paper Scissors! //Problem Description //We need a function rockPaperScissors() that can receive two parameters with the move of each of the two players in the game "Rock Paper Scissors". //The possible values are : "PAPER", "SCISSORS" or "ROCK" //If the function is called with only one parameter the move o...
'use strict' const { encode, isFunction, isObject, isString } = require('./helpers') module.exports = class Redemptions { constructor (client, promotionsNamespace) { this.client = client this.promotions = promotionsNamespace } redeem (code, params, callback) { let context = {} const qs = {} ...
'use strict'; var url = require('url'), App = require('boomerang-app'), Scheduler = require('boomerang-scheduler'); require('rdf-jsonify')(rdf); var BoomerangModule = function (config) { var self = this, events, jsonify, context = {'@vocab': 'https://ns.bergnet.org/boomerang#'}; if (!('b...
// Generated on 2014-10-04 using generator-angular 0.9.5 '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 tasks au...
import {MeshPhongMaterial} from 'three'; import {CelestialFoundry} from './CelestialFoundry'; import { PlaneModule } from '@ammo:modules'; import { Plane } from '@whs+meshes'; import { PointLight, DirectionalLight, HemisphereLight } from '@whs+lights'; /** * StarSystem Class */ export class St...
let { Cc, Ci } = require('chrome'); var hashModule = (function () { var converter = Cc['@mozilla.org/intl/scriptableunicodeconverter'].createInstance(Ci.nsIScriptableUnicodeConverter); converter.charset = 'UTF-8'; // result is an out parameter, // result.value will contain the array length var resu...
/* * Definition of the array for zoom degree ranges. Used in zoomFromBounds. */ lvl_to_degree = [ 360.0, 180.0, 90.0, 45.0, 22.5, 11.25, 5.625, 2.813, 1.406, 0.703, 0.352, 0.176, 0.088, 0.044, 0.022, 0.011, 0.005, 0.003, 0.001, 0.0005, ]...
'use strict'; const jsonParser = require('body-parser').json(); const debug = require('debug')('decor8:comment-router'); const fs = require('fs'); const path = require('path'); const del = require('del'); const AWS = require('aws-sdk'); const multer = require('multer'); const Router = require('express').Router; const ...
import { fetchUser, fetchUserOrgs, fetchSearch, fetchChangeFollowStatus, fetchStarCount, v3, } from 'api'; import { GET_USER, GET_ORGS, GET_IS_FOLLOWING, GET_IS_FOLLOWER, GET_REPOSITORIES, GET_FOLLOWERS, GET_FOLLOWING, SEARCH_USER_REPOS, CHANGE_FOLLOW_STATUS, GET_STAR_COUNT, } from './us...
/** * tangular * @version v0.1.0 - 2014-03-20 * @link http://hall5714.github.io/tangular * @author Justin Hall () * @license MIT License, http://www.opensource.org/licenses/MIT */ 'use strict'; angular.module('hall5714.tng', ['hall5714.tng.relative']);
import path from 'path'; export default function chrome() { return { get command() { return path.resolve(__dirname, '../runners/chrome_runner'); }, output: 'stderr' }; }
var app = angular.module("config", []); /** * Constants */ app.constant("config", { appName: "IVE", appSubname: "CMS", appDevelopers: [{ name: "Nico Steffens", github: "nsteffens" }], appGithub: "https://github.com/nsteffens/IVE", appVersion: "v1.0", appLanguage: 'en_US', ...
'use strict'; const h = require('highland'); class Bounded { constructor(input) { this._input = input; } apply() { return h.through(h(this._input.getStream())); } }; exports.from = (input) => { return new Bounded(input); }
version https://git-lfs.github.com/spec/v1 oid sha256:a271e640e3b29b53e33fb8d011774f398b1b02c39882915edd2c365c2e87af90 size 1109
var assert = require("assert"); var roust = require(__dirname + '/../index.js'); describe('roust', function () { it('should return -1 when the value is not present', function () { var res = { send: function (value) { this.sent.push(value); }, sent: [] }; assert(roust); asser...