code
stringlengths
2
1.05M
const deepcopy = require('deepcopy'); const equal = require('deep-equal'); const {EventEmitter} = require('events'); const {VertexSocketClosedError} = require('vertex-transport').errors; const {VertexConfigError, VertexReplicationError} = require('./errors'); const Member = require('./Member'); const constants = requi...
(function() { 'use strict'; angular.module('ft', ['LocalStorageModule']); })(); (function() { 'use strict'; angular.module('ft').run(function() { $(document).on('chosen:showing_dropdown', function (event) { $(event.target).closest('.form-group, .input-group').addClass('active'); }); $(docu...
/** * @file Path helper * @since 0.1.9 */ /*#ifndef(UMD)*/ "use strict"; /*global _GPF_NOT_FOUND*/ // -1 /*global _GPF_START*/ // 0 /*global _gpfArrayForEach*/ // Almost like [].forEach (undefined are also enumerated) /*global _gpfArrayTail*/ // [].slice.call(,1) /*global _gpfEmptyFunc*/ // An empty function /*globa...
import React from 'react'; export function testRepository(subMenuCategory) { switch (subMenuCategory) { } return <div></div>; }
import dotenv from 'dotenv'; import path from 'path'; import Express from 'express'; import React from 'react'; import csrf from 'csurf'; import fetch from 'isomorphic-fetch'; import { createStore, combineReducers } from 'redux' import { Provider } from 'react-redux' import { RouterContext, match } from 'react-router' ...
"use strict"; function _typeof(obj) { return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj; } var _ = require("underscore"); // based off of http://stackoverflow.com/a/29563346 // extended to support multiple arguments function deepExtendObj(target, source) { for (var p...
const { init } = require('../../app'); // eslint-disable-line no-unused-vars const config = require('./tests.config'); const request = require('supertest'); const { expect } = require('chai'); // eslint-disable-line no-unused-vars describe('/', () => { describe('GET /', () => { const async = () => { ...
var keystone = require('keystone'), Paypal = require('paypal-recurring'), User = keystone.list('User'); exports = module.exports = function(req, res) { var view = new keystone.View(req, res), locals = res.locals, hasRedirected = false; // locals.section is used to set the currently selected // item in the h...
picmeControllers.controller('UserCtrl', ['userService', '$scope', '$state', function (userService, $scope, $state) { var UserCtrl = this; $scope.UserCtrl = UserCtrl; /***** Method Definitions *****/ UserCtrl.Init = function() { // Do something } UserCtrl.Login = function() {...
"use strict"; Checkers.Game = function(game) { this.gameBoardGroup = null; this.player1CheckerGroup = null; this.player2CheckerGroup = null; }; Checkers.Game.prototype = { create: function() { this.createGameBoard(); this.createCheckers(); }, createGameBoard: function() { this.gameBoardGroup = this.add.g...
/*jslint indent:4 */ /*globals angular */ (function () { 'use strict'; var defaults = { document: false, editMode: false }; angular.module('readmepadAppViewer') .controller('ViewerController', ['$scope', 'lodash', function ($scope, lodash) { $scope.initialize = fu...
/** * Created by WareBare on 4/7/2017. * * @author WareBare (Daniel Kamp) * @license MIT * @website https://github.com/WareBare * */ module.exports = { contentType: `UI`, // title: `Edit Skill`, wndId: `skillEdit`, skillConfig: new eConfig({name: `gd-skills`}), _mUI: false, ...
(function() { angular .module('app.admin') .controller('EditArticleCtrl', EditArticleCtrl); EditArticleCtrl.$inject = ['articleSvc', '$stateParams', 'toastr']; function EditArticleCtrl(articleSvc, $stateParams, toastr) { /*jshint validthis: true */ var vm = this; var articleId = $statePa...
 (function () { "use strict"; var Core = { initialized: false, initialize: function () { if (this.initialized) return; this.initialized = true; this.v_Common(); this.v_NavMenu(); this.v_HeaderSearch(); this.v_FancyHead...
// create a map in the "map" div, set the view to a given place and zoom var map = L.map('map').setView([56.951848,24.098697], 12); // add an OpenStreetMap tile layer L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', { attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors | Waze...
/** * @author Sean Griffin / http://twitter.com/sgrif * @author Michael Guerrero / http://realitymeltdown.com * @author mrdoob / http://mrdoob.com/ * @author ikerr / http://verold.com * @author Mugen87 / https://github.com/Mugen87 */ import { LineSegments } from '../objects/LineSegments'; import { Matri...
import {Controller} from "@hotwired/stimulus" export default class extends Controller { static targets = ["countrySelect", "stateSelectWrapper"] getSubregions() { const countryCode = this.countrySelectTarget.value const model = this.data.get("model") const selectWrapper = this.stateSe...
describe('scrollTracking', function () { 'use strict'; var scrollTracking, $body; before(function (done) { require(['scrollTracking'], function (ma) { $('body').html(window.__html__['spec/javascripts/templates/scrollTracking.html']); $body = $('body'); scrollTracking = ma; don...
function BHController($scope) { $scope.compiledHtml = function() { $scope.error = ''; var bt = new BT(), json; try { json = eval('(' + $scope.data.inputBemjson + ')'); } catch (e) { return 'BT JSON parse error:\n' + e.stack; } try { ...
/* The MIT License (MIT) Copyright (c) 2019 Mikihiro Hayashi Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, mer...
let Trait=function(){ }; let factory=(block)=>{ let trait=new Trait(); Object.keys(block).forEach((name)=>{ Object.defineProperty(trait,name,{ value:block[name], enumerable:true, writable:false, configurable:false }); }); return trait; }; export default factory; export {Trait};
$ (function () { $ ('.insert.asset.application').application (function (insertion) { insertion.submit (function () { var params = $.deparam (insertion.serialize ()).asset var width = params.width var url = params.url if (width) url += '?width=' + width for (var key in pa...
import DataType from 'sequelize'; import Model from '../sequelize'; import * as util from './util'; const CjTest = Model.define('cjtest', { id: { type: DataType.UUID, defaultValue: DataType.UUIDV1, primaryKey: true, }, idCj: { type: DataType.STRING(255), allowNull: false, }, // TODO: add ...
import React from 'react' import { render } from 'react-dom' import { RendererProvider } from 'react-fela' import App from './app' import createRenderer from './renderer' const renderer = createRenderer() render( <RendererProvider renderer={renderer}> <App /> </RendererProvider>, document.getElementById('ap...
import api from 'api'; export function fetchTrackComments(trackId) { return api .fetchWithToken(`/tracks/${trackId}/comments`) .then(resp => resp.json()); }
/*jshint scripturl: true */ require.config({ // Do a hard override of the locale here // The default is to auto-detect from browser defaults //locale: localStorage.getItem('locale') || 'en-us', locale: 'en-us', // Path mappings for module names not found directly under // baseUrl. paths: {...
'use strict'; var md5 = require('spark-md5'); module.exports = function (str) { return md5.hash(str); };
'use strict'; var mockery = require('mockery'); var should = require('should'); var config = require('../../config.js'); var cb = function() { return 'stubbed'; }; describe('Syncano (Logged User Scope)', function() { var requestMock, Syncano, scope; before(function() { mockery.enable(config.mockSettings)...
// valid example API responses import Joi from 'joi'; export default { initiate: Joi.object({ status: 'pending' }).label('Result') };
beforeAll(function () { VelocityHelpers.exportGlobals() })
// IndexCollection.js define(["jquery", "backbone", "models/UserModel"], function($, Backbone, Model) { // Creates a new Backbone Collection class object var UserCollection = Backbone.Collection.extend({ // Tells the Backbone Collection that all of it's models will be of type Model (listed up top as ...
'use strict'; var gulp = require('gulp'); var espower = require('gulp-espower'); var mocha = require('gulp-mocha'); gulp.task('test', function() { return gulp.src(['test/**/*.js']) .pipe(espower()) .pipe(mocha()); }); gulp.task('test:watch', function() { return gulp.watch(['test/**/*.js', 'lib/*...
function deletePick(pickId) { var confirmPick = window.confirm("Are you sure you would like to delete this pick?"); if (confirmPick) { $.ajax({ url: '/picks/' + pickId, type: "DELETE", success: success, failure: fail }); } } function endGame(gameId) { var confirmPick = window.co...
angular.module('ui.bootstrap.typeahead', ['ui.bootstrap.debounce', 'ui.bootstrap.position']) /** * A helper service that can parse typeahead's syntax (string provided by users) * Extracted to a separate service for ease of unit testing */ .factory('uibTypeaheadParser', ['$parse', function($parse) { // ...
'use strict'; angular.module('mean.motives').controller('MotivesController', ['$scope', '$stateParams', '$location', 'Global', 'Motives', function($scope, $stateParams, $location, Global, Motives) { $scope.global = Global; $scope.create = function(isValid) { if (isValid) { var motive =...
(function () { 'use strict'; describe('Jobs Controller Tests', function () { // Initialize global variables var JobsController, $scope, $httpBackend, $state, Authentication, JobsService, mockJob; // The $resource service augments the response object with methods for...
// All symbols in the `Cs` category as per Unicode v5.1.0: [ '\uD800', '\uD801', '\uD802', '\uD803', '\uD804', '\uD805', '\uD806', '\uD807', '\uD808', '\uD809', '\uD80A', '\uD80B', '\uD80C', '\uD80D', '\uD80E', '\uD80F', '\uD810', '\uD811', '\uD812', '\uD813', '\uD814', '\uD815', '\uD816', '\uD8...
(function() { angular .module('app') .controller('ProfileController', [ '$mdDialog', '$scope', 'tokenService', '$stateParams', '$state', 'allDataService', '$location', '$sce', '$rootScope', ...
import React, { Component } from 'react' import T from 'prop-types' import { StrapFormContextTypes } from './StrapForm' import { StrapGroupContextTypes } from './StrapGroup' export const StrapInputPropTypes = { input: T.shape({ disabled: T.bool, id: T.string.isRequired, name: T.string.isRequired, on...
'use strict'; var gulp = require('gulp'); var run = require('run-sequence'); var config_setting = { 'client_dir':'' }; var config = require('./gulp/config.js')(config_setting); var init_setting = { 'gulp' :gulp, 'run' :run, 'config':config, }; var task = require('./gulp/task.js')(init_setting); ...
module.exports = function(grunt) { require("jit-grunt")(grunt); grunt.initConfig({ browserify: { dev: { src: ["script/vendor/**/*.js", "script/app/init.js"], dest: "script.js", options: { transform: [require("grunt-react").browserify], browserifyOptions: { debug: true, ...
'use strict'; const computedFlag = Symbol('computed'); function computed(handler) { handler[computedFlag] = true; return handler; } function isComputed(handler) { return (typeof handler === 'function' && handler[computedFlag]); } module.exports = { isComputed, computed };
arr = [2,4,6,8,10]; arr1 = [2,3,4,6,8]; function even(value){ if( (value % 2) == 0){ return true; }else{ return false; } } var out = arr.every(even); var out1 = arr1.every(even); console.log("Output of array 1 : " + out); console.log("Output of array 2 :" + out1);
const gulp = require('gulp'); const gutil = require('gulp-util'); const copy = require('gulp-contrib-copy'); const Vinyl = require('vinyl'); const through = require('through2'); const cheerio = require('cheerio'); const path = require('path'); const config = require('../config/config'); const hljs = require('hi...
const ansiEscapes = require('ansi-escapes') module.exports = n => process.stdout.write(ansiEscapes.eraseLines(n))
let instance; /** * ConnectionCollection * * Classe para guardar conexoes de banco * * @class * @author Guilherme Santos <guilhermedossantos91@gmail.com> * @version 1.0.0 * @alias app.helpers.database.ConnectionCollection */ class ConnectionCollection { /** * @constructor * @returns {*} */ const...
var surroundings = require('./surroundings'); var parallel = require("async/parallel"); function getSurroundingsJSON(req, res) { var positions = req.body.positions; if(typeof positions === 'string') { positions = JSON.parse(positions); } positions = filterSurroundingsPositions(positions); ...
/* eslint-disable camelcase */ function sodium_malloc (n) { return new Uint8Array(n) } function sodium_free (n) { sodium_memzero(n) loadSink().port1.postMessage(n.buffer, [n.buffer]) } function sodium_memzero (arr) { arr.fill(0) } var sink function loadSink () { if (sink) return sink var MessageChannel...
/* eslint-disable no-console */ /* eslint-disable import/no-extraneous-dependencies */ const fs = require('fs-extra'); const path = require('path'); const root = path.resolve(__dirname, '..'); const pjson = path.resolve(root, 'package.json'); try { const pkg = JSON.parse(fs.readFileSync(pjson, 'utf8')); console....
define(["helper/Offline", "Test"], function (Offline, Test) { var OutputAudio = function(callback){ return Offline(callback, 0.1).then(function(buffer){ return !buffer.isSilent(); }); }; return OutputAudio; });
'use strict'; module.exports = function(app) { var users = require('../../app/controllers/users.server.controller'); var perHourProductions = require('../../app/controllers/per-hour-productions.server.controller'); // Per hour productions Routes app.route('/per-hour-productions') .get(perHourProductions.list) ...
module.exports = { stories: ['../components/*/stories/*.stories.{js,mdx}'], esDevServer: { // custom es-dev-server options }, };
class ias_machinentgroups_1 { constructor() { } // System.Runtime.Remoting.ObjRef CreateObjRef(type requestedType) CreateObjRef() { } // bool Equals(System.Object obj) Equals() { } // int GetHashCode() GetHashCode() { } // System.Object GetLifetimeService() Get...
(function() { 'use strict'; angular .module('posterScoresFrontend') .directive('acmeNavbar', acmeNavbar); /** @ngInject */ function acmeNavbar() { var directive = { restrict: 'E', templateUrl: 'app/components/navbar/navbar.html', scope: { creationDate: '=' }, ...
"use strict"; var t = require('chai').assert; var sit = require('../../'); describe('facets/kvstore', function () { describe('memory adapter', function () { it('should setup kvstore', function () { var container = sit.container({ store: sit.facets.kvstore() }); var store = container.g...
import { observable } from 'mobx' export class Store { user = observable({ isLoggedIn: true }) couponStore = observable({ availableCoupons: [] }) constructor(initialState) { if (initialState) { Object .keys(initialState) .forEach( key => { this[key] = observable(ini...
import React from 'react'; import { Link } from 'react-router' export default class Footer extends React.Component { render = () => <div id="footerwrap"> <div className="container"> <div className="row"> <div className="col-lg-4"> <h4>About</h4> <div className="hl...
/* AngularJS v1.6.1 (c) 2010-2016 Google, Inc. http://angularjs.org License: MIT */ (function(W,b){'use strict';function K(q,g){g=g||{};b.forEach(g,function(b,h){delete g[h]});for(var h in q)!q.hasOwnProperty(h)||"$"===h.charAt(0)&&"$"===h.charAt(1)||(g[h]=q[h]);return g}var B=b.$$minErr("$resource"),Q=/^(\.[a-...
var lambdafai = require('lambdafai'); lambdafai('lambdafai-api-gateway-examples', function(app) { var myLambda = app.lambda({ name: 'my-lambda' }); // redirect a GET request to a new location hello.get('/redirect', function(req, res) { res.redirect('https://clarifai.com'); }); // set an arbitrar...
"use strict"; /** * Shutdown database connection. * * @param {Object} app The application. */ module.exports = function*(App) { App.logger.debug('Shutting down ACL'); if (App.acl) { yield App.acl.shutdown(); } };
import { shallowMount } from '@vue/test-utils' import DeleteButton from '@/renderless/DeleteButton.vue' import FineUploader from 'fine-uploader-wrappers' import { status } from 'fine-uploader/lib/core/all' describe('renderless/DeleteButton.vue', () => { let wrapper let uploader beforeEach(() => { uploader =...
import ShareModalContent from './ShareModalContent'; import ShareModal from './ShareModal'; import videojs from 'video.js'; const Component = videojs.getComponent('Component'); /** * Share overlay. */ class ShareOverlay extends Component { constructor(player, options) { super(player, options); this.player...
import uuid from 'node-uuid'; import alt from '../libs/alt'; import ConferenceActions from '../actions/conference-actions'; class ConferenceStore { constructor() { this.bindActions(ConferenceActions); this.conferences = []; } // TODO: action bound functions go here } export default alt.createStore(Conf...
/* Flot plugin for rendering pie charts. Copyright (c) 2007-2014 IOLA and Ole Laursen. Licensed under the MIT license. The plugin assumes that each series has a single data value, and that each value is a positive integer or zero. Negative numbers don't make sense for a pie chart, and have unpredictable results. Th...
/** * */ import {testUF1, testUF2, testUF3, testUF4} from './UnionFindTestHelper' const n = 100000; testUF1(n); testUF2(n); testUF3(n); testUF4(n);
"use strict"; let datafire = require('datafire'); let openapi = require('./openapi.json'); module.exports = datafire.Integration.fromOpenAPI(openapi, "apitore_certificatefeedsapis");
(function() { 'use strict'; var mod = angular.module('ods-widgets'); mod.factory('MapHelper', ['ODSWidgetsConfig', 'ODSAPI', '$q', 'AggregationHelper', 'translate', function (ODSWidgetsConfig, ODSAPI, $q, AggregationHelper, translate) { var locationAccuracy = 5; var locationDelimiter = ','...
const fs = require('fs'); const path = require('path'); const webpack = require('webpack'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const CopyWebpackPlugin = require('copy-webpack-plugin'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const FaviconsWebpackPlugin = require('favicons...
/** * @author: @AngularClass */ const helpers = require('./helpers'); const webpackMerge = require('webpack-merge'); // used to merge webpack configs const commonConfig = require('./webpack.common.js'); // the settings that are common to prod and dev /** * Webpack Plugins */ const DefinePlugin = require('webpack/...
import { default as assert } from 'assert'; import { describe, it } from 'mocha'; import { BehaviorModifyOutgoingRequestHeader } from '../../src/behaviors/modifyOutgoingRequestHeader.js'; import { default as fs } from 'fs'; describe('BehaviorModifyOutgoingRequestHeader', function() { describe('add or modify outgoi...
// Contact Form Scripts var COMMENT_PLACEHOLDER = "Any questions or special requirements (parking, baby chairs, tips for stay...)"; $(function() { $("#contactForm input,#contactForm textarea").jqBootstrapValidation({ preventSubmit: true, submitError: function($form, event, errors) { /...
'use strict'; var GitHubApi = require("github") , util = require('util') , jwt = require('jsonwebtoken') , OAuth2 = require("oauth").OAuth2 , AUTH = { clientId: process.env.GITHUB_API_CLIENT_ID || '' , clientSecret: process.env.GITHUB_API_CLIENT_SECRET || '' } ; module.exports = GitHubApiClient; /** * abstracts...
var express = require('express'), Pushover = require('pushover-notifications'), http = require('http'), https = require('https'), XDate = require('xdate'), config = require('./config'); var pusher = new Pushover({ token: config.pushover_token }); var app = express(); app.configure(function ()...
'use strict'; var test = require('tape'); test('1', function(t) { t.plan(1); t.ok(true); });
"use strict"; var IMG_GAL = IMG_GAL || {}; IMG_GAL.globals = (function(){ var loc = window.location.pathname.substr(0, window.location.pathname.indexOf("/")); var screenHeight = $(window).height(); var screenWidth = parseFloat($(window).width() * 100) / 100; var rowHeightDivideFactor = ...
... let p10 = p1.then(() => { throw 'baz'; }); // Uncaught (in promise) baz setTimeout(console.log, 0, p10); // Promise <rejected> baz PromiseThenExample03.js
/** * Implements API class that communicates with external api class * and provides interface to access Jitsi Meet features by external * applications that embed Jitsi Meet */ var XMPPEvents = require("../../service/xmpp/XMPPEvents"); /** * List of the available commands. * @type {{ * displayName:...
const path = require('path'); const fs = require('fs'); // const os = require('os'); // const cp = require('child_process'); const test = false; let files = test ? ['data-examples/example.in'] : [ // 'data-examples/kittens.in', 'data-examples/me_at_the_zoo.in', // 'data-examples/trending_today.in', // 'data-e...
Template.dragger.helpers({ dragging: function() { return Session.equals('dragging', true) ? 'dragging' : '' }, element: function() { var el = getElementPath(Session.get('element')).element if(!Session.get('element') && el) Session.set('element', el._id) return el }, mode: function() { r...
version https://git-lfs.github.com/spec/v1 oid sha256:5c1d5504e5c811074b77254b0876c28126ef50d53682115a18f2f0af6741f252 size 2788
angular.module('angular-gux').directive('guxModal', guxModal); function guxModal(){ return { restrict : 'E', replace : true, transclude : true, templateUrl : 'guzmonne_angular-gux_templates/gux-modal.template.ng.html', controller : controller, controllerAs : ...
module.exports = { load: function () { function versionInfo () { return { major: 1, minor: 0 }; } function deviceInfo () { return { userAgent: window.navigator.userAgent, app: { codeName: window.navigator.appCodeName, name: window.navigator.appName, version: window.nav...
var Script = function() { this.id = 0; this.name = "script 0"; this.saves = []; }; Script.prototype.newSave = function() { var save = new Save(); this.saves.push(save); return save; }; Script.prototype.toHTML = function() { var result = "<div class=\"scriptrow\">"; result += "<div class=\"scriptname\">" + thi...
'use strict'; var GeometricUtil = require('./GeometricUtil'); var getDistance = require('./GeometricUtil').getDistancePointPoint; var getAttachment = require('./LineAttachmentUtil').getAttachment; function findNewLabelLineStartIndex(oldWaypoints, newWaypoints, attachment, hints) { var index = attachment.segment...
export { default } from 'ember-svg-pie/components/svg-pie-sector';
describe('Heap', function () { var heap; beforeEach(function () { heap = new Heap(); }); describe('push() and pop()', function () { it('should work without an element', function () { expect(heap.pop()).toBeUndefined(); }); it('should work with a single element', function () { he...
version https://git-lfs.github.com/spec/v1 oid sha256:38bf4209959441da42fce17908a90df042e6f4c1cd1906ed4088330216c406ff size 1532
const BasicCollection = require('./basic-collection'); const ObjectDescriptor = require('./object-descriptor'); const EdgePathBuilder = require('./edge-path-builder'); const QueryBuilder = require('./query-builder/builder'); const constants = require('./constants'); const assert = require('assert'); const Util = requir...
var elasticsearch = require('./elasticsearchClient'); var clientElasticsearch=elasticsearch.client; var extend = require('util')._extend; /** * Search in Elastisearch * @returns */ function searchElasticSearch(options){ // Search all incoherence not in blacklist return clientElasticsearch.search(options) .catch(...
import * as is from '../is' export default { conditions: { // HACK: To support $regex's $options. $options: function (d, q, p) { let r = false if (!is.none(p.$regex)) { r = true } else { throw new TypeError(`$options reserved for $regex.`) } return r } }...
import _objectWithoutProperties from "@babel/runtime/helpers/builtin/objectWithoutProperties"; import React from 'react'; import PropTypes from 'prop-types'; var Bold = function Bold(_ref) { var children = _ref.children, props = _objectWithoutProperties(_ref, ["children"]); return React.createElement("b", p...
function makeActionCreator(type, ...argNames) { return function (...args) { const action = {type}; argNames.forEach((arg, index) => { action[argNames[index]] = args[index]; }); return action; }; } export default makeActionCreator;
JSONEditor.defaults.templates.swig = function() { return window.swig; };
import {AliIotBasicAction, schema} from './utils'; class DeviceGrantAction extends AliIotBasicAction { constructor(productKey = null, deviceName = null, grantType = null, topicFullName = null) { super({}); this.paramMap.Action = 'DeviceGrant'; this.setProductKey(productKey).setDeviceName(deviceName).setG...
;(function() { "use strict"; var BaseController = require("BaseController"), _ = require("lodash"); var multiSelectors = { play: [".player-play-pause.play", ".button-nfplayerPlay"], pause: [".player-play-pause.pause", ".button-nfplayerPause"], playNext: [".player-next-episode", ".button-nfplay...
'use strict'; jest.dontMock('../../scripts/components/List.js'); let React = require('react/addons'), ListItem = require('../../scripts/components/ListItem.js'), List = require('../../scripts/components/List.js'); let TestUtils = React.addons.TestUtils; describe("List", () => { it("renders a List", () =>...
"use strict"; const _ = require("lodash"); const log = require("../log"); const colors = require("chalk"); const fs = require("fs"); const Helper = require("../helper"); const path = require("path"); let home; class Utils { static extraHelp() { [ "", "", " Environment variable:", "", ` THELOUNG...
//============================================ // MND_ChangeResolution.js //============================================ /*: * @plugindesc Change screen resolution.(v1.0) * @author Mandarava * * @param Screen Width * @type Number * @desc Screen width * @default 816 * * @param Screen Height * @type Number * @...
'use strict'; const chai = require( 'chai' ); const assert = chai.assert; const isMatch = require( '../../lib/validators/isMatch' ); describe( 'isMatch', function() { it( 'should throw an error if no RegExp is provided', function() { assert.throw( () => isMatch( '' ) ); }); it( 'should throw...
const gulp = require('gulp'); const autoprefixer = require('gulp-autoprefixer'); const concat = require('gulp-concat'); const sass = require('gulp-sass'); const sassPaths = [ 'bower_components/foundation-sites/scss' ]; const jsPaths = [ 'bower_components/jquery/dist/jquery.min.js', 'bower_components/foundation-sit...