code
stringlengths
2
1.05M
// Global variables var css_settings = ['hide_left', 'no_margin_left', 'two_columns', 'hide_sidebar', 'hide_page_info']; var js_settings = ['remove_outbound_posts', 'remove_unrelated_posts']; //----------------------------------------------------------------------------- // Activate only on facebook pages chrome...
//集团用户 //在使用这个软件的时候,顺序是: //【1】打开这个软件的主页 //【2】注册一个集团用户,注册的时候,要输入指定的邀请码(目前有10个),指定集团名称 //【3】使用邀请码注册以后,就可以得到一个用户账号,这个账号对于这个集团来说是最高级别的管理员账号,可以处理一切 //【4】集团管理员接下来可以完善集团的信息,添加删除和更改相关资料 gGroups = new Mongo.Collection("groups"); //相关的域: //【1】title:集团名 //【2】inviteCode:邀请码
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["react-syntax-highlighter_languages_highlight_xml"],{ /***/ "./node_modules/highlight.js/lib/languages/xml.js": /*!********************************************************!*\ !*** ./node_modules/highlight.js/lib/languages/xml.js ***! \*****************...
this.osc = {}; (function(exports) { exports.path = function() { var path = {}; path.vals = []; path.append = function(freq) { path.vals.push(freq); return this; }; return path; }; exports.create = function(context) { var osc = {}; osc.raw = context.createOscillator(); osc.raw.connect(context....
// @flow import type { ConfigAction, ChangeNodeAction, ChangeLanguageAction, ChangeGasPriceAction } from 'actions/config'; import { languages, NODES } from '../config/data'; export type State = { // FIXME languageSelection: string, nodeSelection: string, gasPriceGwei: number }; export const INITIAL_ST...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.stringToCamelCase = stringToCamelCase; function stringToCamelCase(str) { return str.replace(/(_\w)/g, function (m) { return m[1].toUpperCase(); }); }
import { useCallback, useContext } from 'react'; import { useMutation } from '@apollo/react-hooks'; import gql from 'graphql-tag'; import { t } from 'ttag'; import Dialog from '@material-ui/core/Dialog'; import useMediaQuery from '@material-ui/core/useMediaQuery'; import useCurrentUser from 'lib/useCurrentUser'; impo...
/* ===================================================== _hidden.js ======================================================== */ (function($){ // jQuery no conflict 'use strict'; /* - - - - - - - - - - - - - - - - - - - - - - - - - - - Section - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ console...
'use strict'; import { isQuote } from '@emmetio/stream-reader-utils'; import Token from './token'; import interpolation from './interpolation'; /** * Consumes quoted string from current string and returns token with consumed * data or `null`, if string wasn’t consumed * @param {StreamReader} stream * @return {St...
var baseUrl = '/api'; export default { baseUrl: baseUrl, url: function(url){ return [ baseUrl + url ].join('/'); } };
import React, { PropTypes } from 'react'; import { push } from 'react-router-redux'; import { connect } from 'react-redux'; const DEFAULT_URL = '/login'; class Redirect extends React.Component { static propTypes = { dispatch: PropTypes.func.isRequired, route: PropTypes.object, params: PropTypes.object, ...
/// <reference path="../../scripts/typings/processing.d.ts" /> /* tslint:disable: no-unused-variable */ /* tslint:disable: comment-format */ 'use strict'; define(["require", "exports"], function (require, exports) { exports.sketch = function ($p) { $p.setup = function () { $p.size(640, 360); ...
// This helper remembers the size and position of your windows (and restores // them in that place after app relaunch). // Can be used for more than one window, just construct many // instances of it and give each different name. import { app, BrowserWindow, screen } from 'electron'; import jetpack from 'fs-jetpack'; ...
'use strict'; /** * Export shared utilities */ const { buildQuery, hasDeepFilters } = require('./build-query'); const parseMultipartData = require('./parse-multipart'); const parseType = require('./parse-type'); const policy = require('./policy'); const templateConfiguration = require('./template-configuration'); co...
import deepEqual from "deep-equal"; /* * stream constructor * constructor returns a stream * get the current value of stream like: stream.value */ export const stream = function(init_value) { let s = function(value) { update(s, value); return s; }; s.IS_STREAM = true; s.value = init_value; s.listene...
/* FILE: menu/modal/tapeSet.js Handles the modal menu for editing the tape set alphabet. -- elements Textbox to enter new characters into the tape set alphabet Save button Cancel button -- event Add new characters Cancel (handled implicitly by modal.js) */ /* Add constants in here. */ gModalMenu.tapeSet = {}; /* ...
'use strict'; var Utils = require('./utils') , _ = require('lodash') , DataTypes = require('./data-types') , SQLiteQueryInterface = require('./dialects/sqlite/query-interface') , Transaction = require('./transaction') , Promise = require('./promise') , QueryTypes = require('./query-types'); /* * The inte...
$(function () { // navigation - scroll to content $('.navigation .nav a').click(function (e) { e.preventDefault(); var href = $(this).attr('href'); var name = href.substring(1, href.length); var targetOffset = $('[name=' + name + ']').position().top; $('html,body').anima...
var path = require("path"); var webpack = require("webpack"); var autoprefixer = require('autoprefixer'); var PROD = (process.env.NODE_ENV == "production"); module.exports = { devtool: PROD ? "source-map" : "eval", entry: ["./src/index"], output: { path: path.join(__dirname, "dist"), filename: "apparat...
define("p3/widget/DataItemFormatter", [ 'dojo/_base/lang', 'dojo/date/locale', 'dojo/dom-construct', 'dojo/dom-class', 'dijit/form/Button', '../JobManager', 'dijit/TitlePane', './formatter', 'dojo/on', 'dojo/query', '../util/PathJoin', 'dojo/request', 'dojo/when', 'dojo/NodeList-traverse' ], function ( lang, lo...
'use strict'; var test = require('tape'); var jockey = require('..'); // // add(item) // test('throws if no `item`', function(t) { t.plan(2); var j = jockey(); t.throws(function() { j.add(); }); t.looseEqual(j.items, []); }); test('appends `item` to the end of the playlist', function(t) { t.plan(2);...
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- info: Value Property LOG10E of the Math Object has the attribute DontEnum es5id: 15.8.1.5_A2 description: Checking if Math.LOG10E property has the attribute DontEnum ---*/ // CHECK...
(function() { var Bacon, BufferingSource, Bus, CompositeUnsubscribe, Desc, Dispatcher, End, Error, Event, EventStream, Initial, Next, None, Observable, Property, PropertyDispatcher, Some, Source, UpdateBarrier, addPropertyInitValueToStream, assert, assertArray, assertEventStream, assertFunction, assertNoArguments, a...
// @flow import mongoose, { Schema } from 'mongoose'; const Artwork = new Schema({ _id: { type: Number, require: true, unique: true }, title: { type: String, require: true }, imageSource: { type: String, require: true }, description: { type: String, require: true }, }); export default mongoose.model('artwork...
'use strict'; var host = 'localhost', database = 'import'; module.exports = { host: host, database: database, db: "mongodb://" + host + "/" + database, enterprise_url: 'http://localhost:3002' }
autowatch = 1; function chord() { var chord = arrayfromargs(arguments)[0]; var root_pitch = get_root(chord); var symbol = chord.substring(root_pitch.length); var pitch_classes = get_pitch_classes(root_pitch, symbol); outlet(0, pitch_classes); } function get_root(c) { if (c.substring(1, 3) === "bb") { return ...
'use strict'; /* jshint indent: 2*/ // Set the jasmine fixture path // jasmine.getFixtures().fixturesPath = 'base/'; describe('ngCsv directive', function () { var $compile; var $rootScope; var $timeout; // Load the myApp module, which contains the directive beforeEach(module('ngCsv.directives')); // Sto...
require.ensure([], function(require) { require("./3.async.js"); require("./6.async.js"); require("./12.async.js"); require("./24.async.js"); }); module.exports = 25;
'use strict' const Log = require('../../src/log.js') class LogCreator { static async createLogWithSixteenEntries (ipfs, access, identities) { const create = async () => { let logA = new Log(ipfs, access, identities[0], 'X') let logB = new Log(ipfs, access, identities[1], 'X') let log3 = new Lo...
var renderer, camera; var scene, element; var ambient, point; var aspectRatio, windowHalf; var mouse, time; var controls; var clock; var useRift = false; var riftCam; var boxes = []; var core = []; var dataPackets = []; var ground, groundGeometry, groundMaterial; var bodyAngle; var bodyAxis; var bodyPosition; var...
import web3 from './web3'; import BlockChat from '/imports/lib/protocol/build/contracts/BlockChat.sol.js'; import KeyStore from '/imports/lib/protocol/build/contracts/KeyStore.sol.js'; import MessageStore from '/imports/lib/protocol/build/contracts/MessageStore.sol.js'; BlockChat.setProvider(web3.currentProvider); Ke...
/*! * Bootstrap v3.0.3 (http://getbootstrap.com) * Copyright 2013 Twitter, Inc. * Licensed under http://www.apache.org/licenses/LICENSE-2.0 */ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery") } /* ======================================================================== * Bootstra...
import canonize from './canonize'; const array = [ 'https://telegram.me/skillbranch', 'https://telegrqwe.me/skillbranch', 'https://telegrqwe.me/skillbranch123', 'Https://Telegram.me/skillbranch', 'Https://Telegram.mE/SkillBranch', 'Https://Telegram.me/SkillBranch', '//telegram.me/skillbranch', 'http://...
'use strict'; var chai = require('chai'); var should = chai.should(); var Field = require('../../lib/method/field'); var Scalar = require('../../lib/method/scalar'); describe('Field', function() { var f; beforeEach(function() { f = new Field('foo'); }); it('instantiates from constructor', function() { ...
module.exports = function(grunt, tasks) { var me = {}; var uri = grunt.app.config.uri; me.options = { debounceDelay: 500, livereload: grunt.app.config.livereloadPort, livereloadOnError: false, spawn: false }; me.files = [ uri.root + 'tests/*', uri.root + 'tests/**/*', uri.root + 'tests/**/**/*', ...
'use strict'; /** * Module dependencies */ // Public node modules. const _ = require('lodash'); const async = require('async'); /** * `Lusty.prototype.stop()` * * The inverse of `start()`, this method * shuts down all attached servers. * * It also unbinds listeners and terminates child processes. * * @api ...
import React from 'react' import { Link } from 'react-router' import { prefixLink } from 'gatsby-helpers' import Highlight from '../components/highlight' import {baseValLarge} from '../components/Item' export default class Index extends React.Component { render() { return ( <div> <h1 style={{padd...
define([ 'gc/MediaGallery/app/thumbView'], function(ThumbView) { var view = Backbone.View.extend({ el: $('#mediaGallery ul.thumbnails'), initialize: function(options) { var that = this; _.bindAll(this, 'render'); this.collection.bind('add', function(asset) { that....
window.pdfMake = window.pdfMake || {}; window.pdfMake.fonts = {"Lemon":{"normal":"Lemon-Regular.ttf","bold":"Lemon-Regular.ttf","italics":"Lemon-Regular.ttf","bolditalics":"Lemon-Regular.ttf"}};
define(['exports', 'module', 'react', 'classnames', './BootstrapMixin', './utils/ValidComponentChildren'], function (exports, module, _react, _classnames, _BootstrapMixin, _utilsValidComponentChildren) { /* eslint react/prop-types: [1, {ignore: ["children", "className", "bsStyle"]}]*/ /* BootstrapMixin contains `bs...
import React, {PropTypes, Children, cloneElement} from 'react' import {elementType, validateAccordionChildren} from './helpers' const containerStyle = { display: 'flex', position: 'fixed', left: 0, top: 0, bottom: 0 } export const Accordion = ({opened = {}, onChange = () => null, children, style}) => { co...
var noble = require('noble'); noble.startScanning(); noble.on('discover', function(peripheral){ console.log(peripheral); });
var MenuView = BaseItemView.extend({ template: "#menu-template", events: { "click #privateEvents": "privateEvents", "click #publicEvents": "publicEvents", "click #notificationsEvents": "notificationsEvents", "click #pullRequests": "pullRequests", "click #settings": ...
var jgb = jgb || {} jgb.Gameboy = function(romByteArray){ this.rom = new jgb.Rom(romByteArray) this.memoryBankControllers = new jgb.MemoryBankControllers(this.rom) this.memory = new jgb.MMU(this.memoryBankControllers) this.cpu = new jgb.LR35902(this.memory) this.start = function(){ //boot should start w...
import DbBase from './db_base'; import {PT_STORY_TRANSITION_SERVICE_SCHEMA} from './story_transition.api.service'; export default class PtStoryTransitionDbService extends DbBase { constructor(moment, $q, Lovefield) { 'ngInject'; super(moment, $q, Lovefield, 'story_transition', PT_STORY_TRANSITION_SERVICE_SCH...
define(["declare", "./all"], function(declare){ declare("djs.core.Validate : djs.core.Controller", "Map<string>", function(keys, self, parent){return { "pro set get mix value": undefined, "pro set get typ type": "mixed", "pro set get boo required": false, "pro all! Map<string> StringMap": undefined, "_...
export default function restrictInterval(value, min, max) { return Math.max(Math.min(value, max), min); }
'use strict'; angular.module('ngBookmarkApp') .filter('abbr', function () { return function (input) { if(input.length>32){ return input.slice(0,15)+'...'+input.slice(-11); } else{ return input; } }; });
import { Point, Physics, RandomDataGenerator, } from 'Phaser'; import _ from 'Underscore'; var RNG = new RandomDataGenerator(); // Should only be a factory, and have kill method (and static emitter) in asteroid class, // but it seems overkill in this case... class AsteroidFactory { constructor(game) { this.game...
'use strict' const activeCacheName = 'cyclops-v1' self.addEventListener('install', (e) => { const assets = [ '/', 'index.html', 'index.js', 'favicon.png', 'thumb-003.png', 'thumb-003.webp', 'thumb-004.png', 'thumb-004.webp' ] const action = caches.open(activeCacheName).then(cach...
var mysql = require('mysql'); var connPool = mysql.createPool( { connectionLimit : 100, //important host : 'localhost', user : '<enter user here>', password : '<enter password here>', database : 'oauth2_server', debug : false }); exports.connect = function(callback) { connPool...
/** * Local dependencies */ const Algorithm = require('./Algorithm') /** * EcKeyImportParams */ class EcKeyImportParams extends Algorithm { /** * Constructor */ constructor (params) { super(params) } } /** * Export */ module.exports = EcKeyImportParams
// flow-typed signature: 89f686783ce19b769b2e61473c9b2bc9 // flow-typed version: <<STUB>>/eslint-config-prettier_v^2.9.0/flow_v0.77.0 /** * This is an autogenerated libdef stub for: * * 'eslint-config-prettier' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to s...
describe('1st tests', function () { it('true is true', function () { expect(true).toEqual(true); }); it('null is not the same thing as undefined', function () { expect(null).not.toEqual(undefined); }); }); //# sourceMappingURL=simple.spec.js.map
/* globals Awesomplete */ const React = require('react'); const ReactDOM = require('react-dom'); // Dependencies import builder from 'focus-core/component/builder'; import types from 'focus-core/component/types'; let find = require('lodash/collection/find'); const InputText = require('../../components/input/text'); con...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = function (width, height, grid, font) { var step = grid.properties.get('step'); var colors = grid.properties.has('color') ? new _immutable.List([grid.properties.get('color')]) : grid.properties.get('colors'); var st...
/* ResponsiveVoice JS v1.4.0 (c) 2015 LearnBrite License: http://responsivevoice.org/license */ if("undefined"!=typeof responsiveVoice)console.log("ResponsiveVoice already loaded"),console.log(responsiveVoice);else var ResponsiveVoice=function(){var a=this;a.version="1.4.0";console.log("ResponsiveVoice r"+a.versi...
__history = [{"date":"Sun, 11 Jan 2015 16:53:43 GMT","sloc":12,"lloc":5,"functions":2,"deliveredBugs":0.04392317422778761,"maintainability":91.9236606905314,"lintErrors":[],"difficulty":6.8181818181818175},{"date":"Sun, 11 Jan 2015 16:54:12 GMT","sloc":12,"lloc":5,"functions":2,"deliveredBugs":0.04392317422778761,"main...
/* * Blue-dot library * http://github.com/fpicalausa/blue-dot * * Copyright (c) 2015 Francois Picalausa * Licensed under the MIT licenses. */ (function() { 'use strict'; var geolocation_options = { enableHighAccuracy: false, timeout: 8000, maximumAge: 3000 }; function LocationError(code, rea...
function deepEqual(obj1, obj2) { if (typeof obj1 === 'object') { console.log("in deepEqual object") if (Array.isArray(obj1) && Array.isArray(obj2)) { if (obj1.length !== obj2.length) { return false } for (var i = 0; i < obj1.length; i++) { if (obj1[i] !== obj2[i]) { ...
/* eslint-disable security/detect-non-literal-require */ /* eslint-disable import/no-dynamic-require */ /* eslint-disable node/global-require */ const fs = require("fs"); const path = require("path"); const json5 = require("json5"); const _get = require("lodash/get"); const _has = require("lodash/has"); const tryRequir...
PR2 = window.PR2 || {}; /** * A static class to store and retrieve user credentials, that is name and level (student/tutor) as well as role (creator/observer). * @class user * @static * @requires utils */ PR2.user = (function(self){ var $ = PR2.utils, user_credentials = {}, role_change_handler = func...
/* @flow */ import React from 'react'; import PropTypes from 'prop-types'; import { View, TouchableOpacity, Text, StyleSheet, Animated, ActivityIndicator, TouchableNativeFeedback, Platform } from 'react-native'; type Props = { textStyle: Object | number, disabledStyle: Object | number, children:...
'use strict'; var yeoman = require('yeoman-generator'); var chalk = require('chalk'); var yosay = require('yosay'); var _ = require('lodash'); var execSync = require('child_process').execSync; module.exports = yeoman.generators.Base.extend({ prompting: function () { var done = this.async(); var prompts = ...
Drafter = Class.create({ initialize: function(){ this.renderTools(); this.renderSettings(); this.renderStyle(); this.renderHTML(); this.idCount = 0; this.fSpan = 23; this.fAppend = 0; this.fPrepend = 0; this.fPull = 0; this.fPush = 0; }, renderStyle: function(){ Element.insert($("drafter_tools"...
'use strict'; const { createHmac } = require('crypto'); const { mapKeys, pickBy } = require('lodash'); const querystring = require('querystring'); const AWSAccount = require('../models/account'); const S3Error = require('../models/error'); const { RESPONSE_HEADERS } = require('./response-header-override'); const { ...
'use strict'; import angular from 'angular'; import LoginController from './login.controller'; export default angular.module('interestfeedApp.login', []) .controller('LoginController', LoginController) .name;
import util from "util"; import AWS from "aws-sdk"; let logs; // Log AWS SDK calls AWS.config.logger = { log: debug }; export default function debug() { logs.push({ date: new Date(), string: util.format.apply(null, arguments), }); } export function init(event, context) { logs = []; // Log API event...
'use strict'; import { isAlpha, isNumber } from '@emmetio/stream-reader-utils'; import Token from './token'; const HYPHEN = 45; const UNDERSCORE = 95; export default function ident(stream) { return eatIdent(stream) && new Token(stream, 'ident'); } export function eatIdent(stream) { const start = stream.pos; ...
'use strict'; angular.module('teknoserviceApp') .factory('MonitoringService', function ($rootScope, $http) { return { getMetrics: function () { return $http.get('metrics/metrics').then(function (response) { return response.data; }); ...
!(function(){ var sajax = window.sajax = {}; //命名空间 sajax.get = function(url,json,callback){ // 兼容ie6 if (window.XMLHttpRequest) { var xhr = new XMLHttpRequest(); }else { var xhr = new ActiveXObject("Microsoft.XMLHTTP"); } ...
/** * Clean files and folders. * * --------------------------------------------------------------- * * This grunt task is configured to clean out the contents in the .tmp/public of your * sails project. * * For usage docs see: * https://github.com/gruntjs/grunt-contrib-clean */ module.exports = function(gru...
const program = require('commander') const _ = require('lodash') const pkg = require('./package.json') const version = pkg.version const { redux, component, feature, config, scaffold } = require('./src') program .version(version) program .name('node-react') .usage('[command] [options]') program .command('r...
'use strict'; var should = require('should'), request = require('supertest'), app = require('../../server'), mongoose = require('mongoose'), User = mongoose.model('User'), Time = mongoose.model('Time'), agent = request.agent(app); /** * Globals */ var credentials, user, time; /** * Time routes tests */ des...
/* global __dirname */ var gulp = require('gulp'); var browserify = require('browserify'); var source = require('vinyl-source-stream'); var reactify = require('reactify'); gulp.task('static', function(){ 'use strict'; gulp.src(['src/index.html', 'src/css/app.css']) .pipe(gulp.dest('./www')); }); gulp.task('js',...
module.exports = { src: '/img.jpg', height: 24, width: 24, blurDataURL: 'data:image/png;base64,imagedata', }
'use strict'; module.exports = function(app) { var users = require('../../app/controllers/users.server.controller'); var pets = require('../../app/controllers/pets.server.controller'); // Pets Routes app.route('/pet/:petSlug') .get(pets.read); app.route('/pets') .get(pets.list) .post(users.requiresLog...
'use strict'; var React = require('react-native'); var styles = require('./components/styleSheet'); var IndexView = require('./components/indexView'); var NavBar = require('./components/navBar'); var ArticleDetail = require('./components/articleDetail'); var { AppRegistry, Navigator, Text, ...
define(['angular'],function(angular){ var helloModule = angular.module('helloModule',[]); helloModule.controller('HelloCtrl',function(){ this.message ='hello'; }); return helloModule; })
"use strict"; import Element from "./element"; import ReactClass from "./reactClass"; import ReactComponent from "./reactComponent"; import ReactClassElement from "./element/react/class"; import ReactFunctionElement from "./element/react/function"; import ReactComponentElement from "./element/react/component"; import ...
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiL1VzZXJzL3NoYW5ub25iZXJ0dWNjaS8uYXRvbS9wYWNrYWdlcy9hdG9tLXR5cGVzY3JpcHQvbGliL3R5cGluZ3Mvc3RhdHVzX2Jhci5kLnRzIiwic291cmNlcyI6WyIvVXNlcnMvc2hhbm5vbmJlcnR1Y2NpLy5hdG9tL3BhY2thZ2VzL2F0b20tdHlwZXNjcmlwdC9saWIvdHlwaW5ncy9zdGF0dXNfYmFyLmQudHMiXSwibm...
// RoDI (Robot Didactico Inalambrico) var robot_ip = '192.168.4.1'; var robot_port = '1234'; var Request = function() {}; Request.get = function(url) { console.log(url); var xmlhttp; if (window.XMLHttpRequest) { xmlhttp = new XMLHttpRequest(); } else { // code for older browsers xmlhttp = new Acti...
const chai = require('chai'); const expect = chai.expect; const R = require('ramda'); const command = require('../src/command'); const commands = require('../src/commands'); const constants = require('../src/constants'); const greeting = () => 'Hello'; const testCommands = { hi: commands.buildCommand(greeting) }...
/* * GruntDemo * https://github.com/dreamsky/grunt-demo * * Copyright (c) 2013 Hongbo Li * Licensed under the MIT license. */ (function($) { // Collection method. $.fn.awesome = function() { return this.each(function() { $(this).html('awesome'); }); }; // Static method. ...
import Ember from 'ember'; import layout from '../templates/components/e3-container'; import Group from '../utils/shadow/group'; import e3AnimatedChild from './e3-animated-child'; import meta from '../mixins/e3-meta'; const {get, set, computed} = Ember; export default e3AnimatedChild.extend(meta, { shadowType: 'grou...
/** error ( errorType: String ) Return Type: Function 指定错误类型的错误函数 Description: 错误类型生成器,你可以使用此函数生成一个特定类型的错误生成器,在抛出错误异常时使用特定生成的错误生成器抛出特定的错误类型 eg: let exampleErr = error("example"); exampleErr("code", "这是一个示例错误"); console: [example:code]这是一个示例错误 如果没有传入moduleName或moduleName为空,则在使用此错误生成器时在中括号内不会显示模块名称,而是直接...
/* * Copyright (c) André Bargull * Alle Rechte vorbehalten / All Rights Reserved. Use is subject to license terms. * * <https://github.com/anba/es6draft> */ const { assertSame, assertTrue, assertDataProperty } = Assert; function assertFunctionName(f, name) { return assertDataProperty(f, "name", {value: name,...
var _ = require('underscore'); var KeenRequests = require('./requests'); /*! * ----------------- * Keen IO Query JS * ----------------- */ var Keen = {}; // ------------------------------ // Keen.Request // ------------------------------ Keen.Request = function(){ this.data = {}; this.configure.apply(this, argu...
const { schema } = require('./common') const stringWithLength = require('@bugsnag/core/lib/validators/string-with-length') const ALLOWED_IN_RENDERER = [ // a list of config keys that are allowed to be supplied to the renderer client // this must be kept in sync with the typescript "AllowedRendererConfig" type 'o...
import { BufferGeometry, Float32BufferAttribute, Geometry, Vector3 } from "../../../build/three.module.js"; /** * Simplification Geometry Modifier * - based on code and technique * - by Stan Melax in 1998 * - Progressive Mesh type Polygon Reduction Algorithm * - http://www.melax.com/polychop/ */ va...
function calculateRisk() { var selectSymbol= document.getElementById("selectSymbol").value; var enterPrice = parseFloat(document.getElementById("enterPrice").value); var stopLose = parseFloat(document.getElementById("stopPrice").value); var volume = parseFloat(document.getElementById("volume").val...
/** * Development configurations * @module development */ 'use strict' // npm modules const ip = require('ip') // Environment class const Environment = require('./environment') /** * Class representing a development configurations * @extends Environment */ module.exports = class Development extends Environment...
/* eslint-env mocha */ /* eslint-disable no-unused-expressions, no-underscore-dangle, import/no-duplicates */ import { expect } from 'chai'; import proxyquire from 'proxyquire'; import configureStore from 'redux-mock-store'; import mockEsmodule from '../../../../test/mockEsmodule'; const proxyquireStrict = proxyquire...
// // var http = require('http'); var path = require('path'); var jsdom = require('jsdom'); //still need to add authentication to mongodb var databaseURI = "mongodb://127.0.0.1:27017"; var mongojs = require('mongojs'); var db = mongojs(databaseURI,["test"]); var acceptedFields = [ "Description", "Type", "Related...
#!/usr/bin/env node const { resolve } = require('path') const { branch } = require('git-rev') const { cyan, gray, red, bold } = require('chalk') const { name: moduleName } = require(resolve(process.cwd(), 'package.json')) const limit = 63 branch(branchName => { const url = `${moduleName}-${branchName}.meteorapp.co...
if (process.env['COVERAGE']) { console.log('COVERAGE mode is on'); global.sourcePath = __dirname + '/../.tmp/'; } else { global.sourcePath = __dirname + '/../src/' } var chai = require('chai'); var sinon = require('sinon'); var proxyquire = require('proxyquire') chai.use(require('sinon-chai')); chai.shou...
/** * Copyright © 2016-present Giddy. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ /* eslint-env jest */ import { assignType, getType, mapTo, mapToMany, mapToValues } from '../'; describe('utils', () => { test('assignType(...
version https://git-lfs.github.com/spec/v1 oid sha256:8f67ffe7b4def3546145c4e8574d3815d24fbbd4a1254c6bc33e51545991b9c9 size 1237
angular.module('wishlists').controller('logInPageCtrl', ['$scope', 'Auth', '$location', 'SessionStorage', '$http', 'RoutingService', function($scope, Auth, $location, SessionStorage, $http, RoutingService) { // $http.get('http://localhost:5000/users') // .success(function(data) { // console.log(data); // }); ...
module.exports = { ok: 'Ok', cancel: 'Cancel' }