code
stringlengths
2
1.05M
var chai = require('chai') var assert = chai.assert var currencyFormatter = require('./index') describe('format', () => { context('Default Options', () => { context('Symbol on the left', () => { context('No Space', () => { it('Returns -$10.00 for -10', () => { var result = currencyFormatt...
$(document).ready(function() { $.urlParam = function(name){ var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href); if (results==null){ return null; } else{ return results[1] || 0; } } var uuid = $.urlParam('uuid') |...
window.repatched = (window.repatched || 0) + 1; Page.patch(function(state) { document.body.dataset.repatched = (parseInt(document.body.dataset.repatched) || 0) + 1; });
import P, * as L from "partial.lenses" import {liftListBy as llb} from "./operators" const extend = Object.assign const always = value => () => value const equals = (a, b) => a === b export function makeModelDriver(initial, opts = {}) { const ID = {} const { logging = false, info = (...args) => console.in...
/*! * Angular Material Design * https://github.com/angular/material * @license MIT * v1.1.0-rc.5-master-3a0f323 */ (function( window, angular, undefined ){ "use strict"; /** * @ngdoc module * @name material.components.chips */ /* * @see js folder for chips implementation */ angular.module('material.component...
CHAKRA = {}; CHAKRA.hues = [ 0, 30, 60, 120, 240, 260, 320 ]; // Requires ISPIRAL // CHAKRA.chakras = []; function Chakra(num, opts) { if (!opts) opts = {}; this.num = num; this.name = "Chakra"+num; this.spiral = null; this.imageSpiral = null; this.opts = opts; this.speed = 1; ...
angular .module('tcxviewer.service') .factory('UploadService', ['$log', '$http', function($log, $http) { function _getData(url) { $log.warn('Get data'); var promise = $http({method:'GET', url: url}) .then(function _success(success) { return success.data; }, function _error(er...
/** * Implement a trie with insert, search, and startsWith methods. * * Note: * You may assume that all inputs are consist of lowercase letters a-z. * * The following picture explains construction of trie using keys given in the example below, * * root * / \ \ *...
var variant_desc = "Chose a particular variant of a border, or set of borders. E.g. `somalia=1` or `somalia=2`. Multiple variants can be semicolon separated." var config = { apiVersion: "v1", modules: { data: { file: "data.js", description: "Returns data (such as names and dates) on political entit...
// Generated by CoffeeScript 1.7.1 (function() { var es, isFunction, _; es = require('event-stream'); _ = require('lodash'); isFunction = function(f) { return {}.toString.call(f) === '[object Function]'; }; module.exports = function(opts, callback) { var buffer, bufferOrder, debouncedCallback, g...
version https://git-lfs.github.com/spec/v1 oid sha256:f808f0aa32fbe90fb9c9c846917faff3fdd4e236c284b76c02dd33753dc90177 size 35168
'use strict'; // Dependencies var controller = require('../controllers/login'); var basePath = '/login'; // Routes module.exports = function(app) { app.get(basePath, controller.renderPage); app.post(basePath, controller.authenticate); };
if (process.env.BROWSER) { require ('../../Sass/ImageLoader.sass'); } import React from 'react'; class ImageLoader extends React.Component{ constructor(props) { super(props); this.state = { show: props.showTransition }; this.handleImageLoaded = this.handleImageLoaded.bind(this); } componentDidMount() { ...
export default { shortLinks: {}, loading: false, error: null, };
version https://git-lfs.github.com/spec/v1 oid sha256:e06968c5eb518123341e410c88081b3f8a2a18719fb201471c893f399a6350ab size 156515
var express = require('express'); var router = express.Router(); var mongoose = require('mongoose'); var Post = mongoose.model('Post'); function isAuthenticated(req, res, next) { if (req.method === "GET") { return next(); } if (req.isAuthenticated()) { // user authenticated, continue ...
"use strict"; var Promise = require("bluebird"), twitter = include("twitter-oauth"), querystring = require("querystring"), moment = require("moment"); module.exports = function(token, secret) { return function(term, sinceId) { return new Promise(function(resolve, reject) { twitter.sea...
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["react-syntax-highlighter_languages_highlight_fsharp"],{ /***/ "./node_modules/highlight.js/lib/languages/fsharp.js": /*!***********************************************************!*\ !*** ./node_modules/highlight.js/lib/languages/fsharp.js ***! \*****...
/* * Signal2 * * 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, publish, distribute, sublic...
export default (verifedType) => { if (!verifedType) { return false } let regexStr = '' let dataTypeNameStr = '' switch (verifedType) { case 'number': { regexStr = /^[0-9]*$/ dataTypeNameStr = '数字' break } case 'url': { regexStr = /^((http:|https:|)\/\/)(www.)?\w+.\w+...
'use strict'; module.exports = function(array) { if (!array.length) { return Promise.reject(new Error('Randomize error: Array is empty.')); } return Promise.all(array.slice().sort(function() { return 0.5 - Math.random(); })); };
(function (factory) { if (typeof define === "function" && define.amd) { // AMD anonymous module define(["knockout", "jquery", "handsontable","numeral"], factory); } else { // No module loader (plain <script> tag) - put directly in global namespace factory(window.ko, jQuery, windo...
angular .controller('pdfviewerCtrl', loadFunction); loadFunction.$inject = ['$scope', '$filter', 'structureService', '$location']; function loadFunction($scope, $filter, structureService, $location) { //Register upper level modules structureService.registerModule($location, $scope, "pdfviewer"); $scope.init...
import Chest from './Chest.js' class RoomCreator extends Phaser.Group { constructor(game) { super(game, null, 'decoration') const world = this.game.world this.game.add.sprite(0, 0, 'stage01') var puerta = this.game.add.sprite(this.game.world.width + 115, this.game.world.centerY, 'puerta') puerta...
var zomato = require('zomato'); var Restaurant = require('./zomato/Restaurant.js'); let selectedCuisines = ["British", "Chinese"]; let client = zomato.createClient({ userKey: '4a3b30ef356a829e79e73f8886f0aa0e', }); //3rd function restaurants(locations, cuisines, callback) { let cuisineIds = new Array(); ...
import React from 'react'; import _ from 'underscore'; import * as Babel from 'babel-standalone'; export function createCompiler(context) { const iframe = createIframe(); return createEvalWithContext(iframe, context); } export function createIframe(_document = document) { let iframe = _document.createElem...
/** * Copyright (c) 2015 Trent Mick. * Copyright (c) 2015 Joyent Inc. * * The bunyan logging library for node.js. * * -*- mode: js -*- * vim: expandtab:ts=4:sw=4 */ var VERSION = '1.8.5'; /* * Bunyan log format version. This becomes the 'v' field on all log records. * This will be incremented if there is an...
var classifier = require('..'); var Classifier = classifier.Classifier; var DataSet = classifier.DataSet; var Document = classifier.Document; var data = new DataSet(); var item1 = new Document('item1', ['a','b','c']); var item2 = new Document('item2', ['a','b','c']); var item3 = new Document('item3', ['a','d','e...
/** * @author mrdoob / http://mrdoob.com/ */ THREE.ObjectLoader = function ( manager ) { this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager; this.texturePath = ''; }; THREE.ObjectLoader.prototype = { constructor: THREE.ObjectLoader, load: function ( url, onLoad, onProgress, onE...
'use strict'; const fs = require('fs'); const express = require('express'); const request = require('supertest'); const webpackIsomorphicDevMiddleware = require('../'); const createCompiler = require('./util/createCompiler'); const normalizeHtmlError = require('./util/normalizeHtmlError'); const configClientBasic = re...
/* * * Settings actions * */ import { DEFAULT_ACTION, } from './constants'; export function defaultAction() { return { type: DEFAULT_ACTION, }; }
export default { set_user: ({ commit, state }, { user }) => { return state.user ? '' : state.user } }
/** * Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/> * Build: `lodash modularize underscore exports="amd" -o ./underscore/` * Copyright 2012-2014 The Dojo Foundation <http://dojofoundation.org/> * Based on Underscore.js 1.6.0 <http://underscorejs.org/LICENSE> * Copyright 2009-2014 Jeremy Ashkenas, DocumentCloud...
$(document).ready(function(){ uxControl.hideAll(); $("#bench-button").on("click", uxControl.showBench); $("#deadlift-button").on("click", uxControl.showDeadlift); $("#squat-button").on("click", uxControl.showSquat); }); var uxControl = { hideAll : function(){ $("#squat-logs").hide(); $("#deadlift-logs"...
var express = require('express'), config = require('./config/config'), glob = require('glob'), mongoose = require('mongoose') app = express() http = require('http').Server(app), io = require('socket.io')(http); mongoose.connect(config.db); var db = mongoose.connection; db.on('error', ...
'use strict'; /** * Created by Adrian on 20-Mar-16. */ module.exports = (IFace) => { return class SanitizeANY extends IFace { static code() { return "ANY" }; static publicName() { return "Any"; } /* Validate if the input is present. * OPTIONS: * max - the maximum JSON ...
import React from 'react'; import PropTypes from 'prop-types'; import { classes } from '../Table.st.css'; /** TableSubtoolbar */ export const TableSubToolbar = ({ dataHook, children }) => { return ( <div className={classes.tableSubToolbar} data-hook={dataHook}> {children} </div> ); }; TableSubToolba...
export { default } from 'ember-flexberry-designer/enums/s-t-o-r-m-c-a-s-e-repository-access-modifier';
Worm = Class.create(Enemy, // We extend the Sprite class { initialize: function(x, y) { //initialization this.super_initialize("Worm", x, y, 50, 50); //this.image = game.assets['images/worm_head_glow.png']; this.image = game.assets['images/worm_head_glow.png']; this.makeBody = 4; this.x = x; this.y = y; this...
(function(){ console.log('BOLA'); }());
const security = require('@tryghost/security'); class Invites { constructor({settingsCache, i18n, logging, mailService, urlUtils}) { this.settingsCache = settingsCache; this.i18n = i18n; this.logging = logging; this.mailService = mailService; this.urlUtils = urlUtils; } ...
'use strict'; export default { baseUrl: { public: 'https://api.zaif.jp/api/1', private: 'https://api.zaif.jp/tapi', stream: 'ws://api.zaif.jp:8888/stream' } };
'use strict'; var path = require('path'); var assert = require('yeoman-generator').assert; var helpers = require('yeoman-generator').test; var os = require('os'); describe('simple-react-browserify:app', function() { before(function(done) { helpers.run(path.join(__dirname, '../app')) .inDir(path.join(os.tm...
import React from 'react' import PropTypes from 'prop-types' import { Button } from 'antd' import CountUp from 'react-countup' import { color } from 'utils' import styles from './user.less' const countUpProps = { start: 0, duration: 2.75, useEasing: true, useGrouping: true, separator: ',', } function User (...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { withStyles } from '@material-ui/core/styles'; import Card from '@material-ui/core/Card'; import CardActions from '@material-ui/core/CardActions'; import CardContent from '@material-ui/core/CardCo...
// Build configuration, defining source and destination // directories and patterns // // srcDir is the source directory var srcDir = './src', destDir = './carpool_app/static', bowerDir = './bower_components'; // src holds the values of source folders var src = { root: srcDir, vendorRoot: bowerDir, ...
function DialogShow(text, time, done){ if ($("#dialog").length > 0) $("#dialog").remove(); var id = $.mobile.activePage.attr("id"); if (!id) id = "content"; $("#" + id).append("<div data-role='popup' id='dialog' data-transition='fade' data-position-to='window'><p>" + text + "</p></div>"...
var vue2; (function (vue2) { var infiniteGrid2 = (function () { function infiniteGrid2() { this.divSize = 1; this.lines = []; } infiniteGrid2.prototype.setDivSize = function (size) { this.divSize = size; }; infiniteGrid2.prototype.setBound...
var Hints = {}; Hints.matchPatterns = function(forward) { var pattern = new RegExp('^' + (forward ? settings.nextmatchpattern : settings.previousmatchpattern) + '$', 'gi'); var nodeIterator = document.createNodeIterator(document.body, 4, null, false); var node; while (node = nodeIterator.nextNode()) { var ...
import React, { Component } from 'react'; export default class SearchForm extends Component { constructor(props) { super(props); } render() { let _this = this; return ( <div className="r searchForm rel"> <form onSubmit={this.props.onSearch}> ...
"use strict"; var _interopRequireWildcard = function (obj) { return obj && obj.__esModule ? obj : { "default": obj }; }; exports.check = check; var util = _interopRequireWildcard(require("../../../util")); var t = _interopRequireWildcard(require("../../../types")); function check(node) { return t.isFunction(node...
// All code points in the `Duployan` script as per Unicode v8.0.0: [ 0x1BC00, 0x1BC01, 0x1BC02, 0x1BC03, 0x1BC04, 0x1BC05, 0x1BC06, 0x1BC07, 0x1BC08, 0x1BC09, 0x1BC0A, 0x1BC0B, 0x1BC0C, 0x1BC0D, 0x1BC0E, 0x1BC0F, 0x1BC10, 0x1BC11, 0x1BC12, 0x1BC13, 0x1BC14, 0x1BC15, 0x1BC16, 0x1BC17, 0x1BC18, ...
var mathModule = require('./math-module') describe('math module', function () { describe('add', function () { it('should correctly add positive numbers', function () { var result = mathModule.add(3, 2) expect(result).to.equal(5) }) it('should correctly add negative numbers', function () { ...
'use strict'; var config = require('../config'), log = require('../logger'); module.exports = function (eventargs) { if (config.meta.env !== 'production') { // logs the middleware name that is about to be registered console.log('Middleware registered: %s', eventargs.name); } else { var logData = {...
// 演示数据 db.checkitem.insert({ "name":"检查DB当前登录用户信息", "target_ip":"server", "target_ip2":"", "options":{ }, "cmd": { "category":"mssql", "res_type":"multi_rows", "command":"select login_name,host_name, host_process_id,login_time from sys.dm_exec_sessions where host_name!=''", ...
/* http://www.JSON.org/json2.js 2009-04-16 Public Domain. NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. See http://www.JSON.org/js.html This file creates a global JSON object containing two methods: stringify and parse. JSON.stringify(value, replacer, space) ...
// generator: wizzi-lab-artifatcs/lib/js/module/gen/main.js, utc time: Fri, 18 Dec 2015 16:07:50 GMT /** WizziModelProduction script for generating WizziModelTypes and WizziModelFactories of this WizziFactoryPackage. */ var util = require('util'); var path = require('path'); var schema = require('wizzi...
// Constructor function Color(r, g, b) { this.r = r; this.g = g; this.b = b; } // Instance methods Color.prototype.string = function() { return 'rgb('+this.r+','+this.g+','+this.b+')'; }; // Class methods // Export class module.exports = Color;
'use strict'; module.exports = function (obj, destName, altNames) { if (!obj || !destName || !altNames || !Array.isArray(altNames)) { return obj; } for (var i = 0, j = altNames.length; i < j; i++) { if (obj[destName]) { return obj; } if (obj[altNames[i]]) { ...
"use strict"; const { data } = require("sdk/self"); const { Cc, Ci } = require("chrome"); function alert(title, msg, status) { let image; if (status === 0) image = data.url("success.png"); else image = data.url("warning.png"); let win = Cc['@mozilla.org/embedcomp/window-watcher;1']. ...
import Place from "../../modules/models/place.js" describe("A place", () => { const place = new Place("Belfast"); it("has a name", () => expect(place.name).toBe("Belfast")) it("has a latitude", () => expect(typeof place.lat).toBe("number")) it("has a longitute", () => expect(typeof place.lng).toBe...
function WalkontableScrollbar(instance, type) { var that = this; //reference to instance this.instance = instance; this.type = type; this.$table = $(this.instance.wtTable.TABLE); //create elements this.slider = document.createElement('DIV'); this.sliderStyle = this.slider.style; this.sliderStyle.pos...
/* 每个需要插入的节点都作为一个标签,标签可以有自己的属性 每个组件可以定义自己包含的组件的子节点和属性 render(渲染):return里是要返回的节点 constructor(构造):设置state的初始值或者绑定事件 componentDidMount:在渲染后,组件挂载之后执行(组件变为了实际的节点) 在标签节点里可以写函数 */ //CSS require('normalize.css/normalize.css'); require('styles/App.scss'); import React from 'react'; import ReactDOM from 'react-dom' //获取图片相关数...
/** * Trabajo Final de Grado - FirewallTool * Universidad Nacional de Itapua * Facultad de Ingenieria. * User: Raul Benitez Netto * Date: 11/08/13 * Time: 20:19 */ function ControllerComponents (raphael, graphic_network_id){ var thiz = this; var _raphael = raphael; var _gra...
var clientModule = require('./client.js'); var client = clientModule.create({id : 1}); var tmpNotification = { id : 1, version : 1, source : 1, target : 2, transfer : 1, fileId : 1, filename : "/foo/bar/baz.txt" }; var notifications = []; notifications.push(tmpNotification); // client.getNotifications...
(function(){ var app = angular.module('home',[]); app.controller('PageController', function(){ this.tab = 1; this.selectTab= function(setTab){ this.tab = setTab || 1; }; this.isSelected= function(checkTab){ return this.tab === checkTab; }; }) app.directive('resumePage', functi...
var world = new VIZI.World({ viewport: document.querySelector("#vizicities-viewport"), layersUI: true, picking: true // center: new VIZI.LatLon(40.01000594412381, -105.2727379358738) // Collada }); var controls = new VIZI.ControlsMap(world.camera, { viewport: world.options.viewport }); var pickControls = ne...
jest.unmock('../calculator-store'); jest.unmock('../../constants/constants'); jest.unmock('immutable'); jest.unmock('flux/utils'); import { EventType } from '../../constants/constants'; import Immutable from 'immutable'; function buildNumberAddedAction(num) { return { eventType: EventType.NUMBER_ADDED, numb...
export * from './drawContour'; export * from './drawDetections'; export * from './drawFaceExpressions'; export * from './DrawBox'; export * from './DrawFaceLandmarks'; export * from './DrawTextField'; //# sourceMappingURL=index.js.map
function is_reached() { var founded = 0; for (var key in this.requires) { for (var obj_key in objectives.db) { if (objectives.db[obj_key].reached && objectives.db[obj_key].name == this.requires[key]) { founded++; } } for (var ach_key in badges...
/** * v0.0.1 * * Copyright (c) 2017 * * Date: 2017/5/9 by Heaven */ import React from 'react'; import PropTypes from 'prop-types'; import DOMPurify from 'dompurify'; import classNames from 'classnames'; import ReactScroll from 'react-scroll'; import { SparkScroll } from '../../ReactSparkScroll'; import Modal fr...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _jsx2 = _interopRequireDefault(require("@babel/runtime/helpers/builtin/jsx")); var _react = _interopRequireDefault(require("react")); var _propTypes = _interopRequireDefault(require("prop-types")); var _rea...
/* eslint-env node */ 'use strict'; const FastbootTransform = require('fastboot-transform'); module.exports = { name: 'ember-offline', options: { nodeAssets: { 'offline-js': { vendor: { include: ['offline.js', 'themes/*'], processTree(input) { return FastbootTrans...
"use strict"; var fs = require('fs'); var path = require('path'); var dns = require('dns'); var net = require('net'); var util = require("util"); var events = require("events"); var utils = require('./utils'); var sock = require('./line_socket'); var server ...
/** * DevExtreme (viz/tree_map/colorizing.range.js) * Version: 16.2.5 * Build date: Mon Feb 27 2017 * * Copyright (c) 2012 - 2017 Developer Express Inc. ALL RIGHTS RESERVED * EULA: https://www.devexpress.com/Support/EULAs/DevExtreme.xml */ "use strict"; var _createColorCodeGetter = require("./colorizing").create...
'use strict'; //region Imports import Argument from './system/argument-check.js'; import CollectionBase from './common/collection-base.js'; import ModelType from './common/model-type.js'; import ModelError from './common/model-error.js'; //endregion //region Private variables const _itemType = new WeakMap(); cons...
var mysql=require('mysql'); var conn=require('./util'); var reserror=require('./error'); var responseFormat=require('../responseFormat'); exports.getById=function (id,obj,next) { conn.query("SELECT * FROM rtext WHERE id=?",[id],function(err,rows){ if (err) throw err; var data=responseFormat.text(ob...
app.controller( 'DeliveryReceiptModalController', [ '$uibModalInstance', 'transferItem', 'UserServices', function( $uibModalInstance, transferItem, UserServices ) { var $ctrl = this; $ctrl.params = { preparedBy: null, checkedBy: null, bearerName: null, bearerId: null, issuedBy: null, appro...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon")); var _jsxRuntime = require("react/jsx-runtime")...
define(function() { function PartsIndicator(src) { var parts = src.parts.map(function(part, index) { return "<span class='code-part-indicator'>" + (index + 1) + ": " + part.name + "</span>" }).join('') this.div = docume...
/** * Plugin dependencies. * * @type {exports} */ var helpers = require('unibot-helpers'); var cheerio = require('cheerio'); /** * Lutakko plugin for UniBot. * * This plugin fetches event information from http://www.jelmu.net/ website. * * Also note that this plugin relies heavily to HTML structure of that si...
var Node = require('../Node'); Node('Comprehension', function(keyType, keyName, valueType, valueName, expr, as, body) { // TODO dry with Each if (!valueType) { this.key = null; this.value = { type: keyType, name: keyName }; } else { this.key = { ...
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 routes = require("./controllers"); var app = express(); // view engine setup app.set("views",...
/* eslint-disable no-console */ export function log(...args) { console.log(...args) } export function warn(...args) { console.warn(...args) } export function error(...args) { console.error(...args) }
/** * some utils function */ 'use strict'; let fs = require('fs'); let path = require('path'); let log = require('./log'); module.exports = { isExist(tplPath){ let p = path.normalize(tplPath); try { fs.accessSync(p, fs.R_OK & fs.W_OK, (err) => { if(err){ ...
var Promise = require("bluebird"); var settings = require("../settings"); var Posts = require("./posts").Posts; var postClient = new Posts(); var Ktype = require("./ktype").Ktype; var ktypeClient = new Ktype(); var Host = require("./host").Host; var hostClient = new Host(); var Accounts = require("./accounts-serve...
import { Math as Math$1, Texture, UVMapping } from 'three/build/three.js'; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _defineProperties(target, props) { for (var i = 0; i < props.length; i...
export const ic_inbox = {"viewBox":"0 0 24 24","children":[{"name":"path","attribs":{"d":"M0 0h24v24H0V0z","fill":"none"},"children":[]},{"name":"path","attribs":{"d":"M19 3H4.99c-1.11 0-1.98.89-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2zm0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19v10z"},"chi...
(function($) { // functions for handling the path // thanks sammy.js // var PATH_REPLACER = "([^\/]+)", // PATH_NAME_MATCHER = /:([\w\d]+)/g, // QUERY_STRING_MATCHER = /\?([^#]*)$/, // SPLAT_MATCHER = /(\*)/, // SPLAT_REPLACER = "(.+)", var _currentPath, _last...
export default { create({Meteor, LocalState}, postId, text) { if (!text) { return LocalState.set('CREATE_COMMENT_ERROR', 'Comment text is required.'); } if (!postId) { return LocalState.set('CREATE_COMMENT_ERROR', 'postId is required.'); } LocalState.set('CREATE_COMMENT_ERROR', null)...
/* LIB */ const radial = require('../radial'); const params = radial.getParams(); /* MODULES */ const request = require('request'); /* CONSTRUCTOR */ (function () { var Nonce = {}; /* PRIVATE VARIABLES */ /* PUBLIC FUNCTIONS */ Nonce.get = function (fn) { var environment = params.environment; v...
module.exports = { entry: './web/index.ts', output: { filename: './dist/web-bundle.js', }, resolve: { extensions: ['', '.webpack.js', '.web.js', '.js', '.ts'] }, module: { loaders: [{ test: /\.ts$/, loader: 'ts-loader' }] } };
// File List // ========= // // The List is an object for tracking all files that karma knows about // currently. // Dependencies // ------------ 'use strict'; require('core-js'); var from = require('core-js/library/fn/array/from'); var Promise = require('bluebird'); var mm = require('minimatch'); var Glob = require...
'use strict'; /** * Module dependencies. */ var should = require('should'), mongoose = require('mongoose'), User = mongoose.model('User'), Spork = mongoose.model('Spork'); /** * Globals */ var user, spork; /** * Unit tests */ describe('Spork Model Unit Tests:', function () { beforeEach(function (done)...
const Discord = require('discord.js'); const settings = require('../settings.json'); exports.run = (client, message, args) => { let reason = args.slice(1).join(' '); let user = message.mentions.users.first(); let logchannel = message.guild.channels.find('name', 'logs'); if (!logchannel) return message.reply('I ...
module.exports = { name: 'Search FlashCard', version: '2.0.0', description: 'This extensions is to search flashcard site (flashcard.my.geek.nz).', author: 'Mohamed Alsharaf', manifest_version: 2, icons: { '16': 'icons/16.png', '128': 'icons/128.png', '200': 'icons/icon.png' }, permissions: [ '<all_ur...
/* ___ create, usage ___ en_US ___ node kinesthetic.bin.js create <name> options: --help display help message --region <string> AWS region ___ $ ___ en_US ___ name is required: a stream name is required. ___ delete, usa...
// @flow import React from 'react' import LyraFormBuilderContext from './LyraFormBuilderContext' import {FormBuilderInput} from '../FormBuilderInput' import {Marker} from '../typedefs' type PatchChannel = { subscribe: () => () => {}, receivePatches: (patches: Array<*>) => void } type Props = { value: ?any, sc...
!function(o){o.modal=function(e){window.__zeptoModal?o("#zeptoModal").css("display","block"):(o(document.body).append(o('<div id="zeptoModal" style="font-family:Arial, sans-serif;position:fixed;z-index:1;width:100%;height:100%;overflow:auto;left:0px;top:0px;background-color:rgba(0,0,0,0.4);"><div role="container" style...
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M5 15h2V8.41L18.59 20 20 18.59 8.41 7H15V5H5v10z" /> , 'NorthWestOutlined');