code
stringlengths
2
1.05M
'use strict'; var winston = require('winston'); /** * Base application constructor. * * @param options - application's config object. * @param services - array of services. * @constructor */ function Application(options, services) { this.options = options || {}; this.logger = this.createLogger(); t...
var vfs = vfs || {} vfs.ContentScript = common.extend(ext.ContentScript,{ processPage:function(){ console.log("process page called",arguments) } }) var contentScript = new vfs.ContentScript()
#!/usr/bin/env node var app = require('../server'); app.dataSources.db.autoupdate(['accessToken', 'acl', 'roleMapping', 'role', 'user'], function(err, result) { if (err) { console.log(err); } process.exit(0); });
describe("About Functions", function() { it("should declare functions", function() { function add(a, b) { return a + b; } expect(add(1, 2)).toBe(3); }); it("should know internal variables override outer variables", function () { var message = "Outer"; function getMessage...
import commonConfig from "./webpack.config.common"; // TODO: flesh out server build module.exports = { ...commonConfig, name: 'server', target: 'node' }
/** * Requires the inclusion of <a id="downloadAnchorElem" style="display:none"></a> in the html displayed * @param data the type of data to be downloaded (e.g. text/javascript) * @param filename the name of the file to download * @param content the content of the file to download */ function downloadF...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { extend } from "oasis/util"; import OasisInlineAdapter from "oasis/inline_adapter"; var InlineAdapter = extend(OasisInlineAdapter, { wrapResource: function (data, oasis) { var functionDef = 'var _globalOasis = window.oasis; window.oasis = oasis;' + 'try {' + data + ' } finally {'...
var Big = require('bignumber.js') function collatz (n) { n = new Big(n) var y = 0 while (n.gt(1)) { if (n.mod(2).eq(0)) { n = n.div(2) } else { n = n.mul(3).add(1) } y = y + 1 } return y } module.exports = collatz // Pando convention module.exports['/pando/1.0.0'] = function (x,...
"use strict"; /** * string-encoder.ts * Copyright (c) 345 Systems LLP 2016, all rights reserved. * * Encoding for strings. */ const logger_1 = require("../logging/logger"); class StringEncoder { /** * Encodes the object assuming it can be cast to a string. */ encode(obj) { logger_1....
'use strict'; describe( 'State 1', function( ) { var scope; var controller; beforeEach( function( ) { module( 'sunshinegirls' ); } ); beforeEach( inject( function( $rootScope, $controller ) { scope = $rootScope.$new( ); controller = $controller( 'ThanksController', { $scope: scope } ); } ) ); it( ...
const fs = require('fs'); const path = require('path'); const rimraf = require('rimraf'); const chai = require('chai'); const assert = chai.assert; //const should = chai.should(); let dtfs; const rootFolder = path.join(__dirname, '..'); const testDataFolder = path.join(rootFolder, 'test-data');...
// Keyboard Settings settings = { id: 'keyboard', width: 600, height: 300, startNote: 'A2', whiteNotesColour: '#fff', blackNotesColour: '#000', borderColour: '#000', activeColour: 'purple', octaves: 2 }, keyboard = new QwertyHancock(set...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import Feed from './Feed'; import * as actions from '../../../actions'; const mapStateToProps = (state, ownProps) => { /// TODO: Need to figure out logic to display source list or feed list return state; } const mapDispatchToPr...
import {BARRIER_COUNTE_INDEX, BARRIER_SEQ_INDEX,BARRIER_NUM_AGENTS_INDEX, MUTEX_INDEX} from './plalib-sync-constants'; export function initSync (numAgents) { var sync = new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT * 4)); Atomics.store(sync, BARRIER_COUNTE_INDEX, numAgents); Atomics.store(syn...
var im = require('imagemagick'); var log = require('custom-logger').config({ level: 1 }); // Set the source image var sourceImage = process.argv[2]; if (!sourceImage) { return log.error('An image path is required as the first argument.'); } var sizes = { "config": { "directory": "outputs/", "prefix": "ic...
import React from 'react'; import {Link} from 'react-router-dom'; class Navigation extends React.Component { render() { return ( <div className="row"> <div className="twelve columns"> <Link to="/" className="button button-primary padding-right">Home</Link> ...
import React, { Component } from 'react'; import {View, AppRegistry, StyleSheet, Text,Image,Dimensions,TouchableHighlight,Alert,Animated,Easing,} from 'react-native'; import Header from './header'; import Modal from 'react-native-modalbox'; import AnimatedCircleProgress from './CircleProgressComponents/AnimatedCircleP...
import process from 'node:process'; import {promises as fs} from 'node:fs'; import path from 'node:path'; import test from 'ava'; import createEsmUtils from 'esm-utils'; import xo from '../index.js'; const {__dirname} = createEsmUtils(import.meta); process.chdir(__dirname); const hasRule = (results, expectedRuleId) =...
'use strict'; angular.module('awesome-app.common.components', [ 'awesome-app.common.components.header', 'awesome-app.common.components.footer', 'awesome-app.common.components.version', // my components 'awesome-app.common.components.teams', 'awesome-app.common.components.teamTabs' ]);
var fs = require('fs'); var _ = require('lodash'); module.exports = function (grunt) { grunt.registerTask('templates', function () { var templates = fs.readdirSync('templates').map(function (fileName) { var name = fileName.split('.')[0]; return [name, fs.readFileSync('templates/' + fileName, 'utf8')]...
'use strict'; module.exports.setupModel = function(schema){ if(!schema.options.toJSON) { schema.options.toJSON = {}; } schema.options.toJSON.transform = function(doc, ret, options){ void(options); //sanitize to remove local object before it is sent out delete ret.local; delete ret.__v; };...
sap.ui.define([ "sap/ui/test/Opa5" ], function(Opa5) { "use strict"; function getFrameUrl (sHash, sUrlParameters) { var sUrl = jQuery.sap.getResourcePath("flp/no/unit/app", ".html"); sUrlParameters = sUrlParameters ? "?" + sUrlParameters : ""; if (sHash) { sHash = "#flp_no_unit-display&/" + (sHash...
/* * Copyright (c) Joe Martella All rights reserved. Licensed under the MIT license. * See LICENSE in the project root for license information. */ "use strict"; //Fucntion where the Histogram Scene logic is Handle and creaded, is Module Factory Service //The main Idea behinf this Factory is to use image Quantizatio...
'use strict'; describe('Filter: orderObjectBy', function () { // load the filter's module beforeEach(module('curatesApp')); // initialize a new instance of the filter before each test var orderObjectBy; beforeEach(inject(function ($filter) { orderObjectBy = $filter('orderObjectBy'); })); it('shoul...
import { expect } from 'chai'; import reducer from './notes'; import * as actionTypes from '../../constants/actionTypes'; import uuid from 'uuid'; describe('notes reducer', () => { it('should return the initial state', () => { expect(reducer([], { type: 'unknown type' })).to.deep.equal([]); }); it('should h...
import React from 'react' import { BaseMotivationWidget } from './_base' export const TYPE='constraint'; export class ConstraintWidget extends BaseMotivationWidget { getClassName(node) { return 'a-node model_m constraint'; } }
"use strict"; const express = require('express'); const router = express.Router(); const fs = require('fs'); const path = require('path'); const passport = require('passport'); const User = require('../models/user'); const Group = require('../models/group'); /* GET home page. */ router.get('/', (req, res, next) => ...
module.exports = function (grunt) { 'use strict'; grunt.loadNpmTasks('grunt-bumpup'); grunt.loadNpmTasks('grunt-contrib-compress'); grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.loadNpmTasks('grunt-contrib-watch'); grunt.loadNpmTasks('grunt-ta...
define(['Cojoko'], function(Cojoko) { return Cojoko.Class('Psc.HTTPMessage', { properties: { header: { is: 'gs', required: false, init: {} } }, methods: { setHeaderField: function (key, value) { this.getHeader()[ key ] = value; return this; }, getHeaderField: func...
const tokenChecker = require('./token'); module.exports = function getEnsureAuth(){ return function(req, res, next){ const token = req.headers.token; if(!token){ return next({code: 400, error: 'No token provided'}); } tokenChecker.verify(token) .then(user =>{ req.user = user; ...
/* 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( 'indent', 'tr', { indent: 'Sekme Arttır', outdent: 'Sekme Azalt' } );
import backbone from 'backbone'; import xhr from 'aja'; import _ from 'underscore'; function addBody(xhrCall, { data: body, contentType, dataType }) { if (body) { xhrCall .header('Content-Type', contentType) .type(dataType) .data(body); } return xhrCall; } /** * @external {aja.js} http:/...
'use strict'; angular.module('hadooprestApp') .config(function ($stateProvider) { $stateProvider .state('password', { parent: 'account', url: '/password', data: { roles: ['ROLE_USER'], pageTitle: 'global.men...
/* Gradebook from Names and Scores I worked on this challenge [with: Lisa Dannewitz, David Ramirez] This challenge took me [#] hours. You will work with the following two variables. The first, students, holds the names of four students. The second, scores, holds groups of test scores. The relative positions of elem...
import React from 'react' import IconComment from './img-comments.js' import CommentContent from './comment-content.js' export default class RowComment extends React.Component { constructor(props){ super(props) } render(){ return <div className="row"> <div className="col-sm-2"> ...
// JavaScript Olympics // I paired Daniel W on this challenge. // This challenge took me [#] hours. // Warm Up //name, height, sport, and quote var daniel = { name: "Daniel", height: 6, sport: "soccer", quote: "Hello there" }; var danielle ={ name: "Danielle", height: "5.8", sport: "running", quote...
var processCode = require("./code"), processComment = require("./comment"); var typeCheckReg = /^\s*@(\w+)/; /** * @function documentjs.process.codeAndComment * @parent documentjs.process.methods * * @signature `documentjs.process.codeAndComment(options, callback)` * * Processes a code suggestion and then a c...
var SCREEN_WIDTH = 640; var SCREEN_HEIGHT = 960; phina.define('MainScene', { superClass: 'phina.display.CanvasScene', init: function(options) { this.superInit(); //Three.js用レイヤー var layer = this.layer = phina.display.ThreeLayer({ width: SCREEN_WIDTH, height: SCREEN_HEIGHT }).addChildT...
;(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].export...
/** * @file isEmptyTest.js * @author Vladimir Deminenko * @date 09.08.2017 */ 'use strict'; describe("Пуст ли объект", function () { it("returns true for an empty object", function () { assert.isTrue(isEmpty({})); }); it("returns false if a property exists", function () { assert.isFal...
// Run this Node.js script to create an AMD module from a CSV file. var d3 = require('d3'), _ = require('underscore'), fs = require('fs'), name = 'GDPPerCapita'; fs.readFile('./'+name+'.csv', 'utf8', function (err, data) { var data = d3.csv.parse(data), script = [ 'define([], function(){ re...
var GameMenu = { create: create }; var music; var toggle = false; var bt_sound; //Tela de Menu function create() { //game.scale.fullScreenScaleMode = Phaser.ScaleManager.EXACT_FIT; //game.input.onDown.add(gofull, this); var initBg = game.add.sprite(0, 0, 'initBg'); var bt_iniciar = game.add.button...
version https://git-lfs.github.com/spec/v1 oid sha256:aca637d142fe539d605250fbcaf55203eda22e51b8a841168a3b14a697682517 size 945
'use strict'; var log4js = require('log4js'); var logger = log4js.getLogger(); var express = require('express'); var router = express.Router(); var mongo = require('mongodb'); var mongoClient = mongo.MongoClient; var MONGO_URL = process.env.MONGODB_DB_URL ? (process.env.MONGODB_DB_URL) : 'mongodb://127.0.0.1/rikitrak...
/* * Copyright (c) 2016 -2021 Bjoern Kimminich & the OWASP Juice Shop contributors. * SPDX-License-Identifier: MIT */ const Promise = require('bluebird') const chai = require('chai') chai.use(require('chai-as-promised')) const expect = chai.expect const rewire = require('rewire') const fetchCountryMapping = rewire(...
require('./check-versions')() var config = require('../config') if (!process.env.NODE_ENV) { process.env.NODE_ENV = JSON.parse(config.dev.env.NODE_ENV) } var opn = require('opn') var path = require('path') var express = require('express') var webpack = require('webpack') var proxyMiddleware = require('http-proxy-mi...
// What you write var example = function() { var b = 0; for (var i = 0; i < 3; i++) { var a = b * i; } console.log('the value of a is', a); }; // Is transformed to this var example = function() { var b; var a; b = 0; for (var i = 0; i < 3; i++) { a = b * i; } ...
'use strict' class Node { constructor(data, next = null) { this.data = data this.next = next } } export default class Stack { constructor() { this.topNode = null this.currentLength = 0 } push( data ) { this.currentLength++ this.topNode = new Node(data, this.topNode) } pop() { ...
'use strict' // Template version: 1.2.4 // see http://vuejs-templates.github.io/webpack for documentation. const path = require('path') module.exports = { dev: { // Paths assetsSubDirectory: 'static', assetsPublicPath: '/', proxyTable: {}, // Various Dev Server settings host: '0.0.0.0', //...
/*global module:false*/ module.exports = function(grunt) { // Project configuration. grunt.initConfig({ pkg: '<json:jquery.allocine.jquery.json>', meta: { banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' + '<%= grunt.template.today("yyyy-mm-dd") %>\n' + '<%= pkg.hom...
var imageValidator = (function () { var validFileExtensions = [".jpg", ".jpeg", ".bmp", ".gif", ".png"], imageValidator = Object.create({}); Object.defineProperty(imageValidator, 'init', { value: function () { return this; } }); Object.defineProperty(imageValidator...
(function (module) { "use strict"; var mongoose = require('mongoose'), Mailer = require('../services/mail'), List = require('./list'), Activity = require("./activity"), User = require("./user"), BoardMemberRelation = require('./boardMemberRelation'), Notification = require("../services/not...
version https://git-lfs.github.com/spec/v1 oid sha256:078479a0ee8908c02c73318fde7ecba94273fd8bf662e4722966c6b67d66186a size 834
import I from 'immutable' const LOADED_DOCUMENT = 'planck/documents/LOADED_DOCUMENT' const SET_PENDING_DOCUMENT = 'planck/documents/SET_PENDING_DOCUMENT' const initialState = I.Map() const emptyDocument = I.Map().set('current', I.Map()).set('draft', I.Map()) export default function factory(innerReducers) { const a...
'use strict'; var should = require('should'), request = require('supertest'), app = require('../../server'), mongoose = require('mongoose'), User = mongoose.model('User'), ProductionParameter = mongoose.model('ProductionParameter'), agent = request.agent(app); /** * Globals */ var credentials, user, productio...
import React, {Component} from 'react'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; class VideoList extends Component{ renderList(){ if(!this.props.videos){ return <div>Loading...</div>; } return this.props.videos.map((video) => { const imageUrl = video.snippet.thumbn...
/*! nanoScrollerJS - v0.8.0 - 2014 * http://jamesflorentino.github.com/nanoScrollerJS/ * Copyright (c) 2014 James Florentino; Licensed MIT */ (function($, window, document) { "use strict"; var BROWSER_IS_IE7, BROWSER_SCROLLBAR_WIDTH, DOMSCROLL, DOWN, DRAG, KEYDOWN, KEYUP, MOUSEDOWN, MOUSEMOVE, MOUSEUP, MOUSEW...
/* globals require module */ "use strict"; const constants = require("./../config/constants"); const imdbUrlExtractor = require("./../utils/imdb-url-extractor"); const _ = require("lodash"); const mongoose = require("mongoose"), Schema = mongoose.Schema; let SimpleMovieSchema = new Schema({ name: { type: String...
import assert from "assert"; import sinon from "sinon"; import TankMock from "./mock/TankMock.js"; import Team from "../../src/engine/Team.js" describe('Team', function() { describe('constructor', function() { it('should create empty team', function () { let team = new Team('alpha'); assert.equal(0,...
'use strict' import React, { Component } from 'react' import ReactCSS from 'reactcss' import colors from '../../assets/styles/variables/colors' class AliasComposer extends Component { classes() { return { 'default': { text: { flex: '1', position: 'relative', }, ...
import typeData from './constant/typeData' import htmlCompile from './htmlCompile' import imgReset from './imgReset' import trustHtml from './filters/trustHtmlFilter' import goodsService from './services/goodsService' import userService from './services/userService' import validService from './services/validService' im...
var cls = process.cls, MSGS = process.MSGS; /** * Logs about the presence of required comment tags * * @param fn {string} Name of file that is being processed * @param t_o {bool} Data has table open? * @param t_c {bool} Data has table close ? * @param c_o {bool} Data has table open? * @param c_c...
(function () { angular.module('ui.grid').config(['$provide', function($provide) { $provide.decorator('i18nService', ['$delegate', function($delegate) { $delegate.add('fr', { aggregate: { label: 'éléments' }, groupPanel: { description: 'Faites glisser une en-tête d...
/* api */ import { assert } from 'chai'; import { describe, it } from 'mocha'; /* test */ import * as constants from '../modules/constant.js'; describe('constants', () => { const items = Object.keys(constants); for (const item of items) { const constant = constants[item]; it('should get string', () => { ...
const config = require('../config'); const browserSync = require('browser-sync'); const gulp = require('gulp'); const kss = require('kss'); const styleguideOptions = { source: config.CSS_BASE, destination: config.STYLEGUIDE_DEST, template: config.STYLEGUIDE_TEMPLATE, homepage: config.STYLEGUIDE_HOMEPAG...
/** * Maverick Reconcile * * While developing the add-on changes to files are often made to app files * directly. These changes need to be reflected back to the source files, * so instead of manually copying from app to source file, we automate the * process by updating every source file with the content of it'...
'use strict'; const format = require('util').format; module.exports = { toArray(arrayLike) { if (arrayLike === undefined || arrayLike === null) { return []; } if (Array.isArray(arrayLike)) { return arrayLike; } return [arrayLike]; }, throwIfMissing(options, keys, namespace) { ...
var page = require('webpage').create(); page.onResourceError = function(resourceError) { page.reason = resourceError.errorString; page.reason_url = resourceError.url; }; page.onError = function (msg, trace) { console.log(msg); trace.forEach(function(item) { console.log(' ', item.file, ':', it...
/* * jQuery OwlCarousel v1.3.2 * * Copyright (c) 2013 Bartosz Wojciechowski * http://www.owlgraphic.com/owlcarousel/ * * Licensed under MIT * */ /*JS Lint helpers: */ /*global dragMove: false, dragEnd: false, $, jQuery, alert, window, document */ /*jslint nomen: true, continue:true */ if (typeof Object.cr...
/* * grunt-gitrevision * https://github.com/miwurster/grunt-gitrevision * * Copyright (c) 2014 Michael Wurster * Licensed under the MIT license. */ 'use strict'; module.exports = function (grunt) { grunt.initConfig({ jshint: { all: [ 'Gruntfile.js', 'task...
8.0-alpha2:0bff797debb61031f9647dce80a1bd99736f67ab60435a022b668ad54ad3d2f2
import React from 'react' import { graphql } from 'react-apollo' import gql from 'graphql-tag' import { Table } from 'react-bootstrap' import moment from 'moment' // import * as Actions from '../actions'; const DepartureList = props => { const formatTime = tstamp => moment.unix(tstamp).format('HH:mm') const list...
var video_formats={ h265: { extension: "mp4", type: "video/mp4; codecs=hev1.1.2.L93.B0"}, h264: { extension: "mp4", type: "video/mp4"}, vp9: { extension: "webm", type: "video/webm; codecs=vp9"}, vp8: { extension: "webm", type: "video/webm; codecs=vp8"}, ogv: { extension: "ogv", type: "video/ogg"} }; var resolutio...
/** * Response time for HTTP */ var host = 'google.com'; var port = 80; var start = new Date(); http.get({host: host, port: port}, function(res) { console.log('Request for ' + host + ':' + port + ' took:', Date.now() - start, 'ms'); });
"use strict"; var ndarray = require('ndarray'); var jBinary = require('jbinary'); var jDataView = require('jdataview'); module.exports = function(input) { var my = {}; var pub = {}; my.input = input; pub.affine_method = function() { if (pub.header.sform_code !== 0) { return 'sform_affine'; } ...
'use strict'; var app = angular.module('wooclientApp', [ 'ui.router', 'ngResource' ]) app.value('toastr', window.toastr); app.config(function ($stateProvider, $urlRouterProvider,$provide,$httpProvider) { // For any unmatched url, redirect to /main $urlRouterProvider.otherwise("/main"); // // ...
var drawGraphics = qc.defineBehaviour('qc.engine.drawGraphics', qc.Behaviour, function() { }, { }); // 绘制多边形函数 drawGraphics.prototype.draw = function(path, closePath) { var ctx = this.gameObject; ctx.clear(); // 绘制路径 if (path.length < 2) return; ctx.lineStyle(2, this._color, 0.8); ctx.moveTo(...
module.exports = function(grunt) { var coffeelint = require('coffeelint'); grunt.registerMultiTask('coffeelint', 'Validate files with CoffeeLint', function() { var files = grunt.file.expandFiles(this.data.files || this.data); var options = this.data.options || grunt.config('coffeelintOptions') || {}; ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ParserDependencies = void 0; var _dependenciesParse = require("./dependenciesParse.generated"); var _factoriesNumber = require("../../factoriesNumber.js"); /** * THIS FILE IS AUTO-GENERATED * DON'T MAKE CHANGES HERE */ var Par...
/** @jsx React.DOM */ var ReactCSSTransitionGroup = React.addons.CSSTransitionGroup; var logo = "\n"+ " /$$ /$$$$$$ /$$ /$$$$$$$ /$$ \n"+ "| $$ /$$$__ $$$ | $$ | $$__ $$| $$ \n"+ "| $$$$$$$ /$$_/ \_ $$ /$$$$$$$| $$ /$$ /$$$...
import React from 'react'; import { Link } from 'react-router'; import autoBind from 'react-autobind'; class Navigation extends React.Component { constructor(props) { super(props); autoBind(this); } isLoggedin() { const { user, luser } = this.props.user; return ...
class Task { constructor(obj) { this.userName = obj["user"]["name"]; this.dueDate = Date.parse(obj.due_date); this.completionDate = Date.parse(obj.completion_date) this.completionStatus = obj.completion_status; } formatDueDate(){ return moment(this.dueDate).format('MM-DD-YYYY') } formatC...
// flow-typed signature: ca5f3583c142faeca43b77de5131f0cb // flow-typed version: <<STUB>>/reactotron-redux_v^1.6.1/flow_v0.38.0 /** * This is an autogenerated libdef stub for: * * 'reactotron-redux' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share your wo...
define(function () { "use strict"; var ContactController = function($scope, contactService) { $scope.author = "Marco Rinck"; $scope.email = "marco.rinck@googlemail.com"; $scope.homepage = "https://github.com/marcorinck/ngStart"; $scope.message = contactService.message; $scope.messageChanged = function() {...
app.controller("ctrl_one",ctrl_one); ctrl_one.$inject = ["$scope"]; function ctrl_one($scope) { $scope.var_one = "I am from Controller One"; }
function escapeHtml(str) { //[<>"&]:中括号中字符只要其中的一个出现就代表满足条件 //给replace第二个参数传递一个回调函数,回调函数中参数就是匹配结果,如果匹配不到就是null return str.replace(/[<>"&]/g, function (match) {     switch (match) {      case "<":         return "&lt;";      case ...
{ "version": 1566679187, "fileList": [ "data.js", "c2runtime.js", "jquery-2.1.1.min.js", "offlineClient.js", "images/tiledbackground.png", "images/sprite3-sheet0.png", "images/sprite4-sheet0.png", "images/sprite5-sheet0.png", "images/sprite-sheet0.png", "images/sprite2-sheet0.png", "images/spri...
import { WebGLUniforms } from './WebGLUniforms.js'; import { WebGLShader } from './WebGLShader.js'; import { ShaderChunk } from '../shaders/ShaderChunk.js'; import { RGBFormat, NoToneMapping, AddOperation, MixOperation, MultiplyOperation, CubeRefractionMapping, CubeUVRefractionMapping, CubeUVReflectionMapping, CubeRefl...
(function(undefined) { "use strict"; function createIndex(text) { var wordsInOrder = text .replace(/<(.*?|^|$|\n|\r)*?>/gmi, ' ') .replace(/[^a-ząężśźćńół]+/gmi, ' ') .trim() .split(' ') .filter(function (el) { return 2 < el.length; }) ...
import assign from 'object.assign'; import { parse } from '../util/expression'; function addSet(state, action) { let clone = assign({}, state); clone.sets.push({ label: action.setName, output: [ ['total', 'Total Profit'] ], expr: parse(['total=(totalSell - totalBuy)...
(function(){ window.JST || (window.JST = {}) window.JST.templates || (window.JST.templates = {}); window.JST.templates["partials"] = new Hogan.Template(function(c,p,i){var _=this;_.b(i=i||"");_.b(_.rp("sample",c,p,""));_.b(_.rp("plain",c,p,""));return _.fl();;}, "partials" ); window.JST["partials"] = function(d){ retu...
import random from 'lodash/random'; const randomString = (len = 16) => { const digits = '0123456789abcdefghijklmnopqrstuvwxyz'; let str = ''; for (let i = 0; i < len; i += 1) { const rand = random(0, digits.length - 1); str += digits[rand]; } return str; }; const randomNumber = (min, max) => { if ...
'use strict'; var async = require('async'); var config = require('config'); var dateTime = require('node-datetime'); var dbPool = require('./dbpool'); var defined = require('./defined'); var fs = require('fs'); var mapnik = require('mapnik'); var path = require('path'); var schedule = require('node-schedule'); // reg...
import TitleView from './TitleView'; export default TitleView;
'use strict'; var path = require('path'), rootPath = path.join(__dirname, '../..'); module.exports = { name: 'angular-express-mongoose-seed', root: rootPath, port: process.env.PORT || 9000, publicDirectory: path.join(__dirname, '../../public'), };
$(function(){ //Homepage Slider var options = { nextButton: false, prevButton: false, pagination: true, animateStartingFrameIn: true, autoPlay: true, autoPlayDelay: 5000, preloader: true }; // Initalize homepage slider $("#sequence").sequence...
import Ember from 'ember'; import NumberInputComponent from './number-input'; import { toTimeString, toDateString } from '../../utils/date'; const { get, set } = Ember; export default NumberInputComponent.extend({ type: 'time', attributeBindings: ['timeValue:value'], didReceiveAttrs() { let value = this....
ScalaJS.is.scala_scalajs_js_Function13 = (function(obj) { return (!(!((obj && obj.$classData) && obj.$classData.ancestors.scala_scalajs_js_Function13))) }); ScalaJS.as.scala_scalajs_js_Function13 = (function(obj) { if ((ScalaJS.is.scala_scalajs_js_Function13(obj) || (obj === null))) { return obj } else { ...
/** * @ngdoc directive * @name mdTab * @module material.components.tabs * * @restrict E * * @description * Use the `<md-tab>` a nested directive used within `<md-tabs>` to specify a tab with a **label** and optional *view content*. * * If the `label` attribute is not specified, then an optional `<md-tab-label...