code
stringlengths
2
1.05M
/** * Created by admin on 15-4-28. */ exports.findAll = function(req, res) { res.send([{name:'item1'}, {name:'item2'}, {name:'item3'}]); }; exports.findById = function(req, res) { res.send({id:req.params.id, name: "The Name", description: "description"}); };
<%= app_name %>.Templates = { <%= formatted_templates.join(",\n\t") %> };
import React, { Component } from 'react'; import { Button, Text } from 'react-native'; import { Entypo } from '@expo/vector-icons'; import FlexItem from '../components/FlexItem'; import FlexWrapper from '../components/FlexWrapper'; import IconButton from '../components/IconButton'; export default class extends Compon...
function getSuiteScriptDependecies() { return [ { path: 'N/auth', param: 'auth' }, { path: 'N/cache', param: 'cache' }, { path: 'N/config', param: 'config' }, { path: 'N/crypto', param: 'crypto' }, { path: 'N/currency', ...
module.exports = (env) => { return require(`./webpack.${env}`); // eslint-disable-line global-require }
/*jslint vars: true, plusplus: true, devel: true, nomen: true, indent: 4, maxerr: 50, white: true bitwise:true */ /*global Float32Array, vec2, vec3, vec4, mat4 */ function Actor(position, scale, rotation, color) { 'use strict'; this.position = position; this.scale = scale; this.rotation = rotation; ...
/* Utility functions for form validation and submission */ const validate = { checkTextField(value) { if (value == '') { return false; } return true; }, }; export default validate;
import assert from "better-assert"; import os from "os"; import { Variant, DataType } from "lib/datamodel/variant"; import ServerEngine from "lib/server/ServerEngine"; import { ObjectIds } from "lib/opcua_node_ids"; import { StatusCodes } from "lib/datamodel/opcua_status_code"; import humanize from "humanize"; ...
/* * Routers module Admin */ var md5 = require('MD5'); var mysql = require('mysql'); var connection = require('../functions/connection'); exports.index = function (req, res) { res.render('ead-admin/index', { layout: 'admin', title: 'Apprenticeship Object EAD', user: { username: req.session.user.username, ...
/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2017 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ //Provides control sap.ui.unified.Calendar. sap.ui.define(['jquery.sap.global', 'sap/ui/core/Control', 'sap/ui/core/LocaleData', 'sap...
'use strict'; var gulp = require('gulp'), browserify = require('browserify'), uglify = require('gulp-uglify'), source = require('vinyl-source-stream'), buffer = require('vinyl-buffer'), rename = require('gulp-rename'), gulpif = require('gulp-if'), sass = require('gulp-sass'), pug = requir...
Components._schemas.collectionItemAvatarSchema = new SimpleSchema({ image: { type: String, optional: true }, icon: { type: Components._schemas.iconSchema, optional: true } }); Components._schemas.collectionItemSecondaryContentSchema = new SimpleSchema({ link: { type: String }, icon: { type: Components._schema...
(function(doc, proto) { try { // check if browser supports :scope natively doc.querySelector(':scope body'); } catch (err) { // polyfill native methods if it doesn't ['querySelector', 'querySelectorAll'].forEach(function(method) { var nativ = proto[method]; proto[method] = function(selecto...
module.exports = { entry: `./example/index.js`, /* relative to project root */ module: { loaders: [{ loader: `babel-loader`, test: /\.js$/ }] }, output: { filename: `example.js`, path: `./example` }, resolve: { extensions: [ ``, ...
if (typeof window == 'undefined') { var s6d = require('../../build/shepherd.server.js'); s6d({exposeAPI: true}); } describe('Generic features of the Loader', function () { it('should reset its state at will', function () { var modPath = 'fixtures/named.js'; s6d.reset(); expect(s6d.e...
function repeat(operation, num) { return function() { if(num <= 0) return; operation(); return repeat(operation, --num); }; } function trampoline(fn) { while(fn && typeof fn === 'function') { fn = fn(); } } module.exports = function(operation, num) { trampoline(function() { return repeat(operation,...
const mongoose = require('mongoose') module.exports.connect = (uri) => { mongoose.connect(uri) // plug in the promise library: mongoose.Promise = global.Promise // connection events mongoose.connection.on('error', (err) => { console.error(`Mongoose connection error: ${err}`) process.exit(1) }) ...
module.exports = function(grunt) { // make sure line endings are standardized grunt.util.linefeed = '\n'; var cmds = [ // arr 'src/arr/first.js', 'src/arr/last.js', 'src/arr/length.js', // convert 'src/convert/b/gb.js', 'src/convert/b/kb.js', ...
const validateOptions = options => { const { handlers, initialization } = options; if (initialization !== undefined && typeof initialization !== "function") { const message = `The initialization property specified in your ` + `reporter config must be a function. The current value is ` + `${in...
#!/bin/env node // OpenShift sample Node application var express = require('express'); var jade = require('jade'); var GameOfLife = require(__dirname + '/../client/GameOfLife.js'); var cellFactory = require(__dirname + '/../client/cellFactory.js'); var MAP_SIZE = { rows: '40', cols: '70' }; var SETUP_TIME ...
const webpack = require('webpack'); const merge = require('webpack-merge'); const helpers = require('./helpers'); const commonConfig = require('./webpack.common'); module.exports = merge(commonConfig, { output: { filename: 'js/[name].[hash].js', chunkFilename: '[id].[hash].chunk.js' }, plugins: [ n...
import React, { Component } from 'react'; import axios from 'axios'; import { Link } from 'react-router'; import Nav from './Nav'; import ViewAllGearPage from './ViewAllGearPage'; import Footer from './Footer'; class UserHomePage extends Component { constructor(props) { super(props); this.state = { g...
var mtheft_2010_05 = [{ "type": "FeatureCollection", "features": [ { "type": "Feature", "properties": { "Unnamed: 0": 0, "Incident Number": 101510006, "Date": "05\/30\/2010", "Time": "11:17 PM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense...
/** * Gets the index at which the first occurrence of `NaN` is found in `array`. * * @private * @param {Array} array The array to search. * @param {number} fromIndex The index to search from. * @param {boolean} [fromRight] Specify iterating from right to left. * @returns {number} Returns the index of the matched...
var d = new Date(); var reset = true; var reset2 = true; var start_time; var start_time2; var key_strokes = []; var key_strokes2 = []; function key_signal(id, action, timestamp) { this.id = id; this.action = action; this.timestamp = timestamp; } function is_special_key(key_id) { switch(key_id) { ...
import React from 'react' import '../../css/markdown.css' class MarkdownComponent extends React.Component { constructor(props) { super(props) } render() { return ( <div className="mdl-layout mdl-js-layout mdl-layout--fixed-header"> <header className="mdl-layout__header markdown-header">...
const chai = require('chai'), dictum = require('dictum.js'), server = require('./../../app'), sessionManager = require('./../../app/services/sessionManager'), { successfulLogin, successfulLoginNotAdmin } = require('./../utils'), should = chai.should(); describe('users controller', () => { describe('/users ...
// Pure JavaScript implementation of DOM Range /* build:replaceWith(api) */rangy/* build:replaceEnd */.createCoreModule("DomRange", ["DomUtil"], function(api, module) { var log = log4javascript.getLogger("rangy.DomRange"); var dom = api.dom; var util = api.util; var DomPosition = dom.DomPosition; va...
const L = require("leaflet"); var VersionControl = L.Control.extend({ version: '', options: { position: 'bottomright' }, initialize: function(version, options) { this.version = version; L.Util.setOptions(this, options); }, onAdd: function(map) { var container = ...
require('string-format'); var _ = require('lodash'); var bluebird = require('bluebird'); var EventEmitter = require('events').EventEmitter; var hookable = require('./hookable'); var interfaceChecker = require('interface-checker'); var collectionFactory = require('./collection'); interfaceChecker.define('SimpleOrmDataA...
// -------------------------------------------------------------------- // Important! // Do not modify this file. // Check README.md for more details on how to configure this package. // -------------------------------------------------------------------- "use strict"; var fs = require('fs'); var configJSONPath = 'conf...
Ext.define('rlm.view.Options', { extend: 'Ext.Container', alias: 'widget.viewoptions', cls: 'ctr-options', items: [ {xtype: 'builddefinitioncombobox'}, {xtype: 'rlmdaterangepicker'}, { xtype: 'button', itemId: 'submitButton', text: 'Submit', ...
var sh = require('execSync') , semver = require('semver') , _ = require('lodash') , fs = require('fs') , helper = require('./helper') var CVS = module.exports = { getSequelizePackageJson: function(dialect) { if (dialect) { return JSON.parse(fs.readFileSync(__dirname + '/../reposit...
'use strict'; /*eslint-disable no-console */ /* * node examples/google/chartasstream.js > qr.png */ var wrapi = require('../../index.js'); var endpoints = { qr: { method : 'GET', path: '', query: { cht: 'qr' } }, ts: { method : 'GET', path: '', query: { cht: 'tx' } } ...
var express = require('express'); var router = express.Router(); var fnHelper = require('../model/Helper'); router.get('/', function(req, res, next) { var tweetsCache = req.app.locals.tweetsCache; var users = fnHelper.users; var data = []; users.forEach((user, index, array) => { var twData = {}; twe...
MAXOVERDUES = 4; populateOverdues(0); // Starts the population process. function populateOverdues(positionNum) { if (positionNum < MAXOVERDUES && positionNum < listOverdues().length) { var singleBubble = labelMaker(listOverdues()[positionNum], 'overdueTray'); singleBubble.style.opacity = 1 - (positionNum / 4...
const http = require('http'); http.createServer((req, res) => { res.writeHead(200, { 'Content-Type': 'text/plain' }); console.log(req); /* write는 우선 버퍼에 차곡차곡 쌓는다. 그리고 버퍼가 차는 족족 클라이언트로 보낸댜. 그래서 중간중간 보내게 된다. 그리고 데이터를 청크 단위로 쪼개서 보낸다. 그래서 header에 자동으로 Transfer-Encoding: chunked가 설정 되어 진다. ...
version https://git-lfs.github.com/spec/v1 oid sha256:df05c41f29d3f74f80adb077e0d5671d7aedeea863ec1f4b2baaedb9c0cbaa90 size 186781
version https://git-lfs.github.com/spec/v1 oid sha256:7f27ee249c0a3aec41d8dc711d6f599390c08b30ff6da95d710f5b8de684e4c0 size 161564
export default (dateString) => { const d = new Date(dateString) return d.toLocaleDateString() }
const test = require("tape"); /** * Tests whether a given value is in a sorted array * @param {array} arr A sorted array of values * @param {number} val The integer to test * @returns {boolean} * Assumptions * 1. The array is sorted * 2. The array is numeric * 3. We can trust the inputs will be of correct t...
/*! * Author: Abdullah A Almsaeed * Date: 4 Jan 2014 * Description: * This file should be included in all pages !**/ /* * Global variables. If you change any of these vars, don't forget * to change the values in the less files! */ var left_side_width = 220; //Sidebar width in pixels $(function() { "...
require('dotenv').load(); module.exports = { username: process.env.USERNAME, password: process.env.PASSWORD, host: process.env.HOST, dbUrl: process.env.DB_URL, };
fileApp.controller('filelistController',['$scope','fileInfoService',function($scope,fileInfoService){ var promise = fileInfoService.query(); //ͬ²½µ÷Ó㬻ñÈ¡³Ðŵ½Ó¿Ú promise.then(function(data){ $scope.mapList={}; var items=data.content; for(var i in items){ items[i].auth=""...
/*global document, alert */ require([ 'article/util/array', 'mustache', 'has' ], function ( array, mustache, has ) { 'use strict'; var titleText = array.map(['Build JS, ', 'World', '!'], function (item) { return item; }).join(''); var title = mustache.render('<h1>{{tit...
requirejs.config({ baseUrl: "static/script/libs", paths: { 'app': '../app', 'template': '../../templates' }, shim: { 'jquery' : { exports : '$' }, 'underscore' : { exports : '_' }, 'backbone': { dep...
import { parse } from 'qs'; import { remove, query, getEditionForEdit, createOrUpdateEdition } from './service'; import { feedback, urls } from '../../../utils'; export default { namespace: 'editions', state: { list: [], loading: false, currentItem: {}, modalVisible: false, modalType: 'create'...
import { Patents } from 'index'; describe('Patents.fetch()', () => { it('returns object', () => Patents.fetch().then(data => expect(data).to.be.instanceof(Object)) ); it('returns object with concepts', () => Patents.fetch({ query: 'temperature', concept_tags: true }).then(data => expect(data.resul...
var ApiMessages = function(){}; ApiMessages.EMAIL_NOT_FOUND = 0; ApiMessages.INVALID_PWD = 1; ApiMessages.DB_ERROR = 2; ApiMessages.NOT_FOUND = 3; ApiMessages.EMAIL_ALREADY_EXISTS = 4; ApiMessages.COULD_NOT_CREATE_USER = 5; ApiMessages.PASSWORD_RESET_EXPIRED = 6; ApiMessages.PASSWORD_RESET_HASH_MISMATCH = 7; ApiMessage...
// flow-typed signature: f3819c491870da8438ac47caa71206ed // flow-typed version: <<STUB>>/lodash.debounce_v^4.0.8/flow_v0.54.0 /** * This is an autogenerated libdef stub for: * * 'lodash.debounce' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share your work...
const path = require('path'); const DllPlugin = require('webpack/lib/DllPlugin'); module.exports = { // JS 执行入口文件 entry: { // 把 React 相关模块的放到一个单独的动态链接库 react: ['react', 'react-dom'], // 把 React 相关模块的放到一个单独的动态链接库 redux: ['redux', 'redux-thunk', 'redux-localstorage'], // a...
/* --- AUTOGENERATED FILE ----------------------------- * If you make changes to this file delete this comment. * Otherwise the file may be overwritten in the future. * --------------------------------------------------- */ const yizhiPattern = require('./yizhiPattern'); const { assertAllExamplesMatch, assertNoneMatch...
const json = require('./json'); module.exports = { 'package.json': json, 'bower.json': json, json };
export const SET_FORM_STATE = '@@react-redux-reformed/setState'; export const REPLACE_FORM_STATE = '@@react-redux-reformed/replaceState'; export const RESET_FORM_STATE = '@@react-redux-reformed/resetState'; export const setFormState = (formName) => (state) => ({ type: SET_FORM_STATE, payload: { formNam...
require('./children')
/** * Copyright (c) Baidu Inc. All rights reserved. * * This source code is licensed under the MIT license. * See LICENSE file in the project root for license information. * * @file 读取访问表达式 */ var ExprType = require('./expr-type'); var createAccessor = require('./create-accessor'); var readIdent = require('./re...
export default [ { link: 'Dashboard', label: 'Dashboard', icon: 'fa-tachometer' }, { label: 'Charts', icon: 'fa-bar-chart-o', expanded: true, subMenu: [ { link: 'ChartJs', label: 'ChartJs' }, { link: 'Chartist', label: 'Chartist' ...
'use strict'; var mocFile = function(path) { var fileObj = {}; fileObj.name = path; fileObj.text = ''; fileObj.readable = false; fileObj.writable = false; fileObj.append = false; fileObj.open = function(action) { switch (action) { case 'a': fileObj.writab...
/* eslint-disable import/no-extraneous-dependencies */ /* eslint-disable no-console */ const webpack = require('webpack') const path = require('path') const HtmlWebpackPlugin = require('html-webpack-plugin') const ExtractTextPlugin = require('extract-text-webpack-plugin') const dev = (process.env.NODE_ENV !== 'product...
import actionTypes from 'actions/actionTypes'; const defaultState = { sortBy: 'date', sortDir: 'desc', filters: {}, trips: [], categories: [], }; export default function (state = defaultState, action) { switch (action.type) { case actionTypes.TRIPS.DATA_SUCCESS: return { ...state, trips: action....
(function(Backbone, BoomCMS) { 'use strict'; BoomCMS.Collections.Sites = Backbone.Collection.extend({ model: BoomCMS.Site, url: BoomCMS.urlRoot + 'site', comparator: 'name' }); }(Backbone, window.BoomCMS));
/// <reference path="../../build/drunk.d.ts" /> var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; var __decorate...
'use strict'; /* jshint ignore:start */ /** * This code was generated by * \ / _ _ _| _ _ * | (_)\/(_)(_|\/| |(/_ v1.0.0 * / / */ /* jshint ignore:end */ var Q = require('q'); /* jshint ignore:line */ var _ = require('lodash'); /* jshint ignore:line */ var Page = require('../../../../../ba...
/* * grunt-barrier * https://github.com/wilkerlucio/grunt-barrier * * Copyright (c) 2013 Wilker Lucio * Licensed under the MIT license. */ 'use strict'; module.exports = function(grunt) { // Project configuration. grunt.initConfig({ jshint: { all: [ 'Gruntfile.js', 'tasks/*.js', ...
'use strict'; module.exports = { name: 'emptyRule', nodeTypes: ['ruleset'], message: 'There shouldn\'t be any empty rules present.', lint: function emptyRuleLinter (config, node) { var block = node.first('block') || {}; block.content = block.content || []; if (!block.content....
import React, { Component } from 'react'; import { func, shape } from 'prop-types'; import { Alert, Platform, ScrollView, StyleSheet, View } from 'react-native'; import * as RNIap from 'react-native-iap'; import RNRestart from 'react-native-restart'; import store from 'react-native-simple-store'; import Header from '...
var test = require('../../') test('ok', function(t) { t.ok(true, 'thing should be true') t.ok(false, 'thing should be true') t.end() })
// Karma configuration // http://karma-runner.github.io/0.10/config/configuration-file.html module.exports = function (config) { config.set({ // base path, that will be used to resolve files and exclude basePath: '', // testing framework to use (jasmine/mocha/qunit/...) frameworks: ['jasmine'], ...
var template = __dirname + '/template/jasmine-requirejs.html', requirejs = { '2.1.0' : process.cwd() + '/public/lib/require-2.1.0.min.js' }; exports.process = function(grunt, task, context) { var version = context.options.version; // find the latest version if none given if (!version) { vers...
const config = require('./webpack.config.js'); const nodeExternals = require('webpack-node-externals'); module.exports = Object.assign({}, config, { target: 'node', devtool: 'inline-source-map', externals: [nodeExternals()], plugins: config.plugins.filter(p => !(p.options && p.options.template)), //Exc...
var data = require('../controllers/data.js'); var mapEmailToSession = data.mapEmailToSession; // routers module.exports = function(app) { app.all('/', function(req, res) { res.redirect('/index'); }); var index = require('../controllers/index.ctrl'); app.get('/index', index.get); app.post(...
"use strict"; var GT = GT || {}; (function(exports) { var DisplayObject = function(options) { for (var key in options) { this[key] = options[key]; } }; var proto = { constructor: DisplayObject, DEG_TO_RAD: Math.PI / 180, RAD_TO_DEG: 180 / Math.PI, ...
/*jshint node:true*/ module.exports = { description: '', normalizeEntityName: function() { // this prevents an error when the entityName is // not specified (since that doesn't actually matter // to us } };
var arr_flat = []; function steamroller(arr) { // I'm a steamroller, baby for(var element in arr){ if(!Array.isArray(arr[element])){ arr_flat.push(arr[element]); } else { steamroller(arr[element]);} } return arr_flat; } steamroller([1, {}, [3, [[4]]]]);
/* * grunt-less2js * https://github.com/ixrock/grunt-less2js * * Copyright (c) 2014 Roman Karlov (ixrock@gmail.com) * Licensed under the MIT license. */ 'use strict'; var path = require('path'); var less = require('less'); var _ = require('lodash'); module.exports = function (grunt) { grunt.registerMultiTask...
function getElement(node){ if(/^(video|audio)$/i.test(node.tagName)){ return [node]; } let elems = Array.prototype.slice.call(document.querySelectorAll("video, audio")); elems = elems.filter(elem => elem.readyState > 0); if(elems.length <= 1){ return elems; } return elems.filter(elem => !elem.paused); } sel...
{ wrapper.firstChild_ = wrapper.firstChild; wrapper.lastChild_ = wrapper.lastChild; }
var NotEarlyErrorString = "NotEarlyError"; var EarlyErrorRePat = "^((?!" + NotEarlyErrorString + ").)*$"; var NotEarlyError = new Error(NotEarlyErrorString); function Test262Error(message) { this.message = message || ""; } Test262Error.prototype.toString = function () { return "Test262Error: " + this.message;...
import React, { Component } from 'react'; import Popup from 'react-popup'; import * as firebase from 'firebase'; import './index.css'; const dice = require("./functions/misc.js").dice; var channel = window.location.pathname.slice(1).toLowerCase(); class Initiative extends Component { constructor() { super(); ...
var _ = require('lodash'); var Reflection = require('./Reflection'); var ReflectionScopeAbstract = function (node) { Reflection.call(this, node); this._functions = null; this._variables = null; }; ReflectionScopeAbstract.prototype = Object.create(Reflection.prototype); ReflectionScopeAbstract.prototype._getBo...
'use strict'; angular.module('topics').controller('MainTopicsController', ['$scope', '$stateParams', '$location', 'Authentication', 'UserProfile', 'Topics', function ($scope, $stateParams, $location, Authentication, UserProfile, Topics) { $scope.authentication = Authentication; $scope.userProfile = UserProfile; ...
/* jshint node:true */ 'use strict'; var Node = require('./node.js'), DOMException = require('../dom/exception.js'), helper = require('../helper.js'), sys = require('sys'); /** * The CharacterData interface extends Node with a set of attributes and methods for accessing character data in the * DOM. For clarity...
import { assert } from 'chai'; import BluebirdPromise from 'bluebird'; import express from 'express'; import removeRoute from 'express-remove-route'; import bodyParser from 'body-parser'; import IonicPush from '../src/main'; describe('IonicPush', () => { const app = express(); app.use(bodyParser.json()); app.use...
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), Schema = mongoose.Schema; /** * Explore Schema */ var ExploreSchema = new Schema({ name: { type: String, default: '', required: 'Please fill Explore name', trim: true }, created: { type: Date, default: Date.now }, us...
/** * Created by Hesk on 14年12月17日. */ var keystone = require('keystone'), csv = require('csv'); module.exports = function (req, res) { keystone.list('UserAdmin').model.find().exec(function (err, results) { var users = results.map(function (i) { return { first_na...
import { setState } from './actions/index' export default function initSocketHandlers(socket, store) { socket.on('state', state => store.dispatch(setState(state)) ); }
/** * Violet JavaScript library for Interactive Applications * JS API LIB version 0.2 * Implements Public API calls and event handlers */ toString = function() { return "JS API LIB version 0.2"; }; // -------------------------------------------------------------------------80 /** * JavaScript goodness */ if (!...
// Fallout Password Terminal Challenge $(function() { // Hide Status Div $statusDiv = $("#js-status-div"); $statusDiv.hide(); // Hide Password Grid $passwordGrid = $("#js-pwd-grid"); $passwordGrid.hide(); // Hide Terminal Div $terminalDiv = $("#js-terminal-div"); $terminalDiv.hide(); // Create ...
import Ember from 'ember'; import ZindexSupport from 'embric/mixins/zindex-support'; import { module, test } from 'qunit'; module('Unit | Mixin | zindex support'); // Replace this with your real tests. test('it works', function(assert) { let ZindexSupportObject = Ember.Object.extend(ZindexSupport); let subject =...
import React from "react"; import Router from "next/router"; import hoistStatics from "hoist-non-react-statics"; import { stringify as stringifyQs } from "querystring"; import pathToRegexp from "path-to-regexp"; import getDisplayName from "../utils/getDisplayName"; import decodeParam from "../utils/decodeParam"; import...
"use strict"; describe('Sms', function () { //noinspection JSUnresolvedVariable var sms = window['Breinify'].plugins.sms; //noinspection JSUnresolvedFunction it('is available through Breinify', function () { //noinspection JSUnresolvedFunction expect(typeof sms).toBe('object'); }...
version https://git-lfs.github.com/spec/v1 oid sha256:530cd5937938708b3b61390ca042d8b2fb3cd464891035667aa7f80904a114d5 size 14361
module.exports = { description: 'ivy-videojs', afterInstall: function() { return this.addPackageToProject('video.js', '~5.12'); }, normalizeEntityName: function() { // This prevents an error when the entityName is not specified. } };
const fs = require("fs-extra"); const archiver = require("archiver"); const { resolve, basename } = require("path"); const { writePackageManifest } = require("./lib/steps"); const { getDirectories } = require("./lib/utils"); const { name, version } = require("../package"); (async () => { try { const dist = resol...
define(['./module', './Ideas', './Comments', './User'], function() { 'use strict'; });
'use strict'; var events = require('events'); var net = require('net'); var util = require('util'); var debug = require('debug')('thinkgear'); var Thinkgear = function(opts) { debug('Creating thinkgear client'); if (!opts || !opts.appName) { throw new Error('error: please provide an app name'); } if (!opts |...
Package.describe({ summary: "Reactive objects implementation" }); Package.on_use(function (api) { "use strict"; api.export && api.export('Reactive'); api.add_files('reactive.objects.js', ['client']); });
module.exports = function(grunt) { grunt.initConfig({ compass: { dist: { options: { sassDir: 'sass', cssDir: 'css' } } }, watch: { styles: { files: ['**/*.scss'], // which files to watch tasks: ['compass'], } }, copy: { ...
var express = require('express'); var app = express(); var bodyParser = require('body-parser'); var morgan = require('morgan'); // logger var mongoose = require('mongoose'); var passport = require('passport'); var jwt = require('jwt-simple'); var validator = require('validator'); var assert = require('assert'); var co...
'use strict' const validation = require('../validation') module.exports = () => { return { validate } function validate (value) { const pass = !isNaN(value) && (typeof value) === 'number' return validation(pass, 'number') } }