code
stringlengths
2
1.05M
'use strict'; const Cashy = require('../../index.js'); module.exports = (program) => program .command('dropAccount <account_id>') .description('closes stated account') .action(dropAccount); function dropAccount (id, opts) { Cashy({ create: false, file: opts.parent.file }).getAccounts({ id: id }).then((accou...
(function($){ $.suggest = function(term){ if($.suggest.timer) { clearTimeout($.suggest.timer);} list = []; reg = new RegExp('^'+term,'i'); for(i=0,j=terms.length;i<j;i++){ if(reg.exec(terms[i])) list.push(terms[i]);} o="<ul>"; for(i=0,j=list.length;i<j;i++){ o+='<li>'+list[i]+'</li>';} $('#sugge...
'use strict'; import React, { Component } from 'react'; import { ActivityIndicator, StyleSheet, Text, TextInput, TouchableHighlight, View } from 'react-native'; import Register from './Register'; import styles from '../style/FormStyles'; export default class Login extends Component { constructor(props...
// Main vuex store import Vue from 'vue' import Vuex from 'vuex' import * as actions from './actions' import * as getters from './getters' import intro from './modules/intro' import weeks from './modules/weeks' import switches from './modules/switches' import models from './modules/models' import scores from './module...
'use strict'; let datafire = require('datafire'); let openapi = require('./openapi.json'); module.exports = datafire.Integration.fromOpenAPI(openapi, "etsy");
Ext.define('Packt.model.sakila.Sakila', { extend: 'Ext.data.Model', fields: [ { name: 'last_update', type: 'date', dateFormat: 'Y-m-j H:i:s' } ] });
var five = require("johnny-five"); module.exports = ShiftSeven; var numbers = { 0: "11111100", 1: "01100000", 2: "11011010", 3: "11110010", 4: "01100110", 5: "10110110", 6: "10111110", 7: "11100000", 8: "11111110", 9: "11110110", }; // Right-pad `string` with `char` function pad(string, length, char) { wh...
'use strict'; angular.module('core').controller('HomeController', ['$scope', '$state', 'Authentication', function($scope, $state, Authentication) { // This provides Authentication context. $scope.authentication = Authentication; if ($scope.authentication.user) $state.go('main'); } ]);
($ || jQuery || django.jQuery)(function($) { var DATA_BOUND_FIELDS = 'data-dynamic-choices-bound-fields', DATA_FORMSET = 'data-dynamic-choices-formset'; var error = (function() { if ('console' in window && $.isFunction(console.error)) return function(e) { console.err...
define([ 'shared', './controllers/DashboardController', './views/ContentView', './views/DashboardView' ], function ( shared, DashboardController, ContentView, DashboardView ) { 'use strict'; return shared.application.Module.extend({ contentView: ContentView, navig...
const SolverAbstract = require('./solver_abstract'); class ReconsiderationWorkProcess extends SolverAbstract { static checkSolved () { throw new Error('must be implemented'); } static get title () { return '作業手順の見直し'; } static get description () { return '作業手順を見なおして合意を得ましょ...
/* * Boardfarm Management application * Copyright (c) 2016 Heiko Stuebner <heiko@sntech.de> * * License: * MIT: https://opensource.org/licenses/MIT * See the LICENSE file in the project's top-level directory for details. */ var qx = require("qooxdoo"); require('./source/class/sn/boardfarm/backend/Backend');...
/** * Created by mjbrooks on 3/14/14. */ (function (win) { var models = win.namespace.get('thermometer.models'); var utils = win.namespace.get('thermometer.utils'); var libs = win.namespace.get('libs'); //For the moving average var window_sizes = [9]; models.TweetGroup = libs.Backbone.Mode...
version https://git-lfs.github.com/spec/v1 oid sha256:78290fc804412a6cefe17ed43dfa8a6d8c6ec9ebebe20802c4110f19a3b36e14 size 10385
/* jshint strict: false, undef: true, unused: true */ // Dom based routing // ------------------ // Based on Paul Irish' code, please read blogpost // http://www.paulirish.com/2009/markup-based-unobtrusive-comprehensive-dom-ready-execution/// // Does 2 jobs: // * Page dependend execution of functions // * Gives ...
module.exports = function (api) { const validEnv = ['development', 'test', 'production'] const currentEnv = api.env() const isDevelopmentEnv = api.env('development') const isProductionEnv = api.env('production') const isTestEnv = api.env('test') if (!validEnv.includes(currentEnv)) { throw new Error( ...
//burst bullet returns array of five bullets function rpBurst(o) { var result = []; for (var i=0; i<5; i++) { result.push( { r: 5, pos: {x:o.pos.x,y:o.pos.y}, v: {x:(i-2)*0.1,y:0.1} } ); } return result; }; function aimed(o,target) { } ...
const express = require('express'); const app = express(); const version = require('./api/version'); const getEmbed = require('./api/get-embed'); const parseEmbeds = require('./api/parse-embeds'); const listProviders = require('./api/list-providers'); app.get('/', version); app.get('/embed', getEmbed); app.get('/prov...
/*! * address - lib/address.js * Copyright(c) 2013 fengmk2 <fengmk2@gmail.com> * MIT Licensed */ "use strict"; /** * Module dependencies. */ var os = require('os'); var fs = require('fs'); var child = require('child_process'); var DEFAULT_RESOLV_FILE = '/etc/resolv.conf'; var DEFAULT_INTERFACE = 'eth'; var IF...
'use strict'; var path = require('path'); module.exports = { basedir: path.normalize(path.join(__dirname, 'schemas')), debug: console.log, arguments: [ 'A default text' ] };
var mongoose = require('mongoose'); var UserSchema = new mongoose.Schema({ fbid: { type: String, index: { unique: true }}, schedule: [{ course: {}, section: {}, color: String }], majors: [], courseCandidates: [] }); mongoose.model('User', UserSchema);
/** * # fieldValidation.js * * Define the validation rules for various fields such as email, username, * and passwords. If the rules are not passed, the appropriate * message is displayed to the user * */ 'use strict' import validate from 'validate.js' import _ from 'underscore' import I18n from './I18n' con...
/** * Node.js API Starter Kit (https://reactstarter.com/nodejs) * * Copyright © 2016-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ /* @flow */ import express from 'express'; import...
import Ember from 'ember'; import Paginate from '../mixins/table-pager/route'; const { Route, computed, inject } = Ember; const { reads } = computed; export default Route.extend(Paginate, { modelName: 'item', // the name of the current controller since I don't know how to auto detect controllerName: 'old'...
//Tracks the spots taken by a player var playerTaken = { 1: false, 2: false, 3: false, 4: false, 5: false, 6: false, 7: false, 8: false, 9: false } //Tracks the running tally of pairs for a player (potentially one move away from a win) , playerPairs = { 3: false, 4: false, ...
// # boot - mongoose plugin var _ = require('underscore') var jsonSelect = require('mongoose-json-select') exports = module.exports = function() { return function(Schema) { // NOTE: To allow `.sort('-created_at')` to work // we need to have these as actual paths Schema.add({ updated_at: Date, ...
/** * # SizeManager * Copyright(c) 2016 Stefano Balietti * MIT Licensed * * Handles changes in the number of connected players. */ (function(exports, parent) { "use strict"; // ## Global scope // Exposing SizeManager constructor exports.SizeManager = SizeManager; var J = parent.JSUS; ...
var externalLib = exports; externalLib.message = 'it works';
/** * Timeplot * * @fileOverview Timeplot * @name Timeplot */ Timeline.Debug = SimileAjax.Debug; // timeline uses it's own debug system which is not as advanced var log = SimileAjax.Debug.log; // shorter name is easier to use /* * This function is used to implement a raw but effective OOP-like inheritance * i...
module.exports = (p={}) => `<svg version="1.1" data-js="${p.name || 'checkmark'}" class="checkmark" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="97.619px" height="97.618px" viewBox="0 0 97.619 97.618" style="enable-background:new 0 0 97.619 97.618;" xml:space=...
angularApp.factory('cookieService', function() { var cookieService = {}; cookieService.readCookie = function(name) { return $.cookie(name); }; cookieService.deleteCookie = function(name, path) { return $.removeCookie(name,{ path: path }); }; cookieService.writeCookie =...
'use strict' const should = require('chai').should() global.should = should
const slugify = require('slugify'); const path = require('path'); const CommandQueue = require('./lib/CommandQueue'); const Registry = require('./lib/Registry'); const Switch = require('./lib/Switch'); const COMMAND_DELAY = 1000; let Service, Characteristic; let command_queue, registry; module.exports = function(ho...
marriageMapApp.factory('IGoService', ['$uibModal', '$log', 'md5', '$sce', function($uibModal, $log, md5, $sce) { var iGoTypes = { VIN_HONNEUR: "VIN_HONNEUR_SOIREE", VIN_HONNEUR_SOIREE : "VIN_HONNEUR_SOIREE", TOTALE : "TOTALE" }; var getHashIGoCode = function(iGoCode) { return md5.createHash(iGoCode |...
import React from 'react' //whatever text props it is given will be displayed in marker export const Marker = ({ text }) => ( <img src="orange.png" height="50"/> );
var helpers = require('../helpers.js'); var mongoose = require('mongoose'); var Link = require('./link.js'); var Schema = mongoose.Schema; var ObjectId = Schema.ObjectId; var accountSchema = new Schema({ id: { type: String, default: 'ac_' + helpers.generateBase62(24) }, object: { type: String, ...
var page = require('webpage').create(); page.onConsoleMessage = function(msg) { console.log(msg); }; page.open("http://www.freepeople.com/fp-movement/", function(status) { if ( status === "success" ) { page.includeJs("http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js", function() { ...
/** * ueditor完整配置项 * 可以在这里配置整个编辑器的特性 */ /**************************提示******************************** * 所有被注释的配置项均为UEditor默认值。 * 修改默认配置请首先确保已经完全明确该参数的真实用途。 * 主要有两种修改方案,一种是取消此处注释,然后修改成对应参数;另一种是在实例化编辑器时传入对应参数。 * 当升级编辑器时,可直接使用旧版配置文件替换新版配置文件,不用担心旧版配置文件中因缺少新功能所需的参数而导致脚本报错。 **************************提示***************...
/* * * ProfilePage reducer * */ import { fromJS } from 'immutable'; import { PROFILE_FORM_UPDATED, } from './constants'; const initialState = fromJS({}); function profilePageReducer(state = initialState, action) { switch (action.type) { case PROFILE_FORM_UPDATED: { // TODO Should this be state.prof...
module.exports={ return{ area:function(r){ return Math.pi*r*r; } }; }
angular.module('Scout.routes', []) .config(function ($stateProvider, $urlRouterProvider) { // Ionic uses AngularUI Router which uses the concept of states // Learn more here: https://github.com/angular-ui/ui-router // Set up the various states which the app can be in. // Each state's controller can be found i...
import _ from "underscore"; import $ from "jquery"; import context from "context-utils"; import BaseView from "../BaseView"; export default class TextField extends BaseView { className(){ return 'ui-input ui-input-text ' + (_.result(this, "addClass") || ''); } constructor(options) { super(optio...
#!/usr/bin/env node const path = require('path') const { execSync } = require('child_process') const { name, version } = require('../../package.json') const rootDirectory = path.join(__dirname, '../..') // 1. Remove all *.tgz before install execSync('rm -rf *.tgz', { cwd: rootDirectory }) // 2. Do npm pack execSync(...
var splitter = /(<=|<|>=|>|!=|=|[?])/ function isNumber(s) { return !isNaN(+s) } var operators = { "<=": "lte", "<" : "lt", ">=": "gte", ">" : "gt", "=" : "eq", '!=': "neq", "?" : 'ok' } function coearse(n) { return isNumber(n) ? +n : n } function parse (str) { return str .split(',') .ma...
/*------------------------------------------------------------------------------------------------\ draw/update the summaryTable \------------------------------------------------------------------------------------------------*/ import indicateLoading from '../util/indicateLoading'; export function draw(codebook) { ...
'use strict'; const fs = require('fs-extra'); const p = require('path'); const marked = require('marked'); const parser = require('./littlePostParser'); const namePost = require('./namePost'); const handleFiles = require('./handleFiles'); module.exports = function(blogDir) { if (fs.statSync(blogDir).isDirectory()) ...
(function(global) { var Demo = global.Demo Demo.add({ name: 'Slice.' ,messageString: "Right click and drag to slice up the block." ,init: function() { /*cpSpace*/ var space = this.space space.setIterations(30); space.gravity = (cp.v(0, -500)); ...
/** * Created by senntyou on 2017/11/30. */ require('../../util/change_cwd_to')(__dirname + '/demo'); require('../../util/exec')('lilacs add test/index');
(function(){ 'use strict'; // Criando o module angular.module('myApp.beers', ['ngRoute' , 'myApp.beers.filters' , 'myApp.beers.services' , 'myApp.beers.controllers' , 'myApp.bee...
define([ "Segment" ], function(Segment) { function Segment6UI() { this.createGeometry = function() { var geometry = new THREE.Geometry(); geometry.vertices.push(new THREE.Vector3(0, 0, 0)); // 0 geometry.vertices.push(new THREE.Vector3(0, 3, 0)); // 1 ...
/*jslint node: true */ /*global angular */ 'use strict'; angular.module('canvassTrac') .directive('cnvtrcAddrWidget', function() { return { restrict: 'E', // restrict the directive declaration style to element name scope: { // new "isolate" scope 'addrInfo': '=info', ...
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; var _excluded = ["id", "buttonProps", "buttonText", "canCancel", "cancelButtonText", "disabled", "errorText", "fileInputProps", "fileName", "loaderAnimation", "onCancel...
var util = require('util'); var stream = require('stream'); var syslog = require('strong-fork-syslog'); var initialized = false; module.exports = SysLogStream; function SysLogStream(options) { if (!(this instanceof SysLogStream)) return new SysLogStream(options); stream.Writable.call(this); this.level = sysl...
import React, { PropTypes } from "react"; import DocumentTitle from "react-document-title"; import { connect } from "react-redux"; import { Link } from "react-router"; import { bindActionCreators } from "redux"; import * as PhotoActions from "actions/FiveHundredPx/PhotoActions"; import PhotoList from "components/PhotoL...
'use strict'; var path = require('path'); var passport = require('passport'); var async = require('async'); var _ = require('lodash'); var Loader = require('strider-extension-loader'); var globalTunnel = require('global-tunnel'); var app = require('./lib/app'); var common = require('./lib/common'); var config = requi...
const lineClient = { post: jest.fn(), get: jest.fn(), }; export default lineClient;
var _ = require("underscore"); var fs = require("fs"); function Juego(){ this.nombre="Niveles"; this.niveles=[]; this.usuarios=[]; this.resultados=[]; this.agregarNivel=function(nivel){ this.niveles.push(nivel); } this.agregarUsuario=function(usuario){ this.usuarios.push(usuario); } this.obtenerUsuario=fu...
import React from 'react'; import CSSModules from 'react-css-modules'; import styles from './ArticleContent.scss'; const ArticleContent = function(props) { return ( <article styleName="container"> <h1 styleName="title">{ props.article.title }</h1> <div styleName="content" dangerouslySetInnerHTML={{ ...
module.exports = /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ ret...
import { conditional, raw } from 'ember-awesome-macros'; import { computed } from '@ember/object'; import { module, test } from 'qunit'; import { compute } from 'ember-macro-helpers/test-support'; import sinon from 'sinon'; module('Integration | Macro | conditional', function() { test('returns undefined when doesn\'...
/* globals blanket, module */ var options = { modulePrefix: 'ember-web-api', filter: '//.*ember-web-api/.*/', antifilter: '//.*(tests|template).*/', loaderExclusions: [], enableCoverage: true, cliOptions: { lcovOptions: { outputFile: 'coverage/coverage.dat', renamer: function(moduleName) { ...
module.exports = require('./lib/deploy');
angular.module('DessertService', []).service('DessertService', function($http,$q, pzConfig) { function handleResponse(response) { return response.data } this.getDessertList=function(){ return $http.get(pzConfig.DESSERT_RESOURCE_URL) .then(handleResponse) } });
BB.Models.TestModel = Backbone.Model.extend({ initialize: function(attributes, config) { this.id = attributes.name; this.config = config; this.view = new BB.Views.TestView({ id: this.id, model: this, parent: config.collection.view.el }); } });
version https://git-lfs.github.com/spec/v1 oid sha256:3f29521e27b1ef19b97ffa757175e29f2f855ac4cf4e02b62a49aac13caf04b8 size 22885
function logout() { firebase.auth().signOut().then(function() { window.location.href = "test_unauthorised.html"; // Sign-out successful. }).catch(function(error) { // An error happened. }); } function dashboard() { var user = firebase.auth().currentUser; if (user...
/* eslint-env browser */ /** * This class handles logic for opening and closing the navigation drawer */ class NavigationController { /** * This method sets up the navigation for the site and throws an error is * anything can't be completed. */ constructor() { this._navDrawer = new window.__npmPubli...
'use strict'; class Headers { constructor(source = null) { if(!process.env.production && typeof source !== 'object' && !Array.isArray(source)) { throw new Error(`Header source must be an object, instead found type ${typeof source}`); } this._private = { headers: nul...
var path = require('path'); describe("If", function() { var data = ''; beforeEach(function(done) { neutrino.run(path.resolve('./examples/if/test.neu'), function(result) { data = result; done(); }); }); it("should parse an if statement", function(done) { expect(data.match(/if/)[0]).t...
import React from "react"; import { Link } from "@curi/react-dom"; import { HashSection, Paragraph, CodeBlock, IJS } from "../../../../../components/package/common"; let routesArgMeta = { title: "routes", hash: "options-routes" }; let argumentsMeta = { title: "Arguments", hash: "prepareRoutes-arguments",...
/** * Taken from jQuery 1 * * @param obj * @returns {*} */ var $isplainobject = function( obj ) { var key; // Must be an Object. // Because of IE, we also have to check the presence of the constructor property. // Make sure that DOM nodes and window objects don't pass through, as well if ( !obj || typeo...
Alloy.Globals.pageStack = { navigationWindow: null, pages: [], open: function(page) { Alloy.Globals.pageStack.pages.push(page); if (OS_IOS) { if (Alloy.Globals.pageStack.navigationWindow === null) { Alloy.Globals.pageStack.navigationWindow = Ti.UI.iOS.createNavigationWindow({ w...
// @Some tuning up after all scripts //import {playerControls} from './playercontrols' // // Autoexec History update initiation before page closing/leaving, both to localStorage and DB window.addEventListener('beforeunload', function(e) { console.log('Leaving the page'); var scope = angular.element(document.getEle...
// Karma configuration // Generated on Tue Feb 03 2015 18:57:18 GMT+0900 (JST) module.exports = function(config) { config.set({ // base path that will be used to resolve all patterns (eg. files, exclude) basePath: '', // frameworks to use // available frameworks: https://npmjs.org/browse/keyword...
'use strict'; //--------------------------------------------------------------------------- // File Interface // Provides the interface between the agent process and the hosts file system //--------------------------------------------------------------------------- (function() { //------------- // Dependencies //---...
define('exports-priority@*', [], function(require, exports, module){ exports.a = 2; module.exports = { a: 1 }; exports.a = 2; });
angular.module('toptrumps').controller('DuelCtrl', ['$scope', '$state', '$q', 'ngDialog', 'ttGame', 'ttDecks', 'ttBots', function ($scope, $state, $q, ngDialog, ttGame, ttDecks, ttBots) { /* true when we're getting data we need to set up */ $scope.loading = true; /* true while waiting for the current play...
var IncomingWebhook = require('@slack/client').IncomingWebhook; var url = process.env.SLACK_WEBHOOK_URL || '' var webhook = new IncomingWebhook(url) var through = require('through2') var COLORS = { 'FAIL': '#f60000', 'RECOVER': '#36a64f' } function sendMail (type, lastPing, ping) { var text = type + ' ' + ping...
import {observable} from 'mobx'; export default class EmailTemplateModel { @observable id; @observable subject; @observable body; @observable stagingsubject; @observable stagingbody; @observable description; @observable modified; @observable ModifierID; @observable published; @o...
var express = require('express'); var fs = require('fs'); var https = require('https'); var options = { key: fs.readFileSync('key.pem'), cert: fs.readFileSync('cert.pem'), passphrase: "thegeeksnextdoor" }; var app = express(); app.use(express.static(__dirname)); var server = https.createServer(option...
(function() { console.log("Starting Demo..."); var ctx = window.getContext('2d'); var img = window.getImage("examples/logo.png"); if (ctx && img) window.setInterval(paint, 50); // paint in 20Hz function paint() { ctx.clear(); ctx.fillStyle = 'rgb(255, 100, 50)'; ...
'use strict'; const five = require('johnny-five'); const PiIO = require('..'); const board = new five.Board({ io: new PiIO() }); board.on('ready', function() { const servo = new five.Servo({ pin: 'GPIO27', type: 'continuous' }); servo.cw(0.8); });
var jqImpress = function(jqi, $, undefined) { $.fn.jqImpress = function(options) { var settings = $.extend({height:768, width:1024}, options); return this.each(function() { var $this = $(this); $this.children().each(function(index, item) { var classes = $this.attr("class"); console...
cordova.define('cordova/plugin_list', function(require, exports, module) { module.exports = [ { "file": "plugins/org.apache.cordova.device/www/device.js", "id": "org.apache.cordova.device.device", "clobbers": [ "device" ] }, { "file": "plugins/org.apache.c...
// _props = {}; /** @param {Entity} e */ // function _onCreate(e, c) // { // } /** @param {Entity} e */ // function _onEnable(e, c) // { // } /** @param {Entity} e @param {number} dt */ // function _onUpdate(e, c, dt) // { // } /** @param {Entity} e */ // function _onDisable(e, c) // { // } /** @param {Entity} e *...
import React, {Component,PropTypes} from 'react'; import { StyleSheet, ART, View, Easing, Animated, LayoutAnimation, } from 'react-native'; import Svg,{ Circle, Ellipse, G, LinearGradient, RadialGradient, Line, Path, Polygon, Polyline, Rect, Symbol, ...
import { assert } from '@ember/debug'; import { DEBUG } from '@glimmer/env'; // This method is taken from // https://github.com/jquery/jquery/blob/2d4f53416e5f74fa98e0c1d66b6f3c285a12f0ce/src/ajax/parseXML.js export default function parseXML(data) { let xml; if (!data || typeof data !== 'string') { return nul...
(function (Behavior, util) { Behavior.postMessage = function (config) { var targetOrigin = config.remoteOrigin, postFnHost = { postMessage: function () {} }; util.dom.on(window, 'message', function (event) { if (event.data.indexOf(config.channel) === 0) { // {{ config.cha...
const { METHODS } = require('http') const routing = require('routing2'); const Router = app => { const { routes: rules } = app.config; app.routes = app.routes || []; app.router = METHODS.reduce((api, method) => { // app.router.get('/').to('home', 'index'); api[method.toLowerCase()] = path => { retu...
var finalhandler = require('finalhandler'); var http = require('http'); var serveStatic = require('serve-static'); // Serve up public folder var serve = serveStatic('../webapps/mobile/'); // Create server var server = http.createServer(function(req, res) { var done = finalhandler(req, res); serve(req, res, done);...
import compose from '../../utils/compose'; /** Le principe d'un atomic est que sur change, une nouvelle valeur est initialisée sans tenir compte de la valeur précédente */ var AtomicOrderableList = compose(function(item) { this._item = item; }, { initValue: function(initArg) { if (!initArg) { ...
/* global $ */ import {englandData, niData} from './map-data' const Highcharts = require('highcharts') const {stringToLowerCase, recursiveObjectKeysLoop, request, spacesToDashes, capitalizeEachFirstLetter, padInt, calcAspectRatio, isIOS } = require('./chart-helpers') const {DataNation, DataCcgCode, API_KEY} = require...
let _socket; const onSlideInit = socket => { _socket = socket; _socket.on( 'new-subscriber', function( data ) { _socket.broadcast.emit( 'new-subscriber', data ); }); _socket.on( 'statechanged', function( data ) { // console.log('statechanged', data); // data = {notes: HTML notes, _socketId, state:...
var crypto = require('crypto'); var path = require('path'); var _ = require('lodash'); module.exports = function page(options) { // // ## page // // This is a paginator based on collections. // // defaults: { // collection: 'posts', // perPage: 3, // target: 'blog', // template: 'page', /...
"use strict"; var database; var connect = require('camo').connect; var dataPath = __dirname + '/data'; var uriConnection = 'nedb://' + dataPath; var ProvinceModel = require('./models/Province'); var CityModel = require('./models/City'); var _ = require('underscore'); var async = requ...
var CastleCSS_Forms_FileInput=webpackJsonpCastleCSS_Forms__name_([3],{2:function(t,e,n){"use strict";var s=n(0),i=function(t){var e=t||"[data-castlecss-field]";navigator.userAgent.indexOf("MSIE")>0&&s(e).on("mousedown","input[type='file']",function(){s(this).trigger("click")})};t.exports=i}},[2]);
/* * grunt-dictator * https://github.com/justspamjustin/grunt-dictator * * Copyright (c) 2013 Justin Martin * Licensed under the MIT license. */ 'use strict'; var Handlebars = require('handlebars'); var fileset = require('fileset'); var _ = require('underscore'); var fs = require('fs'); Handlebars.registerHelp...
import BMedia from './media' import BMediaAside from './media-aside' import BMediaBody from './media-body' import { installFactory } from '../../utils/plugins' const components = { BMedia, BMediaAside, BMediaBody } export { BMedia, BMediaAside, BMediaBody } export default { install: installFactory({ componen...
// This file has been generated by the SAPUI5 'AllInOne' Builder jQuery.sap.declare('sap.ui.layout.library-all'); if ( !jQuery.sap.isDeclared('sap.ui.layout.DynamicSideContent') ) { /*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2015 SAP SE or an SAP affiliate company. * Licensed under the Apa...
import React, { Component, PropTypes} from 'react'; import DevTools from './DevTools'; var Link = require('react-router').Link; export default class App extends Component { static propTypes = { children: PropTypes.element.isRequired }; render() { return ( <div> <div className="header"> ...