code
stringlengths
2
1.05M
'use strict' const npm = require('./npm.js') const Installer = require('libcipm') const log = require('npmlog') const path = require('path') const pack = require('./pack.js') ci.usage = 'npm ci' ci.completion = (cb) => cb(null, []) module.exports = ci function ci (args, cb) { const opts = { // Add some non-np...
export class InvalidArgumentError extends Error { constructor(message, argument) { super(message); this.message = message; this.argument = argument; this.name = 'InvalidArgumentError'; } };
var _curry2 = require('./internal/_curry2'); var mergeDeepWithKey = require('./mergeDeepWithKey'); /** * Creates a new object with the own properties of the first object merged with * the own properties of the second object. If a key exists in both objects: * - and both values are objects, the two values will be r...
// @flow import type { Conf, Timer } from "../types"; import { extraArgsNotAllowed } from "../errors/compatibility"; function printLines(conf: Conf, xs: mixed[]) { xs.forEach(x => conf.print(x)); } function fmt(conf: Conf, x: mixed): string { const _require = require; const util = _require("util"); // Otherw...
var expect = require('chai').expect, b = require('../index'); describe('#analog', function() { before("setting P8_13 to analog output pin",function(done){ b.pinMode("P8_13", b.ANALOG_OUTPUT, done); }); it('reads analog input pin P9_40', function(done) { b.digitalRead("P9_40", function(err, value) { ...
var ga = {}; (function(ga, $, _, Handlebars) { 'use strict'; ga.init = function(options) { ga.defaultService.init(options); ga.map.init(); ga.loader.init(); ga.settingsService.init(); }; })(ga, jQuery, _, Handlebars);
module.exports = require("./es5/lib/akiro.js");
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.NEWTON = {})); }(this, (functi...
define("gallery2/bootstrap/3.0.1/bootstrap-debug", [ "$-debug" ], function(require) { var jQuery = require("$-debug"); /*! * Bootstrap v3.0.0 by @fat and @mdo * Copyright 2013 Twitter, Inc. * Licensed under http://www.apache.org/licenses/LICENSE-2.0 * * Designed and built with all the love in the world by ...
import Ember from 'ember'; export default Ember.Component.extend({ classNames: ["button"], label: "", disabled: false, invisible: false, disabledChange: function() { this.$().toggleClass("disabled", this.get('disabled')); }.observes('disabled').on("didInsertElement"), ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = function (symbol, start, end) { return '\n <html>\n <head>\n <script>\n var Coinstaker = {};\n Coinstaker.Config = {\n symbol: "' + symbol + '",\n start: "' + start...
AjaxRequest = { _call:function( _method, _url, _data, _successHandler, _errorHandler, _completeHandler){ $.ajax({ type: _method, url: _url, data: _data, success:_successHandler, error: _errorHandler, complet...
gj.dialog.messages['it-it'] = { Close: 'Chiudi', DefaultTitle: 'Dialogo' };
import React from 'react'; import PropTypes from 'prop-types'; import Col from './Col'; // This is just a holder for the props and children for tab, thus // there is no logic here. const Tab = ({ children, idx, className }) => ( <Col id={`tab_${idx}`} s={12} className={className}> {children} </Col> ); Tab.pro...
import {PolymerElement, html} from '@polymer/polymer'; import {FBP} from "../fbp"; import "../flow-repeat" import "./data-maker" import "./rep-item" /** * `repeat-help` * * * @summary * @customElement * @polymer * @mixes FBP */ class RepeatHelp extends FBP(PolymerElement) { static get template() { ...
'use strict'; /** * Module dependencies. */ var _ = require('lodash'), glob = require('glob'); /** * Load app configurations, including the user's custom configurations */ module.exports = _.extend( require('./env/all'), require('./env/' + process.env.NODE_ENV) || {}, require('./custom') ); /** ...
module.exports = {}; module.exports.random = function(seed) { var bits = require('../bits/index'); /* random.js Original author, Phill Conrad and Emilie Barnard UCSB CS Dept. for Project Awesome Original Version: Spring 2013 Provide a stream of random numbers that is seeded and repeatable, with a contract similar...
module.exports = function(options) { if (options && typeof options === 'string') { return options.toUpperCase(); } else if (options && typeof options === 'object') { return options.fn(this).toUpperCase(); } };
#!/usr/bin/env node var mongod = require('../cli')('mongoimport');
import edit_button from '../edit_button.html'; export default function (nga, admin) { var packageschannels = admin.getEntity('packagechannels'); packageschannels.listView() .title('<h4>Package Channels <i class="fa fa-angle-right" aria-hidden="true"></i> List</h4>') .batchActions([]) .actions(['<ma-back-button...
import React, { Component } from "react" import PropTypes from "prop-types" import Nav from "./Schedule/Nav" import Ruler from "./Schedule/Ruler" import DayView from "./Schedule/DayView" import UnscheduledArea from "./Schedule/UnscheduledArea" import GenerateGridButton from "./Schedule/GenerateGridButton" import BulkC...
var defaultOrder = "date"; Template.statements.created = function() { TemplateVar.set(this, "order", defaultOrder); }; Template.statementDetails.helpers({ predictions: function() { return Predictions.find({"statement": this._id}, {sort: {"createdAt": -1}}); }, predictionsCount: function() { ...
import React from 'react'; import cn from 'classnames'; import { Link } from 'react-router'; import styles from './LaborRightsEntry.module.css'; const LaborRightsEntry = ({ link, title, coverUrl }) => ( <Link to={link} className={styles.wrapper}> { coverUrl && <div className={styles.cover}> ...
require.config({ baseUrl: '/', paths: { 'mocha' : 'bower_components/mocha/mocha', 'chai' : 'bower_components/chai/chai', 'chai-things' : 'bower_components/chai-things/lib/chai-things', 'sdmxjsonlib' : 'sdmxjsonlib', 'request' : 'test/js/request'...
<assets> <header layout="row" layout-align="space-between center"> <h2>Assets</h2> <div class="panel-settings"> <i if={ files.length > 4 } onclick={ removeAll } class="fa fa-minus fa-2x"></i> <i class="fa fa-gear fa-2x"></i> </div> </header> <div class="panel-content"> <dropzone serversideupload="pr...
module.exports = function (grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), uglify: { options: { banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n' }, build: { src: 'src/<%= pkg.name %>...
var Stack = function () { this.first = null; //pointer to top of stack }; Stack.prototype.isEmpty = function () { return this.first == null; }; Stack.prototype.push = function (dataArray) { this.first = new this.Node(dataArray, this.first); }; Stack.prototype.pop = function () { if (this.isEmpty()) {...
import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import * as actionCreators from '../../../actions'; import Layout from './Layout'; function mapStateToProps(state) { return { httpStatusList: state.httpStatusList } } function mapDispatchToProps(dispatch) { return b...
var config = require('../config'), _ = require('underscore'), path = require('path'), when = require('when'), api = require('../api'), mailer = require('../mail'), errors = require('../errorHandling'), storage = require('../s...
define(function(require, exports, module) { "use strict"; var Collection = require("collection"); describe("Collection", function() { it("is a constructor", function() { assert.equal(typeof Collection, "function"); }); }); });
import React from 'react'; import Navbar from './Navbar'; import TypeWriter from 'react-typewriter'; import RecordRTC from 'recordrtc'; const StereoAudioRecorder = RecordRTC.StereoAudioRecorder; import {captureUserMedia, uploadAudio} from './AppUtils'; class Question extends React.Component { constructor(props) { ...
/* * Copyright (c) 2014 airbug Inc. All rights reserved. * * All software, both binary and source contained in this work is the exclusive property * of airbug Inc. Modification, decompilation, disassembly, or any other means of discovering * the source code of this software is prohibited. This work is protected un...
import * as angular from 'angular'; import uiRouter from 'angular-ui-router'; import { visitStatsRoutes } from './visit-stats.routes'; import { VisitStatsComponent } from './visit-stats.component'; import { VisitService } from './visit.service'; export const VisitStatsModule = angular .module('VisitStatsModule',...
/** * Factory for user. */ window.UserFactory = function (options) { return _.extend({ name: '', email: '' }, options); }; /** * Factory for make. */ window.MakeFactory = function (options) { return _.extend({ name: '' }, options); }; /** * Factory for model. */ window.Mo...
/* * * AutoComplete constants * */ export const AUTOCOMPLETE_REQUEST = 'AUTOCOMPLETE_REQUEST'; export const AUTOCOMPLETE_ERROR = 'AUTOCOMPLETE_ERROR'; export const AUTOCOMPLETE_SUCCESS = 'AUTOCOMPLETE_SUCCESS'; export const AUTOCOMPLETE_ITEM_SELECTED = 'AUTOCOMPLETE_ITEM_SELECTED';
/** * Test case for apemanschema. * Runs with mocha. */ 'use strict' const apemanschema = require('../lib/apemanschema.js') const assert = require('assert') describe('apemanschema', () => { it('Apemanschema', (done) => { let schema = apemanschema(`${__dirname}/../misc/mocks/mock-schemas`) let { errors } ...
module.exports.disbursingLoan = async ({ Records }, context, callback) => { Records.forEach(record => { // const payload = new Buffer(record.kinesis.data, 'base64').toString('ascii') console.log('Received a Kinesis event: ' + record) }) callback(null, `Successfully processed ${Records.lengt...
console.log('Hello world! Remeber files here go on alphabetic order!');
// All code points in the `Bengali` script as per Unicode v5.1.0: [ 0x981, 0x982, 0x983, 0x985, 0x986, 0x987, 0x988, 0x989, 0x98A, 0x98B, 0x98C, 0x98F, 0x990, 0x993, 0x994, 0x995, 0x996, 0x997, 0x998, 0x999, 0x99A, 0x99B, 0x99C, 0x99D, 0x99E, 0x99F, 0x9A0, 0x9A1, 0x9A2, 0x9A3, 0x9A4, 0x9...
'use strict'; /* Filters */ angular.module('demoApp.filters', []). filter('interpolate', ['version', function(version) { return function(text) { return String(text).replace(/\%VERSION\%/mg, version); } }]);
export default { Shanghai_Pudong_1: { detail: '上海市浦东新区齐河路257弄10号', geoLocation: { coordinates: [121.509175, 31.185424] }, isTest: true }, Shanghai_Pudong_2: { detail: '上海市浦东新区齐河路121弄54号', geoLocation: { coordinates: [121.508379, 31.185377] }, isTest: true }, Shangha...
module.exports = { MaxLayerId : 0xFF };
/** * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow * @format */ 'use strict'; const RelayContainerProxy = require('../classic/container/RelayContainerProxy'); const RelayGraphQ...
/* =================================================== * bootstrap-transition.js v2.2.1 * http://twitter.github.com/bootstrap/javascript.html#transitions * =================================================== * Copyright 2012 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you ...
import gql from 'graphql-tag'; import { contentDataImagesFragment } from '@data/fragments'; export default gql` query GetNews($limit: Int!, $skip: Int!) { content(channel: "news", limit: $limit, skip: $skip) { id id title status channelName meta { urlTitle site...
'use strict'; //1753 - 9999 const [,, ...args] = process.argv; const validateArgs = require('./validateArgs.js'); const displayMonth = require('./month.js'); const displayYear = require('./year.js'); //validate the arguments const validatedArgs = validateArgs.validate(args); if (!validatedArgs) { process.exit(); } ...
import React, { PropTypes, Component } from 'react'; import classNames from 'classnames'; import { Units, Colors, Typography } from '../Styles'; export default class CardImage extends Component { static propTypes = { title: PropTypes.string, subtitle: PropTypes.string, }; render() { const { classNa...
import forEach from "lodash/forEach"; export default { "battle.count": function() { const el = document.querySelector(".prt-battle-num > .txt-info-num > div:first-child"); if (el && el.className.indexOf("num-info") >= 0) { return Number(el.className.substr(-1)); } else { return 1; } }, ...
// *************************************************************** // Router bundle // *************************************************************** // Config import "./router-config.js" import "./filter-config.js" // Routes import "./page-routes.js" import "./document-routes.js"
var db; const MongoClient = require('mongodb').MongoClient; const ObjectId = MongoClient.ObjectId; const config = require('../config/config.json'); const wrap = require('co-express'); function connect() { return MongoClient.connect(config.db.connection); } module.exports.Getproducts = wrap(function *(req , res , n...
version https://git-lfs.github.com/spec/v1 oid sha256:2499ddaa4d64d05008aa4a8f29c2ecf98d53efd438a6d1da5c69a0d7b9ac2cbb size 32228
app.directive('graph', function() { return { restrict: 'E', require: '^ngModel', scope: { ngModel: '=', name: '@' }, templateUrl: '/directives/graph.html', link: function(scope, element, attr, ngModel){ var graphId = uuid() element.find('div').attr('id', graphId) var chart; ...
var fs = require('fs'); var express = require('express'); var app = express(); var logger = require('./logger'); var config = require('./config'); var env = config.get('env'); var assets = config.get('assets'); var Page = require('./page'); app .use(function (req, res, next) { req.host = req.headers.host; ...
/** * * STRING ARRAY: iset * * * DESCRIPTION: * - Sets a StringArray value located at a specified index. * * * NOTES: * [1] * * * TODO: * [1] * * * LICENSE: * MIT * * Copyright (c) 2015. Athan Reines. * * * AUTHOR: * Athan Reines. kgryte@gmail.com. 2015. * */ 'use strict'; // MODULES // var isInteger = require(...
define(['./chunk-e684c31e.js'], function (__chunk_1) { 'use strict'; console.log('1', __chunk_1.dep); });
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const SerialPort = require("serialport"); const Slip = require("node-slip"); const events_1 = require("events"); const CrcUtils_1 = require("./CrcUtils"); class SerialTransport extends events_1.EventEmitter { constructor(baudrate, port) { ...
/* jshint node: true */ module.exports = function(environment) { var ENV = { modulePrefix: 'ember-spirit', environment: environment, rootURL: '/', locationType: 'auto', EmberENV: { FEATURES: { // Here you can enable experimental features on an ember canary build // e.g. 'wit...
var verifyPrimaryField = require("./verifyTablePrimaryField"), verifyFields = require("./verifyTableFields"), verifyAggregates = require("./verifyAggregateRelations"), verifyExtends = require("./verifyExtendsRelations"); function scanSchemaTables(schema) { "use strict"; return Object.keys(schema).e...
const PassConfig = Jymfony.Component.DependencyInjection.Compiler.PassConfig; const ServiceReferenceGraph = Jymfony.Component.DependencyInjection.Compiler.ServiceReferenceGraph; const LogFormatter = Jymfony.Component.DependencyInjection.Compiler.LogFormatter; /** * @memberOf Jymfony.Component.DependencyInjection.Comp...
import r from 'restructure'; import Entity from '../entity'; import StringRef from '../string-ref'; export default Entity({ id: r.uint32le, type: r.uint32le, name: StringRef, filenames: new r.Array(StringRef, 10), unknowns: new r.Reserved(StringRef, 10), path: StringRef, volume: r.floatle, flags: r....
'use strict'; module.exports = function(grunt) { // Project configuration. grunt.initConfig({ // Metadata. pkg: grunt.file.readJSON('asDatepicker.jquery.json'), banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' + '<%= grunt.template.today("yyyy-mm-dd") %>\n' + '<%= pkg.ho...
/** * This file is included in the main bundle. Its main purpose is to find out if the main bundle could execute, * or if it errored out due to a Syntax Error since the main bundle is only compiled against a specific list * of browsers. We also check some specific browsers here. * The unsupported.js script is inclu...
// All code points in the Arabic Presentation Forms-A block as per Unicode v6.0.0: [ 0xFB50, 0xFB51, 0xFB52, 0xFB53, 0xFB54, 0xFB55, 0xFB56, 0xFB57, 0xFB58, 0xFB59, 0xFB5A, 0xFB5B, 0xFB5C, 0xFB5D, 0xFB5E, 0xFB5F, 0xFB60, 0xFB61, 0xFB62, 0xFB63, 0xFB64, 0xFB65, 0xFB66, 0xFB67, 0xFB68, 0xFB69, ...
'use strict'; const {AbstractValidate, BusinessCase} = require('business-error'); const {NAME_MAXLENGTH} = require('./iteration-model'); const {trim} = require('lodash'); const moment = require('moment'); class IterationValidate extends AbstractValidate { constructor(app) { super(); this.iterationModel = ap...
var React = require('react/addons'); var ReactCSSTransitionGroup = React.addons.CSSTransitionGroup; var classnames = require('classnames'); var Touchstone = require('touchstonejs'); var config = require('./config'); var AppActions = require('./actions/AppActions') var ArticlesStore = require('./stores/ArticlesStore') ...
'use strict'; angular.module('myApp.addExamination', ['ngRoute', 'ngCookies']) .config(['$routeProvider', function($routeProvider) { $routeProvider.when('/addExamination', { templateUrl: 'addExamination/addExamination.html', controller: 'addExaminationController' }); }]...
greenhouseApp.filter('reverse', function() { function toArray(list) { var k, out = []; if( list ) { if( angular.isArray(list) ) { out = list; } else if( typeof(list) === 'object' ) { for (k in list) { if (list.ha...
var globalFs = require('fs'); var path = require('path'); var parallel = require('continuable-para'); var series = require('continuable-series'); var globalRimRaf = require('rimraf'); var format = require('util').format; var message = '`fixtures-fs#teardownFixtures` expected key %s ' + 'to have value that is a str...
import getModel from 'schemas'; import { AccessDeniedError } from 'Errors'; import { makeMiddleware } from 'api'; import bcrypt from 'bcrypt'; import persistentStorage from 'lib/persistentStorage'; import { addMessages, setLocale as switchLocale, translate as _l } from 'lib/I18n'; addMessages({ ['en-US']: { 'You...
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ re...
import React, {Component} from 'react'; import {ModalFooter, ModalHeader, Modal, ModalBody, Input, Button, Table} from 'reactstrap'; // import Loading from './Loading.js'; import {User} from '../classes/API/User.js'; import {Products} from '../classes/API/Products.js'; class ShoppingCart extends Component { con...
/** * Created by Deboy on 2017/3/26. */ import * as types from '../mutation-types' import { get } from '../../utils/localstorage' import { SETTINGS } from './store-keys' const defaultSettings = { workspace: null, // 模版存放文件夹 templateDir: null, // 日志记录 logs: [], // 在新建表的时候自动添加字段 autoAddFieldWhenTableCreat...
'use strict'; angular.module('myApp.home', ['ngRoute']) .config(['$routeProvider', function($routeProvider) { }]) .controller('HomeCtrl', [function() { }]);
import React from "react" let stylesStr if (process.env.NODE_ENV === `production`) { try { stylesStr = require(`!raw-loader!../public/styles.css`) } catch (e) { console.log(e) } } export default class HTML extends React.Component { render() { let css if (process.env.NODE_ENV === `production`) ...
import loader from "../../../../iRobots/loader.js"; import ploader from "../../../../iRobots/puppeteerLoader.js"; const LIST_URL = "https://m.lagou.com/search.json"; export default class Loader { constructor(city = "苏州", kd = "前端") { this.city = city; this.kd = kd; this.isCookies = false; } async getCookie...
import moduleEngine from './../moduleEngine'; export default (settings, initOptions) => { return { Name: settings.Name, description: settings, options: initOptions, layout: createLayoutView(initOptions.$box, settings), channel: initOptions.channel, activeModules: []...
'use strict'; /** * Module dependencies */ var path = require('path'), config = require(path.resolve('./config/config')); /** * Educations module init function. */ module.exports = function (app, db) { };
module.exports = { constructorArgs: { responses: { 200: { schema: { type: 'object', properties: { foo: { type: 'string' } } } } }, definitions: null, errorTransformer: function(error) { return 'asdf...
(function() { 'use strict'; angular .module('app.exampleForm', []); })();
(function () { 'use strict'; /** * @memberof app * @ngdoc controller * @name ForgetController * @param $location * @param $timeout * @param FlashService * @description * Controller Call when we go on forget password page */ angular .module('app') ...
var express = require('express'); var app = express(); var Bear = require('./models').Bear; var bodyParser = require('body-parser'); app.use(bodyParser()); var port = process.env.PORT || 3000; var router = express.Router(); router.use(function(req, res, next) { console.log('middleware is working!') next...
$(document).ready(function() { $('#year').focus(); d3Map.year = $('#year').val(); d3Map.drawMap(d3Map.year); $('#data-year').text(d3Map.year); $('#year').on('input', function() { d3Map.year = $(this).val(); $('#data-year').text(d3Map.year); d3Map.drawMap($(this).val()); }) });
/** * @summary NoSearchHidden * @description Prevent searching of cells in hidden columns in DataTables * @version 1.0.0 * @file dataTables.noSearchHidden.js * @author Brian White * @contact github.com/mscdex/dataTables.noSearchHidden * @copyright Copyright 2014 Brian White * * Licen...
/** * This class specifies the definition for a container of grid editor. * @author dxq613@gmail.com */ KISSY.add('grid/editor-panel', function (S, Component) { var CLS_EDITOR_CONTAINER = 'ks-grid-editor-container'; var GridEditorPanelRender = Component.Render.extend([ Component.UIBase.PositionRender, Compo...
export Item from './Item'; export ItemPreview from './ItemPreview'; export List from './List'; export ListPreview from './ListPreview';
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.8/esri/copyright.txt for details. //>>built define({widgetLabel:"C\u0103utare",searchButtonTitle:"C\u0103utare",clearButtonTitle:"Golire c\u0103utare",placeholder:"G\u0103sire adres\u0103 sau loc",searchIn:"C...
angular.module("myApp.ctrl.HomeController", []) // .factory('HomeService', [ '$http', '$q', function($http, $q) { var factory = { getAbout : httpAbout, getAboutById : httpAboutById }; return factory; function httpAbout() { var deferred = $q.defer(); $http({ method : 'GET', url : '/about' }).then(f...
$(document).ready(function() { //higlightjs $('pre code').each(function(i, e) { hljs.highlightBlock(e); }); //select $(".select select-btn").find("span.text").text($(".select select").find(":selected").text()); $(".select select").change(function() { var a = $(this).closest(".sel...
const path = require('path'); const ProgressBarPlugin = require('progress-bar-webpack-plugin'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const rootPath = path.resolve('.'); const stylesRelativePath = '../'; module.exports = { devtool:...
'use strict'; let SmartModel = require('./SmartModel'); let {extend, copy} = require('./utils'); class RollbackableSmartModel extends SmartModel { static create(data) { let model = super.create(data); Object.defineProperty(model, '__defaults', { enumerable: false, configurable: false, writ...
'use strict'; module.exports = function ( gulp, plugins, config, pkg, bwr ) { /** * Runs bower install including in the gulpfile, * contributors only have to run this and have * them all setup and ready */ gulp.task( 'install-bower', 'Get all setup and ready', function () { retur...
/** * */ // Look in ./build folder for webpack.dev.js switch (process.env.NODE_ENV) { case 'prod': case 'production': module.exports = require('./build/webpack.prod')({env: 'production'}); break; // case 'test': // case 'testing': // module.exports = require('./build/webpack.test')({env: 'test'}...
define([ 'angular', 'text!./qColumnDetails.html', // './module' ], function (angular, tpl) { 'use strict'; var quanbanDirs = angular.module('quanban-dirs'); function qColumnDetailsCtrl($scope, repoResolver) { $scope.$watch('column', function (column) { $scope.editable...
'use strict'; //Shelters service used to communicate Shelters REST endpoints angular.module('shelters').factory('Shelters', ['$resource', function($resource) { return $resource('shelters/:shelterId', { shelterId: '@_id' }, { update: { method: 'PUT' } }); } ]);
this.NesDb = this.NesDb || {}; NesDb[ '7C6B67AC78B39C6610C27EED0C54B836D7034847' ] = { "$": { "name": "Vice: Project Doom", "class": "Licensed", "catalog": "NES-9G-USA", "publisher": "Sammy", "developer": "Aicom", "region": "USA", "players": "1", "date": "1991-11" }, "cartridge": [ { "$": { ...
import { connect } from 'react-redux'; import { setVisibilityFilter } from '../actions'; import TodoLink from '../components/TodoLink'; const mapStateToProps = (state, ownProps) => ({ active: ownProps.filter === state.visibilityFilter, }); const mapDispatchToProps = (dispatch, ownProps) => ({ onClick: () => { ...
uitest.define('config', [], function() { function create() { return new Create(); } function Create() { this._data = {}; } Create.prototype = { parent: simpleProp("_parent"), sealed: simpleProp("_sealed"), url: dataProp("url"), trace: dataProp("trace"), feature: dataAdder("features", featureValidat...
var esclient = require('pelias-esclient')(); var responder = require('./responder'); module.exports = function( req, res, next ){ var obj = { date: new Date().getTime(), body: [] }; // Proxy request to ES backend & map response to a valid FeatureCollection esclient.suggest({ index: 'pelias', ...
export {default as DisclosureSection} from './disclosure-section.js'; export {default as Disclosure} from './disclosure.js'; export {default as ToggleButton} from './toggle-button.js';
// Karma configuration // Generated on Wed Jul 01 2015 13:51:22 GMT+0200 (CEST) 'use strict'; module.exports = function (config) { // retrieve main files from bower var wiredep = require('wiredep'); var bowerFiles = wiredep({devDependencies: true}).js; config.set({ // base path that will be used to reso...