code
stringlengths
2
1.05M
var states = require('./states'); var transitions = require('./transitions'); module.exports = function(settings) { return { states: states(settings), transitions: transitions(settings) }; };
(function(window) { 'use strict'; var proto = Object.create(HTMLElement.prototype); var template = `<style scoped> #container { position: relative; width: 100%; height: 100%; overflow: hidden; -moz-user-select: none; } #container > iframe { border: none; display: none; position: ...
// Copy files required require('!!file?name=man.obj!../static-files/man.obj') //create the rendering context var GL = require('../../litegl.js'); var glm = GL.glmatrix, mat3=glm.mat3, mat4=glm.mat4, vec2=glm.vec2, vec3=glm.vec3, vec4=glm.vec4, quat=glm.quat; function init() { //create the rendering ...
import io from "socket.io-client"; import configureStore from "../store/configureStore"; import * as actions from "../actions/gameActions"; import * as types from "../constants/ActionTypes"; const socket = io(`${location.protocol}//${location.hostname}:1337`); var store = null; export default class Socket { construc...
var assert = require('assert'); var RouteManager = require('../public/js/libs/RouteManager'); describe('RouteManager', function(){ it('match without error', function(){ var AppClass = function(){}; RouteManager.clear(); RouteManager.register("/product/hotel", AppClass); var router1 = RouteManager.match("/p...
/** * Copyright 2012-2020, 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'; var isNumeric = require('fast-isnumeric'); var calcColorscale = require('../scatter/colorscale_calc'); var arr...
import { expect } from 'chai' import sinon from 'sinon' import React from 'react' import { shallow } from 'enzyme' import FuelingEntry from './fueling-entry' function setup(fueling, onEdit = () => {}, onDelete = () => {}) { const props = { fueling: { aboveAverageMPG: () => {}, belowAverageMPG: () => ...
// flow-typed signature: c263432e5bdd0e5a8dcb666912da1d7d // flow-typed version: <<STUB>>/babel-cli_v6.24.0/flow_v0.41.0 /** * This is an autogenerated libdef stub for: * * 'babel-cli' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share your work with the ...
const istanbul = require('rollup-plugin-istanbul'); const nodeResolve = require('rollup-plugin-node-resolve'); const commonjs = require('rollup-plugin-commonjs'); const babel = require('rollup-plugin-babel'); module.exports = function (karma) { karma.set({ // base path that will be used to resolve all patterns (...
var searchData= [ ['c',['c',['../classEnsamZ.html#acaf0abd779c93cffd483f6e1639df397',1,'EnsamZ']]], ['cadaviso',['cadAviso',['../classZero_1_1Compilador.html#a98b102658cf06775c4e1b0bd45ed3a7e',1,'Zero::Compilador']]], ['cads',['cads',['../classZero_1_1Zero__String__.html#a115047386d0398bf432c291423956b9c',1,'Zero...
"use strict"; var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); exports.__esModule = true; exports.default = void 0; var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/exte...
// @flow // // Copyright (c) 2018 DDN. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. import flatMapChanges from "@iml/flat-map-changes"; import getMemoryUsageStream from "./get-memory-usage-stream.js"; import { formatBytes } from "@iml/nu...
/* ################################################################################################### DOM MANIPULATION CHALLENGE WE WORKED ON THIS CHALLENGE: Bruno Zatta & Lars Johnson PLEASE NOTE THAT WE ALSO COMPLETED CHALLENGE 9.3.2: INTRODUCTION TO JQUERY (IN A SEPARATE DIRECTORY) THIS FILE ADDS JAVASCRIPT TO H...
(function() { 'use strict'; angular .module('comantApp') .run(initializeSession); initializeSession.$inject = ['session', '$http', '$rootScope']; //If we have a saved token, restore our session. function initializeSession(session, $http, $rootScope) { if (session.getAuthToken()) { $http.g...
const path = require('path') const execSync = require('child_process').execSync const pascalCase = require('pascal-case') process.chdir(path.resolve(__dirname, '..')) const exec = (command, extraEnv) => execSync(command, { stdio: 'inherit', env: Object.assign({}, process.env, extraEnv) }) const packageNa...
'use strict'; /*! * Collection * https://github.com/kobezzza/Collection * * Released under the MIT license * https://github.com/kobezzza/Collection/blob/master/LICENSE */ Object.defineProperty(exports, "__esModule", { value: true }); exports.Collection = Collection; exports.P = P; exports.default = $C; var _g...
var spiralLooperSketch = function( sl ) { var canvas, radius, theta0, theta1, x, y; sl.setup = function() { canvas = sl.createCanvas(500, 500); canvas.id("spiral-looper"); canvas.mousePressed(sl.newSpiral); sl.frameRate(10); sl.background(0); sl.noFill(); sl.stroke(255); sl.smooth...
module.exports = { test: 'test from folder with test config', var: process.env.TEST_VAR, };
((bbn) => { let script = document.createElement('script'); script.innerHTML = `<div :class="['bbn-overlay', 'bbn-padded', 'bbn-middle', componentClass, 'bbn-alt-background']" :style="'background-color:' + bgColor" > <div class="loader-animation"> <div class="bbn-block bbn-nl"> <div class="sk-pla...
import Enum from '../../lib/Enum'; import { moduleActionTypes } from '../../enums/moduleActionTypes'; export default new Enum( [ ...Object.keys(moduleActionTypes), 'clean', 'updateEmail', 'updateTopic', 'updateSubject', 'updateDescription', ], 'feedback', );
var keystone = require('keystone'); var async = require('async'); var Home = keystone.list('Home'); var HappyClients = keystone.list('HappyClients'); exports = module.exports = function (req, res) { var view = new keystone.View(req, res); var locals = res.locals; locals.section = 'home'; locals.section = 'happyC...
import { createStore, applyMiddleware } from 'redux'; import thunk from 'redux-thunk'; import reducers from './reducers'; const store = createStore(reducers, applyMiddleware(thunk)); //store.subscribe(() => console.log(store.getState())) export default store
datab = [{},{"Application Entity":{"colspan":"1","rowspan":"1","text":"DICOMSRV"},"Default AE Title":{"colspan":"1","rowspan":"1","text":"Must be configured"},"Default TCP/IP Port":{"colspan":"1","rowspan":"1","text":"104"}}];
import Promise from 'bluebird'; import fs from 'fs'; Promise.promisifyAll(fs); const RAW_DATA_FILE = 'data'; /** * Include any raw compilation data as a 'data' file */ function includeRawDataFile(includedFiles, files, entryFilename, data) { let orderedFiles = includedFiles; if(entryFilename === RAW_DATA_FILE ...
import { combineReducers } from 'redux' import count from './count/index' import calc from './calc/index' import misc from './misc/index' import routing from './routing/index' export default combineReducers({ count, calc, misc, routing })
Ember.Handlebars.helper('time', function(value, options) { if (typeof value === "undefined" || value === 0) { return new Handlebars.SafeString("&mdash;"); } return new Handlebars.SafeString((value * 1000).toFixed(3) + 'ms'); });
/** * */ import angularCookie from 'angular-cookies'; import angularTranslate from 'angular-translate'; import dynamicLocale from 'angular-dynamic-locale'; import 'angular-translate/dist/angular-translate-loader-static-files/angular-translate-loader-static-files'; import 'angular-translate/dist/angular-translate-st...
var restify = require('restify'); var util = require('util'); var NotFoundError = function (message, userMessage) { restify.RestError.call(this, { restCode: 'NotFoundError', statusCode: 404, message: message, constructorOpt: NotFoundError }); this.name = 'NotFoundError'; this.body.userMessage ...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import styles from './../styles/styles'; // class StepBox extends Component { // constructor() { // super(); // } // render() { // return ( // <div className="step-box" style={ styles.stepBox }> // </div> // ) // } // } ...
import React from 'react' import { moneyFormat } from '../../../modules/helpers' import './shop.scss' import { Link } from 'react-router' const Product = ({id, price, name, description, onAddToCart}) => ( <div className="product-box"> <h3>{name}</h3> <p>{description}</p> <section className="bottom"> ...
'use strict'; describe('Todo controller', function () { var todoCtrl; var scope; var $httpBackend; beforeEach(module('todo.controllers')); beforeEach(inject(function(_$httpBackend_) { $httpBackend = _$httpBackend_; })); afterEach(function() { $httpBackend.verifyNoOutstand...
import Tether from 'tether'; // Controls which events are mapped for each named trigger, and the expected popover behavior for each. const TRIGGER_LISTENERS = { click: {click: 'toggle'}, hover: {mouseenter: 'show', mouseleave: 'hide'}, focus: {focus: 'show', blur: 'hide'} }; const PLACEMENT_PARAMS = { t...
/** * Pair. * * MIT License * Copyright (c) 2015 notrubp@gmail.com * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use,...
var $ = require('tinyselector'); require('./dnd.less'); function DnD(part, dom) { var el = $(dom); var marker = $('<div class="ff-dnd-marker ff-acc"></div>'); function move(target, y) { if( !target ) return; if( y < $.util.offset(target, true).top + (target.offsetHeight / 2) ) { marker.ins...
const dbIngredient = require('../../models/ingredient.js'); const router = require('express').Router(); const renderError = require('../utils.js'); router.post('/', (request, response, next) => { dbIngredient.createIngredient(request.body) .then(function(ingredient) { if (ingredient) return response.redirect(`...
'use strict'; describe('Accounts E2E Tests:', function () { describe('Test Accounts page', function () { it('Should report missing credentials', function () { browser.get('http://localhost:3001/accounts'); expect(element.all(by.repeater('account in accounts')).count()).toEqual(0); }); }...
import { last, isEmpty } from 'lodash'; import { getNodeByIndex } from './getNodeByIndex'; export function getNewIndex(node, remoteBookmarks) { // console.log('node in get NewIndex', node); const bookmarkNode = getNodeByIndex(node.data.index, remoteBookmarks); // console.log('bookmarkNode', bookmarkNode); let ...
/** /** * 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 { GraphQLList as ListType, GraphQLString as...
var TaskScheduler = require('../../lib/taskScheduler.js'); var ConfigParser = require('../../lib/configParser'); describe('the task scheduler', function() { it('should schedule single capability tests', function() { var toAdd = { specs: [ 'spec/unit/data/fakespecA.js', 'spec/unit/data/fake...
import React, { PropTypes } from 'react'; import List from 'components/BasicList'; import ListItem from 'components/ListItem'; function Element({ error, onClick = () => {}, component, payload }) { if (error !== false) { const ErrorComponent = () => ( <ListItem item={'Something went wrong, please try again...
import React from 'react'; const Resume = () => { const content = ( <span> <h2>Curriculum Vitae</h2> <p> Sed quis mattis turpis. Ut vitae finibus sem. Donec scelerisque nec nisi non malesuada. Praesent mattis lacus quis diam imperdiet rhoncus. Ut porta efficitur magna, quis pretium magn...
/* AngularJS v1.3.14-build.46+sha.4d65ddd (c) 2010-2014 Google, Inc. http://angularjs.org License: MIT */ (function (q, d, C) { 'use strict'; function v(r, k, h) { return { restrict: "ECA", terminal: !0, priority: 400, transclude: "element", link: function (a, f, b, c, y) { f...
/** * Created by isattrash on 8/30/16. */ import React from 'react'; import InputValidator from '../../InputValidator/InputValidator'; class NumericInput extends InputValidator { constructor(props) { super(props); } render() { return ( <div className={'relative-pos form-gro...
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */ /* Copyright 2012 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the ...
googletag.cmd.push(function () { googletag.defineSlot('/423694368/Life_728x90_2', [[320, 50], [728, 90]], 'div-gpt-ad-1428996122964-0').addService(googletag.pubads()); googletag.defineSlot('/423694368/Life_728x90_3', [728, 90], 'div-gpt-ad-1428996122964-1').addService(googletag.pubads()); googletag.defineSl...
/** * A user clears his estimation value for a certain story. * Users may only clear estimation for the currently selected story. */ const clearStoryEstimateCommandHandler = { existingRoom: true, preCondition: (room, command, userId) => { if (command.payload.userId !== userId) { throw new Error('Can on...
const booleanToLabel = boolean => ({ label: boolean ? "✓" : "✗", supported: !!boolean }) function targetToRow({supports}) { const {embedCode, plugin, insertInto = {}} = supports return [ embedCode, plugin, insertInto.head, insertInto.body ].map(booleanToLabel) } function rowTemplate(html, {...
module.exports = { name: "group", ns: "object", async: true, description: "Groups input into an array", phrases: { active: "Grouping object" }, ports: { input: { xin: { title: "In Group", type: "any", fn: function __XIN__(data, source, state, input, $, output, chix_gr...
$wnd.showcase.runAsyncCallback2("function eYb(){}\nOCb(422,1,bRc,eYb);_.Sc=function fYb(a){$wnd.alert('Stop poking me!')};var Ssb=VBc(wRc,'CwBasicButton/1',422);OCb(423,1,kRc);_.Bc=function iYb(){var a,b,c;bFb(this.a,(a=new Glc,a.e[KSc]=10,b=new jec('Normal Button',new eYb),Vuc((bbc(),b.hb),'','cwBasicButton-normal'),D...
/*! * jQuery JavaScript Library v2.1.0 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2014-01-23T21:10Z */ (function( global, factory ) { i...
function calculateAreaAndPerimeter(sideA, sideB) { let area = sideA * sideB; let perimeter = 2 * (sideA + sideB); console.log(area); console.log(perimeter); }
console.log('3. scan2.js: running');
/** A QuestionnaireItem that stores the current URL of the web browser. @class QuestionnaireItemSystemURL @augments UIElement @augments UIElementInteractive @augments QuestionnaireItem @augments QuestionnaireItemSystem @augments QuestionnaireItemSystemConst */ class QuestionnaireItemSystemURL extends QuestionnaireItem...
//Meteor.subscribe('a_collection'); searchTextPatients = new ReactiveVar(); searchTextPatients.set(''); Tracker.autorun(function() { Meteor.subscribe('patients', searchTextPatients.get()); }); searchTextVisits = new ReactiveVar(); searchTextVisits.set(''); Tracker.autorun(function() { Meteor.subscribe('visits',...
import { moduleFor, test } from 'ember-qunit'; moduleFor('route:trivium', 'TriviumRoute', { // Specify the other units that are required for this test. // needs: ['controller:foo'] }); test('it exists', function() { var route = this.subject(); ok(route); });
(function(ns){ var Shade = require("../../../interfaces.js"); var Syntax = require('estraverse').Syntax; var Tools = require("../../tools.js"); var common = require("../../../base/common.js"); var ANNO = common.ANNO; var MathConstants = ["E", "PI", "LN2", "LOG2E", "LOG10E", "PI", "SQRT1_2", ...
import commonjs from 'rollup-plugin-commonjs'; import json from 'rollup-plugin-json'; import nodeResolve from 'rollup-plugin-node-resolve'; import rollup from 'rollup'; import uglify from 'rollup-plugin-uglify'; export default { entry: 'src/main-aot.js', //use AOT optimized code dest: 'build/main.js', // output a...
'use strict'; 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]; } } } return target; }; function _objectWithoutProperties(obj, keys) {...
var dependencies = [ 'ember', 'jquery', 'text!modules/catalog/common/components/filtersPanel/templates/filtersPanel.hbs' ]; define(dependencies, function(Ember, $, template) { var filtersPanelComponent = Ember.Component.extend({ template: Ember.Handlebars.compile(template), didInsertElement : function() { ...
module.exports = Point; var util = require('util'); var Geometry = require('./geometry'); var Types = require('./types'); var BinaryWriter = require('./binarywriter'); var ZigZag = require('./zigzag.js'); function Point(x, y) { Geometry.call(this); this.x = x; this.y = y; } util.inherits(Point, Geometr...
var assert = function(statement) { if (statement === false) throw "error"; } var assertEqual = function(expected, actual) { if (expected !== actual) throw("Error: " + actual + " should have been " + expected); }; var tests = []; var test = function(description, test) { tests.push([description, test]); } var...
var config = require('./config'); var log = require('./utils/logger')(); var AWSConnector = require('aws-connector'); var s3 = module.exports = function S3ConnectorConstructor(bucketName) { var AWS_AUTH = config.S3.auth; var BUCKET_NAME = bucketName || config.S3.bucket; AWSConnector.s3.configure(AWS_AUTH)...
const WebpackDevServer = require('webpack-dev-server'); const webpack = require('webpack'); const config = require('./webpack-examples-server.config'); const port = process.env.PORT || 3000; var server = new WebpackDevServer(webpack(config), { contentBase: 'examples', stats: { colors: true, }, }); server.l...
// All symbols in the `Psalter_Pahlavi` script as per Unicode v10.0.0: [ '\uD802\uDF80', '\uD802\uDF81', '\uD802\uDF82', '\uD802\uDF83', '\uD802\uDF84', '\uD802\uDF85', '\uD802\uDF86', '\uD802\uDF87', '\uD802\uDF88', '\uD802\uDF89', '\uD802\uDF8A', '\uD802\uDF8B', '\uD802\uDF8C', '\uD802\uDF8D', '\uD802\...
var crunch = require("number-crunch"); var util = require("./util.js"); var memPool = {}; var identifier = {}; var TRUE_ID = util.genUUID(); var FALSE_ID = util.genUUID(); BOOL_TRUE = { "type" : "boolean", "content" : true }; BOOL_FALSE = { "type" : "boolean", "content" : false }; memPool[TRUE_ID] = BOOL_TRUE; memPoo...
var UriCell = Backgrid.UriCell.extend({ render: function () { this.$el.empty(); var rawValue = this.model.get(this.column.get("name")); var formattedValue = this.formatter.fromRaw(rawValue, this.model); var href = _.isFunction(this.column.get("href")) ? this.column.get('href')(rawValue,...
'use strict' const Hapi = require('hapi') // create new server instance const server = new Hapi.Server() // add server’s connection information server.connection({ host: 'localhost', port: 3000 }) // register plugins to server instance server.register([ { register: require('vision') }, { register:...
// Opt in to strict mode of JavaScript, [ref](http://is.gd/3Bg9QR) // Use this statement, you can stay away from several frequent mistakes 'use strict'; var Dyer = require("dyer"); var Event = require("emitter"); function Inspector(opt){ var doc = this.doc = opt.doc || document; var every = opt.every; v...
/* global angular */ var app = angular.module('nbaRoutes', ['ngRoute']); app.config(function($routeProvider, $httpProvider){ $httpProvider.interceptors.push('httpRequestInterceptor'); //router here $routeProvider .when('/', { controller: 'homeCtrl', templateUrl: 'js/home/homeTmpl.html' }) .when('/team...
/** * Capture la page demandée/ * @param {object} request - La requête HTTP. * @param {object} reply - La response HTTP. * @return {undefined} */ function testPhantomHandler(request, reply) { try{ var phantom = require('phantom'); phantom.create(function(ph) { ph.createPage(function(page) { pa...
import React from 'react'; import { GoogleMapLoader, GoogleMap, Marker } from 'react-google-maps'; const noop = () => {}; // Wrap all `react-google-maps` components with `withGoogleMap` HOC // and name it GettingStartedGoogleMap const Map = ({ lat, lng, onMapLoad, marker, onMapClick = noop, containerElementProps }) ...
git://github.com/niklasramo/popo.js.git
$(function () { // レポート登録画面 $(".private-setting-report-register #submitBtn").on("click", function (e) { var reportName = $("#reportName").val(); var description = $("#description").val(); var templateId = $("#templateId").val(); var groups = []; $("input[name=group]:checkbox").each(function(){ ...
import Webiny from 'webiny'; import _ from 'lodash'; import ApiResponse from './Response'; import Http from './../Http/Http'; function handleResponse(response) { return new ApiResponse(response); } function sanitize(url) { url = _.trimStart(url, '/ '); return url.length ? '/' + url : ''; } class Base { ...
// angular.module is a global place for creating, registering and retrieving Angular modules // 'collaborate' is the name of this angular module example (also set in a <body> attribute in index.html) // the 2nd parameter is an array of 'requires' // 'collaborate.services' is found in services.js // 'collaborate.control...
!function(){ "use strict"; var oCanvasElm = document.getElementById("terrain"), ctx = oCanvasElm.getContext("2d"); function setCanvasSize( width, height ){ ctx.canvas.width = width; ctx.canvas.height = height; } function clearCanvas(){ ctx.clearRect(0,0,ctx.canva...
WAF.onAfterInit = function onAfterInit() {// @lock // @region namespaceDeclaration// @startlock var documentEvent = {}; // @document // @endregion// @endlock // eventHandlers// @lock documentEvent.onLoad = function documentEvent_onLoad (event)// @startlock {// @endlock console.log('creating app'); new M...
var searchData= [ ['dragon',['Dragon',['../classDragon.html',1,'Dragon'],['../classDragon.html#a90a16818942945b821127173aedeeffa',1,'Dragon::Dragon()']]] ];
export const formFieldsValidator = function (_) { 'ngInject'; const service = {}; service.validate = function (fields) { const errors = []; if (_.isNull(fields) || _.isEmpty(fields)) { errors.push('No form fields have been specified. Specify at least one.'); } else { const uniq = _.uniq...
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ "use strict"; // Include required modules var { assert, expect } = require("../../../../lib/assertions"); var tab...
var robot = { //MY ROBOT PROPERTIES - WHAT YOUR ROBOT HAS colour: 'blue', name: 'Engelbert', type: '', vocabulary: [ " :Hello master!", " :How may I serve you?", " :Have a good day", " :Salaam fam", " :What's cooking good looking?", " :Salaam vat my saam", ], inventory: [], //...
'use strict'; require('services/data_resolver');
(function(){ "use strict"; var root = this, Chart = root.Chart, helpers = Chart.helpers; var defaultConfig = { //Use a second Y scale scaleUse2Y: true, //Boolean - Whether the scale should start at zero, or an order of magnitude down from the lowest value scaleBeginAtZero : true, //Boolean - Whet...
var WebpackIsomorphicToolsPlugin = require('webpack-isomorphic-tools/plugin'); // see this link for more info on what all of this means // https://github.com/halt-hammerzeit/webpack-isomorphic-tools module.exports = { // when adding "js" extension to asset types // and then enabling debug mode, it may cause a we...
(function(ngModule){ var MainController = function($scope, $http, headline, pageName){ var pageLoadInfo = {title: pageName, date: new Date()}; $scope.headline = headline; $http.post('/api/pageload/add', pageLoadInfo).success(function(){ console.log("Page view for " + pageName + " sent to analytics r...
function SinDemo(dim){ var dim=dim; var space= new EucSpace(dim); var stage= new Stage(space); // stage.addAxes(); var res=7; if(dim==4){ res = 5; } if(dim>4){ res=3; } var grid=new SquareGrid(dim-1,400,res); var map=new SinEuc(dim-1,1,0); stage.newRopes(map.toEucLinesList...
/** * @author Slayvin / http://slayvin.net * @author Stemkoski / http://www.adelphi.edu/~stemkoski */ THREE.ShaderLib['mirror'] = { uniforms: { "mirrorColor": { type: "c", value: new THREE.Color(0x7F7F7F) }, "mirrorSampler": { type: "t", value: null }, "baseTexture": { type: "t", value: null }, ...
import Ember from 'ember'; import SessionCore from './session-core'; const RECONNECT_MSG_UPDATE_INTERVAL = 1000; const FIRST_RECONNECT_INTERVAL = 5*1000; const MAX_RECONNECT_INTERVAL = 60*1000; const RECONNECTION_TIMEOUT = 30*1000; const MAX_RECONNECT_TRIES = 10; /** * An implementation of ember-simple-auth session ...
angular .module('app.core') .constant('API', 'http://localhost:8000');
var eb = require("vertx/event_bus"); var console = require("vertx/console"); var vertx = require("vertx") eb.registerHandler("message", function(message,reply) { console.log("message: " , message); var a = {}; var response = "resp"; a["content-length"] = response.length; a['x-response-body'] = resp...
'use strict'; var fs = require('fs'); var path = require('path'); var Sequelize = require('sequelize'); var basename = path.basename(module.filename); var env = process.env.NODE_ENV || 'development'; var config = require('../config/databases')[env]; var db = {}; if (config.use_env_variable) { var sequelize = new ...
var https = require('https'), fs = require('fs'); var options = { hostname: "localhost", port: 8000, path: "/", method: "GET", key: fs.readFileSync('test/keys/client.pem'), cert: fs.readFileSync('test/keys/client.crt'), ca: fs.readFileSync('test/keys/server.crt'), agent: false }; function handleResp...
/** * Created by mingtao on 15-10-24. */
var m = require('mithril'); exports.controller = function () { var ctrl = this; }; exports.view = function (ctrl) { return m('.row', [ m('.row', [ m('h3.center-align', 'Initial Application') ]), m('form.col.s12', [ m('.row', [ m('.input-field.col.s12.m6', [ m('input#first...
import React from 'react'; import style from '../style'; const Header = (props) => <div style={style.colDefault}> <div style={style.header}> nicepls </div> <div style={style.intro}> <p>nicepls uses <a href='https://github.com/wooorm/alex'>alexjs</a> to detect insensitive, inconsiderate words,...
'use strict'; const { Dimensions } = require('react-native'); const dimensions = Dimensions.get('window'); function Units(baseSize) { this.vw = dimensions.width / 100; this.vh = dimensions.height / 100; this.bp = (dimensions.width / baseSize).toFixed(2) * 1; this.fr = num => Math.floor(num); this...
/** * Tree 'class' constructure. Starts a tree at a given point with given genes * @param {object} genes The genes that rule the Tree's growth. See README for list of options * @param {THREE.Vector3} position The Vector3 from which the trunk sprouts */ var Tree = function (genes, position) { this.genes = ...
import React from 'react' import { render } from 'react-dom' import App from './components/App' import './css/style.css' render(<App/>, document.querySelector('#main'))
/* * natron */ "use strict"; export { exec }; import { execFile } from "child_process"; function exec(cmd, args, options) { if (!(args instanceof Array)) { if (typeof args === "object") { [args, options] = [[], args]; } else { args = args ? [args] : []; } } let child, p = new Pro...
'use strict'; /** * Module dependencies. */ var should = require('should'), mongoose = require('mongoose'), User = mongoose.model('User'), Picup = mongoose.model('Picup'); /** * Globals */ var user, picup; /** * Unit tests */ describe('Picup Model Unit Tests:', function() { beforeEach(function(done) { ...