code
stringlengths
2
1.05M
let collection = ['foo', 'bar', 'baz']; collection.forEach((item) => console.log(item)); // foo // bar // baz This solves the problem of separately tracking an index and retrieving items via the array object. However, there is no way to terminate this iteration, the method is limited to arrays, and the callback struct...
$(function () { //Widgets count $('.count-to').countTo(); });
'use strict'; module.exports = (server, db) => { server.route([{ method: 'POST', path: '/sessions', config: { auth: false }, handler: require('./actions/login') }, { method: 'DELETE', path: '/sessions', handler: require('./actions/revoke') }]); };
import { PureComponent } from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import reducers, { initialState } from './countries-documents-provider-reducers'; import * as actions from './countries-documents-provider-actions'; class CountriesDocumentsProvider extends PureComponent...
'use strict'; publishAs(null, configCollectionName, function () { return configCollection.find(); }); publishAs(null, namesCollectionName, function () { return namesCollection.find(); });
/** * @jest-environment jsdom */ import { mount } from '@vue/test-utils'; import { Icon } from '../../'; const iconData = { body: '<path d="M4 19h16v2H4zm5-4h11v2H9zm-5-4h16v2H4zm0-8h16v2H4zm5 4h11v2H9z" fill="currentColor"/>', width: 24, height: 24, }; describe('Inline attribute', () => { test('string', () =...
module.exports = {"Dosis":{"bold":"Dosis-Bold.ttf","extrabold":"Dosis-ExtraBold.ttf","extralight":"Dosis-ExtraLight.ttf","light":"Dosis-Light.ttf","medium":"Dosis-Medium.ttf","normal":"Dosis-Regular.ttf","semibold":"Dosis-SemiBold.ttf","italics":"Dosis-Regular.ttf","bolditalics":"Dosis-Bold.ttf"}};
module.exports = { json: { "nodes": [ {"id": 'A'}, {"id": 'B'}, {"id": 'C'}, {"id": 'D'}, {"id": 'E'}, {"id": 'F'} ], "links": [ {"source": 'A', "target": 'B'}, {"source": 'B', "target": 'C'}, ...
// Flux Standard Action utilities for Redux. import { createActions } from 'redux-actions'; export default createActions({ TRANSFORM_EGGS: ({ size=0 }) => ({ size, }), TRANSLATE_EGGS: null, });
import async from 'async'; import mongoose from 'mongoose'; import config from './config.js'; import InfoBot from './infoBot.js'; // connect to database mongoose.connect('mongodb://localhost/' + config.mongo.db); // database schema const School = mongoose.model("School", { institution: {Name: String, HtmlKey: Stri...
const Chromy = require('../src') const path = require('path') let chromy = new Chromy({visible: true, chromeFlags: ['--disable-popup-blocking']}) chromy.chain() .goto('file://' + path.join(__dirname, '/pages/tab01.html')) .click('a.link') .sleep(500) .getPageTargets() .result(async pages ...
var config = require('../config'); var gulp = require('gulp'); var concat = require('gulp-concat'); var browserSync = require('browser-sync'); var handleErrors = require('../lib/handleErrors'); var jsPluginsTask = function () { /* 1. concat bower files into js/plugins.js 2. concat core files into js/core....
// // textEditView // Modify text based on a textarea // import * as _ from 'underscore'; import ItemView from 'base/item-view'; export default ItemView.extend({ template: _.template('<%= source %>'), tagName: 'textarea', className: 'gistbook-textarea', // Get the value of the element value() { retur...
'use strict'; var fs = require('fs'); var nullCheck = require('null-check'); var access = module.exports = function (pth, mode, cb) { if (typeof pth !== 'string') { throw new TypeError('path must be a string'); } if (typeof mode === 'function') { cb = mode; mode = access.F_OK; } else if (typeof cb !== 'func...
var DatePickerDefaultConfig = { datepickerDeferred: 0, gmt: 0, format: "%Y-%m-%d", inputFormat: null, locale: METRO_LOCALE, value: null, distance: 3, month: true, day: true, year: true, minYear: null, maxYear: null, scrollSpeed: 4, copyInlineStyles: false, cls...
import Vue from 'vue'; import stackedProgressBarComponent from '~/vue_shared/components/stacked_progress_bar.vue'; import mountComponent from 'spec/helpers/vue_mount_component_helper'; const createComponent = (config) => { const Component = Vue.extend(stackedProgressBarComponent); const defaultConfig = Object.as...
// ============================================================================== // // app/core/model/users/users.js // // ============================================================================== import AbstractModel from '../abstract-model'; /** * UsersModel class to handle and store our current user model ...
/* AngularJS v1.3.0-rc.1 (c) 2010-2014 Google, Inc. http://angularjs.org License: MIT */ (function(D,f,E){'use strict';f.module("ngAnimate",["ng"]).directive("ngAnimateChildren",function(){return function(P,w,g){g=g.ngAnimateChildren;f.isString(g)&&0===g.length?w.data("$$ngAnimateChildren",!0):P.$watch(g,function(f)...
let bodyPos; let upperArmAngle = 0; let lowerArmAngle = 0; function setup(){ createCanvas(800, 600); rectMode(CENTER); angleMode(DEGREES); bodyPos = createVector(width / 2, height - 100); } function draw(){ background(0); handleInput(); drawBody(); } function drawBody(){ push(); ...
/** * Copyright (c) 2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule F...
/** * @todo Needs refinement. * * A simple test case that determines if elements, specified by a selector, * exist or not. * * The test fails for elements that are found and a case is created for each * one. The test passes is the selector finds no matching elements. */ quail.objectContentUsableWhenDisabled = f...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = argv; var _yargs = require('yargs'); var _yargs2 = _interopRequireDefault(_yargs); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function argv() { return _yargs2.defa...
function() { var md5 = $$(this).app.require("vendor/couchapp/lib/md5"); // TODO this can be cleaned up with docForm? // it still needs the workflow to edit an existing profile var name = $("input[name=userCtxName]",this).val(); var newProfile = { rand : Math.random().toString(), nickname : $("inpu...
// Auth Token - You can generate your token from // https://<slack_name>.slack.com/services/new/bot var token = process.env.SLACKBOT_TOKEN // This is the main Bot interface var superscript = require("superscript"); var mongoose = require("mongoose"); var mongoUri = 'mongodb://' + process.env.MONGO_PORT_27017_TCP_A...
import React, { PropTypes, Component } from 'react'; export default class TextForm extends Component { onClick() { this.props.onClick(this.refs.input.value); } render() { return ( <div className='.text-form'> <input ref='input' type='text'/><button onClick={this.onClick.bind(this)}>Save</b...
import React from 'react'; import { css } from 'emotion'; import { colorList, metrics } from '../../theme/Theme'; import { Container } from '../controls/containers/Container'; const componentStyle = css` position: relative; display: flex; background-color: ${colorList.grey8}; padding-top: ${metrics.spacing[3]}...
module("Basic Tests"); test("Components", function() { notEqual(null, Ember.Menglifang.LoginFormComponent, "Ember.Menglifang.LoginFormComponent exists"); notEqual(null, Ember.Menglifang.App, "Ember.Menglifang.App exists"); notEqual(null, Ember.Menglifang.Sidebar, "Ember.Menglifang.Sidebar exists"); }); te...
const app = require('APP') const {env} = app const debug = require('debug')(`${app.name}:auth`) const passport = require('passport') const bCrypt = require('bcryptjs') const {User, Employer, Job, Project, Skill} = require('APP/db') const auth = require('express').Router() const LocalStrategy = require('passport-local')...
import uuid from 'uuid' import moment from 'moment' import { Record, Map } from 'immutable' import logger from'../debug' import { requireAttributes } from './index' const log = logger('EventRecord') const CUSTOM_EVENT = 'CUSTOM_EVENT' const NULL_EVENT = 'NULL_EVENT' const NOW_EVENT = 'NOW_EVENT' const END_EVENT = 'E...
beforeEach(angular.mock.module('todomvc')); describe('todoFocus directive', () => { let scope, compile, browser; beforeEach(inject(($rootScope, $compile, $browser) => { scope = $rootScope.$new(); compile = $compile; browser = $browser; })); it('should focus on truthy expression', () => { var el = angular...
const fs = require("fs"); const chalk = require("chalk"); const childProcess = require("child_process"); // Pure JavaScript wrapper to run the TypeScript files. fs.lstat("dist/index.js", (err, stats) => { if (err || !stats.isFile()) { console.log(chalk.green(" > TypeScript output missing. Building them now. Thi...
function test() { console.log("ABC"); }
define({ "_widgetLabel": "Rita", "selectDrawMode": "Välj ritläge", "clear": "Rensa", "point": "Punkt", "line": "Linje", "polyline": "Polylinje", "freehandPolyline": "Frihandspolylinje", "triangle": "Triangel", "extent": "Utbredningsområde", "circle": "Cirkel", "ellipse": "Ellips", "polygon": "Po...
import { remote } from 'electron'; import * as fs from 'fs'; import * as path from 'path'; export function installdir() { let path = null; if (process.platform === "darwin") { path = onDarwin(); } else { path = onWindows(); } return path; } function onWindows() { console....
var _ = require('lodash'); var should = require('should'); var async = require('async'); var DatabaseSupport = require('../../../support/database'); var db = DatabaseSupport.connect(); var collection_name = 'testCollection'; describe('db.trackedDocument', function () { before(function(done) { DatabaseSupport.u...
import Authentication from './Authentication' export default Authentication
const faker = require('faker'); export const serviceSearch = () => { return Promise.resolve({ list: [ { "code": 110644, "title": faker.name.firstName(), "titleSortOnly": "Stardust, le mystère de l'étoile", "movieType": "Long-métrage", "productionYear": 2007 ...
/** * @module WebHDFS */ var extend = require('extend'); var util = require('util'); var url = require('url'); var querystring = require('querystring'); var request = require('request'); var BufferStreamReader = require('buffer-stream-reader'); /** * Initializes new WebHDFS instance * * @param {Object} [opts] *...
'use strict'; var test = require('tape'); var jockey = require('..'); // // getCurrentIndex() // test('returns `-1` if not currently mounted', function(t) { t.plan(1); var j = jockey([1, 2, 3]); t.equal(j.getCurrentIndex(), -1); }); test('get the index of the currently-mounted item', function(t) { t.plan(2)...
module.exports = function(settings){ var router = require('express').Router(); router.get("/", function(req, res, next){ res.send("Hello World"); }); return router; };
/** * Test case for run. * Runs with mocha. */ 'use strict' const run = require('../lib/commands/run.js') const assert = require('assert') describe('run', function () { this.timeout(3000) before(async () => { }) after(async () => { }) it('Run', async () => { }) }) /* global describe, before, ...
function Component(config) { if (config === void 0) { config = {}; } return function (cls) { config.component = cls; cls.config = config; }; } exports.Component = Component; function CanActivate(fnDefinition) { return function (cls) { cls.prototype.canActivate = function () { ...
import React from 'react'; import { createStructuredSelector } from 'reselect'; import Helmet from 'react-helmet'; import { getIncidentsAction, filterIncidentsAction } from './actions'; import { getIncidents, getPagination, getNextPage } from './selectors'; import { connect } from 'react-redux'; import ItemIncident fro...
function Ajax() { /* Maybe this is really stupid. Previously I was calling C# methods and getting the response directly from AjaxObject, rather than having C# make an additional JS call. The problem was that JS seems unable to make multiple consecutive "ajax" calls; once the first...
const tap = require('tap'); const expect = require('expect.js'); const testUtils = require('../../../../../../testUtils'); tap.mochaGlobals(); const describeTitle = ( 'bin/east migrate with name and executed migration and force flag' ); describe(describeTitle, () => { let commandResult; let testEnv; before(() =...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import higherform, { fields, FormShape, FieldsShape } from '../src'; describe('form', function () { function changeInput(tree, event, type) { Simulate[type || 'change']( TestUtils.findRenderedDOMComponentWithTag(tree,...
import assert from "assert"; import Handlebars from "handlebars"; require("../../dist/lib/helpers/and").register(Handlebars); require("../../dist/lib/helpers/not").register(Handlebars); describe('and', function() { it('should return true if all given values are truthy', (done) => { let source = '{{#if (...
module.exports = isObjectLike; function isObjectLike(value) { var type = typeof(value); return ((type === "function") || (value && (type === "object")) || false); }
'use strict'; /* @ngInject */ var StateConfig = function ($locationProvider, $urlRouterProvider) { // Html5 mode requires server-side configuration. See http://bit.ly/1qLuJ0v $locationProvider.html5Mode({ enabled: true, requireBase: false }).hashPrefix('!'); // For any unmatched url, ...
import { CALL_API } from '../middleware/api.js'; /** * Creates the api call to the middleware. I have added in the count to just * pass through the process to the end where I will promise.all and run the * calculation to sum the areas found * * This will also be handling the bare wire look ups to tableD5. Where t...
/* global define, require, describe, it, expect, beforeEach, afterEach, spyOn, jasmine */ define(['oro/sync/wamp', 'backbone', 'requirejs-exposure'], function(Wamp, Backbone, requirejsExposure) { 'use strict'; var exposure = requirejsExposure.disclose('oro/sync/wamp'); describe('oro/sync/wamp', function (...
import {Padding} from 'widget/padding' import {Scrollable, ScrollableContainer} from 'widget/scrollable' import PropTypes from 'prop-types' import React from 'react' import styles from './panelContent.module.css' export class PanelContent extends React.Component { render() { const {className, scrollable, n...
'use strict'; angular.module('SatanApp.paktas', []) .controller('PaktasController', ['$scope', 'paktasFactory', 'paktasVardaiFactory', function($scope, paktasFactory, paktasVardaiFactory) { $scope.paktas = { vardas: '', pastas: '', pastas2: '', lytis: 'abominacija', titulas: '', atvykstu: '',...
(function() { 'use strict'; exports.post = function(req, res, next) { var customer = req.body, options = { io : global.io, name : 'Customer', res : res, details : { firstName : customer.firstName, lastName : custome...
/** * status.js * @Required : jquery.js */ jQuery.scope = function(target,func){ return function() { return func.apply(target,arguments);}}; if(typeof window.BalanceBoardStatus != "undefined"){ delete window.BalanceBoardStatus; } var BalanceBoardStatus = {}; BalanceBoardStatus = { history : [], history_siz...
version https://git-lfs.github.com/spec/v1 oid sha256:db5e0d034b54346748be3bace7409d92e3a4ae60684d428b1464a305b9475c72 size 68148
import React, { Component, PropTypes } from 'react' import { render } from 'react-dom' import { Typeahead } from 'react-typeahead' export default class SearchBar extends Component { constructor(props) { super(props) this.state = { invalidInput: false, hideDropdown: false } this.handleChange = this.handle...
var structstd_1_1make__void = [ [ "type", "da/dd0/structstd_1_1make__void.html#a41a0d591a52617e2ea40f3eda0776728", null ] ];
var app = angular.module("app", ["xeditable", "ngMockE2E", 'ui.bootstrap', 'checklist-model', 'ui.select', 'ngTagsInput', 'ngSanitize', 'ui.date']); //add delay to $httpBackend app.config(function($provide) { var l = window.location.href; var delay = /\?test/.test(l) ? 400 : 800; $provide.decorator('$httpBackend...
(function () { var app = angular.module('ngToken.TimeoutManager', ['ngToken.Provider', 'ngIdle']); /** * @ngdoc service * @name $tokenTimeout * @description * Keeps track of user activity and broadcasts event and removes tokens from storage on session end */ app.factory('$tokenT...
'use strict'; const fs = require('fs'); const evalSourceMapMiddleware = require('react-dev-utils/evalSourceMapMiddleware'); const noopServiceWorkerMiddleware = require('react-dev-utils/noopServiceWorkerMiddleware'); const ignoredFiles = require('react-dev-utils/ignoredFiles'); const redirectServedPath = require('react...
// Generated by CoffeeScript 1.10.0 (function() { var base_url, log_watcher; log_watcher = { version: '0.1', lscache_templates: env.is_minified }; _register_module('log_watcher', log_watcher); base_url = "/static/apps/ractive_templates/"; log_watcher.templates = _load_templates({ log_watcher...
/* global __NODE__ __DEV__ */ import { apiMiddleware } from 'redux-api-middleware'; export default function getMiddlewares() { if (__NODE__) { // Add server middlewares here } else { // Add client middlewares here } if (__DEV__) { // Add dev middlewares here } return ...
var errorRegex = new RegExp("Caused by: ([\\s\\S]*)", 'g'); var ErrorHandler = function(topFunction) { this._err = {}; Error.captureStackTrace(this._err, topFunction || Tools.createErrorHandler); }; ErrorHandler.prototype.handleError = function(err, cb) { if(err) { if(typeof cb === 'function') { // hand...
import "ember"; import { computed } from "ember-metal/computed"; import { canDefineNonEnumerableProperties } from 'ember-metal/platform'; import { capitalize } from "ember-runtime/system/string"; import EmberHandlebars from "ember-htmlbars/compat"; var compile = EmberHandlebars.compile; var Router, App, router, cont...
'use strict'; var querystring = require('querystring'); var prequest = require('prequest'); var utils = require('./utils'); var clc = require('cli-color'); var logger = require('tracer').colorConsole({ format: '{{timestamp}} <{{title}}> ({{path}}:{{line}}:{{pos}}:{{method}}) {{message}}', dateformat: 'mmm dd HH:MM...
/** * bootstrap-multiselect.js 1.0.0 * https://github.com/davidstutz/bootstrap-multiselect * * Copyright 2012 David Stutz * * 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 ...
(function () { 'use strict'; /** * @param {TimeLine} timeLine * @param {$injector} $injector * @return {State} */ const factory = function (timeLine, $injector) { const tsUtils = require('ts-utils'); class State { /** * @return {number} ...
'use strict'; const fs = require( 'fs' ), config = require( '../scss.js' ), stylelint = require( 'stylelint' ), validScss = fs.readFileSync( './__tests__/scss-valid.scss', 'utf-8' ), invalidScss = fs.readFileSync( './__tests__/scss-invalid.scss', 'utf-8' ); describe( 'flags no warnings with valid scss', () => { ...
import { sep } from 'path' import { collectSourceJsRouteMap } from '@dr-js/dev/module/node/export/parsePreset.js' import { generateExportInfo, generateIndexScript } from '@dr-js/dev/module/node/export/generate.js' import { getMarkdownFileLink, renderMarkdownBlockQuote, renderMarkdownAutoAppendHeaderLink, renderMarkdow...
import { expect } from 'chai'; import { __RENAME_THIS_STATE_KEY } from './constants'; import { isLoading } from './selectors'; const state = { [__RENAME_THIS_STATE_KEY]: { isLoading: true, }, }; describe('<%= Name %>: selectors ', () => { it('Should return null if module state is not defined', () => { e...
import 'docs/src/modules/components/bootstrap'; // --- Post bootstrap ----- import React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; const req = require.context('docs/src/pages/demos/cards', false, /\.md|\.js$/); const reqSource = require.context('!raw-loader!../../docs/src/pages...
'use strict'; // Declare app level module which depends on filters, and services angular.module('myApp', [ 'ngRoute', 'myApp.filters', 'myApp.services', 'myApp.directives', 'myApp.controllers' ]). config(['$routeProvider', function($routeProvider) { $routeProvider.when('/about', {templateUrl: 'partials/abou...
import * as Base64ToUint8Array_tester from "./Base64ToUint8Array_tester.js"; import * as GSheet_tester from "./GSheet_tester.js"; import * as ScriptLoader from "../ScriptLoader.js"; import * as ValueMax from "../ValueMax.js"; import * as PartTime from "../PartTime.js"; window.addEventListener("load", event => { Scri...
'use strict'; var TCollection = require('./tcollection.js'); var moment = require('moment'); var assert = require('assert'); function test() { //jshint ignore:line //Create a new collection return new TCollection([ { amount: -1785, description: 'rent', startDate: mo...
import Users from './Users'; import UsersStore from './UsersStore'; import UsersList from './UsersList'; import UsersActions from './UsersActions'; import UserDialog from './UserDialog'; import UserDialogStore from './UserDialogStore'; import UserInfo from './UserInfo'; Users.Actions = UsersActions; Users.Store = User...
/** * Created by MU on 2/17/15. */
/*! * Angular Material Design * https://github.com/angular/material * @license MIT * v1.1.0-rc1 */ (function( window, angular, undefined ){ "use strict"; /** * @ngdoc module * @name material.components.button * @description * * Button */ angular .module('material.components.button', [ 'material.core' ])...
version https://git-lfs.github.com/spec/v1 oid sha256:ca1b39cffa5e65703e34632980914f2db723b353467261d67a9461e5b755462a size 387301
// Generated by CoffeeScript 1.6.2 var Tail, environment, events, fs, __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }, __hasProp = {}.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } func...
var express = require('express'); var router = express.Router(); let User = require('../models/user'); require('../until/dateformat'); /* GET users listing. */ router.get('/', function(req, res, next) { res.send('respond with a resource'); }); // 用户登录 router.post('/login', (req, res, next) => { let params = { ...
const fs = require('fs') module.exports = filepath => fs.readFileSync(`${__dirname}/../../${filepath}`)
export default { name: 'discord.js (JavaScript)', language: 'javascript', generateFrom(data) { if (data.embed && data.content) { return ( `const embed = ${JSON.stringify(data.embed, null, ' ')};\n` + `channel.send(${JSON.stringify(data.content)}, { embed });` ); } else if (dat...
import React from 'react'; import parse from 'dogescript'; import testManifest from '../assets/test-manifest.json' import TestList from './components/TestList'; import CodeCard from './components/CodeCard'; import DogeCodeCard from './components/DogeCodeCard.js'; const defaultDoge = ` shh THIS IS DOGESCRIP...
// ag-grid-react v25.1.0 "use strict"; Object.defineProperty(exports, "__esModule", { value: true });
/** * Module dependencies. */ var http = require('http'); var read = require('fs').readFileSync; var path = require('path'); var exists = require('fs').existsSync; var engine = require('engine.io'); var clientVersion = require('socket.io-client/package.json').version; var Client = require('./client'); var Emitter =...
import React from 'react'; import { autoRehydrate } from 'redux-persist'; import { untrackedStates, API_SERVER_HOSTNAME, API_SERVER_PORT, REDUX_DEVTOOLS, API_TOKEN_HEADER_KEY, } from 'config'; import getMiddlewares from 'store'; import * as reducers from 'reducers'; import getRootRoute from 'routes'; import...
(function(){ 'use strict'; angular .module('app') .factory('Notificacao', notificacao); function notificacao() { var _listeners = {}; var service = { _listeners : _listeners, addEventListener : addEventListener, notify : notify, removeEventListen...
var express = require("express"), app = express(), path = require("path"), httpProxy = require('http-proxy'), apiProxy = httpProxy.createProxyServer(), apiServer = 'http://localhost:8081'; const PORT = process.env.PORT || 8080; /** * Starting the reserve proxy * */ const ENV = process.env.NODE_EN...
// // Free Code Camp // 8. Algorithms 2 (Intermediate) // // Created by Dulio Denis on 10/9/15. // Copyright (c) 2015 ddApps. All rights reserved. // ------------------------------------------------ // Bonfire 10: Sorted Union // http://www.freecodecamp.com/challenges/bonfire-sorted-union // // Write a function...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M9 7c-.55 0-1 .45-1 1v3H5c-.55 0-1 .45-1 1s.45 1 1 1h3v3c0 .55.45 1 1 1s1-.45 1-1v-3h3c.55 0 1-.45 1-1s-.45-1-1-1h-3V8c0-.55-.45-1-1-1zm11 11h-2V7.38L15 8.4V6.7L19.7 5h.3v13z" /> , 'ExposurePlus1Round...
'use strict'; var Logger = require('./logger'); var fs = require('fs'); var Migrator = require('./goog-base-migrator'); var commander = require('commander'); function buildOptions(argv) { var program = new commander.Command(); program .option('-f, --fix-in-place', 'Fix the file in-place.') .option('-d, --...
/* * grunt-markdawn * https://github.com/itajaja/grunt-markdawn * * Copyright (c) 2015 Giacomo Tagliabue * Licensed under the MIT license. */ 'use strict'; module.exports = function(grunt) { // Please see the Grunt documentation for more information regarding task // creation: http://gruntjs.com/creating-t...
var $ = require('streamhub-sdk/jquery'); var i18n = require('streamhub-sdk/i18n'); var inherits = require('inherits'); var template = require('hgn!streamhub-sdk/content/templates/product-callout-view'); var View = require('view'); var ProductCarouselView = require('streamhub-sdk/content/views/product-carousel-view'); v...
var express = require('express'); var app = express(); var bodyParser = require('body-parser'); var server = require('http').createServer(app); app.use(express.static(__dirname)); app.use(bodyParser.json()); app.use(bodyParser.urlencoded({ extended: true })); app.get('/', function (req, res) { res.sendfile('index...
/* global define, ng */ define('angular2', ['require', 'exports', 'module', './angular2/core', './angular2/common', './angular2/compiler', './angular2/platform', './angular2/http', './angular2/router', './angular2/instrumentation', './angular2/upgrade'], function (require) { return { core: require('./angular2/co...
"use strict"; var Pager = function (dataFunction, dataArguments) { this.currentPage = 0; this.perPage = 1000; this.callback = dataArguments[dataArguments.length - 1]; dataArguments.splice(-1, 1); dataArguments.unshift(this.perPage); dataArguments.unshift(this.currentPage); dataArguments.push(this); th...
/** * Created by YouHan on 2016/9/19. */ var express = require('express'); var path = require('path'); var router = express.Router(); var member = require('./../service/member'); router.param('id', function (req, res, next, id) { // sample user, would actually fetch from DB, etc... req.params.id = id; ne...
// Generated by CoffeeScript 1.7.1 /* gtfs: stoptime: id: gtfs/stoptime/876 stop-id: gtfs/stop/123 trip-id: gtfs/trip/456 ... arr: 15:38 dep: 15:38 stop: id: gtfs/stop/123 name: Bayerischer+Platz ...
(function () { 'use strict'; module.exports = { staging: { options: { htmlhintrc: '.htmlhintrc', force: true }, src: [ '<%= scaffold.staging.path %>/**/*.html', '!<%= scaffold.staging.path %>/{partials,i...