code
stringlengths
2
1.05M
// @flow type T = { constructor(this : number) : void }
angular.module('ra.flash.services', []). run(function($rootScope, Flash) { $rootScope.$on('$routeChangeSuccess', function() { Flash.showOnNextPage(); }); }). factory('Flash', function() { var service = {}, types = [ 'generic', 'success', 'info', '...
var bitcore = require('bitcore'); angular.module('copayApp.controllers').controller('paymentUriController', function($rootScope, $scope, $routeParams, $location, go) { // Build bitcoinURI with querystring var query = []; angular.forEach($location.search(), function(value, key) { query.push(key + "=" + value...
export { default } from 'ember-light-table/components/lt-head';
/* YeAPF 0.8.50-66 built on 2016-10-11 15:59 (-3 DST) Copyright (C) 2004-2016 Esteban Daniel Dortta - dortta@yahoo.com */ _setLogFlagLevel(1,2);console.log("Sandbox stage2"); var sandboxIFCObj=function(){return that={lastStatus:0,Connected:function(){0>=that.lastStatus&&(console.log("ONLINE------------"),that.lastStatu...
(function() { 'use strict'; angular .module('app.modelSettings') .run(appRun); appRun.$inject = ['routerHelper']; /* @ngInject */ function appRun(routerHelper) { routerHelper.configureStates(getStates()); } function getStates() { return [ { ...
'use strict'; var tape = require('../..'); tape.test('test-a', function (t) { t.ok(global.module_a, 'module-a loaded in same context'); t.pass('test ran after module-a was loaded'); t.end(); });
hcb = require("./.hotcoffee/hcb.js"); // load Hot Coffee Brewer (autobuilds itself if hcb not found) hcb.buildAll(); // build all coffee files, looks for *.coffee and *.co files // in ./src, compiles them and writes *.js files to ./lib hcb.test("./sr...
orion.dictionary.addDefinition('introTypedA', 'root', { type: String, label: 'Intro First Typed Statement' }); orion.dictionary.addDefinition('introTypedB', 'root', { type: String, label: 'Intro Second Typed Statement' }); orion.dictionary.addDefinition('introTypedC', 'root', { type: String, label: 'Intro...
"use strict"; /** * @module gallery-anim-sequence */ /********************************************************************** * Manages a sequence of animations, so you don't have to chain them * manually. Each item in the sequence can be a single animation, an array * of animations to perform in parallel, a func...
var bodyParser = require('body-parser'), express = require('express'), morgan = require('morgan'), path = require('path'); var app = express(); var config = require('./config'); app.use(bodyParser.urlencoded({ extended: true })); app.use(bodyParser.json()); app.use(function(req, res, next) { res.setH...
/** * Created by mauricio on 3/29/15. */ 'use strict' var d3 = window.d3 var builtInEvaluator = require('./eval').builtIn var polyline = require('../graph-types/polyline') var datumDefaults = require('../datum-defaults') module.exports = function (chart) { var derivativeDatum = datumDefaults({ skipTip: true, ...
define(function() { // Match a standalone tag return (/^<(\w+)\s*\/?>(?:<\/\1>|)$/); });
"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")...
module.exports = { module: { rules: [ { test: /\.js$/, exclude: /node_modules/, use: { loader: 'babel-loader', options: { presets: ['env'], }, }, }, ], }, }
from .delimited import DelimitedProtocol; /** * @extends net.protocols.delimited.DelimitedProtocol */ exports.RTJPProtocol = Class(DelimitedProtocol, function(supr) { this.init = function() { var delimiter = '\r\n'; supr(this, 'init', [delimiter]); this.frameId = 0; } this.connectionMade = function() { i...
var find = require('lodash/collection/find'); var util = require('chessground').util; var drag = require('chessground').drag; module.exports = function(ctrl, e) { if (e.button !== undefined && e.button !== 0) return; // only touch or left click var role = e.target.getAttribute('data-role'), color = e.target.getA...
import PropTypes from 'prop-types'; import React from 'react'; import ReactDOM from 'react-dom'; import intoTheVoid from './utils'; class PopupMenu extends React.Component { constructor(props) { super(props); this.clickHandlerBound = this.clickHandler.bind(this); this.contextMenuHandlerBound = this.con...
module.exports = function(grunt) { 'use strict'; grunt.initConfig({ sass: { options: { outputStyle: 'compressed' }, dist: { files: { './theme-assets/css/patternpack-theme.css': './theme-assets/scss/patternpack-theme.scss' } } }, postcss: { ...
// Copyright (c) 2012 Ecma International. All rights reserved. // Ecma International makes this code available under the terms and conditions set // forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the // "Use Terms"). Any redistribution of this code must retain the above // copyright and this n...
/* * jquery.draggable * https://github.com/ducksboard/gridster.js * * Copyright (c) 2012 ducksboard * Licensed under the MIT licenses. */ ;(function(root, factory) { 'use strict'; if(typeof exports === 'object') { module.exports = factory(require('jquery')); } else if (typeof define === 'fun...
import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon([/*#__PURE__*/_jsx("circle", { cx: "12", cy: "12", r: "5", opacity: ".3" }, "0"), /*#__PURE__*/_jsx("path", { d: "M4 4v4l4-4zm12 0 4 4V4zm4 16v-4l-4 4zM4 20h4l-4-4zm15-8c0-3.87-3.13...
var is_shut; function Loic() { this.is_shut = false; } Loic.prototype.shut_up = function() { this.is_shut = true; console.log("Shut up Loic!"); } Loic.prototype.state = function() { if(this.is_shut) { console.log("Loic is currently shut"); } else { console.log("Loic is not shut yet, that must be fixed...
//>>built define({findLabel:"Suchen:",findTooltip:"Text zum Suchen eingeben",replaceLabel:"Ersetzen durch:",replaceTooltip:"Text zum Ersetzen eingeben",findReplace:"Suchen und ersetzen",matchCase:"Gro\u00df- und Kleinschreibung abgleichen",matchCaseTooltip:"Gro\u00df- und Kleinschreibung abgleichen",backwards:"Zur\u00f...
"use babel"; // @flow import styled from "styled-components"; const ControlPanelIcon = styled.div` cursor: ${props => (props.isPointer ? "pointer" : undefined)}; &::before { font-size: 12px; width: 12px; height: 12px; } `; export default ControlPanelIcon;
// flow-typed signature: b64015bf1b7afef856bf923f730a799c // flow-typed version: <<STUB>>/babel-runtime_v^6.22.0/flow_v0.38.0 /** * This is an autogenerated libdef stub for: * * 'babel-runtime' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share your work wi...
import AccountStore from './store/account'; export default new AccountStore();
/** * read-file <https://github.com/assemble/read-file> * * Copyright (c) 2014 Jon Schlinkert, Brian Woodward, contributors. * Licensed under the MIT license. */ 'use strict'; var fs = require('graceful-fs'); var async = require('async'); var normalize = require('file-normalize'); var file = module.exports = {}; ...
'use strict';var collection_1 = require('angular2/src/facade/collection'); var lang_1 = require('angular2/src/facade/lang'); var exceptions_1 = require('angular2/src/facade/exceptions'); var _EMPTY_ATTR_VALUE = ''; // TODO: Can't use `const` here as // in Dart this is not transpiled into `final` yet... var _SELECTOR_RE...
const DrawCard = require('../../drawcard.js'); class Aggo extends DrawCard { setupCardAbilities(ability) { this.action({ title: 'Stand a Bloodrider (if a Summer plot is revealed)', condition: () => this.game.anyPlotHasTrait('Summer'), target: { activeProm...
/** * i18n-merge-keysets * ================== * * Технология переехала в пакет `enb-bem-i18n`. */ var Vow = require('vow'); var asyncRequire = require('../lib/fs/async-require'); module.exports = require('../lib/build-flow.js').create() .name('i18n-merge-keysets') .deprecated('enb', 'enb-bem-i18n') .d...
Class(Ogat.Nodes, "Movement").inherits(Serpentity.Node)({ types : { position : Ogat.Components.Position, motion : Ogat.Components.Motion, bounds : Ogat.Components.Bounds } });
/* Parse - packet parsing */ var protocol = require('./protocol'); module.exports.header = function(buf, packet) { packet.cmd = protocol.types[buf[0] >> protocol.CMD_SHIFT]; packet.retain = (buf[0] & protocol.RETAIN_MASK) !== 0; packet.qos = (buf[0] >> protocol.QOS_SHIFT) & protocol.QOS_MASK; packet.dup = (buf...
// jquery.pjax.js // copyright chris wanstrath // https://github.com/defunkt/jquery-pjax (function($){ // When called on a container with a selector, fetches the href with // ajax into the container or with the data-pjax attribute on the link // itself. // // Tries to make sure the back button and ctrl+click work the...
import FileInput from './components/FileInput'; export default FileInput;
Template.entryForgotPassword.helpers({ error: function() { return Session.get('entryError'); }, logo: function() { return Meteor.call('entryLogo'); } }); Template.entryForgotPassword.events({ 'submit #forgotPassword': function(event) { event.preventDefault(); Session.set('email', $('input[ty...
goog.foo.foo1.apply(null, [1, 2, 3]); goog.bar.bar1.call(null, 1, 2, 3); // toRequire: goog.bar // toRequire: goog.foo
export default { appVersion : navigator.appVersion, userAgent : navigator.userAgent, isIE : -1 < navigator.userAgent.indexOf("MSIE "), isIE6 : -1 < navigator.appVersion.indexOf("MSIE 6"), isIE7 : -1 < navigator.appVersion.indexOf("MSIE 7"), isIE8 : -1 < navigator.appVersion.indexOf("M...
/* global nodecg */ document.addEventListener('click', e => { 'use strict'; const elWithDialogAttr = e.target.closest('[nodecg-dialog]'); if (elWithDialogAttr) { const dialogName = elWithDialogAttr.getAttribute('nodecg-dialog'); const dialogIg = nodecg.bundleName + '_' + dialogName; const dialogElement = wind...
'use strict'; /** * @ngdoc service * @name ng.$q * @requires $rootScope * * @description * A promise/deferred implementation inspired by [Kris Kowal's Q](https://github.com/kriskowal/q). * * [The CommonJS Promise proposal](http://wiki.commonjs.org/wiki/Promises) describes a promise as an * interface for inter...
const createCard = require('../create-card'); module.exports = createCard({ name: 'image', type: 'dom', render(opts) { let payload = opts.payload; // let version = opts.options.version; let dom = opts.env.dom; if (!payload.src) { return ''; } le...
import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon( /*#__PURE__*/_jsx("path", { d: "m4 18 8.5-6L4 6v12zm9-12v12l8.5-6L13 6z" }), 'FastForwardSharp');
/** * @license * lodash (Custom Build) <https://lodash.com/> * Build: `lodash exports="amd" -d -o ./main.js` * Copyright jQuery Foundation and other contributors <https://jquery.org/> * Released under MIT license <https://lodash.com/license> * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> * Copy...
(function() { angular.module('Samiverb').controller("OutputController", ['$scope', 'VerbObjFactory', 'VerbTaskFactory', function($scope, VerbObjFactory, VerbTaskFactory){ $scope.$watch(VerbObjFactory.isVerbAvailable, function(){ $scope.verb = VerbObjFactory.getVerbObj(); }); $scope.$watch(VerbObjF...
function sortNumbers(args) { var firstNum = +args[0], secondNum = +args[1], thirdNum = +args[2]; if (firstNum >= secondNum && firstNum >= thirdNum) { if (secondNum >= thirdNum) { return firstNum + ' ' + secondNum + ' ' + thirdNum; } else { return firstNum + ' ' + thirdNum + ' ' + secondNum; ...
'use strict'; /**@type {{[k: string]: ModdedMoveData}} */ let BattleMovedex = { /****************************************************************** Perfect accuracy moves: - base power increased to 90 Justification: - perfect accuracy is too underpowered to have such low base power - it's not even an adequate c...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _app = require('firebase/app'); var Firebase = _interopRequireWildcard(_app); require('firebase/auth'); require('firebase/database'); var _actions = require('./actions'); var Actions = _interopRequireWildcard(_actions); functio...
import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon( /*#__PURE__*/_jsx("path", { d: "m2 19.99 7.5-7.51 4 4 7.09-7.97L22 9.92l-8.5 9.56-4-4-6 6.01-1.5-1.5zm1.5-4.5 6-6.01 4 4L22 3.92l-1.41-1.41-7.09 7.97-4-4L2 13.99l1.5 1.5z" }), 'StackedLine...
import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon( /*#__PURE__*/_jsx("path", { d: "M14 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8l-6-6zm-2 8c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm4 8H8v-.57c0-.81.48-1.53 1.22-1.85.85-.3...
var searchData= [ ['size',['size',['../structtacopie_1_1tcp__client_1_1write__result.html#acee9eca954a6f1b6283c6188eead2ab1',1,'tacopie::tcp_client::write_result::size()'],['../structtacopie_1_1tcp__client_1_1read__request.html#ad8b69f61884c60596aface363ca947a3',1,'tacopie::tcp_client::read_request::size()']]], ['s...
import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon( /*#__PURE__*/_jsx("path", { d: "M20 5.41 18.59 4 7 15.59V9H5v10h10v-2H8.41z" }), 'CallReceived');
(function (RongCall, dependencies) { /* 登录逻辑 */ var win = dependencies.win, Vue = win.Vue; var utils = RongCall.utils, setting = RongCall.setting; function toInfoPage(data) { var instance = RongCall.instance; instance.$router.push({ name: 'call', params: data }); } RongCal...
'use strict' const {Buffer} = require('buffer') const v8Util = process.atomBinding('v8_util') const {ipcRenderer, isPromise, CallbacksRegistry} = require('electron') const callbacksRegistry = new CallbacksRegistry() const remoteObjectCache = v8Util.createIDWeakMap() // Convert the arguments object into an array of ...
(function (chaiJquery) { // Module systems magic dance. if (typeof require === "function" && typeof exports === "object" && typeof module === "object") { // NodeJS module.exports = chaiJquery; } else if (typeof define === "function" && define.amd) { // AMD define(['jquery'], function ($) { r...
/* * Author: Zion Orent <zorent@ics.com> * Copyright (c) 2015 Intel Corporation. * * This program and the accompanying materials are made available under the * terms of the The MIT License which is available at * https://opensource.org/licenses/MIT. * * SPDX-License-Identifier: MIT */ var emg_lib = require("jsupm_emg")...
"use strict"; var modRewrite = require("connect-modrewrite"); module.exports = function (grunt) { var base = grunt.option("baseDir") || "", protractorConf = grunt.option("ci") ? "tests/e2e/protractor.saucelabs.conf.js" : "tests/e2e/protractor.conf.js" ; ...
CKEDITOR.plugins.setLang("pastetext","zh-cn",{button:"粘贴为无格式文本",title:"粘贴为无格式文本"});
import {expect} from 'chai' import Ember from 'ember' const {merge} = Ember import {$hook} from 'ember-hook' import wait from 'ember-test-helpers/wait' import { expectBunsenInputNotToHaveError, expectBunsenInputToHaveError, expectLabel } from './common' /** * Checks that the inputs for date and time are displa...
$(document).on('ajaxComplete ready', function () { // Initialize tag inputs. $('select[data-provides="anomaly.field_type.multiple"]:not([data-initialized])').each(function () { $(this) .attr('data-initialized', '') .select2({ containerCssClass: 'form-control cus...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototy...
'use strict'; /** * Factory / Service * @type {module} */ // Socket Service to connect with Node app var app = angular.module('musicPlayerApp.Factories', []) .factory('socket', ['$rootScope', '$window', function ($rootScope, $window) { var socket = io.connect('http://localhost:3000', { 'query': 'token='...
(function(){var d=window.cfx,b=window.sfx,g={Version:"7.4.5649.31763"};d.axistrend=g;var e=function a(){a._ic();this.f=this.g=0;this.a=this.c=null;this._0_1()};g.AxisTrend=e;e.prototype={_0_1:function(){this.e=new b.m;this.i=new b.m;this.h=new b.m;this.i._cf(b.m.k(147,226,78));this.h._cf(b.m.k(242,108,91));this.e._cf(b...
define([ 'config/types', 'config/namespaces', 'utils/create', 'utils/defineProperty', 'utils/matches', 'utils/warn', 'utils/createElement', 'render/DomFragment/Element/initialise/getElementNamespace', 'render/DomFragment/Element/initialise/createElementAttributes', 'render/DomFragment/Element/initialise/appen...
'use strict'; /** * @author hustcer * @license MIT * @copyright TraceInvest.com * @create 06/24/2015 */ let vm = require('vm'), fs = require('fs'), _ = require('lodash'), printf = require('printf'), yaml = require('js-yaml'), blessed = require('blessed'), ...
// Global vars var pymChild = null; var isMobile = false; /* * Initialize the graphic. */ var onWindowLoaded = function() { pymChild = new pym.Child({}); pymChild.onMessage('on-screen', function(bucket) { ANALYTICS.trackEvent('on-screen', bucket); }); pymChild.onMessage('scroll-depth', funct...
var searchData= [ ['multipassiterator',['MultipassIterator',['../class_arbiter_1_1_multipass_iterator.html',1,'Arbiter']]], ['mutuallyexclusiveconstraints',['MutuallyExclusiveConstraints',['../struct_arbiter_1_1_exception_1_1_mutually_exclusive_constraints.html',1,'Arbiter::Exception']]] ];
define({ "symbolologyTabLabel": "Configurar simbología", "facilitiesDescription": "Capas de instalaciones", "demographicsDescription": "Capa de demografía", "settingsTitle": "Ajustes", "spillLocationLabel": "Ubicación de vertido", "spillLocationButtonLabel": "Configurar ajustes de ubicación de vertido", "...
'use strict'; // From https://github.com/tleunen/babel-plugin-module-resolver/blob/master/src/utils.js const path = require('path'); const resolve = require('resolve'); const nodeResolvePath = (modulePath, basedir, extensions) => { try { return resolve.sync(modulePath, { basedir, extensions }); } catch (e) {...
var roundUp = 1.5; rounded = Math.round(roundUp); console.log(rounded);
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), errorHandler = require('./errors.server.controller'), TheCleanCrud = mongoose.model('TheCleanCrud'), _ = require('lodash'); /** * Create a The clean crud */ exports.create = function(req, res) { var theCleanCrud = new TheCleanCrud...
define(["require", "exports"], function (require, exports) { var PathObserver = (function () { function PathObserver(observerLocator, subject, path) { this.observerLocator = observerLocator; this.path = path.split('.'); this.subject = subject; this.observers =...
var meta = [ {"term": "--Metadata--"}, {"term":"_event_id"}, {"term":"calib" }, {"term":"channel"}, {"term":" delta"}, {"term":"depth_in_km"}, {"term":"description"}, {"term":"endtime"}, {"term":"latitude"}, {"term":"location"}, {"term":"...
"use strict"; // core modules var stream = require('stream') var util = require('util') // third party modules var es = require('event-stream') process.stdin.setRawMode(true) process.stdin.resume() var keypresser = new stream.Readable({objectMode:true}) keypresser._read = function(){} process.stdin.on('data'...
const crypto = require('crypto'); module.exports = { buildHash(key, len) { key = `${key}_${Date.now()}_${Math.random()}`; let hash = crypto .createHash('md5') .update(key) .digest('hex'); return hash.substring(0, len || 12); }, asyncBusinessFn(fn) { return async (req, res, next...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M21 9V7c0-1.65-1.35-3-3-3H6C4.35 4 3 5.35 3 7v2c-1.65 0-3 1.35-3 3v5c0 1.65 1.35 3 3 3h18c1.65 0 3-1.35 3-3v-5c0-1.65-1.35-3-3-3zM5 7c0-.55.45-1 1-1h12c.55 0 1 .45 1 1v2.78c-.61.55-1 1...
var getJasmineRequireObj = (function (jasmineGlobal) { var jasmineRequire; if (typeof module !== 'undefined' && module.exports && typeof exports !== 'undefined') { if (typeof global !== 'undefined') { jasmineGlobal = global; } else { jasmineGlobal = {}; } jasmineRequire = exports; } e...
const cfg = {}; cfg.dbConfig = process.env.DATABASE_URL; module.exports = cfg;
'use strict'; //----------------------------------------------------------------------------- // Dependencies //----------------------------------------------------------------------------- import gulp from 'gulp'; import sass from 'gulp-sass'; import serve from 'gulp-serve'; //-----------------...
'use strict'; var validateStyleMin = require('./validate_style.min'); var ParsingError = require('./error/parsing_error'); var jsonlint = require('jsonlint-lines-primitives'); /** * Validate a Mapbox GL style against the style specification. * * @alias validate * @param {Object|String|Buffer} style The style to b...
export function pickAll(propsToPick, obj) { if (arguments.length === 1) return _obj => pickAll(propsToPick, _obj) if (obj === null || obj === undefined) { return undefined } const keysValue = typeof propsToPick === 'string' ? propsToPick.split(',') : propsToPick const willReturn = {} let counter =...
/* * Author: Jon Trulson <jtrulson@ics.com> * Copyright (c) 2016 Intel Corporation. * * This program and the accompanying materials are made available under the * terms of the The MIT License which is available at * https://opensource.org/licenses/MIT. * * SPDX-License-Identifier: MIT */ var sensorObj = requi...
/** * Created by Raphson on 9/24/16. */ let keyMirror = require('keymirror'); let _ = require('lodash'); module.exports = keyMirror({ USER_SIGNUP : null, USER_LOGIN : null, AUTH_USER : null, USER_UPDATE : null, PROJECT_SHARE: null, GET_PROJECTS: null, GET_PROJECT: null, POST_JOB: null,...
/* */ 'use strict'; exports.__esModule = true; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : {'default': obj}; } var _deprecate = require('./deprecate'); var _deprecate2 = _interopRequireDefault(_deprecate); var _useBeforeUnload = require('./useBeforeUnload'); var _useBeforeUnload2 = _i...
exports.extractPropertiesForDisplay = function(source, ignoreId) { var propertiesForDisplay = []; if (!source || (!ignoreId && source.id !== +source.id) || _.keys(source).length === 0) { return propertiesForDisplay; } _.each(_.pairs(source), function(keyValue) { var isDate = typeof keyValue[1] === 'obj...
'use strict'; var configure = require('./configure'); module.exports = function (text) { return configure.markdown(text); };
import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon( /*#__PURE__*/_jsx("path", { d: "M5 6h14c.55 0 1-.45 1-1s-.45-1-1-1H5c-.55 0-1 .45-1 1s.45 1 1 1zm15.16 1.8c-.09-.46-.5-.8-.98-.8H4.82c-.48 0-.89.34-.98.8l-1 5c-.12.62.35 1.2.98 1.2H4v5c0 ....
const mongoose = require('mongoose'); const encryption = require('../util/encryption'); const Schema = mongoose.Schema; const userSchema = new Schema({ email: { type: Schema.Types.String, required: true }, hashedPassword: { type: Schema.Types.String, required: true }, name: { type: Schema...
try { // If jquery is loaded this will run. $(document).ready(function() { jQuery.ajaxSetup({ "beforeSend": function(xhr) {xhr.setRequestHeader("Accept", "text/javascript")} }) $("#ie-no-more-close-button").click(function() { $.ajax({ type: "POST", url: '/ie_hide_messages', ...
export default function createFreshScope() { return { self: null, block: null, component: null, view: null, attrs: null, locals: {}, localPresent: {} }; }
/* * https://github.com/jkuetemeier/gulp-tasks-common * * Copyright (c) 2014 Jörg Kütemeier * Licensed under the MIT license. */ // Note the new way of requesting CoffeeScript since 1.7.x require('coffee-script/register'); // This bootstraps your Gulp's main file require('./gulpfile.coffee');
'use strict'; var _ = require('underscore'); var Hoard = require('src/backbone.hoard'); var MetaStore = require('src/meta-store'); describe("MetaStore", function () { beforeEach(function () { Hoard.backend = { setItem: this.sinon.stub(), getItem: this.sinon.stub(), removeItem: this.sinon.stub(...
function j(a, b) { var c, d, g, k, l = e, m, n = b[a]; n && typeof n == "object" && typeof n.toJSON == "function" && (n = n.toJSON(a)); typeof h == "function" && (n = h.call(b, a, n)); switch (typeof n) { case "string": return i(n); case "number": return i...
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2022 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Converts from world X coordinates (pixels) to tile X coordinates (tile units), factoring in the * layer's position, scale and scroll. *...
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties"; import * as React from 'react'; import { isFragment } from 'react-is'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import { useThemeVariants } from '@mat...
// I18N constants // LANG: "en", ENCODING: UTF-8 | ISO-8859-1 // Author: Mihai Bazon, http://dynarch.com/mishoo // FOR TRANSLATORS: // // 1. PLEASE PUT YOUR CONTACT INFO IN THE ABOVE LINE // (at least a valid email address) // // 2. PLEASE TRY TO USE UTF-8 FOR ENCODING; // (if this is not possible, plea...
var cheerio = require('cheerio'), should = require('chai').should(), highlight = require('../../../lib/util/highlight'); describe('code', function(){ var code = require('../../../lib/plugins/tag/code'); var dummy = [ 'var dummy = function(){', ' alert("dummy");', '});' ].join('\n'); var cont...
import createTestHelpers from '../createTestHelpers'; const {expectTransform, expectNoChange} = createTestHelpers(['arg-rest']); describe('Arguments variable to ...args', () => { it('does not replace arguments outside a function', () => { expectNoChange( 'console.log(arguments);' ); }); it('replac...
(function(c){var a="ro-RO",b=c.cultures,e=b.en,f=e.calendars.standard,d=b[a]=c.extend(true,{},e,{name:a,englishName:"Romanian (Romania)",nativeName:"română (România)",language:"ro",numberFormat:{",":".",".":",",percent:{pattern:["-n%","n%"],",":".",".":","},currency:{pattern:["-n $","n $"],",":".",".":",",symbol:"lei"}...
/** * This file holds a list of all no-argument functions and single-character * symbols (like 'a' or ';'). * * For each of the symbols, there are three properties they can have: * - font (required): the font to be used for this symbol. Either "main" (the normal font), or "ams" (the ams fonts). * - group (re...
/** * @author Steven Rogers <soldoutactivist@gmail.com> * @copyright 2015 Photon Storm Ltd. * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} */ /** * This is a stub for the Phaser Debug Class. * It allows you to exclude the default Debug from your build...