code
stringlengths
2
1.05M
/** * Created by Administrator on 2015/5/20. */ angular.module('Show') .factory('Info',['$resource',function($resource){ return $resource('/api/user/info/:action/:uid',{},{ 'update':{isArray:false,method:'POST'}, 'get':{isArray:false,method:'GET'} }) }])
import { shadowUI } from './deps/hammerhead'; export default { uiRoot: null, element () { if (!this.uiRoot) { this.uiRoot = document.createElement('div'); shadowUI.getRoot().appendChild(this.uiRoot); } return this.uiRoot; }, hide () { if (!th...
/* * Copyright (c) 2012 Adobe Systems Incorporated. All rights reserved. * * 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 ri...
// Regular expression that matches all symbols in the `Zs` category as per Unicode v6.1.0: /[\x20\xA0\u1680\u180E\u2000-\u200A\u202F\u205F\u3000]/;
var Hapi = require('hapi'), path = require('path'), port = process.env.PORT || 8000, server = new Hapi.Server(port), routes = { css: { method: 'GET', path: '/styles/{path*}', handler: createDirectoryRoute('styles') }, js: { method: ...
// Extracted from https://github.com/facebook/react/blob/7bdf93b17a35a5d8fcf0ceae0bf48ed5e6b16688/src/renderers/shared/fiber/ReactFiberTreeReflection.js#L104-L228 function findCurrentFiberUsingSlowPath(fiber) { var alternate = fiber.alternate; if (!alternate) { return fiber; } // If we have two possible bra...
'use strict'; module.exports = function(acorn) { var tt = acorn.tokTypes; var pp = acorn.Parser.prototype; // this is the same parseObj that acorn has with... function parseObj(isPattern, refDestructuringErrors) { let node = this.startNode(), first = true, propHash = {} node.properties = [] ...
$(window).ready(function(){ $('.loading').fadeOut(500,function(){ //$('.jumbotron').fadeIn(1000); /* shd be 1000 after done */ }); }); /* $('.navbar-brand').click(function(){ $('.active').fadeOut(500,function(){ $('.jumbotron').fadeIn(500); $('.jumbotron').addClass('active'); }); $('.active').remo...
/*! https://mths.be/utf8js v2.0.0 by @mathias */ /* Copyright Mathias Bynens <https://mathiasbynens.be/> 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 limi...
var clienteCtrl = function (crudService, $state) { var vm = this; var getClientes = function () { crudService.get('cliente') .then(function(response){ console.log('Success'); vm.clientes = response.data; }, function(err) { console.log('error', err); }); }; vm.goToAd...
const DrawCard = require('../../../drawcard.js'); class Summer extends DrawCard { setupCardAbilities(ability) { this.persistentEffect({ match: card => card.name === 'Bran Stark', effect: ability.effects.addKeyword('Insight') }); this.reaction({ when: { ...
/*global module:false*/ module.exports = function(grunt) { // Project configuration. grunt.initConfig({ // Task configuration. jshint: { options: { curly: true, eqeqeq: true, immed: true, latedef: true, newcap: true, noarg: true, sub: true, ...
/** * author: Sheng JIANG * date: 2017-10-23 */ import { Point } from '../../../canvas/point.js' import { toLeft } from '../../common/to-left.js' import { lineLineIntersection } from '../../common/line-line-intersection.js' export function bruteForce (S, n) { let points = [] for (let i = 0; i < n; i++...
angular .module('angularForms', ['ngRoute']) /////////Auth factory?/////// .factory('Auth', function () { var current_user = {} return { setUser: function () {}, login: function () {}, logout: function () {}, } }) ///////////////end Auth Factory?//////
//@line 4 "c:\mozilla-source\toolkit\content\customizeToolbar.js" var gToolboxDocument = null; var gToolbox = null; var gCurrentDragOverItem = null; var gToolboxChanged = false; var gToolboxSheet = false; var gPaletteBox = null; Components.utils.import("resource://gre/modules/Services.jsm"); function onLoad() { if...
// prod.js - production keys here. module.exports = { googleClientID: process.env.GOOGLE_CLIENT_ID, googleClientSecret: process.env.GOOGLE_CLIENT_SECRET, mongoURI: process.env.MONGO_URI, cookieKey: process.env.COOKIE_KEY };
/* * Copyright (c) 2008-2013 The Open Source Geospatial Foundation * * Published under the BSD license. * See https://github.com/geoext/geoext2/blob/master/license.txt for the full * text of the license. */ /** * Model for trees that use GeoExt tree components. It can also hold plain * Ext JS layer nodes. * ...
/** * @namespace Debugging tools for Crucible tests. */ Crucible.Tools = { /** * Inspects an object, returning a readble, evaluatable representation of * it. * @param obj any JavaScript value * @return {String} a representation of the value */ inspect: function inspect_object(obj) { return Crucible.Tool...
var searchData= [ ['offset_5fthresh',['OFFSET_THRESH',['../classx265_1_1SAO.html#ab2573f1261b14abe398840e66454adbaa3e2870f361efae1b93338fb05d256781',1,'x265::SAO']]], ['output_5fsize',['OUTPUT_SIZE',['../classIntraPredHarness.html#afe329d18734a8cbc1455e7916588bc9cadb22841ffb2b439a35f25cb3f0110dd7',1,'IntraPredHarne...
/* * FlowType.JS v1.1 * Copyright 2013-2014, Simple Focus http://simplefocus.com/ * * FlowType.JS by Simple Focus (http://simplefocus.com/) * is licensed under the MIT License. Read a copy of the * license in the LICENSE.txt file or at * http://choosealicense.com/licenses/mit * * Thanks to Giovanni Difeterici ...
/*! tinycarousel - v2.1.8 - 2015-02-22 * https://baijs.com/tinycarousel * * Copyright (c) 2015 Maarten Baijs <wieringen@gmail.com>; * Licensed under the MIT license */ ! function(a) { "function" == typeof define && define.amd ? define(["jquery"], a) : "object" == typeof exports ? module.exports = a(require("jquer...
// flow-typed signature: 97c11272a7413fe9abb43525fe305712 // flow-typed version: <<STUB>>/babel-loader_v^7.1.1/flow_v0.52.0 /** * This is an autogenerated libdef stub for: * * 'babel-loader' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share your work with ...
// dependencies var JSFiddleApi = require ("jsfiddle-api") , config = require ("./config") , fs = require ("fs") ; // get this fiddle JSFiddleApi.getFiddle (process.argv[2] + "/" + (config.fiddleVersion || ""), function (err, fiddleObj) { // handle error if (err) { return console.log (err)...
/*! * * jQuery animateAuto Plugin v1.1.4 * Based on the original code provided by Darcy Clarke at: * http://darcyclarke.me/development/fix-jquerys-animate-to-allow-auto-values/ * * Copyright 2014, Alex Zaslavsky * MIT License * */ (function (jQuery) { var $ = jQuery; var animate = jQuery.fn.animate; jQuery.fn.an...
(function ($) { $.fn.messageBox = function () { var $btn = $('button'); $btn.on('click', function () { $this = $(this) var id = $this.attr('id'); var createMessage = $('<div>'); createMessage.css({ 'border': '1px solid black', ...
Meteor.publishComposite('toimenpiteet', function(doc, sort) { doc.appId = App.id; console.log("subscribing some Toimenpiteet with it's relation in App Id = " + App.id); return{ find: function() { return Toimenpiteet.find(doc, sort); }, children: [ /* return al...
import React from 'react'; export const SERVER_URL = 'http://127.0.0.1:3333'; export const WORD_FIELDS_NOT_TO_SHOW = ['_id', 'type', 'title']; export const WORD_TYPES = { name: 'name', verb: 'verb', other: 'other', }; export const WORDS_LISTS_METADATA = [ {text: 'Daily', apiStepId: 0}, {text: 'Weekly', apiSt...
const topics = {} const _async = {} export const publish = (name, params) => { _async[name] = Object.assign({}, _async[name], params) if( topics[name] ) topics[name].forEach(topic => topic(params)) } export const subscribe = (name, method) => { topics[name] = topics[name] || [] topics[name].push(method) if ( n...
'use strict'; const express = require('express'), app = express(), session = require('express-session'), RedisStore = require('connect-redis')(session), SESS_SECRET = process.env.SESS_SECRET || 'DevPasswordYo', REDIS_URL = process.env.REDIS_URL || 'redis://localhost:6379'; app.use(session...
/// <reference path="../qsb_api/qsb.qsbapi.js" /> /// <reference path="tsk.tskapi.js" /> var tsk = tsk || {}; tsk.R = tsk.R || { /// <summary> 當其中一行是 "# 2Ki 1:8; Zec 13:4; Mt 3:4|" 的類型,就會使用此型 </summary> oneref: React.createClass({ pfn_click_oneref: function (reftxt) { // reftxt: "2Ki 1:8-10 var jre...
"use strict"; const peg = require( "pegjs" ); const Runner = { run( benchmarks, runCount, options, callbacks ) { // Queue const Q = { functions: [], add( f ) { this.functions.push( f ); }, run() { if ( this.fu...
/* The MIT License (MIT) Copyright (c) 2015 Jos Koomen 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, m...
angular.module('meanApp.directives', []);
/* global document */ import test from 'ava'; import Button from './button'; // Fake a DOM const div = document.createElement('div'); div.id = 'app'; document.body.appendChild(div); div.innerHTML = `${Button.button}`; Button.attachEl(); test('Contains an HTML button', t => { t.is(Button.button, '<button id="myButto...
// We need an http server var server = require('http').createServer(handler), io = require('socket.io').listen(server,{log:false}), os = require( 'os' ) qs = require('querystring'); //Count the number of visits to the page var countVisit = 0, localAddress = [], chatRooms = []; //Create an http Server func...
export default { '/api/auth_routes': { '/form/advanced-form': { authority: ['admin', 'user'], }, }, };
mi2JS.addCompClass('base/InputBase', 'Base', '', // component initializer function that defines constructor and adds methods to the prototype function(proto, superProto, comp, superComp){ /** <b>Extends:</b> {@link mi2JS(comp).Base}<br> @class base/InputBase @memberof mi2JS(comp) */ var mi2 = mi2JS; // minimizer...
webpackJsonp([2],{ /***/ 81: /*!************************************************!*\ !*** ../cases/chunks/context nonrecursive two ***! \************************************************/ /***/ function(module, exports, __webpack_require__) { var map = { "./two": 82, "./two.js": 82 }; function webpackContext...
var searchData= [ ['arg_5fdesc',['arg_desc',['../classclarg_1_1arg__base.html#adef436501e6af061da6e3b0652e43704',1,'clarg::arg_base']]], ['arg_5fname',['arg_name',['../classclarg_1_1arg__base.html#af0e1e1240bd9779d84d2b4d9f078f9e2',1,'clarg::arg_base']]], ['arg_5fset',['arg_set',['../classclarg_1_1arg__base.html#...
// See https://eslint.org/docs/user-guide/configuring // See https://prettier.io/docs/en/integrating-with-linters.html module.exports = { 'extends': [ 'airbnb', 'plugin:prettier/recommended', ], 'plugins': [ 'react-hooks', 'relay', ], 'parser': 'babel-eslint', 'rules': { 'max-len': 0, ...
//------------------------------------------------------------ //-----------Set up game-------------------------------------- //----------------------------------------------------------- Game = require("./game/game.js"); var games = {}; //A dictionary of all of the active games. //On creation of a new game. var New...
var path = require('path') var spaceystandard = require('../') var test = require('tape') var filePath = path.resolve('./bin/cmd.js') test('api usage', function (t) { t.plan(4) spaceystandard.lintFiles([], { cwd: 'bin' }, function (err, result) { t.error(err, 'no error while linting') t.equal(typeof result...
import Ember from 'ember'; export default Ember.Route.extend({ model() { return this.store.createRecord('item') }, setupController: function(controller, model) { this._super(controller, model); controller.set('title', 'Create a new item'); controller.set('buttonLabel', 'Create'); }, render...
import styled from 'styled-components'; const MenuHeader = styled.div` display: -webkit-box; display: -moz-box; display: -ms-flexbox; display: -webkit-flex; display: flex; list-style: none; margin: 0; padding: 0; -webkit-flex-flow: row wrap; flex-flow: row wrap; ba...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.8/esri/copyright.txt for details. //>>built define({other:"\u0386\u03bb\u03bb\u03bf"});
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><circle cx="12" cy="17" r="4" /><path d="M12 10.07c1.95 0 3.72.79 5 2.07l5-5C19.44 4.59 15.9 3 12 3S4.56 4.59 2 7.15l5 5c1.28-1.28 3.05-2.08 5-2.08z" /></React.Fragment> , 'CompassCalibration')...
'use strict'; angular.module('core').controller('HomeController', ['$scope', function($scope){ $scope.name = 'Visual APp Home'; }]);
import { find, add_class } from './utils'; // populate the dom tree with schedule info export default function display_schedule (grouped, max_same_day) { var i, j; var head_tr = find('tr'); for (i = 0; i < grouped.length; i++) { var first_stream = grouped[i][0]; var th = document.c...
vti_encoding:SR|utf8-nl vti_author:SR|OMCORP\\saten.kumar vti_modifiedby:SR|OMCORP\\saten.kumar vti_timelastmodified:TR|26 May 2006 15:17:08 -0000 vti_timecreated:TR|26 May 2006 15:17:08 -0000 vti_cacheddtm:TX|26 May 2006 15:17:08 -0000 vti_filesize:IR|251 vti_extenderversion:SR|6.0.2.6551 vti_backlinkinfo:VX|
"use strict"; exports.Add = require('./components/add'); exports.AddressBook = require('./components/address_book'); exports.Align = require('./components/align'); exports.Anchor = require('./components/anchor'); exports.Arrow = require('./components/arrow'); exports.Asterisk = require('./components/asterisk'); export...
var searchData= [ ['hasiteminbag',['hasItemInBag',['../classApp_1_1Player.html#a0791949cd490f3c627c306dd1b64ad57',1,'App::Player']]], ['highlightteammateandcheckifuserclickleftbutton',['HighlightTeammateAndCheckIfUserClickLeftButton',['../classApp_1_1HUD.html#a2cd20e3d9463d6a8895b0277ee01556b',1,'App::HUD']]], ['...
'use strict'; //Dashes service used to communicate Dashes REST endpoints angular.module('dashes').factory('Dashes', ['$resource', function($resource) { return $resource('dashes/:dashId', { dashId: '@_id' }, { update: { method: 'PUT' } }); } ]);
function RussianProvider($translateProvider) { 'ngInject' $translateProvider.translations('ru', { // HEADER COMPONENT WALLET_NAME_1: 'nano', WALLET_NAME_2: 'Wallet', APP_NAME_SUB: 'Интерфейс безопасного подключения к платформе NEM', HEADER_LOGIN_BUTTON: 'Вход', ...
function user(name, password) { return {username: name, password: password}; } export default { valid: user('freddyucv', 'leones2009'), invalid: user('johndoe', 'secret') };
'use strict'; /* global TbplJob, TbplAudio, Notification */ (function() { var container = document.querySelector('#container'); addTrackingSign(); setTimeout(checkResult, 5000); function checkResult() { var tbpl = new TbplJob(); var result = false; if (tbpl.isDone()) { if (tbpl.isSuccessfu...
var path = require('path'), fs = require('fs'), os = require('os'), assert = require('assert'), swintAkamaiPurge = require('../lib'); global.swintVar.printLevel = 5; describe('Akamai purge', function() { this.timeout(20000); it('Error when no callback', function() { assert.throws(function() { swintAkamai...
'use strict'; // const test = require('tape'); const assert = require('assert'); var mockSpawn = require('mock-spawn'); const mockery = require('mockery'); const mockListFull = require('./__mocks__/mame').listFullResult(); const mockVersion = require('./__mocks__/mame').versionResult(); const mockListXmlSingle = req...
const gulp = require('gulp'); const loadPlugins = require('gulp-load-plugins'); const del = require('del'); const glob = require('glob'); const path = require('path'); const isparta = require('isparta'); const webpack = require('webpack'); const webpackStream = require('webpack-stream'); const Instrumenter = isparta.I...
export AddIcon from './AddIcon' export ArrivedIcon from './ArrivedIcon' export ArrowIcon from './ArrowIcon' export BlankIcon from './BlankIcon' export BookIcon from './BookIcon' export BookingIcon from './BookingIcon' export CalendarIcon from './CalendarIcon' export CheckIcon from './CheckIcon' export CloseIcon from '....
(function() { 'use strict'; angular.module('fallout4CoolTools.components.data', []); })();
/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2016 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ // Provides control sap.ui.core.Item. sap.ui.define(['./Element', './library'], function(Element, library) { "use strict"; /** ...
version https://git-lfs.github.com/spec/v1 oid sha256:b2c84a9037d4bdaac21fc70ec74d532962711d0323300c8264b54a8c40a3cf13 size 12853
'use strict' module.exports = require('./tile.jsx')
'use strict'; // Configuring the Articles module angular.module('parties').run(['Menus', function(Menus) { // Set top bar menu items Menus.addMenuItem('topbar', 'Parties', 'parties', 'dropdown', '/parties(/create)?'); Menus.addSubMenuItem('topbar', 'parties', 'List Parties', 'parties'); Menus.addSubMenuItem('...
var Loader = function () { this.loaded = {}; }; Loader.prototype.js = function (url, callback) { var r = false, script = document.createElement('script'), loader = this; if (loader[url]) { if (callback) { callback.call(); } return; } script.type = 'text/javasc...
/** * Created by patricepaquette on 2014-04-01. */
/** * Created by taoyuan on 2017/6/15. */ /** * Describes the parameter options accepted by lp * * options array specifies the valid option names for the option * if expects is blank '' no option value is required for the option * * This was written according to lp man page * http://unixhelp.ed.ac.uk/CGI/man-...
/** * @file src/reducers/internal.js * @author H.Alper Tuna <halpertuna@gmail.com> * Date: 03.02.2017 */ /* eslint-env browser */ import { combineReducers } from 'redux'; import reducers from './index'; export default combineReducers({ metisMenuStore: reducers, });
module.exports.env = function(file, fallback){ var targetfile = file || '/etc/node_env.json'; var filecontents; try { filecontents = require(targetfile); } catch (err){ filecontents = {}; } process.env.NODE_ENV = process.env.NODE_ENV || filecontents.env || fallback || ""; };
import Html from '../../src/js/html' describe('Html', () => { it('has a method named print', () => { expect(typeof Html.print).toBe('function') }) })
"use strict"; require("babel/register"); var path = require("path"); var babel = require("gulp-babel"); var eslint = require("gulp-eslint"); var gulp = require("gulp"); var isparta = require("isparta"); var istanbul = require("gulp-istanbul"); var mocha = require("gulp-mocha"); var APP_SRC = ["src/**/*.js", "index....
var webapp = angular.module('webapp'); webapp.factory('AuthService', ['$http', '$cookies', '$timeout', function($http, $cookies, $timeout) { var service = {}; service.requestAccessToken = requestAccessToken; service.setCredentials = setCredentials; service.clearCredentials = clearCredentials; ...
/*---LEFT BAR ACCORDION----*/ $(function() { $('#nav-accordion').dcAccordion({ eventType: 'click', autoClose: true, saveState: true, disableLink: true, speed: 'slow', showCount: false, autoExpand: true, // cookie: 'dcjq-accordion-1', classExpand...
'use strict'; var meshTypeToInt = require('../common/meshType.js').stringToInt; function xTo12bitsInt(x, MIN_X, MAX_X){ if(x < MIN_X || x > MAX_X) throw new RangeError( ['x should be between', MIN_X, 'and', MAX_X, '(',x.toFixed(2),')'].join(' ') ); return Math.round( (x - MIN_X) * ((1 << 12)-1) ...
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ (function() { const { Provider } = ReactRedux; // redux_store will be available to acceptDialog // and messa...
this.demo = this.demo || {}; (function() { /** * 游戏主类 * main class * @class */ demo.Main = Class ( /** @lends demo.Main.prototype */ { STATIC : /** @lends demo.Main */ { /** * 舞台 */ ...
import React from 'react'; import BigCalendar from 'react-big-calendar'; import events from '../events'; class Selectable extends React.Component{ render(){ return ( <div {...this.props}> <h3 className="callout"> Click an event to see more info, or drag the mouse over the calend...
/* jshint esversion: 6 */ /* jscs:disable disallowMultipleSpaces */ /* eslint-env es6 */ /* eslint-disable no-multi-spaces */ function trimStart(str) { // trim trailing spaces multiline return str.replace(/^\s+/gm, ''); } module.exports = [{ name: 'test1', source: trimStart(` % example ...
/** * @author akai-inu <akai_inu@live.jp> * @copyright angola-rabbit */ /** * 定数を出力するクラス */ module.exports = { 'title': 'Angola', 'version': '0.0.2', };
import React, {Component} from 'react'; import c from 'classnames'; import {connect} from 'react-redux'; import {fetchMyRecipesIfNeeded} from './actions' import List from './List/List' class RecipesList extends Component { constructor(props) { super(props); this.state = { activeTab: 0, }; ...
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import CloseIcon from '@material-ui/icons/Close'; import Box from '@material-ui/core/Box'; // FIXME: Get rid of styled-components // Based on example from material-ui doc: https://material-ui.com/components/autocompl...
/*! * Author: LJ * Date: 30-April-2016 * Version: 1.0 * Description: Holds the data for Spell-me-out app */ // Set the data for the application. (function(globalObj){ var smeData = { a: {spell: "Alpha", letter: 'a'}, b: {spell: "Bravo", letter: 'b'}, c: {spell: "Charlie", lette...
var Enemy = function(game, key , health , weapon) { //Call constructor of Phaser.Sprite to initialize this Phaser.Sprite.call(this, game, 0, 0, key); this.game = game; //Set the origin point of the sprite to its center this.anchor.set(0.5); this.checkWorldBounds = true; this.outOfBoundsKill = tru...
var _ = require('underscore'), getSet = require('getter-setter').proto, test = require('tap').test, graceful = require('./../../lib/middleware/close-gracefully.js'); test('close-gracefully.js tests', function(t) { t.plan(6); var app = getSet({}), grace = graceful(app), res = { se...
var locationGraph = require('../assets/data/demo-picker-data-1.json') function isCanonicalNode (node) { return node.meta.canonical } function presentableName (node, locale) { var requestedName = node['names'][locale] var fallback = Object.keys(node['names']).map(k => node['names'][k])[0] return requestedName ...
import background from 'ringcentral-integration/lib/background'; import proxify from 'ringcentral-integration/lib/proxy/proxify'; import { Module } from 'ringcentral-integration/lib/di'; import ensureExist from 'ringcentral-integration/lib/ensureExist'; import url from 'url'; import uuid from 'uuid'; import actionTypes...
'use strict'; var Controllers = {}; Controllers.renderAdminPage = function (req, res, next) { res.render('admin/plugins/shopify', { ready: module.parent.exports.ready, numProducts: module.parent.exports.products.length }); }; module.exports = Controllers;
var chai = require("chai"); var expect = chai.expect; var jsClass = require("../../../js/class.js"); describe("File js/class", function() { describe("Test function cloneObject", function() { var cloneObject = jsClass._test.cloneObject; it("should be return equals object", function() { var expected = {name: "R...
'use strict'; import './assets/css/example.css';
/*! * RAW 1.0.0 * http://raw.densitydesign.org * Copyright 2013-2014 DensityDesign Lab, Giorgio Caviglia, Michele Mauri, Giorgio Uboldi, Matteo Azzi * * Licensed under the LGPL License, Version 3.0 * You should have received a copy of the GNU Lesser General Public License * along with this program. ...
foo(); foo(); false; 0; bar() && foo(); foo(); foo(); true; 1; bar() || foo();
version https://git-lfs.github.com/spec/v1 oid sha256:8a6471dfd9869965aec36ecb0e1c30d745c5743715c3f772a45f12543b8fb901 size 503
const path = require('path'); module.exports = function karmaConfig(config) { config.set({ basePath: '', frameworks: ['mocha', 'chai'], files: [ 'test/**/*.spec.js', ], exclude: [], preprocessors: { 'src/**/*.js': ['webpack', 'sourcemap'], 'test/**/*.spec.js': ['webpack', 's...
'use strict'; var fs = require('fs'); var colors = require('colors'); colors.setTheme({ info: 'green', white: 'white', help: 'cyan', warn: 'yellow', error: 'red', bgRed: 'bgRed', bgGreen: 'bgGreen' }); /** * @param {} str */ module.exports.toCapitalize = function (str) { return st...
var _ = require("lodash"); var async = require("async"); var shlog = require(global.C.BASE_DIR + "/lib/shlog.js"); var _w = require(global.C.BASE_DIR + "/lib/shcb.js")._w; var shmail = exports; var nodemailer = require('nodemailer'); var path = require('path'); var templatesDir = path.resolve(__dirname, '..', 'mail'...
/* eslint one-var: 0, prefer-arrow-callback: 0, import/no-extraneous-dependencies: 0 */ /* eslint strict: 0, semi-style: 0 */ 'use strict'; // -- Node modules const gulp = require('gulp') , connect = require('gulp-connect') , open = require('opn') ; // -- Local modules const config = require('./...
/* ------------------------------------------------------------------ * node-echonet-lite - 02-88-D3.js * * Copyright (c) 2016-2018, Futomi Hatano, All rights reserved. * Released under the MIT license * Date: 2018-06-20 * * - Class group code : 02 : Housing/facility-related device class group * - Class code : 88...
// Place your application-specific JavaScript functions and classes here // This file is automatically included by javascript_include_tag :defaults // Create two functions, String.beginsWith and String.endsWith String.prototype.beginsWith = function(t, i) { if (i==false) { return (t == this.substring(0, t.l...
var HelicopterError = require('../../src/helicopter.js').Error; module.exports = { send: function * (params) { PrintService.print('Message', params.text); return {got: params.text}; }, promise: function (params) { return new Promise(function (resolve, reject) { setImmed...
import { get, set } from "@ember/object"; function factory( fn ) { /** * @param {(DS.RecordArray|Ember.MutableArray)} enumerable * @param {...*} args * @returns {Promise<Ember.MutableArray>} */ return async function( arr, ...args ) { const meta = get( arr, "meta" ); arr = await Promise.all( arr[ fn ]( ...