code
stringlengths
2
1.05M
angular.module('directive.babylonFooter', [ ]) .controller('FooterCtrl', function FooterCtrl($scope,$window) { //open external link $scope.toExternalLink = function (link) { window.open("", ""); }; }) .directive('babylonFooter', ['$compile', '$http', '$templateCache', function ($compile, $...
'use strict'; (function () { describe('populationCtrl', function () { beforeEach(module('populationApp')); var $controller; beforeEach(inject(function (_$controller_) { // The injector unwraps the underscores (_) from around the parameter names when matching $contr...
(function() { var delay = 20000, layers = {}, dataManagersLinks = {}, script = '/Layer/CheckVersion.ashx', intervalID = null, timeoutID = null, lastLayersStr = ''; var isExistsTiles = function(prop) { var tilesKey = prop.Temporal ? 'TemporalTiles' : 'tiles'; return tilesKey in prop || p...
// world.js ( function ( scope ) { var World = { fauna: {}, flora: {} }; scope.World = World; if ( scope.__World ) { for ( var i = 0, il = scope.__World.length; i < il; i ++ ) { scope.__World[ i ]( World ); } delete sc...
/** * @author: @AngularClass */ const webpack = require('webpack'); const helpers = require('./helpers'); /* * Webpack Plugins */ // problem with copy-webpack-plugin const AssetsPlugin = require('assets-webpack-plugin'); const NormalModuleReplacementPlugin = require('webpack/lib/NormalModuleReplacementPlugin'); c...
import { setActiveQuestionnaire, setActiveComponents, setActiveCodeLists, setActiveDeclarations, setSelectedComponentId, updateActiveQuestionnaire, saveActiveQuestionnaireSuccess, saveActiveQuestionnaireFailure, SET_ACTIVE_QUESTIONNAIRE, SET_ACTIVE_COMPONENTS, SET_ACTIVE_CODE_LISTS, SET_ACTIVE_D...
/** * Created by RSC on 01.04.2016. */ (function () { 'use strict'; angular .module('myApp') .factory('FlashService', FlashService); FlashService.$inject = ['$rootScope']; function FlashService($rootScope) { var service = {}; service.Success = Success; servic...
define(function() { console.log("hotels.list"); });
import PropTypes from 'prop-types'; import React from 'react'; import FileContent from './FileContent'; const FileAttachment = ({ activity: { attachments = [], channelData: { attachmentSizes = [] } = {} } = {}, attachment }) => { const attachmentIndex = attachments.indexOf(attachment); const size = attachment...
export { default } from 'roundcube-mail/components/thread-list/component';
var square = new function(){ var that = this; var j_index_page; var j_catelist; var j_indexlist; var square_node = new vus.node('square'); var user_node = new vus.node('user'); var index_node = new vus.node('index'); function box_set(j_box,id,logo,title,start_time,end_time,intro,activ...
import { ACTION_TYPES } from '../actions/NotificationAction'; const initialState = { text: 'default text', show: false, }; const reducers = { [ACTION_TYPES.PUSH_NOTIFICATION]: (state, action) => { return { ...state, text: action.notification, show: true }; }, [ACTION_TYPES.HIDE_NOTIFICATION]: (state) =>...
/** * Notes controller: responsible for the discussion of the current party, every * invitee can create note to give his/her available dates */ var mongoose = require('mongoose'); var Note = mongoose.model('Note'); var _ = require('underscore'); var utils = require('../../lib/utils'); var formatNote = function (not...
var es = require('event-stream'); var fs = require('vinyl-fs'); var path = require('path'); var _ = require('lodash'); //default options var defaults = { templateAdapter: 'static2000-pug', templates: path.join('src', 'templates'), content: path.join('src', 'content') }; //default stream event handlers var defau...
// Copyright IBM Corp. 2014,2016. All Rights Reserved. // Node module: loopback-workspace // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT var app = require('../'); var fs = require('fs'); var given = require('./helpers/given'); var ModelDefinition = app....
const fs = require('fs'); const gulp = require('gulp'); const babelify = require('babelify'); const browserify = require('browserify'); const eslint = require('gulp-eslint'); const browserSync = require('browser-sync').create(); const uglify = require('gulp-uglify'); const rename = require('gulp-rename'); const runSequ...
const clientTest = { sayHello() { console.log('Hello from the client!'); } }; export default clientTest;
var BASEURL = '/ambbooking/app'; var SITEURL = 'http://innosoftmm.com/amb/'; var APIURL = 'http://52.77.49.9:9000/'; var JSONURL = ''; var APIHEADER = { 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8' };
module.exports = { "extends": "airbnb-base", "env": { "browser": true }, "rules": { "brace-style": ["error", "stroustrup", { "allowSingleLine": true }], "class-methods-use-this": "off", "comma-dangle": ["error", "never"], "curly": "off", "max-len": ["error", 100, { "i...
/* EAGLE .BRD Renderer Benjamin D. Richards, Gamelab This script generates a model of a PCB (printed circuit board) based on XML data in a BRD file. Cadsoft EAGLE BRD files use XML from version 6.0 onwards. The model includes `Connectors` with which the PCB may be added as a component to a larger hardware system. ...
// Import filesystem module var fs = require('fs'); var reader = require('./lib/readBitmap'); var buffs; var finalBuffer; // Read bitmap1.bmp fs.readFile('bitmap1.bmp', function(error, data){ if (error) console.log(error); buffs = reader.readBitmap(data); // Concatenate list of buffers back into a single one ...
export { default } from './JavascriptOriginal'
{ "type": "FeatureCollection", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } }, "features": [ { "type": "Feature", "properties": { "Unnamed: 0": 0, "Incident Number": 141510093, "Date": "05\/31\/2014", "Time": "12:43 PM", "Police District": 7.0, "Offense 1": "THEFT FROM BUILDING", "...
/* // // SET for Alasql.js // Date: 01.12.2014 // (c) 2014, Andrey Gershun // */ yy.Declare = function (params) { return yy.extend(this, params); } yy.Declare.prototype.toString = function() { var s = 'DECLARE '; if(this.declares && this.declares.length > 0) { s = this.declares.map(function(declare){ ...
/* game namespace */ var game = { /** * an object where to store game global data */ data : { // score score : 0 }, // Run on page load. "onload" : function () { // Initialize the video. ...
/* Copyright (C) 2011 by MarkLogic Corporation Author: Mike Brevoort <mike@brevoort.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 ...
/* * bootstyles * https://github.com/sackio/bootstyles * * Copyright (c) 2014 Ben Sack * Licensed under the MIT license. */ 'use strict'; exports.awesome = function() { return 'awesome'; };
/* Table sorting script by Joost de Valk, check it out at http://www.joostdevalk.nl/code/sortable-table/. Based on a script from http://www.kryogenix.org/code/browser/sorttable/. Distributed under the MIT license: http://www.kryogenix.org/code/browser/licence.html . Copyright (c) 1997-2007 Stuart Langridge, Joost de ...
/*! * Angular Material Design * https://github.com/angular/material * @license MIT * v0.11.1-master-eacca5e */ goog.provide('ng.material.components.sticky'); goog.require('ng.material.components.content'); goog.require('ng.material.core'); /** * @ngdoc module * @name material.components.sticky * @description *...
/*! * Angular Material Design * https://github.com/angular/material * @license MIT * v1.0.0-rc5-master-76c6299 */ goog.provide('ng.material.components.sidenav'); goog.require('ng.material.components.backdrop'); goog.require('ng.material.core'); /** * @ngdoc module * @name material.components.sidenav * * @descr...
const expect = require('chai').expect const path = require('path') const fs = require('fs-extra') const h = require('../../test-helpers.js') const unpm = require('../../../lib/unity-npm-utils') const VERBOSE = false describe("unityPackage.setPackageName - sets package.name and updates all name-dependent aspects of a...
'use strict' const path = require('path') const utility = require(path.join(__dirname, '../utility')) const {baseConfig, baseObject} = utility.base module.exports = { get: baseConfig(Object.assign({}, baseObject())), assign: baseConfig(Object.assign({}, baseObject(), { baseFunction: function (variabl...
import {Config} from './config'; import Humane from 'humane-js'; import {inject} from 'aurelia-dependency-injection'; import {I18N} from 'aurelia-i18n'; import {DOM} from 'aurelia-pal'; import extend from 'extend'; /** * Readonly decorator * * @returns {function} * @decorator * * @see https://github.com/AvraamMa...
// STAND-IN.js :: an API body-double to promote rapid iteration in dev. // // Versions // 0.1 - a first implementation. "use strict"; // Platform includes var _ = require( 'lodash' ); var bodyParser = require( 'body-parser' ); var compression = require( 'compression' ); var cors = require( 'cors' ); var EOL = ...
import React from 'react'; import { Text, StyleSheet, ScrollView, View } from 'react-native'; import I18n from '../../../i18n/i18n'; import COMMON_STYLES from '../../../styles/common'; export default class ValidatorProfile extends React.Component { componentWillMount() { this.validator = this.props.data; } ...
import React from 'react'; import Icon from '../Icon'; export default class MoodIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M23.99 4C12.94 4 4 12.95 4 24s8.94 20 19.99 20C35.04 44 44 35.05 44 24S35.04 4 23.99 4zM24 40c-8.84 0-16-7.16...
const generateCiCredentials = () => { const ciBaseEmail = process.env.CI_BASE_EMAIL; const ciPassword = Date.now(); const splittedEmail = {}; [splittedEmail.emailName, splittedEmail.emailDomain] = ciBaseEmail.split('@'); const credentials = { email: `${splittedEmail.emailName}+${ciPassword}@${splittedEm...
'use strict'; var factions = require('../../../shared/factions'); var assimilation = require('../../../game/futures/assimilation'); var sinon = require('sinon'); describe('futures/assimilation', function() { var player1, targets, game; beforeEach(function() { player1 = {_id: 1}; targets = ...
/** * Super FavBook Plus * https://github.com/JasminDreasond/Super-FavBook-Plus * By Jasmin Dreasond * License : MIT **/ // Click Load CSS System function antirepeat(data1, data2, type) { var duplicateChk = {}; $("" + data1 + ":contains(" + data2 + ")").each(function() { if (dupli...
/** * Created by sam on 15-2-6. */ angular.module('security.authorization',['security.service', 'security.retryQueue']) .factory('securityAuthorization', ['security', 'securityRetryQueue', function(security, queue){ var service = { requireAuthenticatedUser: function(){ var promise = security.reque...
var Joi = require('joi') var request = require('request') function CallMLService (config) { if (!(this instanceof CallMLService)) return new CallMLService(config) Joi.assert(config, Joi.object().keys({ url: Joi.string().required(), company: Joi.string().required(), username: Joi.string().required(), ...
requirejs.config({ 'baseUrl': '../js' }); require(['jquery', 'jquery.mobile'], function($, jqm) { // Initialize page and toolbars jqm.initializePage(); $( "[data-role='header'], [data-role='footer']" ).toolbar().show(); var $navbar = $( "[data-role='navbar']" ); $navbar.navbar(); // Identi...
export { default } from 'flood-dropdown/components/flood-select/component';
import React, { Component } from 'react'; import { StyleSheet, TouchableOpacity, Text, View, Animated, Easing } from 'react-native'; import { Icon } from 'react-native-elements'; import IconBadge from 'react-native-icon-badge'; import Favourites from '../helpers/Favourites'; const styles = StyleSheet.create({ contai...
var Q = require('bluebird'); var Mongoose = require('mongoose'); var mongoConnections = KH.config('dbs.mongo'); if (! KH.utils.isArray(mongoConnections)) { throw new Error("The mongodb configuration object should be an array of objects"); return ; } var Promises = []; mongoConnections.forEach(function(mongoConne...
module.exports = { entry: './src/index.jsx', output: { path : __dirname + '/dist', libraryTarget: 'umd', library : 'ReactRadioGroup', filename : 'react-radio-group.js' }, module: { loaders: require('./loaders.config') }, externals: { ...
'use strict'; /** * @ngdoc service * @name SubSnoopApp.subInfo * @description * # submissions * Factory in the SubSnoopApp. */ angular.module('SubSnoopApp') .factory('submissions', function () { var username; var submits = {}; /* Stores a user's submissions with their HTML content wrappers ...
import React from 'react' import { Provider } from 'react-redux' import RegisterComponent from '../../RegisterComponent' import createStore from './redux/create' import Header from './Header' export const AuthWidget = (props) => { const store = createStore(props); return ( <Provider store={store}> <He...
// Karma configuration // Generated on Fri Jan 20 2017 14:30:08 GMT-0700 (Mountain Standard Time) module.exports = function(config) { config.set({ // base path that will be used to resolve all patterns (eg. files, exclude) basePath: '', proxies : { // avoid Karma's ./base virtual directory }...
module.exports = exports = { lang: 'zh-cn', newglyph: '新字形', undo: '撤销', redo: '重做', import: '导入', import_svg: '导入svg', import_svg_title: '导入svg格式字体文件', import_pic: '导入图片', import_pic_title: '导入包含字形的图片', import_font: '导入字体文件', import_font_title: '导入ttf,woff,eot,otf格式字体文件', ...
define([ 'src/enum/eventtype' ], function ( EventType ) { describe('EventType enumeration', function () { it('is an object', function () { expect(EventType).to.be.an('object'); }); it('contains only strings', function () { var key, e, events = []; for (key i...
import axios from 'axios' import {instanceAxios} from '../../../../components/utils/functions' const asyncValidate = (values /*, dispatch */) => { return instanceAxios.get('/api/teachers/'+ values.id + '/' + values.email) .then(res=>{ throw {email: 'email is already taken'} }...
import './angular-load'; export default 'angularLoad';
$(document).ready(function() { $("#writeStory").click(function() { var originalStory = $("#originalStory").val(); var generatedStory = generateStory(originalStory); $("#generatedHeader").text("Generated Story:"); $("#generatedStory").html(generatedStory); $("#generatedStory").html($("#generatedS...
// This component handles the App template used on every page. import React, { Component, PropTypes } from 'react'; import { connect } from 'react-redux'; import Footer from './common/Footer.js'; import ConfirmModalBox from './common/ConfirmModalBox'; import Header from '../components/common/Header'; const { object } ...
describe('this controller', function () { var ctrl; var scope; beforeEach(module('overwatch.layout')); beforeEach(function () { inject(function ($rootScope, $controller) { scope = $rootScope.$new(); ctrl = $controller('pageLayoutCtrl', { $scope: scope }); }); ...
angular.module('deco').directive('decoLink', ['$location', '$rootScope', function ($location, $rootScope) { return { restrict: 'AE', scope: { param: '=param' }, link: function ($scope, element, attrs) { var extUr...
import wrapper from "./constants_wrapper"; // These action types will have a _DONE action added const actionTypes = [ // MESSAGES "ADD_MESSAGE", "REMOVE_MESSAGE", "CLEAR_MESSAGES" ]; // These types will receive a _DONE const asyncActionTypes = [ ]; export default wrapper(actionTypes, asyncActionTypes);
import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import { createStore } from 'redux' import App from './reducers/App' import ChessBoard from './containers/ChessBoard' let store = createStore(App) ReactDOM.render( <Provider store={store} > <ChessBoard /> </Pr...
/** * Success Criterion 2.4.4: Link Purpose (In Context) * * @see http://www.w3.org/TR/UNDERSTANDING-WCAG20/navigation-mechanisms-refs.html */ var SuccessCriteria = require('SuccessCriteria'); var SuccessCriteriaP2G4C4 = (function () { /** * Determines if this Success Criteria applies to the document. */ ...
define([ 'lib/underscore', 'lib/jquery', 'component/grid/containerBase', ], function (_, $, ContainerBase) { var ElementContainer = ContainerBase.extend({ offset: function (element) { var position = $(element).position(); return { top: position.top + this.$el.scrollTop(), left: ...
/** * ElementPath.js * * Released under LGPL License. * Copyright (c) 1999-2015 Ephox Corp. All rights reserved * * License: http://www.tinymce.com/license * Contributing: http://www.tinymce.com/contributing */ /** * This control creates an path for the current selections parent elements in TinyMCE...
'use strict'; angular.module('evid.schema', []) .service('schema', function (marked) { /** * Creates a schema generator from an schema definition which transforms an * json schema to an html representation */ this.create = function (definition) { return new SchemaGenerator(definition);...
/** * 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 baseAttrs = require('../../plots/attributes'); var hovertemplateAttrs = require('../../plots/template_attrib...
(function () { 'use strict'; angular .module('checkout.billingInfo', ['services.haailaUtils']) .directive('billingInfo', function(){ return { restrict : 'EA', templateUrl:'checkout/billing-info/billing-info.tpl.html', controller: ["$scope", "haailaUtils", function billingInfoC...
/* jshint unused: true, undef: true */ /* global window, document, alert, localStorage, $, chrome */ window.addEventListener('load', init, false); function init() { // i18n of text strings $('extName').innerHTML = chrome.i18n.getMessage('extName'); $('version').innerHTML = 'v' + chrome.app.getDetails().ve...
(function () { 'use strict'; angular .module('deepanse') .factory('expense', expense); function expense($filter, $window, $http, $location, $routeParams, helper, auth, alert, category) { var currentExpense = {}, allExpenses = {}, allDates = [], allSummaries = [], loading ...
angular.module('ui.bootstrap.demo', ['ui.bootstrap']); angular.module('ui.bootstrap.demo').controller('TabsDemoCtrl', function ($scope, $window) { $scope.tabs = [ { title:'Dynamic Title 1', content:'Dynamic content 1' }, { title:'Dynamic Title 2', content:'Dynamic content 2', disabled: true } ]; $scope.a...
angular.module('sorter', []) .directive('pvSorter', ['$document','$timeout', function pvSorterFactory($document, $timeout) { var idReg = /illust_id=(\d+)/i; function extractId(el) { var id = idReg.exec(el.firstElementChild.href); el.dataset.id = id && id[1]; } function asc(el) { if (el.dataset....
import 'bootstrap/js/dist/modal'; import 'bootstrap-datepicker/dist/js/bootstrap-datepicker.min'; import Chart from 'chart.js'; import Routes from '../../javascripts/js-routes.js.erb'; import '../../stylesheets/endpoint'; $(function () { let $calendar = $('#calendar'); $calendar.datepicker({ autoclose: true,...
const _ = require('underscore'); const AbilityTarget = require('./AbilityTarget.js'); /** * Base class representing an ability that can be done by the player. This * includes card actions, reactions, interrupts, playing a card, marshaling a * card, or ambushing a card. * * Most of the methods take a context obje...
describe("About Arrays", function() { //We shall contemplate truth by testing reality, via spec expectations. it("should create arrays", function() { var emptyArray = []; expect(typeof(emptyArray)).toBe('object'); //A mistake? - http:javascript.crockford.com/remedial.html expect(emptyArray.length).to...
import React from 'react'; import PropTypes from 'prop-types'; import Chooser from 'app/components/shared/Chooser'; import Dropdown from 'app/components/shared/Dropdown'; import PermissionSelectOptionDescriptions from 'app/components/shared/PermissionSelectOptionDescriptions'; import PermissionDescription from 'app/co...
/*eslint-disable no-magic-numbers*/ import React from "react"; import { storiesOf } from "@storybook/react"; import { VictoryErrorBar } from "../src/index"; import { VictoryTooltip, VictoryTheme } from "victory-core"; import { range } from "lodash"; import seedrandom from "seedrandom"; import { getChartDecorator } from...
var Promise = require('bluebird'); var _ = require('lodash'); var inherits = require('inherits'); var EventEmitter = require('events').EventEmitter; var fs = require('fs-extra'); var path = require('path'); var url = require('url'); var rcedit = Promise.promisify(require('rcedit')); var spawn = require('child_process')...
import Koa from 'koa' import apiInit from './api/index' import { Nuxt, Builder } from 'nuxt' // SSR 前端页面渲染 async function start() { const app = new Koa() const host = process.env.HOST || '127.0.0.1' const port = process.env.PORT || 3000 // Import and Set Nuxt.js options let config = require('../nuxt.config') ...
var __extends = this.__extends || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } __.prototype = b.prototype; d.prototype = new __(); }; var skins; (function (skins) { var simple; (function (simple) { var ScrollerSkin = (fu...
module.exports = function replaceMap($_string, $_map) { if (!$_map || !Object.keys($_map).length) { return $_string; } Object.keys($_map).map(function($_target) { $_string = $_string.replace($_target, $_map[$_target]); }); return $_string; };
import * as types from 'actions/actionTypes'; import initialState from 'store/initialState'; /** * Search reducer * * state = { * results: [] * } * * @param {*} state * @param {*} action * @returns {*} */ export default function searchReducer(state = initialState.search, action = {}) { switch (action.ty...
import {List, Map,fromJS} from 'immutable' export const INITIAL_STATE = Map() export const ACTIONS = { SET_TEAMS: 'SET_TEAMS', NEXT: 'NEXT', GOAL: 'GOAL' } export function setTeams(state = INITIAL_STATE, teams) { return state.set('teams',fromJS(teams)) //.set('initialTeams', list); } function getW...
const THREE = require('three') const store = require('../../../store') const spotLight = Object.assign(new THREE.SpotLight(), {castShadow: true }); Object.assign(spotLight.shadow, { bias: 0.001, radius:1, camera: new THREE.PerspectiveCamera( 90, 1, 0, 20000 ) //fov aspect near far }); spotLight.position.set(3500,...
/*! * Angular Material Design * https://github.com/angular/material * @license MIT * v0.11.0-master-1a99821 */ (function( window, angular, undefined ){ "use strict"; /** * @ngdoc module * @name material.components.virtualRepeat */ angular.module('material.components.virtualRepeat', [ 'material.core' ]) .dire...
import DoorBackend from "./DoorBackend"; import DoorSlackBot from "./DoorSlackBot"; import DoorSocketServer from "./DoorSocketServer"; import RpiGpioOpener from "./RpiGpioOpener"; import startHttpInterface from "./httpInterface"; import startSlackInterface from "./slackInterface"; import config from "config"; const s...
import callAPI from './api'; import { loadUser } from './users'; const attentionRequestLoaders = { createdBy: loadUser, claimedBy: loadUser, }; export function createAttentionRequest(body, onSuccess) { return callAPI({ url: '/attention_requests', method: 'POST', body, type: 'ATTENTION_REQUEST__C...
'use strict'; module.exports = { options: { sourceMap: true, sourceRoot: '' }, dist: { files: [{ expand: true, cwd: '<%= yeoman.app %>/scripts', src: '{,*/}*.coffee', dest: '.tmp/scripts', ext: '.js' }] }, ...
var clone = require("./clone"); var setOrAddComponent = require("./set-or-add-component"); function Prefabs(prefabs) { this.prefabs = prefabs; } Prefabs.prototype.instantiate = function(entities, name) { var id = entities.create(); var prefab = this.prefabs[name]; Object.keys(prefab).forEach(function(key) { ...
exports.seed = knex => knex('staff_ids') .delete() .then(() => knex('staff_ids').insert([ { nomis_id: 'RO_USER_TEST', staff_id: 'DELIUS_ID_TEST', first_name: 'FIRSTA', last_name: 'LASTA', org_email: 'hdc_test@digital.justice.gov.uk', }, ...
"use strict"; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.definePrope...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b)...
var fs = require('fs'); var request = require('request'); var _ = require('underscore'); var Table = require('cli-table'); function homeFolder(){ return process.env.HOME || process.env.HOMEPATH || process.env.USERPROFILE } function readConfig(cb){ fs.readFile(homeFolder() + '/.reportr.json', function(err, data){ ...
'use strict'; module.exports = { app: { title: 'Example with Leke', description: 'Full-Stack JavaScript with MongoDB, Express, AngularJS, and Node.js', keywords: 'MongoDB, Express, AngularJS, Node.js' }, port: process.env.PORT || 3000, templateEngine: 'swig', sessionSecret: 'MEAN', sessionCollection: 'sess...
$(document).ready(function() { $("#otro_cliente").autocomplete({ minLength: 2, source: "/search", select: function(event, ui) { alert("Seleccionaste: " + ui.item); } }); });
define(['razorcharts2/axes/grid'], function (Grid) { var YGrid = function () { this.init (); this.registerTransformer ({key: 'render', transform: YGridTransformer}); this.registerTransformer ({key: 'resize', transform: YGridTransformer}); this.registerTransformer ({key: 'update', tra...
import React, {PropTypes} from 'react'; import { View, Text, ListView, TouchableHighlight } from 'react-native'; import { connect } from 'react-redux'; import Actions from '../Actions/Creators'; import { Actions as NavigationActions } from 'react-native-router-flux'; // For empty lists import AlertMessage from '../Com...
var mocks = { "http://localhost:8088/analytics/api": require( "./mockResponses/options.json" ), "/analytics/api": require( "./mockResponses/options.json" ), "http://localhost:8088/analytics/altapi": require( "./mockResponses/altOptions.json" ), "/analytics/api/board/101": require( "./mockResponses/board101.json" ),...
'use strict'; function priceInt(str) { str = str.slice(1); return parseInt(str); } module.exports = priceInt;
'use strict'; /* http://docs.angularjs.org/guide/dev_guide.e2e-testing */ describe('PhoneCat App', function () { it('should redirect index.html to index.html#/phones', function () { browser.get('app/index.html'); browser.getLocationAbsUrl().then(function (url) { expect(url.split('#')[1]).toBe('/phones'); }...
var fs = require('fs'); var data = []; var source = '{"id":"<root>","name":"<root>","props":{"droppable":true},"children":[{"id":"alpha","name":"Alpha","props":{"droppable":true}},{"id":"bravo","name":"Bravo","props":{"droppable":true},"children":[{"id":"charlie","name":"Charlie","props":{"droppable":true},"children":...
var listUsers = (data, callback) => callback(200, { 'usuarios' : 'Lista de usuarios'}) var getUsers = (data, callback) => callback(200, data ) module.exports = [ { path : '/users', method : 'get', action : listUsers }, { path : '/users/:id', method : 'get', ...
// Determine if an element is disabled (i.e. not editable) 'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _getParents = require('../get/parents'); var _getParents2 = _interopRequir...