code
stringlengths
2
1.05M
function createQueryLookup ({ name = 'locale' } = {}) { const noNameError = new Error('A query string parameter name is required for query string locale lookup'); if (typeof name !== 'string' || name.trim().length <= 0) { throw noNameError; } return function lookupQuery (req) { if (!(name in req.query...
import Ember from 'ember'; import _ from 'lodash'; /** Live Filtering component Filter channels using tags @class LiveFilteringComponent */ export default Ember.Component.extend({ /** Normalized object of message strings @property messages @type Object */ messages: { noMatch: 'Sorry, there are...
'use strict' const merge = require('webpack-merge') const prodEnv = require('./prod.env') module.exports = merge(prodEnv, { NODE_ENV: '"development"', AUTH0_REDIRECTURI: '"http://localhost:8080/auth0callback"', })
var osmosis = require('../index'); var server = require('./server'); var URL = require('url'); var url = server.host + ':' + server.port; module.exports.link = function (assert) { var count = 0; osmosis.get(url + '/paginate') .paginate('a[rel="next"]', 3) .set('page', 'div') .then(function (conte...
(function($, DataTables){ $.extend( true, DataTables.Buttons.defaults, { dom: { container: { className: 'dt-buttons ui-buttonset' }, button: { className: 'dt-button ui-button ui-state-default ui-button-text-only', disabled: 'ui-state-disabled', active: 'ui-state-active' }, buttonLi...
import React from 'react' import { Image } from 'cloudinary-react' export default () => ( <div style={{ marginBottom: '40px' }}> <Image style={{ margin: '20px 0' }} cloudName='ziro' width='40' publicId='ok-icon_bskbxm' version='1508212647' format='png' secure='true' ...
var seek = require('../'); seek(process.cwd(), 'cwd console', { dotFiles: false }, function(file, matches) { console.log('\nMatched: '+file+'\nMatches:'); console.log(matches); console.log(); });
/* globals require, module, console */ /* jshint -W097 */ 'use strict'; /****************************** * 3 - Join, Leave, Disconnect ******************************/ var view = require('./view.js'), q = require('Q'), Firebase = require('firebase'), Settings = require('./settings.js'); function FireChat...
(function () { 'use strict'; /** * * @ngdoc directive * @module __modulename__ * @name __directivename___ * * @requires $q * * @description * A generic angular directive */ angular .module('gen') .directive('gridBase', grid); //gr...
import 'react-native'; import React from 'react'; import Board from '../build/common/board/Board'; import * as boardUtil from '../build/common/board/util'; import * as fenUtil from '../build/common/board/fen'; import { defaults as boardDefaultConf } from '../build/common/board/config' // Note: test renderer must be r...
var fs = require('fs'); module.exports = function meminfo(callback) { var result = {}; fs.readFile('/proc/meminfo', 'utf8', function (err, str) { if (err) { return callback(err); } str.split('\n').forEach(function (line) { var parts = line.split(':'); if (parts.length === 2) { ...
module.exports = 'โœจ ๐Ÿข ๐Ÿš€ โœจ'
import styled from "styled-components" import media from "styled-media-query" import AniLink from "gatsby-plugin-transition-link/AniLink" export const MenuLinksWrapper = styled.nav` ${media.lessThan("large")` display: none; `} ` export const MenuLinksList = styled.ul` font-size: 1.2rem; font-weight: 300; ...
var ResourceServerActionCreators = require('actions/ResourceServerActionCreators'); module.exports = { createResource: function(fields) { window.setTimeout(function() { ResourceServerActionCreators.recieveRawCreatedResource(fields); }); } };
export default { props: { struct: { type: Function, default () { return {}; }, }, }, };
'use strict'; import React, { Component } from 'react' import { connect } from 'react-redux' import { PageNavigator, actions } from 'kn-react-native-router' import * as types from '../../router' import LoginContainer from './login' import RegisterContainer from './register' const { navigationPop, navigation...
// โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ // import // โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ import React from 'react'; import { graphql } from 'gatsby'; import PropTypes from 'prop-types'; import sample from 'lodash/sample'; import { Roo...
var Parser = require("../wrapping"), _ = require("../../utils"), EventualParser; /** * EventualParser * * @class EventualParser * @extends Parser * @author Sergey Kamardin <s.kamardin@tcsbank.ru> */ EventualParser = Parser.extend( /** * @lends EventualParser.prototype */ { ...
/** * Passport configuration * * This is the configuration for your Passport.js setup and where you * define the authentication strategies you want your application to employ. * * I have tested the service with all of the providers listed below - if you * come across a provider that for some reason doesn't work,...
var ev3dev = require('ev3dev-lang'); var socket = require('socket.io-client')('http://10.0.0.122:3000'); // npm install ev3dev-lang socket.io-client // node index.js function Dispatcher() { this.listeners = {}; } Dispatcher.prototype.register = function register(action, listener) { if (!this.listeners[action])...
require('./Info.less'); var React = require('react'); module.exports = React.createClass({ getInitialState: function () { return { userId: this.props.userId || zn.react.session.json().id, toolbarItems: this.props.userId?[]:[{icon:'fa-edit', text: 'ไฟฎๆ”นไธชไบบไฟกๆฏ', onClick: this.__onEdit}], info: null, formItems...
'use strict'; /** * Recall scene command * * Recall a scene */ class RecallScene { /** * Constructor * * @param {string} sceneId Scene Id */ constructor(sceneId) { this.sceneId = String(sceneId); } /** * Invoke command * * @param {Client} client Client * * @return {Promise} ...
import * as Api from '../api.js'; import PageEventTypes from '../commons/page-event-types.js'; import moment from 'moment'; /** * * @param {function} commit * @param {type} state * @returns {jqXhr} */ export function fetchPagesList( {commit, dispatch, state}){ var $def = $.Deferred(); Api.getPagesList()....
Accounts.config({ forbidClientAccountCreation: true });
class microsoft_update_stringcoll_1 { constructor() { // string Item (int) {get} {set} this.Parameterized = undefined; // int Count () {get} this.Count = undefined; // bool ReadOnly () {get} this.ReadOnly = undefined; // IUnknown _NewEnum () {get} t...
'use strict'; /* Controllers */ function DashboardController($resource, $scope, Cluster, Datastore) { Cluster.query({}, function(data){ $scope.clusters = data; }); Datastore.query({}, function(data){ $scope.datastores = data; }); $scope.newCluster = new Cluster(); $scope.submit = function () { ...
Prices : { `2x8 x 12` : 8.56, `2x6 x 12` : 10.11 }
// var tasks = require('../api/tasks.js'); module.exports = function (app) { app.get('/tasks', function (req, res) { var sampleTasks = require('../api/sampleTasks.js') res.send(JSON.stringify(sampleTasks)); }); }
"use strict"; const CommonJsRequireDependency = require("webpack/lib/dependencies/CommonJsRequireDependency"); const GlobalizeCompilerHelper = require("./GlobalizeCompilerHelper"); const MultiEntryPlugin = require("webpack/lib/MultiEntryPlugin"); const NormalModuleReplacementPlugin = require("webpack/lib/NormalModuleR...
// Copyright IBM Corp. 2015,2016. All Rights Reserved. // Node module: strong-pm // This file is licensed under the Artistic License 2.0. // License text available at https://opensource.org/licenses/Artistic-2.0 'use strict'; var cicada = require('strong-fork-cicada'); var Container = require('./container'); var debu...
/** * Created by maglo on 27/09/2016. */ Ext.define("JS.review.ListAdmin",{ extend:"JS.panel.HistoryGridPanelAdmin", config:{ page: { title: "Reviews", data: null, parent: null }, panelData: { url: "", panelClass: "", ...
nerdtalk.directive('ntPostListItem', ['$log', function($log) { return { scope: { slug: '=ntSlug', onSelected: "&ntOnSelected" }, link: function(scope, el) { // Variables var shareMenu = el.children("[skin-part='shareMenu']"); v...
/* * ๅŽŸๅž‹ๅผ็ปงๆ‰ฟ */ // function object(o) { function F(){} F.prototype = o; return new F(); } var person = { name: 'Nicholas', friends: ['Shelby', 'Court', 'Van'] } var anotherPerson = Object.create(person);
var http = require('http'); var url = require('url'); function start(route, handle, port) { function onRequest(request, response) { var urlObj = url.parse(request.url); var pathname = urlObj.pathname; var query = urlObj.query; console.log('= Request Received: ' + pathname + '; Query: ' + query); ...
console.warn('Package jii-comet is deprecated and moved to jii package.'); module.exports = require('jii');
/* * Extended Grid * Ability to reorder the grid's row * @author: Prakash Paudel */ Ext.namespace('Ext.ux.plugins'); Ext.ux.plugins.GridRowOrder = function(config){ Ext.apply(this,config); } Ext.extend(Ext.ux.plugins.GridRowOrder, Ext.util.Observable,{ init: function(grid){ Ext.apply(grid,{...
/* See documentation on https://github.com/frankrousseau/americano-cozy/#requests */ var americano = require("americano"); module.exports = { "product": { "all": americano.defaultRequests.all, // TODO: rename "byName": function(doc) { if (doc.normalizedName) { ...
/** * Copyright (c) Nicolas Gallagher. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * useLayoutEffect throws an error on the server. On the few occasions where is * problematic, use this hook. * * @flow */ import { canUseDOM }...
() => { const [startDate, setStartDate] = useState(new Date()); return ( <DatePicker selected={startDate} onChange={date => setStartDate(date)} excludeDateIntervals={[{start: subDays(new Date(), 5), end: addDays(new Date(), 5) }]} placeholderText="Select a date other than the interval from 5 days ago to 5 ...
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdControlPointDuplicate(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M32 16h-4v6h-6v4h6v6h4v-6h6v-4h-6v-6zM4 24c0-5.58 3.29-10.39 8.02-12.64V7.05C5.03 9.51 0 16.17 0 24s5.03 14.49 12.02 16.95v-4.31C7.29 3...
๏ปฟ // lib/paneless-mother-pane.js // Small screens? (mobile) // // ? // sizeable pane ---> small screen // // What happens? Pane fills the screen? Just the width changes? // // Small panes to begin with. Their size change? How do they fit in? // // Small screen: All panes stacked vertically? /...
"use strict"; var equalsOperator = require("@collections/equals"); var hasOwnProperty = Object.prototype.hasOwnProperty; module.exports = has; function has(object, soughtValue, equals) { equals = equals || equalsOperator; for (var key in object) { if (hasOwnProperty.call(object, key)) { var value = obje...
var UserConstants = require('../constants/UserConstants'); var AccountActions = require('./AccountActions'); var SecurityActions = require('./SecurityActions'); var ErrorActions = require('./ErrorActions'); var models = require('../models.js'); var User = models.User; var Session = models.Session; var Error = models....
import makeConsoleMock from '../consolemock'; describe('print(message, [message1, ..., messageN])', () => { test('calling .print incorrectly throws a helpful error message', () => { const mock = makeConsoleMock(); const callPrintIncorrectly = () => { mock.print(); }; expect(callPrintIncorrectl...
var DB = require('../lib/db.js'); var Utils = require("../lib/utils"); /** * Read only API for i18n pages * * 1) load page contents by language and slug: /api/<lang>/page/<slug> * 2) load all page contents by language * 3) load all page titles /api/pages * 4) load all page contents /api/contents */ module...
/* * when called on a select box, populates a second, "target" select with data * from a "template" url, which is first passed through a "formatter" callback * * the formatter returns an map of key, value */ (function($) { function Template(string) { this.template = string; } Template.prototype = { ...
var Gesture = (function() { navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia; var videoElementId = "video_cameraDisplay", eventName = "gest", functionToBeFiredOnGest, createDomElement = (function() { ...
import extend from "../utils/extend"; import { createUTC } from "./utc"; export function isValid(m) { if (m._isValid == null) { m._isValid = !isNaN(m._d.getTime()) && m._pf.overflow < 0 && !m._pf.empty && !m._pf.invalidMonth && !m._pf.nullInput && ...
/** * Fairly simply, this plug-in will take the data from an API result set * and sum it, returning the summed value. The data can come from any data * source, including column data, cells or rows. * * @name sum() * @summary Sum the values in a data set. * @author [Allan Jardine](http://sprymedia.co.uk) * @...
"use strict"; const path = require("path"); const fs = require("fs"); const tempy = require("tempy"); const fromPairs = require("lodash/fromPairs"); const prettier = require("prettier-local"); const runPrettier = require("../runPrettier.js"); expect.addSnapshotSerializer(require("../path-serializer.js")); describe(...
/** * User: udibauman * Date: 2/2/12 * Time: 7:22 PM */ var ClassDiagramDrawer = { svg: null, current_offset: 0, default_class_width: 150, default_member_height: 20, default_member_spacing: 20, class_containers: {}, init: function() { var w = 675, h = 360; ...
module.exports = (req, res) => { res.redirect(req.session.redirect || '/profile'); delete req.session.redirect; };
var test = require('tape'), eventuate = require('eventuate-core'), chainable = require('..') test('errors are splittable', function (t) { t.plan(2) var eventuateMap = chainable(function (options, map) { return function upstreamConsumer (data) { this.error(new Error('boom')) this.error...
//var Wunderground = require('wunderground-api'); var Wunderground = require('wundergroundnode'); var fs = require("fs"); var myKey = 'f84a42eeb50f0783'; var client = new Wunderground(myKey); var opts = '98101'; /* what wundergroud-api expects for opts var opts = { city:'Seattle', state: 'WA' } */ // run once im...
// This file has been autogenerated. exports.setEnvironment = function() { process.env['AZURE_BATCH_ACCOUNT'] = 'batchtestnodesdk'; process.env['AZURE_BATCH_ENDPOINT'] = 'https://batchtestnodesdk.japaneast.batch.azure.com/'; process.env['AZURE_SUBSCRIPTION_ID'] = '603663e9-700c-46de-9d41-e080ff1d461e'; }; expor...
var gulp = require("gulp"), util = require("gulp-util"), localize = require("./build/localizeFiles.js"), updateResources = require("./build/updateResources.js"), createFiddleFiles = require("./build/createFiddleFiles.js"); var version = util.env.version; //should be passed as --version ${TRAVIS_BRANCH} var dist =...
(function() { 'use strict'; function definition(path, Failure, Pledge, handlerModule, isObject, merge, onAnimationFrame) { var settings = { suffix: '.js' }; demand .on('postConfigure:' + path, function(options) { if(isObject(options)) { merge(settings, options); } }); function resolve() { ...
// Match any single/double quoted string var REGEX_BEGINS_WITH_STRING = new RegExp('^(?:"(?:[^"\\\\]*(?:\\\\.[^"\\\\]*)*)"|\'(?:[^\']*(?:\'\'[^\']*)*)\')', ''); module.exports = { // Parse hxml data and return an array of arguments (compatible with node child_process.spawn) parse_hxml_args: function(...
var App; (function (App) { var Common; (function (Common) { "use strict"; /** * ใƒ˜ใƒƒใƒ€ใƒผ ใ‚ณใƒณใƒˆใƒญใƒผใƒฉใƒผ */ var HeaderController = (function () { function HeaderController(navigationService, rootTitle) { this.navigationService = navigationService; ...
/** * Created by johnson on 2017/1/13. */ mainApp.controller('SharedFileCtrl', ['$scope', '$rootScope', '$http', 'SharedFileService', function ($scope, $rootScope, $http, SharedFileService) { $scope.shares = {}; $scope.copyInfo = { isCopy: false, paths: '' }; $scope.cutInfo = { isCut: false, ...
require('./util/utils'); var token = require('./util/token') , jsonPath = require('./util/jsonPath') , mq = require('jm-mq') , jm = require('jm-dao'); jm.token = token; jm.jsonPath = jsonPath; jm.mq = mq; module.exports = jm;
var penthouse = require('../lib/'), chai = require('chai'), should = chai.should(), css = require('css'), read = require('fs').readFileSync, path = require('path'); describe('basic tests of penthouse functionality', function () { var originalCssFilePath = path.join(__dirname, 'static-server', '...
var Models = require('../models'); var createContentNodeCollection = require('./vuex/importUtils').createContentNodeCollection; exports.hasRelatedContent = function(contentNodes) { var collection = createContentNodeCollection(contentNodes); return collection.has_related_content(); }; /** * Given an Array of Cont...
var test = require('tape'), nock = require('nock'), _ = require('lodash'); var versions = require('./../lib/versions'); var fixturesVersionsHtml = './test/fixtures/testVersions.html'; var dlUrl = 'http://dl.node-webkit.org'; var expectedVersions = ['0.10.2','0.10.1','0.10.0','0.10.0-rc1','0.9.3']; test('getL...
import createHistory from 'history/createMemoryHistory'; import { NOT_FOUND } from 'redux-first-router'; import configureStore from '../src/configureStore'; export default async (req, res) => { const history = createHistory({ initialEntries: [req.path] }); const { store, thunk } = configureStore(history); await...
export const freeMode = ` ่‡ช็”ฑใซHTMLใ‚’็ทจ้›†ใงใใ‚‹ๆฉŸ่ƒฝใงใ™ใ€‚<br /> ๆœ‰ๅŠนใซใ™ใ‚‹ใจ่จญๅ•ๅฎš็พฉใงใฎๅค‰ๆ›ดใฏ็”ป้ขใซๅๆ˜ ใ•ใ‚Œใพใ›ใ‚“ใ€‚<br /> <br /> ใพใŸใ€ไธ€่ˆฌใฎใƒฆใƒผใ‚ถใฏ่ฉฒๅฝ“ใƒšใƒผใ‚ธใ‚’็ทจ้›†ใ™ใ‚‹ใ“ใจใฏใงใใชใใชใ‚Šใพใ™ใ€‚<br /> ็ทจ้›†ใ™ใ‚‹ใซใฏ้–‹็™บ่€…ใƒขใƒผใƒ‰ใง้–‹ใๅฟ…่ฆใŒใ‚ใ‚Šใพใ™ใ€‚<br /> <br /> ๆœ‰ๅŠนใซใ—ใŸๅพŒใซ่จญๅ•ๅฎš็พฉใ‚’ๅค‰ๆ›ดใ—ใฆใ‚‚HTMLใซใฏๅๆ˜ ใ•ใ‚Œใชใ„ใฎใงใ€ๅˆฅ้€”HTMLใ‚’ไฟฎๆญฃใใ ใ•ใ„ใ€‚ `; export const itemVisibility = ` ้ …็›ฎใฎ่กจ็คบใƒป้ž่กจ็คบใ‚’่จญๅฎšใ—ใŸๆกไปถใซใ‚ˆใฃใฆๅˆ‡ใ‚Šๆ›ฟใˆใพใ™ใ€‚<br /> ่กจ็คบใ‚’่จญๅฎšใ—ใŸๅ ดๅˆใฏๆกไปถใซใƒžใƒƒใƒใ™ใ‚‹ใจ่กจ็คบใ•ใ‚Œใ€ๆกไปถใซใƒžใƒƒใƒใ—ใชใ„ใจ้ž่กจ็คบ...
jQuery.noConflict(); jQuery(document).ready(function($){ MYNAMESPACE.namespace('model.ConfigManager'); MYNAMESPACE.model.ConfigManager = function() { this.initialize.apply(this, arguments); }; MYNAMESPACE.model.ConfigManager.prototype = { _instances : {} ,_classname : [] ,_idname : [] ,_Valida...
/** * Alerts Controller */ angular.module('MRT').controller('AlertsCtrl', ['$scope', AlertsCtrl]); function AlertsCtrl($scope) { $scope.alerts = [ { type: 'success', msg: 'Thanks for visiting! Feel free to create pull requests to improve the dashboard!' }, { type: 'danger', msg: 'Found a bug? Cre...
// wrapper for "class" Map (function(){ function Map(width, height){ // map dimensions this.width = width; this.height = height; // map texture this.image = null; this.treasure = null; } Map.prototype.setImage = function(image){ this.image = image; } // generate an example ...
const validNoteLetters = 'ABCDEFG'; const validSharpNotes = 'ACDFG'; const validFlatNotes = 'ABDEG'; const validModifiers = '#b'; export default function (note) { let letter = note.charAt(0).toUpperCase(); let modifier = note.charAt(1) || null; if (modifier === 'b' && validFlatNotes.indexOf(letter) === -1) { ...
module.exports = function (grunt) { "use strict"; grunt.registerMultiTask("solr", "My solr task.", function () { // Force task into async mode and grab a handle to the "done" function. // var data = this.data; var done = this.async(); // Run some sync stuff. grunt.log.writeln("Processing ta...
/* * Copyright (c) 2012-2016 Andrรฉ Bargull * Alle Rechte vorbehalten / All Rights Reserved. Use is subject to license terms. * * <https://github.com/anba/es6draft> */ const { assertSame } = Assert; // 9.4.1.3 BoundFunctionCreate should use target function's [[Prototype]] // https://bugs.ecmascript.org/show_bug...
import runSolidityTest from "./helpers/runSolidityTest" runSolidityTest("TestPreciseMathUtils", ["AssertBool", "AssertUint"])
var ComponentFromServer, __hasProp = {}.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent...
'use strict'; const WMSDownloader = require(__dirname + '/../index.js'); //const WMSDownloader = require('wms-downloader'); const dl = new WMSDownloader(); const taskOptions = { 'task': { 'id': 'id_of_my_first_download', 'title': 'My first WMS download.', 'format': 'image/png', 'workspace': __dirna...
'use strict'; require('bluebird').longStackTraces(); module.exports = require('./commands');
angular.module('MuscleMan').controller('ContestsCtrl', ['$scope', 'User', function($scope, User) { $scope.contests = []; $scope.format_date = function(date) { return moment(date).format('DD.MM.YYYY'); }; User.get_contest('all', function(res) { $scope.contests ...
module.exports = require('./lib/verify');
/* * Package Import */ /* * Local Import */ /* * Code */ /** * NormalizeDatas * @param {Array} datas -> * @return {Object} */ export const normalizeDatas = (datas) => { const structureNormalize = { byId: {}, allIds: [], }; datas.forEach((data) => { const { id, slug, label, logo } = d...
import * as Scrivito from 'scrivito' import { truncate } from 'lodash-es' Scrivito.provideEditingConfig('TestimonialWidget', { title: 'Testimonial', attributes: { testimonial: { title: 'Testimonial' }, author: { title: 'Author', description: 'Who said it?' }, authorImage: { ...
var app_id = ''; var perm_name = ''; var perm_id = ''; function saveOrgList(){ if(perm_id == '') { alert('่ฏท้€‰ๆ‹ฉๆƒ้™ๆจกๅ—!'); return; } var orgs = document.getElementsByName('orgs'); if(orgs == null || ...
var gulp = require('gulp'); var plumber = require('gulp-plumber'); var add = require('gulp-add'); var filter = require('gulp-filter'); var replace = require('gulp-replace-task'); var notify = require('gulp-notify'); // utils var pumped = require('../../utils/pumped'); // c...
module.exports = { load() { console.log('This is the module!'); console.log('Wow, I can change this and reload it'); }, unload() { // Nothing } }
'use strict'; function nameA(args) { let a = +args[0]; let b = +args[1]; console.log((a * b).toFixed(2) + ' ' + ((a + b) * 2).toFixed(2)); } nameA(['6', '5']);
output = { db: $.create(mongojs($.connection_string)) }
/* global describe, it, expect */ const obey = require('src/index') const modelFixtures = require('test/fixtures/core') const ValidationError = require('src/lib/error') describe('integration:core', () => { let stub afterEach(() => { if (stub) stub.restore() }) it('builds a model and successfully validates ...
'use strict'; module.exports = function(/* environment, appConfig */) { var bootstrapPath = require('path').join(__dirname, '..', 'bower_components', 'bootstrap-sass', 'assets', 'stylesheets'); return { sassOptions: { includePaths: [ bootstrapPath ] } }; };
/** Copyright 2015 Board of Trustees of University of Illinois * 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 Passport logout function, to stop user session and redirect to the homepage router.get('/lo...
import webpack from 'webpack'; import HtmlWebpackPlugin from 'html-webpack-plugin'; import autoprefixer from 'autoprefixer'; import path from 'path'; export default { resolve: { extensions: ['*', '.js', '.jsx', '.json'] }, devtool: 'eval-source-map', // more info:https://webpack.github.io/docs/build-performa...
// Try to use vanilla javascript instead of jQuery when possible! // Much love <3 window.addEventListener('load', function() { var LAYOUT = { HORIZONTAL : 0 , VERTICAL : 1 }; var dropped = [ 'rand paul' , 'jeb bush' ]; var data = [], total = 0, side = 'rep', head; var drawBars...
module.exports = { extractCSS: process.env.NODE_ENV === 'production', preserveWhitespace: false, postcss: [ require('autoprefixer')({ browsers: ['last 3 versions'] }) ] }
var searchData= [ ['rad_5f2_5fdeg',['rad_2_deg',['../group___number_kinds.html#gaadb33c76ca6311bf704590f5fe6fcb03',1,'numberkindsmodule']]], ['radius',['radius',['../group___sphere_b_v_e.html#ga033af4224781d26a9aa852ad034e7cf0',1,'spherebvemodule::bvemesh::radius()'],['../structsphereswemodule_1_1swemesh.html#ad1e7...
define(['./_', './core'], function (_, jdb) { // EVENTS - data event callbacks // 'use strict'; // build ignore:line var fn = {}; // build ignore:line var rnotwhite = (/\S+/g), //jquery.js:3028 rbefore = (/^before/i); // Attach an event handler. fn.on = function (events, callback) { ...
var Path = require('path') module.exports = function * generateModel (util, vfs, config, name) { if ( ! name ) { name = ( yield util.prompt('Name of Model (user, comment, etc.): ') ) || util.fail('`pult generate model` requires a model name.') } name = util.inflection.singularize(name).toLowerCa...
setCssToHead([".",[1],"animation-element-wrapper { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; width: 100%; padding-top: ",[0,150],"; padding-bottom: ",[0,150],"; -webkit-box-pack: center; -webkit-justify-content: center; -ms-flex-pack: center; justify-content: center; overflow: hi...
import expect from 'expect.js'; import sinon from 'sinon'; import nock from 'nock'; import glob from 'glob-all'; import rimraf from 'rimraf'; import mkdirp from 'mkdirp'; import Logger from '../../lib/logger'; import { UnsupportedProtocolError } from '../../lib/errors'; import { download, _downloadSingle, _getFilePath,...
'use strict'; const { createController } = require('../index'); const supertest = require('supertest'); const assert = require('assert'); const db = require('./db'); describe('PUT /<model>/<id>', () => { before(async () => { await db.sequelize.sync({ force: true }) await db.author.bulkCreate([ { id: 1, name: ...
// Text rendering style import Texture from '../../gl/texture'; import WorkerBroker from '../../utils/worker_broker'; import Utils from '../../utils/utils'; import Geo from '../../geo'; import {Style} from '../style'; import {Points} from '../points/points'; import CanvasText from './canvas_text'; import Collision fro...
/*! * router * Copyright(c) 2015-2017 Fangdun Cai * MIT Licensed */ 'use strict' // Static Param Any `*` `/` `:` const [SKIND, PKIND, AKIND, STAR, SLASH, COLON] = [0, 1, 2, 42, 47, 58] class Node { constructor( prefix = '/', children = [], kind = SKIND, map = Object.create(null) ) { this....
๏ปฟfunction first() { jsConsole.writeLine("=== 1 ================"); var array = Array(20); for (var i = 0, len = array.length; i < len; i++) { array[i] = i * 5; jsConsole.write(array[i]+" "); } jsConsole.writeLine(); jsConsole.writeLine("======================"); } function seco...