code
stringlengths
2
1.05M
define(['backbone.marionette'], function(Marionette) { 'use strict'; return Marionette.AppRouter.extend({ appRoutes: { 'books/': 'showBookList' //'books/:book': 'showBook' } }); });
/*** * Created by steve Samson <stevee.samson@gmail.com> on 2/16/14. */ var Busboy = require('busboy'), path = require('path'), os = require('os'), qs = require('querystring') fs = require('fs'); module.exports = function (options) { options = options || {}; return function (req, res, next) ...
/* * JavaScript variable examples. * A JavaScript variable does NOT have to begin with 'var'. A variable that does begin with 'var' is a local * variable that can only be used in that scope. A variable that does not begin with the keyword 'var' can be * interpreted as a globar variable. */ var Bulbasaur = 001; ...
const argv = require('minimist')(process.argv.slice(2)); var verbose = argv.verbose ? argv.verbose : false; if (verbose) { var log = console.log; } else { function log(){}; } module.exports = { log: log };
import * as types from "./mutation-types";
app.configure('production', function () { app.enable('view cache'); app.enable('model cache'); app.enable('eval cache'); app.enable('merge javascripts'); app.enable('merge stylesheets'); app.use(require('express').errorHandler()); app.settings.quiet = true; });
'use strict'; //angular.module("TimeoutApp.login") app.service('loginModal', function ($modal, $rootScope) { function assignCurrentUser (user) { // $rootScope.currentUser = user; // var customer = {name : email, phoneNumber : password}; $rootScope.currentUser = user.name; return user; } return funct...
module.exports = require('./src/enjection');
const SET_SWAP_TOKENS = async function (state, tokens) { state.swapTokens = tokens; state.prefetched = true; }; export default { SET_SWAP_TOKENS };
var CHANGE_EVENT = 'change' export default { emitChange() { this.emit(CHANGE_EVENT) }, addChangeListener(callback) { this.on(CHANGE_EVENT, callback) }, onChange(callback) { this.addChangeListener(callback) }, removeChangeListener(callback) { this.removeListener(CHANGE_EVENT, callback) ...
angular.module('woort-cloud-app').component('wcGameBoard', { templateUrl: 'wc-game-board.tpl.html', controller: WcGameBoardController, bindings: { initRows: '<', initCols: '<' //add variables from markup here, must have form "init-rows" instead of "initRows" } }); function WcGam...
import { resource } from 'src/app/infra/services/http/resource' export const title = 'Gráficos' export const api = '/graphics' export const path = '/dashboard/forms' export const service = resource(api)
/* @flow */ const privates = new WeakMap(); export default class TogglePanel { constructor(panel: Atom$Panel) { privates.set( this, atom.commands.add( "atom-workspace", "textual-velocity:toggle-panel", () => { if (panel.isVisible()) { panel.hide(); ...
/*jslint plusplus:true*/ /* jshint strict: true, -W097, unused:false, undef:true */ /*global window, document, $, io, navigator, setTimeout */ getSocket(function(socket){ if (socket) socket.emit('selection'); $('#submit').click(function(){ // connecting to socket turns on the display var boiltemp = $(...
var co = require('co'); /** * Intuition is our super class it is simply a blank function with only a constructor property */ var Intuition = function() { this.init = new Function; this.$init = new Promise(function(resolve){ resolve(this); }.bind(this)); }; /** * _super is never directly called but boun...
module.exports = (title, message, url) => ` <html> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width" initial-scale="1" /> </head> <body> <table role="presentation" aria-hidden="true" cellspacing="0" cellpadding="0" border="0" align="center"> <tr> <td> ...
/** * @file mip-stats-qiyu 七鱼在线客服组件 * @author marhey */ define(function (require) { var $ = require('zepto'); var customElement = require('customElement').create(); customElement.prototype.createdCallback = function () { var element = this.element; var token = element.getAttribute('token'...
/** * for esdoc * @ignore */ export function objectValues(obj) { let keys = Object.keys(obj); return keys.map(key => obj[key]); } /** * for esdoc * @ignore */ export function isPlainObject(item) { return Object.prototype .toString.call(item) === '[object Object]'; } /** * for esdoc * @ignore */ exp...
// Context info: node, depth, logic(AND or OR) class ContextMenu { constructor(feature_application){ this.feature_application = feature_application; this.root = feature_application.data; this.marginRatio = 0.13; this.style = { 'rect': { 'mouse...
import AnimatedEntityRenderer from "./AnimatedEntityRenderer.js"; import AnimatedTexture from "./AnimatedTexture.js"; import LightingMask from "./LightingMask.js"; import StatusBars from "./StatusBars.js"; import MiniMap from "./MiniMap.js"; import Box from "./Physics/Box.js"; /** * @module Renderer */ /** Creates the...
var RamAppDispatcher = require('../dispatcher/RamAppDispatcher'); var RamConstants = require('../constants/RamConstants'); var ActionTypes = RamConstants.ActionTypes; var LayoutActions = { setLayout: function(layoutId) { RamAppDispatcher.handleViewAction({ type: ActionTypes.SET_LAYOUT, layoutId: layo...
ivar.namespace('ivar.random'); ivar.random.integer = function(min, max) { }; ivar.random.float = function(min, max) { }; ivar.random.string = function(min, max, first_capital) { }; ivar.random.date = function(min, max) { }; ivar.random.array = function(min, max, type) { }; ivar.random.gender = function(min,...
'use strict'; define(function() { return function($scope, events, Posts, Categories, Users) { $scope.configCover = { fileName: 'cover_photo', url: 'cms-api/posts' }; $scope.configGallery = { fileName: 'slider_photos', url: 'cms-api/posts' }; $scope.configGrid = { fil...
module.exports = { // the database url to connect url : 'mongodb://172.17.42.1:27017/orxan' //url : 'mongodb://localhost:27017/orxan' }
angular.module('storyCtrl', ['storyService']) .controller('StoryController', function(Story, socketio) { var vm = this; Story.all() .success(function(data) { vm.stories = data; }); vm.createStory = function() { vm.processing = true; vm.message = ''; Story.create(vm.storyData) ...
module.exports = PriorityQueueMock; var _map; function PriorityQueueMock(comparer) { _map = new Map(); } PriorityQueueMock.prototype.queue = function (task) { _map.set(task, task); }; PriorityQueueMock.prototype.length = function () { return _map.size; }; PriorityQueueMock.prototype.peek = function ...
'use strict' const { gql } = require('apollo-server-micro') module.exports = gql` """ Domains are required to track views. You can create as many domains as you want, but it's recommended to create on domain per project/site. This allows you to view facts and statistics separately. """ type Domain { """ Domai...
'use strict'; // Collects keyboard inputs state collection of keycodes that currently pressed, // if its not true then it false and its up // ----------------------------------------- (function () { var state = {}, defaultHidState = { down: 0, up: 0 }; window.document.a...
// Copyright (c) 2020 Uber Technologies, Inc. // // 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, copy, modify, merge...
/* Copyright (c) 2014-2017 Richard Rodger and other contributors, MIT License */ var Code = require('code') var Lab = require('lab') var Seneca = require('seneca') var lab = exports.lab = Lab.script() var describe = lab.describe var it = lab.it var expect = Code.expect describe('info', function () { it('happy', ...
/*! * SmartMenus jQuery Plugin Bootstrap Addon - v0.1.0 - January 19, 2014 * http://www.smartmenus.org/ * * Copyright 2014 Vasil Dinkov, Vadikom Web Ltd. * http://vadikom.com * * Licensed MIT */ jQuery(function( $ ) { // init all menus $('ul.navbar-nav').each(function() { var $this = $(this); //console...
import React, { Component } from 'react'; import { connect } from "react-redux" import ReactTable from "react-table"; import { getTranslate } from 'react-localize-redux'; import Dropdown, { DropdownContent } from "react-simple-dropdown"; import LimitOrderPagination from "./LimitOrderPagination"; import { getFormattedDa...
// All symbols in the `Myanmar` script as per Unicode v4.1.0: [ '\u1000', '\u1001', '\u1002', '\u1003', '\u1004', '\u1005', '\u1006', '\u1007', '\u1008', '\u1009', '\u100A', '\u100B', '\u100C', '\u100D', '\u100E', '\u100F', '\u1010', '\u1011', '\u1012', '\u1013', '\u1014', '\u1015', '\u1016', '\...
// All symbols in the Geometric Shapes block as per Unicode v6.1.0: [ '\u25A0', '\u25A1', '\u25A2', '\u25A3', '\u25A4', '\u25A5', '\u25A6', '\u25A7', '\u25A8', '\u25A9', '\u25AA', '\u25AB', '\u25AC', '\u25AD', '\u25AE', '\u25AF', '\u25B0', '\u25B1', '\u25B2', '\u25B3', '\u25B4', '\u25B5', '\u25B6...
import { StyleSheet } from 'react-native'; export default StyleSheet.create({ boardMenu: { flex: 1, }, board: { flex: 2, justifyContent: 'center', alignItems: 'center', }, selector: { flex: 1, }, game: { flex: 1, alignItems: 'center', ...
import { define, render, WeElement, html } from '../../src/omi' define('my-clock', class extends WeElement { install = this.updateTime updateTime() { const time = new Date() this.hours = time.getHours() this.minutes = time.getMinutes() this.seconds = time.getSeconds() } installed() { set...
module.exports = {"frames": [ { "filename": "fossil_fuels0000", "frame": {"x":0,"y":0,"w":44,"h":57}, "rotated": false, "trimmed": true, "spriteSourceSize": {"x":24,"y":22,"w":68,"h":79}, "sourceSize": {"w":68,"h":79} } ,{ "filename": "fossil_fuels0001", "frame": {"x":0,"y":0,"w":44,"h":57}, "rotated": false...
import './css/t.scss'; import './css/modifier/t-red.scss'; import './js/t';
'use strict'; define(["exports", "./array.js", "./block.js", "./caml_array.js"], function(exports, $$Array, Block, Caml_array){ 'use strict'; function int32_to_value(x) { return /* Int32 */Block.__(0, [x]); } function int64_to_value(x) { return /* Int64 */Block.__(1, [x]); } ...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.16/esri/copyright.txt for details. //>>built define({widgetLabel:"Editor",multipleFeaturesTemplate:"V\u00edce prvk\u016f ({total})",untitledFeatureTemplate:"Nepojmenovan\u00fd prvek {id}",editFeatures:"Editov...
const HTTP_CODE = { OK: 200, BAD_REQUEST: 400 }; class ResponseHelper { /** * @description * Sends success response to the user * * @param {Object} res response object * @param {Object} [data] content to return */ static success(res, data) { const result = data || {}; result.status = 'ok'; res.se...
import ExtractTextPlugin from 'extract-text-webpack-plugin'; import autoprefixer from 'autoprefixer'; import constants from './constants'; import path from 'path'; import webpack from 'webpack'; import webpackIsomorphicAssets from './assets'; import WebpackIsomorphicToolsPlugin from 'webpack-isomorphic-tools/plugin'; i...
"use strict"; var app; try { app = angular.module("aphel.cloud"); } catch (err) { app = angular.module("aphel.cloud", []); } app.factory("$reminderAPI", function ($http, $q) { var _partnerKey = "", _platform = "web", _language = "en", _currentCompanyId, _originatorMembe...
import { cpus } from 'os'; import R from 'ramda'; import './init-config'; import { start } from './discord'; import { subscriber, publisher, ee, waitForConnections } from './redis'; import sentry from './sentry'; import logger from './logger'; let argv = require('minimist')(process.argv.slice(2)); // With sharding ...
/* jshint ignore:start */ var model = { data: {} , sortKey: "id" , reverseOrder: false , searchStory: "" , toggles: {} , allExpanded: false , options : { hideDoneStories: false, hideStoryLabels: false, hideDoneTasks: false } }; /* jshint ignore:end */
import * as THREE from 'three'; import PropTypes from 'prop-types'; import GeometryDescriptorBase from './GeometryDescriptorBase'; class TextGeometryDescriptor extends GeometryDescriptorBase { constructor(react3RendererInstance) { super(react3RendererInstance); this.hasProp('text', { type...
import { filter, first, traverseParent, flatMap } from "./iters"; import { intersection, getBoundingRect } from "./rects"; import Cache from "./cache"; export default class VisibleRectDetector { constructor(caches) { this.cache = new Cache(); this.clientRectsCache = caches.clientRects; this.styleCache = ...
export const AccountAction = { TYPE: { READY: '@@account/READY', SUBMIT: '@@account/SUBMIT', ERROR: '@@account/ERROR', DONE: '@@account/DONE', }, COMMAND: { SIGN_IN: 'sign-in', SIGN_UP: 'sign-up', FORGOT_PASSWORD: 'forgot-password', FACEBOOK_LOGIN: 'facebook-login', }, }; const...
var frames = require("ui/frame"); function onTap_About() { var navigationEntry = { moduleName: "views/about/about", transition: { name: "slideBottom" } }; frames.topmost().navigate(navigationEntry); } exports.onTap_About = onTap_About; function onTap_ContactUs() { v...
// volontary written in ES5, so that it works with Node 4.x var path = require('path'); var webpack = require('webpack'); var ProgressBarPlugin = require('progress-bar-webpack-plugin'); var HasteMapWebPackResolver = require('haste-map-webpack-resolver'); var currentDir = path.resolve(__dirname, '.'); var hasteMapWebP...
var definition = { friendlyName: 'simplepipe', description: 'recieve a number and pluse 1.', inputs: { in: { description: 'recieved number.', } }, exits: { success: { description: 'computated result.' } }, fn: function(inputs, exits){ ...
var crypto = require('crypto'); var hashPassword = exports.hashPassword = function (password) { return crypto.createHash('sha1', conf.passwordKey) .update(password).update(conf.passwordSalt).digest('base64'); } ,randomBin = exports.randomBin = function (length, pre, post) { pre = pre || ''; post = post || ''; ...
var structtesting_1_1internal_1_1_callable_traits = [ [ "ResultType", "structtesting_1_1internal_1_1_callable_traits.html#a242d198dd1c56a153ba931d7166ec7f3", null ], [ "StorageType", "structtesting_1_1internal_1_1_callable_traits.html#a23cc0c86a3bd18b2f8dd159dd44e1168", null ] ];
ReactiveCycle = function (template, containerSel, itemSel) { console.log("template", template); console.log("containerSel", containerSel); console.log("itemSel", itemSel); } ReactiveObject.prototype.something = function(x) { console.log(x); };
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import PENS from './../../pens'; const draw = v => Object.keys(PENS).reduce((a, c) => { if (PENS[c] === v) return c.toLowerCase(); return a; }, PENS.EMPTY); class Cell extends Component { shouldComponentUpdate(next) { retur...
import React from 'react'; import AppBar from 'material-ui/AppBar'; import { Toolbar, ToolbarTitle } from 'material-ui/Toolbar'; import IconMenu from 'material-ui/IconMenu'; import MenuItem from 'material-ui/MenuItem'; import IconButton from 'material-ui/IconButton/IconButton'; import MenuIcon from 'material-ui/svg-ico...
/** * Copyright 2014 Telerik AD * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
{"filter":false,"title":"main.js","tooltip":"/lib/main.js","undoManager":{"mark":-1,"position":-1,"stack":[]},"ace":{"folds":[],"scrolltop":0,"scrollleft":0,"selection":{"start":{"row":1,"column":0},"end":{"row":1,"column":0},"isBackwards":false},"options":{"guessTabSize":true,"useWrapMode":false,"wrapToView":true},"fi...
'use strict'; var path = require('path'); var _ = require('lodash'); function convertToUnixPath(dir) { if (!_.isString(dir)) { throw new Error('Expected path to be a string'); } if (path.sep === '\\') { dir = path.normalize(dir); dir = dir.split(path.sep).join('/'); } return dir; } function g...
var Promise = require('bluebird') var jm = require('jm-dao') var logger = jm.getLogger('acl') module.exports = function (service, opts) { opts || (opts = {}) opts.modelName || (opts.modelName = 'role') opts.schema || (opts.schema = require('../schema/role')()) var model = jm.dao(opts) jm.enableEvent(model) ...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var isArray = require('util').isArray; /** * isWholeNumberArray is a utility function that takes an array * it checks if the elements in the array are numbers. * returns true if all elements are js numbers or js string that are numbers...
/** @license * crossroads <http://millermedeiros.github.com/crossroads.js/> * License: MIT * Author: Miller Medeiros * Version: 0.8.0 (2012/3/5 14:26) */ (function (define) { define('crossroads', ['signals'], function (signals) { var crossroads, UNDEF; // Helpers ----------- //==============...
const express = require('express') const router = express.Router() const User = require('../../models/User').User const Student = require('../../models/Student').Student const Teacher = require('../../models/Teacher').Teacher const mongoose = require('../../libs/mongoose') const db = mongoose.connection const log = re...
var mutil = require('miaow-util'); module.exports = function (root, module) { return module.url || mutil.relative(root, module.destAbsPathWithHash) .replace(/\.js$/, ''); };
module.exports = require('./lib/bayon.js');
'use strict'; const assert = require('assert'); const Browscap = require('../src/index.js'); suite('checking for issue 539. (69 tests)', function () { test('issue-539-A ["ALCATEL-OT871A/980 Profile/MIDP-2.0 Configuration/CLDC-1.1 ObigoInternetBrowser/Q05A"]', function () { const browscap = new Browscap(); c...
async = require("async"); // Helper library to handle populating nested associations var allowed_tables = { "possibleanswers": _PopulatePossibleAnswers, "checkins": _PopulateCheckins, "classbonuses": _PopulateClassBonuses, "roles": _PopulateRoles }; function PopulateExtrasException(message) { this.message...
export class Board { // Sets up wins, rows and cells fro game; constructor() { // setup the square array for external use this.rows = []; // winning combos this.wins = [[0,1,2], [3,4,5], [6,7,8], [0,3,6], [1,4,7], [2,5,8], [0,4,8], [2,4,6]]; // sets up the cells t...
var LinksObserver = (function () { 'use strict'; let callbacks = new Set(); let links = new Set(); // Create a set of all tab-enabled elements that are not document.body. function getLinks() { var elements = document.body.querySelectorAll('*'); for (var el of elements) { if (el.tabIndex !== -1...
var ThreadWatcher = require('../../lib/2ch').ThreadWatcher, watcher = new ThreadWatcher('番組ch(NHK)', /NHK総合を常に実況し続けるスレ/, 5000), loaded = false; watcher.on('update', function(messages) { if (!loaded) { loaded = true; return; } messages.forEach(function(message) { console.log( message.num...
var User = require('../models/user'); module.exports = { /* * logs in the user * @param req the request the user sends * @param res the response that the user recieves */ login: function (req, res) { var name = req.body.name; var password = req.body.password; User.f...
'use strict'; const Plugin = require('../plugin'); const AdminHandler = require('../router/handler/adminHandler'); const Registry = require('../../util/registry'); const isEmptyObject = require('../../util/isEmptyObject'); const Path = require('path'); const Form = require('../formApi/form'); /** * The Settings plug...
// Generated by CoffeeScript 1.7.1 $(function() { test("a basic test example", function() { var value; ok(true, "this test is fine"); value = "hello"; return equal("hello", value, "We expect value to be hello"); }); test("getItemData", function() { var logic; logic = h5.core.logic(ItemSear...
'use strict'; let jwt = require('jsonwebtoken'), secrets = require('../../../config').secrets; /* * Verify that the decoded json web token includes an * unique identifier (jit) and that this identifier is * the same than the user token id. */ module.exports = function(model) { let payload = jwt.decode(model.t...
import { resolverForGivenFunction, dataObjBuilder, metaFunctionBuilder } from './core.js' import { dataDefaults } from './defaults.js' export default function AsyncDataMixinBuilder(dataGlobalDefaults, meta) { const metaRefresh = metaFunctionBuilder('refresh', meta) const metaLoading = metaFunctionBuilder('loading', ...
'use strict'; module.exports = function(grunt) { grunt.config('watch', { test: { files: ['src/**/*.js', 'test/tests/**/*.js'], tasks: ['mochaTest:runDry'], options: { interrupt: true, }, }, }); grunt.loadNpmTasks('grunt-contrib...
(function () { function load() { if (!window.ontando_scriptLoader) { setTimeout(load, 500); } else { var loadRemoteAsync = window.ontando_scriptLoader.loadRemoteAsync; // Loading tools loadRemoteAsync("devTools/loaderConfig.js"); } } ...
import togglable from 'patterns/tx-togglable'; const ACTIVE_CLASS_NAME_SUFFIX = '-is-active'; export default function offscreenNav(toggleID, navigationID) { let navigation; let activeClassName; function toggleNavigation() { navigation.classList.toggle(activeClassName); } const toggle = document.getEle...
/* eslint-disable import/no-extraneous-dependencies */ import Vue from 'vue'; import Router from 'vue-router'; import pages from './pages'; Vue.use(Router); const routes = pages.map((page) => { const { name } = page; return { path: `/${name}`, name, component: page, }; }); routes.push({ path: '...
'use strict'; var angular = require('angular'); var template = require('./template.html'); angular.module('Application') .directive('sidebarMeasures', [ 'Configuration', function(Configuration) { return { template: template, replace: false, restrict: 'E', scope: { ...
describe('convolutional layer: SeparableConv2D', function() { const assert = chai.assert const styles = testGlobals.styles const logTime = testGlobals.logTime const stringifyCondensed = testGlobals.stringifyCondensed const approxEquals = KerasJS.testUtils.approxEquals const layers = KerasJS.layers const ...
// All symbols in the `Samaritan` script as per Unicode v5.2.0: [ '\u0800', '\u0801', '\u0802', '\u0803', '\u0804', '\u0805', '\u0806', '\u0807', '\u0808', '\u0809', '\u080A', '\u080B', '\u080C', '\u080D', '\u080E', '\u080F', '\u0810', '\u0811', '\u0812', '\u0813', '\u0814', '\u0815', '\u0816', ...
/** @namespace lsn.forms */ ECMAScript.Extend('lsn.forms', function (ecma) { var CInputBase = this.InputBase; var _proto = ecma.lang.createPrototype(CInputBase); /** * @class InputBoolean */ this.InputBoolean = function (elem) { CInputBase.apply(this, [elem]); this.value = this.emptyValue = ne...
(function() { /*! * @overview Ember - JavaScript Application Framework * @copyright Copyright 2011-2021 Tilde Inc. and contributors * Portions Copyright 2006-2011 Strobe Inc. * Portions Copyright 2008-2011 Apple Inc. All rights reserved. * @license Licensed under MIT license * ...
var express = require("express"), router = express.Router(), User = require('../models/user'); router.get("/:userId/followeralert", (req, res) => { if (req.params.userId) { User.findById(req.params.userId, (err, user) => { if(err) return; res.render("followeralert", { defaults: re...
'use strict'; var grunt = require('grunt'); /* ======== A Handy Little Nodeunit Reference ======== https://github.com/caolan/nodeunit Test methods: test.expect(numAssertions) test.done() Test assertions: test.ok(value, [message]) test.equal(actual, expected, [message]) test.notEqual(actua...
import React from 'react'; import PropTypes from 'prop-types'; import generateId from 'extensions/generateId'; import Skeleton from 'skeletons/Skeleton'; import * as styles from './styles'; /** * A simple `Toggle` component thta can be turned on and off. Use `checked` to set * whether the `Toggle` is selected. */ c...
'use strict'; // Init the application configuration module for AngularJS application var ApplicationConfiguration = (function() { // Init module configuration options var applicationModuleName = 'indsa'; var applicationModuleVendorDependencies = ['ngResource', 'ui.router', 'ui.bootstrap', 'ui.utils']; // Add a ne...
#!/usr/bin/env node 'use strict'; var app = require(__dirname + '/../lib/index.js'); var arg = process.argv[2]; var fs = require('fs'); var data = fs.readFileSync(arg, 'utf8'); console.log(app.createItems(data));
/**************************************************************************** The MIT License (MIT) Copyright (c) 2014 Apigee Corporation 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 with...
import React from 'react'; import PropTypes from 'prop-types'; import RefHolder from '../models/ref-holder'; import GitTabContainer from '../containers/git-tab-container'; export default class GitTabItem extends React.Component { static propTypes = { repository: PropTypes.object.isRequired, } static uriPat...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.16/esri/copyright.txt for details. //>>built define(["require","exports","./tsSupport/generatorHelper","./arrayUtils","./HeapSort"],function(k,l,g,f,h){return function(){function b(a){var c=this;this.data=[];...
importScripts('/poc/orbits/javascripts/geometry/vector3.js'); (function () { var root = this, P = (root.P = {}); P.R = 7000000; // Polar unit vector var ax = 0.423, ay = 0, az = 0.906; // fixed vector var polar = V3.build(ax, ay, az); P.polar = polar; // Base unit vector for lon...
/** * Route Mappings * (sails.config.routes) * * Your routes map URLs to views and controllers. * * If Sails receives a URL that doesn't match any of the routes below, * it will check for matching files (images, scripts, stylesheets, etc.) * in your assets directory. e.g. `http://localhost:1337/images/foo.jpg`...
'use strict'; /* jshint -W098 */ angular.module('mean.moviescode').controller('MoviescodeController', ['$scope', 'Global', 'Moviescode', function($scope, Global, Moviescode) { $scope.global = Global; $scope.package = { name: 'moviescode' }; } ]);
define([ 'soundcloud', 'backbone', 'c/favourites', 'constants' ], function( SC, Backbone, FavouritesCollection, c ){ return Backbone.Model.extend({ defaults: { favourites: null }, url: function() { return '/me'; }, initialize: function() { _.extend(this, this....
'use strict'; module.exports = function(req, res, next) { if (req.locals.result) { res.status(200); res.send(req.locals.result); } else { next(); } }
var inherits; if (typeof Object.create === 'function'){ inherits = function inherits(ctor, superCtor) { // implementation from standard node.js 'util' module ctor.super_ = superCtor ctor.prototype = Object.create(superCtor.prototype, { constructor: { value: ctor, enumerable: false, ...
/** * Mock a simple plugin that takes a file input and just strips any linebreak * or return characters. */ module.exports = function() { return require('through2').obj(function ( targetFile, encoding, done ) { targetFile.contents = new Buffer( targetFile.contents.toString().replace(/\r?\n|\r/g, '') ...
var locastyle = locastyle || {}; locastyle.steps = (function() { 'use strict'; var config = { selectors: { moduleActive: '.ls-actived [data-ls-module="steps"]', nav: '.ls-steps-nav', button: '.ls-steps-btn', container: '.ls-steps-content', steps: '.ls-steps', moduleVisible:...