code
stringlengths
2
1.05M
function(keys, values, rereduce) { return sum(values) }
var helper = require('./helper') var net = require('net') var portfinder = require('portfinder') var test = require('tape') test('TCP connect works (echo test)', function (t) { portfinder.getPort(function (err, port) { t.error(err, 'Found free port') var child var server = net.createServer() server...
import _catchWrapper from './_catchWrapper'; const DEFAULT_TRY = (next, ...args) => next(null, ...args); const DEFAULT_catchWrapper = (next, err, ...args) => next(err, ...args); const DEFAULTfinallyTask = (next, err, ...args) => next(err, ...args); /** * Errors bypass the normal flow of execution. They always ret...
/** * Copyright (c) 2014,Egret-Labs.org * All rights reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright * notice, this list of c...
var level = require('level-test')() , replicate = require('../') , sublevel = require('level-sublevel') , test = require('tape') , opts = {keyEncoding: 'utf8', valueEncoding: 'json'} var db1, db2, m1, m2; test('fills', function (t) { db1 = sublevel(level('test-replicate_db1', opts)) db2 = sublevel(level('...
/* * Copyright (c) 2001-2009, TIBCO Software Inc. * Use, modification, and distribution subject to terms of license. */ jsx3.require("jsx3.gui.Form","jsx3.gui.Block");jsx3.Class.defineClass("jsx3.gui.ImageButton",jsx3.gui.Block,[jsx3.gui.Form],function(p,n){var ub={a:"click",b:"mouseover",c:"mouseout",d:"mousedown",...
// ---------------------------------------------------------------------------- Package const _ = require('lodash') const mysql = require('mysql') // ---------------------------------------------------------------------------- Port const port = 3000 // -------------------------------------------------------------------...
/** * Copyright 2012-2020, Plotly, Inc. * 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 strict'; var setGroupPositions = require('../bar/cross_trace_calc').setGroupPositions; module.exports = function crossTr...
/** * @license Highstock JS v8.0.2 (2020-03-03) * @module highcharts/indicators/trendline * @requires highcharts * @requires highcharts/modules/stock * * Indicator series type for Highstock * * (c) 2010-2019 Sebastian Bochan * * License: www.highcharts.com/license */ 'use strict'; import '../../indicators/tr...
const { getCachedJudgeState } = require('./judger'); const getSubmissionInfo = (s, displayConfig) => ({ submissionId: s.id, taskId: s.task_id, user: s.user.username, userId: s.user_id, problemName: s.problem.title, problemId: s.problem_id, language: displayConfig.showCode ? ((s.language != ...
const axios = require('../config').axios; module.exports = { index: async (ctx, next) => { ctx.body = { view: 'index', title: 'hello' }; await next(); }, topicslist: async (ctx, next) => { const page = ctx.query.page || 1; const tab = ctx.query.tab || 'all'; const response =...
var Dgeni = require('dgeni'); var _ = require('lodash'); var concat = require('gulp-concat'); var fs = require('fs'); var gulpif = require('gulp-if'); var lazypipe = require('lazypipe'); var mkdirp = require('mkdirp'); var ngHtml2js = require('gulp-ng-html2js'); var path = require('path'); var sass = require('gulp-sass...
'use strict'; describe('ProAct.Queues', function () { describe('Handles one queue like a normal queue.', function () { var queue, testFunc, resArray, obj, fnOrder; beforeEach(function () { queue = new ProAct.Queues(['pro']); resArray = []; fnOrder = [] testFunc = function () { ...
require('./libs/js_extend.js'); GLOBAL._ = require('underscore'); require('./libs/underscore_extend.js'); _.Class = require('./libs/Class.js');
/* Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, given the array [−2,1,−3,4,−1,2,1,−5,4], the contiguous subarray [4,−1,2,1] has the largest sum = 6. */ 'use strict' /** * @param {number[]} nums * @return {number} */ const maxSubArray = funct...
const moment = require('moment'); module.exports = (params) => { params.passengers = params.passengers.map((passenger) => { const birth = moment(passenger.birthDate.toUpperCase(), 'YYYY-MM-DD'); passenger.Age = moment().diff(birth, 'years'); return passenger; }); return params; };
'use strict'; angular.module('mean.systemsetting').controller('WarehouseSettingController', ['$scope', 'Global', 'Warehouses', function($scope, Global, Warehouses, Minerals ) { $scope.getInitData = function() { $scope.warehouses = []; Warehouses.query(function(warehouses) { $scope.w...
import Key from 'input/keyboard/Key.js'; export default function EQUALS () { return Key(187, 'EQUALS'); }
'use strict'; var winston = require('winston'); module.exports = { up: function (queryInterface, Sequelize) { return queryInterface.addColumn('device_menu', 'menu_level', {type: Sequelize.INTEGER(11), allowNull: false}) .catch(function(err) {winston.error('Adding column device_menu.menu_level f...
(function() { var fix = require('../fix'), Should = require('should'), Sokkit = require('../../lib/sokkit'), pollute = fix.pollute; describe('when using Sokkit.subset', function() { var sokkit = new Sokkit().load(); it('copies all plugins with no filter function', function() { var subset = sokkit...
'use strict' angular.module('d3ngit', ['ngRoute']) .run(function($templateCache){ var path, template = { 'app.html': '<section ng-repeat="template in content track by $index" title="{{params.view}}"><span ng-include src="template"></span></section>' ,'home.html': "<p style='margin:8em;font-size:large;'>home: for m...
const path = require('path'); const webpack = require('webpack'); module.exports = { entry: { desuplayer: './src/js/index.js' }, mode: 'development', devtool: 'source-map', module: { rules: [{ test: /\.scss$/, use:[{ loader: 'style-loader' ...
Reveal.initialize({ // Display controls in the bottom right corner controls: false, progress: false, slideNumber: true, history: false, keyboard: false, overview: false, center: true, touch: false, // Loop the presentation loop: false, // Change the presentation direction...
'use strict'; angular.module('mean.minutes').config(['$stateProvider', function($stateProvider) { $stateProvider.state('all minutes', { url: '/minutes', templateUrl: 'minutes/views/list.html' }); } ]);
"use strict"; /** * @module nodeviau/exception/BaseException * @author Itari <itari.onkar@gmail.com> * @licence MIT * * @class * @classdesc Base exception class for engine */ class BaseException extends Error{ /** * Exception contructor. * @param message * @param code * @param previous ...
import Action from '../../../src/action' describe('Action callbacks', function() { it('handles listeners with no callback', function() { const action = new Action(n => n) action.onDone() action.onError() action.onCancel() action.onUpdate() }) })
/** * System commands * Pokemon Showdown - http://pokemonshowdown.com/ * * These are system commands - commands required for Pokemon Showdown * to run. A lot of these are sent by the client. * * System commands should not be modified, added, or removed. If you'd * like to modify or add commands, add or edit fil...
import Ember from 'ember'; import config from './config/environment'; const Router = Ember.Router.extend({ location: config.locationType }); Router.map(function() { this.route('about'); this.route('contact'); this.route('projects'); this.route('admin'); }); export default Router;
const array = [1, 42, 7, 9, 13, 10, 20, 35, 45, -7, -3, 0, 4, -1, 15]; Array.prototype.filter = function (isOk) { let filteredArray = []; const len = this.length; for (let i = 0; i < len; i += 1) { if(isOk(this[i], i, this)) { filteredArray.push(this[i]); } } return filteredArray; };...
// Karma configuration // Generated on Fri Mar 14 2014 16:57:37 GMT-0700 (PDT) module.exports = function(config) { config.set({ // base path, that will be used to resolve files and exclude basePath: '', // frameworks to use frameworks: ['jasmine', 'requirejs'], // list of files / patterns to...
/** * Helper functions */ var _ = (function() { var _ = {}; var toString = Object.prototype.toString; var slice = Array.prototype.slice; /** * Is a given variable undefined? * * @param {*} obj Some object * @returns {boolean} true if given variable is undefined */...
//~ name a484 alert(a484); //~ component a485.js
// Publish user list for admin console /** * * * */ Meteor.publish('userList', function (options, searchString, roles) { console.log('roles: ' + roles); console.log('searchString: ' + searchString); if (!Roles.userIsInRole(this.userId, ['superAdmin', 'viewCompanies', ...
search_result['4610']=["topic_0000000000000B20.html","QuestionVideoService.AddQuestiosToStage Method",""];
import React, {PropTypes, Component, Text, View, ListView, TouchableHighlight} from 'react-native' const Touch = TouchableHighlight export const Error = ({children}) => { return (<Text style={{color: "red"}}>{children}</Text>) } Error.propTypes = { children: PropTypes.string, } export const ConsoleWarn = (props) ...
import React from 'react'; import { fnRenderErrors } from './util'; import AppointmentServiceUi from './AppointmentServiceUi'; import FormInputDateUi from './FormInputDateUi'; import FormTextAreaUi from './FormTextAreaUi'; // The appointment form presentational component. export default React.createClass({ propTyp...
var DBConfig = require('../configs/database.configs'); var SZ = require('sequelize'); var sequelize = new SZ(DBConfig.name, DBConfig.user, DBConfig.pass, DBConfig); var Image = sequelize.define('images', { //For display: id: { type: SZ.BIGINT(20).UNSIGNED, allowNull: false, autoIncrement: true, prima...
var now = new Date(); console.log(now.formatString());
'use strict'; var builder = require('focus').component.builder; var React = require('react'); var applicationStore = require('focus').application.builtInStore; var cartridgeMixin = { getDefaultProps: function getCartridgeDefaultProps() { return { style: {} }; }, /** @inheriteddoc */ getInitialSt...
/** * Created by peter on 16/12/2016. */ import * as actions from '../actions'; const initialState = { faqIds: [], feedbackIds: [], referralIds: [], sponsorIds: [], appointmentIds: [], }; export default (state = initialState, action) => { if (action.type == actions.SET_FAQ) { let {fa...
// DEPENDENCIES ________________________________________________________________ import {connect} from 'react-redux' import { reduxForm, formValueSelector } from 'redux-form' // COMPONENTS __________________________________________________________________ import Availability from './Availability' // ACTIONS _____...
(function () { 'use strict'; angular.module('wfApp', [ 'ngRoute', 'ngResource', 'angular.filter', 'UserApp', 'wfApp.filters', 'wfApp.services', 'wfApp.factories', 'wfApp.directives', 'wfApp.controllers', 'wfApp.i18n' ]); })()...
/** * Syntax * node <this_file_path> <graph_file_path> */ // load parameters var graphFilePath = process.argv[2]; var dataStructureType = 1; // dependencies fs = require('fs'); // validations if (!graphFilePath) { throw new Error('Missing graphFilePath parameter'); } fs.readFile(graphFilePath, 'utf8', func...
// Copyright (c) Dyoub Applications. All rights reserved. // Licensed under MIT (https://github.com/dyoub/app/blob/master/LICENSE). (function () { function Service($http) { this.$http = $http; } Service.prototype.clear = function (storeId) { return this.$http.post('/pricing-tables/clear'...
describe('options.noOptions.js', function() { it('should respond with answer from hidden-server', function(done) { this.timeout(TEST_TIMEOUT); /* dependencies */ var debug = require('debug')('test:debug'); require('debug-trace')({ always: true, }); /* settings */ var PORT = 3001; ...
define([ "CardType" ], function(CardType) { "use strict"; var CardGalleryUI = React.createClass( { render: function() { InputValidator.validateNotNull("cardKeys", this.props.cardKeys); InputValidator.validateNotNull("properties", this.props.properties); v...
var _ = require('underscore'), select = require('cheerio-select'), $ = require('../cheerio'); var find = exports.find = function(selector) { if (!selector) return this; try { var elem = select(selector, this.toArray()); return $(elem); } catch(e) { return []; } }; var parent = exports.pare...
const _ = require(`lodash`) const slash = require(`slash`) const fs = require(`fs`) const path = require(`path`) const crypto = require(`crypto`) const glob = require(`glob`) const { store } = require(`../redux`) const nodeAPIs = require(`../utils/api-node-docs`) const testRequireError = require(`../utils/test-require...
(function (Provider) { var app = diagnostics.app; Provider.Model = Backbone.Model.extend({}); Provider.Collection = Backbone.Collection.extend({ model: Provider.Model, url: function () { return Nancy.config.basePath + "interactive/providers/"; } }); Provider....
/* globals requirejs,require */ import { keys } from '@ember/polyfills'; // TODO: load based on params keys(requirejs.entries).forEach(function(entry) { if ((/-test/).test(entry)) { require(entry, null, null, true); } });
/* eslint-disable max-statements, complexity */ "use strict"; const path = require("path"); const dedent = require("dedent"); const identifierfy = require("identifierfy"); const Processor = require("@modular-css/processor"); const relative = require("@modular-css/processor/lib/relative.js"); const slash = (file) =>...
define([], function () { 'use strict'; return function (config, element) { const button = element, input = element.closest('.input--password').querySelector('.input__field'), activeClass = 'input__button-pass--active'; button.addEventListener('click', () => { if (!button.classList.contai...
define(["require", "exports"], function (require, exports) { var ByteSizeParser = (function () { function ByteSizeParser() { } ByteSizeParser.parse = function (size) { return parseInt(size.toLowerCase()['replace'](/([\d.]+)(k|m|g|t)?/gmi, function (match, size, multiplier) { ...
'use strict'; var App = React.createClass({ handleDayClick (date) { console.log(date.format()); }, render: function() { return ( <div className="app-wrapper"> <Month firstDayOfWeek={0} onDayClick={this.handleDayClick} headerDateFormat={{m: 'MMMM', y: 'YYYY'}}...
/* * grunt-figroll * https://github.com/sam/grunt-figroll * * Copyright (c) 2015 Sam Clift * Licensed under the MIT license. * * */ 'use strict'; var request = require('superagent'); var EasyZip = require('easy-zip').EasyZip; var fs = require('fs'); var path = require('path'); module.exports = function(grunt...
/*! * Angular Material Design * https://github.com/angular/material * @license MIT * v1.0.5-master-437a308 */ goog.provide('ng.material.components.backdrop'); goog.require('ng.material.core'); /* * @ngdoc module * @name material.components.backdrop * @description Backdrop */ /** * @ngdoc directive * @name m...
////////////////////////////////////////////////////////////////////////////////// // init the module ////////////////////////////////////////////////////////////////////////////////// var myModule = angular.module('myModule', []); ////////////////////////////////////////////////////////////////////////////////// // ...
var mongoose = require('mongoose'), Contact = mongoose.model('Contact'), _ = require('lodash'); exports.serverside = function (req, res) { Contact.find().sort('-created').populate('user', 'name username').exec(function (err, contact) { res.render('index', { title: 'Server Side Rendering', contact...
/** * This file contains all necessary Angular controller definitions for 'frontend.login-history' module. * * Note that this file should only contain controllers and nothing else. */ (function () { 'use strict'; angular.module('frontend.routes') .controller('AddRouteModalController', [ '_','$scope',...
const constants = Object.create(null); constants.packageName = 'project-viewer'; // this makes constants immutable Object.freeze(constants); /** * Package common constants * @module constants */ module.exports = constants;
(function() { 'use strict'; app.directive('mainFooter', MainFooterDirective); MainFooterDirective.$inject = []; function MainFooterDirective() { return { restrict: 'E', templateUrl: '/views/main-footer.html' }; } })();
var markdown = require("marked"); module.exports = { "site": { "files": [{ "cwd": "site", "src": [ "main.js", "img/**/*", "style/**/*", "*.html", ".nojekyll" ], "dest": "_site" }], "watch": true, "ignore": [ "three" ], "plugins": [{ "name": "js", "extensions": [ "js"...
/** * Copyright (c) 2012 Sitelier Inc. * * 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, merge, publ...
function moveElement(elementID,final_x,final_y,interval){ if (!document.getElementById) return false; if (!document.getElementById(elementID)) return false; var elem=document.getElementById(elementID); if (elem.movement) { clearTimeout(elem.movement); } if (!elem.style.left) { el...
Ext.define('Chat.store.UsersStore', { extend: 'Ext.data.Store', model: 'Chat.model.Users', proxy: { type: 'memory', reader: { type: 'json', root: 'users' } } });
/** * @license Highcharts JS v8.1.1 (2020-06-09) * @module highcharts/themes/sunset * @requires highcharts * * (c) 2009-2019 Highsoft AS * * License: www.highcharts.com/license */ 'use strict'; import '../../themes/sunset.js';
const fs = require(`fs-extra`) const yargs = require(`yargs`) const { getHistory, writeHistory } = require(`./history`) const args = yargs .option(`file`, { demand: true, type: `string`, }) .option(`newFile`, { type: `string`, }).argv async function update() { const history = await getHistory()...
function tableForm(data) { var that = this; this.allData = []; this.mainTable = document.createElement("table"); this.createTable = function() { that.mainTable.setAttribute("class", "target-form"); var firstTr = document.createElement("tr"); for (var i = 0; i < data.colNam...
// upload a file to server and zip it before writing to disk // you must pre-create the 'files' directory first // run this and then browse to localhost:8080 var formidable = require('formidable'); var http = require('http'); var zlib = require('zlib'); var fs = require('fs'); var gzip = zlib.createGzip(); http.cre...
search_result['2021']=["topic_00000000000004E3.html","ScheduleStatus.Value Property",""];
var DefineMap = require("can-define/map/map"); require("./helpers"); module.exports = DefineMap.extend({ page: { set: function(val){ if(val === "home") { var state = this; setTimeout(function(){ state.message = "hello async!"; }, 300); } return val; } }, language: { default: functio...
const Role = require('../models') .Roles; module.exports = { /** * This method creates a role * * @param {object} req * @param {object} res * @returns {object} role */ create(req, res) { return Role .create({ title: req.body.title, }) .then(role => res.status(201)...
$(document).ready(function() { function vote (entryID) { $.ajax({ type: "POST", url: "/vote/", data: {"entry": entryID}, success: function() { $("#entry-vote-" + entryID).css({"color": " green "}); } }); return false; } $("a.vote").click(fu...
/** * jquery.gallery.js * http://www.codrops.com * * Copyright 2011, Pedro Botelho / Codrops * Free to use under the MIT license. * * Date: Mon Jan 30 2012 */ (function( $, undefined ) { /* * Gallery object. */ $.Gallery = function( options, element ) { this.$el = $( element ); this._init( op...
'use strict'; var _ = require( 'lodash' ), async = require( 'async'), fs = require( 'fs' ), Git = require( './git'), path = require( 'path' ), rimraf = require( 'rimraf' ); var repoBaseDir, workBaseDir; module.exports.repoDir = function setRepoDir( dir ) { repoBaseDir = path.normalize ( dir ...
app.controller('mainController', function($scope) { }); app.controller('winController', function($scope, $http){ $http.get('https://secret12.herokuapp.com/secretinfo').then(function(data){ $scope.winData = data.data; $scope.winnings = data.data.secretData; $scope.bags = Math.round(data.data.secretData/10...
var express = require('express'); var path = require('path'); var favicon = require('serve-favicon'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var proxy = require("express-http-proxy"); var index = require('./routes/index'); var server = requi...
module.exports = [ 'admin', 'anti', 'autojoin', 'available', 'badum', 'botsnack', 'btc', 'buzzwords', 'coin', 'colortest', 'colortest', 'counter', 'death', 'dice', 'doyou', 'eliza', 'emoticons', 'error', // 'eval', 'excuse', 'fact', 'fire', 'foul', 'fucks', 'greet', '...
angular.module('app').controller('registerCtrl',['$scope','$http','$interval','$state', function($scope, $http, $interval,$state){ $scope.submit = function(){ $http.post('data/regist.json', $scope.user).then(function(res){ $state.go('login') }) }; $scope.send = function(){ var count = 60; $http.get('da...
/* * j0t * https://github.com/christophermllr/j0t * * Copyright (c) 2012 Christopher Miller * Licensed under the MIT license. */ "use strict"; // Dependencies, config, and DB connection var mongoose = require('mongoose'), restify = require('restify'), path = require('path'), filed = require('filed'...
var sampleUser = { name: 'Alex Price' }; module.exports = { getUser: { middleware: ['middleware/auth.testCredentials'], api: function(data, fn, session, extras) { return fn(null, sampleUser); }, afterware: ['middleware/auth.user.logUser'] } };
'use strict'; var MACROUTILS = require( 'osg/Utils' ); var BoundingSphere = require( 'osg/BoundingSphere' ); var Camera = require( 'osg/Camera' ); var ComputeMatrixFromNodePath = require( 'osg/ComputeMatrixFromNodePath' ); var CullSettings = require( 'osg/CullSettings' ); var CullingSet = require( 'osg/CullingSet' ); v...
export function RoutesConfig($stateProvider, $urlRouterProvider) { 'ngInject'; var getViewUI = function(viewName) { return './views/app/pages/UI/' + viewName + '/' + viewName + '.page.html'; }; var getViewAdmin = function(viewName) { return './views/app/pages/Admin/' + viewName + '/' + viewName + '.page.html'...
var searchData= [ ['remote_20procedure_20functions',['Remote Procedure functions',['../a00373.html',1,'']]], ['results_20processing',['Results processing',['../a00390.html',1,'']]] ];
var searchData= [ ['geta0_27',['getA0',['../classIir_1_1Biquad.html#a7debc9f6ef5e64622c710b8c9ba96056',1,'Iir::Biquad']]], ['geta1_28',['getA1',['../classIir_1_1Biquad.html#a459116db7aa381281997f428f15334cf',1,'Iir::Biquad']]], ['geta2_29',['getA2',['../classIir_1_1Biquad.html#a061e2402d528312fc6095db6551c9141',1...
const videoshow = require('videoshow') const images = [ 'photo-1543227043-f69c82e95af9-by_Philippe_D_on_Unsplash.jpeg', 'photo-1543310465-f4d3ca5a2a25-by_Luke_Vodell_on_Unsplash.jpeg', 'photo-1543411789-ca12d5f935ba-by_Tomas_Malík_on_Unsplash.jpeg', 'photo-1543739970-9f00688c2285-by_Mohamed_Ahsan_on_Unsplash.j...
import './chunk-1fafdf15.js'; import './helpers.js'; import './chunk-f134e057.js'; import './chunk-7bcc5416.js'; import { _ as __vue_normalize__, r as registerComponent, u as use } from './chunk-cca88db8.js'; import { M as MessageMixin } from './chunk-6eb75eec.js'; // var script = { name: 'BMessage', mixins: [Mess...
var express = require('express'); var path = require('path'); module.exports = function(app){ // serve from client/dist app.use(express.static(path.join(__dirname, '../../client/dist'))); };
/** * @license Highstock JS v9.3.0 (2021-10-21) * @module highcharts/indicators/dema * @requires highcharts * @requires highcharts/modules/stock * * Indicator series type for Highcharts Stock * * (c) 2010-2021 Rafał Sebestjański * * License: www.highcharts.com/license */ 'use strict'; import '../../Stock/Ind...
/*! * DevExtreme (dx.messages.cs.js) * Version: 20.1.9 (build 20351-0319) * Build date: Wed Dec 16 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ "use strict"; ! function(root, factory) { if ("function" ...
/* Copyright (c) 2015 NAVER Corp. name: @egjs/infinitegrid license: MIT author: NAVER Corp. repository: https://github.com/naver/egjs-infinitegrid version: 3.9.0 */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'functi...
/** * @license Highcharts Gantt JS v8.0.0 (2019-12-10) * * Gantt series * * (c) 2016-2019 Lars A. V. Cabrera * * License: www.highcharts.com/license */ 'use strict'; (function (factory) { if (typeof module === 'object' && module.exports) { factory['default'] = factory; module.exports = facto...
/** * @license Highstock JS v8.1.1 (2020-06-09) * * Parabolic SAR Indicator for Highstock * * (c) 2010-2019 Grzegorz Blachliński * * License: www.highcharts.com/license */ 'use strict'; (function (factory) { if (typeof module === 'object' && module.exports) { factory['default'] = factory; mo...
/**! Qoopido.nucleus 3.2.3 | http://nucleus.qoopido.com | (c) 2020 Dirk Lueth */ !function(){"use strict";provide((function(){return function(t){return t.charAt(0).toLowerCase()+t.slice(1)}}))}(); //# sourceMappingURL=lcfirst.js.map
typeof window !== "undefined" && (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); else if(typeof exports === 'object') exports["Hls"] = f...
import { t } from '../util/locale'; import { uiModal } from './modal'; export function uiConfirm(selection) { var modalSelection = uiModal(selection); modalSelection.select('.modal') .classed('modal-alert', true); var section = modalSelection.select('.content'); section.append('div') ...
var util = require('util'); var Tab = require('../client/tab').Tab; var ExchangeTab = function () { Tab.call(this); }; util.inherits(ExchangeTab, Tab); ExchangeTab.prototype.parent = 'wallet'; ExchangeTab.prototype.generateHtml = function () { return require('../../jade/tabs/exchange.jade')(); }; module.export...
/* eslint-env mocha */ import A from 'assert'; import min from './min'; describe('math.min(x, y)', () => { it('returns the smaller of two numbers', () => { A.equal(min(1, 2), 1); A.equal(min(2, 1), 1); A.equal(min(-1, 1), -1); }); it('allows partial application', () => { A.equal(min(1)(2), 1); ...
const alarm = require("./alarm"); const fs = require("fs"); const homepath = require("./homepath"); const fileName = () => homepath() + "/.pomodoro" const registerPomodoro = type => fs.writeFile(fileName(), type); const unregisterPomodoro = () => registerPomodoro("Off"); const pomodoroAction = (type, seconds, message...
(function () { "use strict"; WinJS.Binding.optimizeBindingReferences = true; function onApplicationActivated(e) { if (e.detail.kind === Windows.ApplicationModel.Activation.ActivationKind.launch) { e.setPromise(WinJS.UI.processAll()); } } WinJS.Application.addEventList...