code
stringlengths
2
1.05M
const express = require('express'); const router = express.Router(); const url = require('url'); module.exports = (server) => { router.post('/auth/login', (req, res, next) => { let users = server.db.getState().users, matchedUser = users.find((user) => { return user.login.toUpperCase() === req.body.login.toU...
(function registerCloseWindowEvent(){ var hotcodepush = false; Meteor._reload.onMigrate(function () { hotcodepush = true; return [true]; }); window.addEventListener('beforeunload', function(e) { if (!hotcodepush && $('#message').val() && $('#message').val().length) { e.returnValue = ...
'use strict' var path = require('path') module.exports = function (grunt) { grunt.initConfig({ clean: [ 'snippets/*' ], wrap: { files: { dest: 'snippets', src: [ 'templates/*.js' ] }, header: 'sublime/snippet-header.txt', footer: 'sublime/snippet-footer.txt' } ...
import React from 'react'; import { shallow } from 'enzyme'; import PieSeries from '../../../src/components/PieSeries/PieSeries'; import Series from '../../../src/components/Series'; describe('<PieSeries />', function () { it('renders a <Series />', function () { const wrapper = shallow(<PieSeries id="mySeries...
"use strict"; let Bedrock = Object.create (null); Bedrock.version = "1.6.4"; Bedrock.Enum = { create: function () { let _ = Object.create (null); // function to create an enumerated object let make = function (name, value) { //console.log ("enumerate '" + name + "' = " + value)...
"use strict"; var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; var NumberField_1 = require("../field/NumberFiel...
version https://git-lfs.github.com/spec/v1 oid sha256:3096a1d89f03cd96c92b7a90b529301ac52bc0659b9023a53da136376bd2e932 size 12754
!function(o){o.TheaterJS.prototype.keyboards.pt=["qwertyuiop","asdfghjklç","zxcvbnm"]}(window);
'use strict'; var fs = require('fs'); module.exports = { secure: { ssl: false, // it was true by default privateKey: './config/sslcerts/key.pem', certificate: './config/sslcerts/cert.pem', caBundle: './config/sslcerts/cabundle.crt' }, port: process.env.PORT || 3001, // Binding to 127.0.0.1 is ...
'use strict' // Default configuration module.exports = { model: { iterations: 100 }, watch: false, filepath: null, minifyify: { map: false } }
var debug = function () {}; /*! * refs */ var SLICE = Array.prototype.slice; var CONCAT = Array.prototype.concat; var ALL_EVENT = '__all__'; /** * EventProxy. An implementation of task/event based asynchronous pattern. * A module that can be mixed in to *any object* in order to provide it with custom events. * Y...
import { App } from '../index'; import Footer from 'components/Footer'; import ProgressBar from 'components/ProgressBar'; import expect from 'expect'; import { shallow, mount } from 'enzyme'; import React from 'react'; describe('<App />', () => { it('should render the logo', () => { const renderedComponent = sh...
/** * MailDev - mailserver.js */ // NOTE - simplesmtp is for backwards compatibility with 0.10.x var simplesmtp = require('simplesmtp'); var SMTPServer = require('smtp-server').SMTPServer; var MailParser = require('mailparser').MailParser; var events = require('events'); var fs = require('fs'); var os = require('os...
/* * 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...
exports.ok_test = function(test){ test.ok(true, "this assertion should pass"); test.done(); };
var strftime = require("strftime").utc(); var fs = require("fs"); require("colors"); module.exports = function (config) { config = config || {}; var exports = {}; config.levels = config.levels || { "trace": 0, "debug": 1, "log": 2, "info": 3, "warn": 4, "error": 5, "fatal": 6 } config.filename = c...
import { applyMiddleware, createStore } from 'redux'; import reducer from '../reducers/reducer'; import thunkMiddleware from 'redux-thunk'; const createStoreWithMiddleware = applyMiddleware( thunkMiddleware )(createStore); export default createStoreWithMiddleware(reducer);
function DatasetTable() { this.connection = new Connection(); this.ops = new Options(this); this.dataset = new CollectionManager(this, {name: 'dataset', flag_sidebar: false}); this.tooltip = new Tooltip(); this.contextmenu = new ContextMenu(); this.modal = new Modal(); this.hierarchy = ...
/** * -------------------------------------------------------------------------- * Bootstrap (v5.1.3): collapse.js * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) * -------------------------------------------------------------------------- */ import { defineJQueryPlugin, getElement,...
/** * 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'; module.exports = { moduleType: 'locale', name: 'ar', dictionary: {}, format: { days: ['ا...
particlesJS('particles-js', { particles: { color: '#000', // Color del vertice color_random: false, shape: 'edge', // "circle", "edge" or "triangle" // Establecemos cual de las 3 figuras queremos para vertice opacity: { opacity: 1, // Opacidad del vertice anim: { enable: true, ...
{ babelHelpers.inherits(Test, _Foo); function Test() { var _ref, _babelHelpers$get; var _this; babelHelpers.classCallCheck(this, Test); woops.super.test(); _this = babelHelpers.possibleConstructorReturn( this, (Test.__proto__ || Object.getPrototypeOf(Test)).call(this) ); b...
import Ember from 'ember'; export default function aggregateQuery (store, config, type, query) { var url = config.host + '/api/' + type + '/aggregate?query=' + JSON.stringify(query); return Ember.$.ajax(url, 'GET'); };
"use strict"; module.exports = { //copy all the files from the various locations (src, dependencies) into the build folder copy: { // Copy the local files found in the assets folder to the assets folder in the build directory. //The build directory is a staging area where we can freely manulip...
// Copyright (C) 2008 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed t...
import { Meteor } from 'meteor/meteor'; import md5 from 'md5'; import { ValidatedMethod } from 'meteor/mdg:validated-method'; import { setAdminSchema, removeAdminSchema, setNameSchema, setAvatarSchema, } from './schema.js'; export const setAdmin = new ValidatedMethod({ name: 'users.setAdmin', v...
'use strict'; /** * @ngdoc function * @name cpWebApp.controller:SigninCtrl * @description * # SigninCtrl * Controller of the cpWebApp */ angular.module('cpWebApp') .controller('ProfileCtrl', function ($scope, $rootScope, $location, authService, growl) { $scope.currentPassword = ""; $scope.n...
/** * 标尺线 * * @author zhangq * @date 2017-06-20 */ Ext.define('Brick.portal.layout.RulerLine', { extend: 'Ext.Component', /** * 方向(`v` 或 `h`) */ dir: 'v', x: 0, y: 0, renderTo: document.body, initComponent: function () { this.autoEl = { tag: 'div', ...
lychee.define('game.scene.Overlay').includes([ 'lychee.ui.Graph' ]).exports(function(lychee, global) { var Class = function(game, settings) { this.game = game; this.__loop = game.loop; this.__root = null; this.__visible = true; lychee.ui.Graph.call(this, game.renderer); this.reset(settings); }; ...
import React from 'react' import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection' const SelectTypeExamples = () => ( <ExampleSection title='Usage'> <ComponentExample title='Select' description='Defau...
// Regular expression that matches all symbols in the `Miao` script as per Unicode v10.0.0: /\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]/;
var gulp = require('gulp'); var gutil = require('gulp-util'); var bower = require('bower'); var sass = require('gulp-sass'); var cleanCss = require('gulp-clean-css'); var rename = require('gulp-rename'); var sh = require('shelljs'); var fs = require('fs'); var shell = require('gulp-shell'); var deleteLines = require(...
'use strict'; var lrSnippet = require('connect-livereload')({port: 35729}); var mountFolder = function (connect, dir) { return connect.static(require('path').resolve(dir)); }; module.exports = function (grunt) { // load all grunt tasks require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks); grunt....
App.Pin = DS.Model.extend({ title: DS.attr('string'), body: DS.attr('string'), user: DS.belongsTo('user'), createdAt: DS.attr('date'), updatedAt: DS.attr('date'), });
features["DOM.Element.exists"] = !!(window.Element);
const webpack = require('webpack') const merge = require('webpack-merge') const common = require('./webpack.common.js') const UglifyJSPlugin = require('uglifyjs-webpack-plugin') module.exports = merge(common, { plugins: [ new webpack.DefinePlugin({ 'process.env.NODE_ENV': JSON.stringify('production') }...
import getElements from '../utilities/getElements'; const resetTabs = (tabs, tabpanels, activeClass) => { tabs.forEach((tab) => { tab.classList.remove(activeClass || 'sprk-c-Tabs__button--active'); tab.removeAttribute('tabindex'); tab.setAttribute('aria-selected', 'false'); tabpanels.forEach((panel) ...
/** * Manages Mongo DB database connection. */ 'use strict'; var mongo = require('mongodb'); var databaseConfig = require('../config/database.config.json'); var MongoClient = mongo.MongoClient; var bcrypt = require('bcryptjs'); var env = require('../../.env.json'); var that = {}; var url = env.MONGO_URI; // Get M...
'use strict'; var ExampleCtrl = function($rootScope, $document, $scope) { $scope.animation = {}; $scope.animation.current = 'fadeInLeft'; $scope.animation.previous = $scope.animation.current; // only required for dynamic animations $scope.changeAnimation = function() { var elements = document.getElementsByCl...
var AngleMode = "dms"; var RegExp_Float = /^\d+(\.\d*)?([eE][\+\-]?\d+)?$/; function $(id) { return document.getElementById (id); } function HtmlRightAscension (ra, mode) { if (mode == null) { mode = AngleMode; } switch (mode) { case "dms": // 23<sup>h<...
import assert from 'assert'; import {sub} from '.'; describe('sub operation', () => { it('can sub', () => { assert(sub(1, 1) === 0); assert(sub(2, 2) === 0); assert(sub(3, 5) === -2); }); });
import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; import {default as Component} from '../Common/plugs/index.js'; //提供style, classname方法 import { EventRegister } from '../Common/internal' import Input from '../Input/Input'; import { PLACEMENT_MAP, HAVE_TRIGGER_TYPES, TYPE_V...
import EventEmitter from 'events'; export default class Observer extends EventEmitter { constructor() { super(); this._name = null; this._model = null; this._value = null; this._format = (v) => v; this._handleSet = (e) => this._set(e); } destroy() { this._unbindModel(); } name...
'use strict'; describe('Controller: RepomessageCtrl', function () { // load the controller's module beforeEach(module('namsaiEditorApp')); var RepomessageCtrl, scope; // Initialize the controller and a mock scope beforeEach(inject(function ($controller, $rootScope) { scope = $rootScope.$new(); ...
/** * Development Environment Settings开发环境设置 * 该模块主要针对预先定义的开发环境进行配置,需要确保开发环境和生产环境的不同; * 确保该文件在部署最后进行.gitignore的过滤; * 该文件可以被提交到版本库,相对应的pro.js在部署时做相应的调整。 * @author: 王利华 * @time: 2015-5-7 * @email:lh_wang@ctrip.com */ /******************************************************************** * 主要一些开发环境的配置信息 ...
//filter: /*! FileSaver.js * A saveAs() FileSaver implementation. * 2014-01-24 * * By Eli Grey, http://eligrey.com * License: X11/MIT * See LICENSE.md */ /*global self */ /*jslint bitwise: true, indent: 4, laxbreak: true, laxcomma: true, smarttabs: true, plusplus: true */ /*! @source http://purl.eligrey...
const run = require("./steps/index"); module.exports = [ run.changeDirectory, run.setFilePaths, run.fetchUpstream, run.checkoutDefaultBranch, run.gitMergeUpstreamDefaultBranch, run.getCurrentBranchVersion, run.gitMergeUpstreamDevelop, run.gitShortLog, run.updateVersion, run.updateChangelog, run.updatePackag...
'use strict'; var objectAssign = require('object-assign'); var _ = require('lodash'); var ExecutionEnvironment = require('./ExecutionEnvironment'); /** * Helper to work with cookie on isomorphic apps * * Server side: * * Use the API of Express Response Cookie (http://expressjs.com/api.html#res.cookie) * res.cle...
exports.modifyWebpackConfig = function(config, env) { config.merge({ postcss (wp) { return [ require('postcss-import')({ addDependencyTo: wp }), require('postcss-cssnext')({ browsers: 'last 2 versions', features: {customProperties: false} }), require('postcss...
var TALK , controller module.exports = function(_TALK) { TALK = _TALK controller = require('./controller')(TALK) // General Use TALK.server.get('/', reset, controller.index) TALK.server.error(controller.error) // Chat Routes TALK.server.get ('/:name' , controller.chat_show) TALK.serve...
import React from 'react'; import Button from '@material-ui/core/Button'; import Dialog from '@material-ui/core/Dialog'; import DialogActions from '@material-ui/core/DialogActions'; import DialogContent from '@material-ui/core/DialogContent'; import DialogContentText from '@material-ui/core/DialogContentText'; import D...
(function (app) { 'use strict'; app.registerModule('customquestions'); }(ApplicationConfiguration));
// @flow weak import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import MobileStepper from 'material-ui/MobileStepper'; const styles = { root: { maxWidth: 400, flexGrow: 1, }, }; class DotsMobileStepper extends Component { stat...
/*global __dirname*/ export const ROOT = __dirname; export const SRC_DIR = `${ROOT}/src`; export const BUNDLE_DIR = `${ROOT}/bundles`;
var CompilerExample = function () { neutrino.Application.call (this); } neutrino.inherits (CompilerExample, neutrino.Application);
'use strict'; const menu = require('../common/menu'); const banner = require('../common/banner') /* A controller for the home page. */ function controller(app) { app.get('/hostafundraiser', function (req, res) { banner(app).then(function(banner) { let data = { menu: menu(), showBanner: fal...
import cx from 'clsx'; import React from 'react'; import PropTypes from 'prop-types'; import { useMediaSources } from '../../context/MediaSourceContext'; function Player({ enabled, size, volume, isMuted, media, seek, onPlay, }) { const { getAllMediaSources } = useMediaSources(); if (!media) { re...
import { Pointer } from './pointer'; import { compare } from './equal'; import { MissingError, TestError } from './errors'; function _add(object, key, value) { if (Array.isArray(object)) { // `key` must be an index if (key == '-') { object.push(value); } else { ...
ReactionCore.MethodHooks.beforeMethods({ "orders/inventoryAdjust": function (options) { check(options.arguments, [Match.Any]); const orderId = options.arguments[0]; if (!orderId) { return true; } Meteor.call("rentalProducts/inventoryAdjust", orderId); return options; // Returned false before...
(function(nx){ // application class nx.define('App',nx.ui.Application,{ 'methods': { 'start': function(divId){ // assign to an object if(divId != undefined){ this.container(document.getElementById(divId)); } // define topology var topologyContainer = new TopologyContainer(); var top...
(function () { "use strict"; /* @ngInject */ function config($routeProvider) { $routeProvider .when("/products", { name: "products", templateUrl: "app/catalog/partials/products.html", controller: "productController", controllerAs: "vm" }) .when("/produ...
'use strict'; import React from 'react-native'; const { Image, TouchableOpacity, View, } = React; import StyleSheet from '../../styles/CarlyStyleSheet.js' import Animated from 'Animated'; import NativeModules from 'NativeModules'; import Dimensions from 'Dimensions'; import Header from './Header'; import Paralla...
var core = require('./controllers/core'); var api = require('./controllers/api'); module.exports = function(app){ app.get('/', core.home); app.get('/top', core.top); app.get('/results', core.results); app.get('/api/results', api.results); }
define('sub',{ name: 'sub' }); require.config({ baseUrl: 'js' }); require(['sub'], function (sub) { console.log(sub.name); }); define("main", function(){});
import { moduleForComponent, test } from 'ember-qunit'; import hbs from 'htmlbars-inline-precompile'; import initializer from "ilios/instance-initializers/ember-i18n"; import startMirage from '../../helpers/start-mirage'; import Ember from 'ember'; const { Object } = Ember; moduleForComponent('school-list', 'Integrat...
"use strict"; /** * Created by DuanG on 2016/11/23. */ var express = require('express'); var cookieKey_1 = require("../../common/cookieKey"); var keyMemberCK_1 = require("../../common/keyMemberCK"); var cookie_1 = require("../../common/cookie"); var ResponseTool_1 = require("../../common/ResponseTool"); var ResponseM...
import WardenModel from 'resources/models/warden-model'; import UserModel from 'resources/models/user-model'; export default class OrganizationModel { constructor(data) { // { // "id": "a295aa48-af69-4fcb-9feb-c4ea9c350d80", // "owner": { // "userId": "dbac93f106724ab7a576598b63c12962", /...
import angular from 'angular'; // angular modules import constants from './constants'; import onConfig from './on_config'; import onRun from './on_run'; import 'foundation-sites'; import 'angular-route'; import 'angular-load'; import 'angular-truncate-2'; import 'angular-masonry'; import 'angular-material-icons' impor...
import React from 'react'; import ReactDOM from 'react-dom'; import Root from './containers/Root'; import createBrowserHistory from 'history/lib/createBrowserHistory'; import './stylesheets/application.sass'; const history = createBrowserHistory(); ReactDOM.render( <Root history={history} />, document.getElement...
// import Mantissa.LiveForm Quotient.Spam.PostiniSettings = Mantissa.LiveForm.FormWidget.subclass("Quotient.Spam.PostiniSettings"); /** * FormWidget used by L{xquotient.spam.HamFilterFragment} for editing Postini * settings. */ Quotient.Spam.PostiniSettings.methods( /** * When the form is submitted success...
var LayoutEngine = {} LayoutEngine.generateRectangles = function (options) { if (!options.dimensions) throw new Error('No dimensions option given for Masonry Layout') options.gutter = options.gutter || 0 options.gutterX = options.gutterX || options.gutter options.gutterY = options.gutterY || options.gutter ...
var expect = require('chai').expect; var setup = require(__dirname + '/lib/setup'); var fs = require('fs'); var objects = null; var states = null; var connected = false; describe('epson_stylus_px830: test adapter', function() { before('epson_stylus_px830: Start js-controller', function (_done) { ...
export * from './firebase-storage'; export * from './firebase-storage-directive'; export * from './aspect-ratio';
/** * @fileoverview Rule to flag when using constructor without parentheses * @author Ilya Volodin */ "use strict"; //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ const astUtils = req...
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("@angular/core"),require("@angular/common")):"function"==typeof define&&define.amd?define(["exports","@angular/core","@angular/common"],r):r((e.vervaljs=e.vervaljs||{},e.vervaljs.charts={}),e.ng.core,e.ng.common)}(this,function(e,r,o)...
import React, { Component } from 'react' import { Menu } from 'shengnian-ui-react' export default class MenuExampleVerticalFitted extends Component { state = {} handleItemClick = (e, { name }) => this.setState({ activeItem: name }) render() { const { activeItem } = this.state return ( <Menu vert...
(function($, window, document) { // The $ is now locally scoped // The rest of your code goes here! $(document).ready(function() { $(".js-lead-sigup-form").on("submit", function(event) { var form = event.currentTarget; event.preventDefault(); $.ajax({ url: form.action, dataT...
$LAB // write each test in a seperate .script function // all tests are run simultaneously/asynchronously .script(function(){ if (document.querySelectorAll("#main").length) {return ["js/jquery.smoothState.js", "js/smooth.css.js"]; } else {return null;} }) .script(function(){ // load script if the the class *-col-...
import AsyncEventEmitter from 'marsdb/dist/AsyncEventEmitter'; /** * Manages a heartbeat with a client */ export default class HeartbeatManager extends AsyncEventEmitter { constructor(pingTimeout = 17500, pongTimeout = 10000) { super(); this.pingTimeout = pingTimeout; this.pongTimeout = pongTimeout; ...
'use strict'; var IndexController = angular.module('myApp.IndexController', []); /** * IndexController controls the index-template. */ IndexController.controller('IndexController', ['$scope', '$location', 'IndexService', function ($scope, $location, IndexService) { /** * Initializes the main menu sectio...
"use strict"; var rio = require("../lib/rio"); rio.e({command: "# ห\n2+2"}); rio.e({command: "# แผ่นดินฮั่นเสื่อมโทรมแสนสังเวช " + "พระปกเกศกองบู๊กู้ขึ้นใหม่\n65+4"}); rio.e({command: "# แผ่องบู๊กู้ขึ้นใหม่\n2*3"});
//ESEMPIO UTILIZZO PER options map + defaults function doSomething(opt) { var defaults = { enable: false, count: 0, title: "", values: [1,2,3] }; var options = mixIn({}, defaults, opt); //opzioni correnti con //ovverride in base all'opt passate //... logica della funzio...
import fs from 'fs'; import path from 'path'; import url from 'url'; import hbs from 'handlebars'; import wrench from 'wrench'; import extend from './extend'; import Renderer from './Renderer'; /** * Provides methods for querying, loading and rendering templates * from the filesystem. * * @extends Renderer */ cl...
'use strict'; var React = require('react'); var SvgIcon = require('../../svg-icon'); var DeviceAccessAlarm = React.createClass({ displayName: 'DeviceAccessAlarm', render: function render() { return React.createElement( SvgIcon, this.props, React.createElement('path', { d: "M22 5.72l-4.6-3.8...
import $ from 'jquery'; import Dropzone from 'dropzone'; import request from '../../utils/request'; import { config, translations } from 'grav-config'; // translations const Dictionary = { dictCancelUpload: translations.PLUGIN_ADMIN.DROPZONE_CANCEL_UPLOAD, dictCancelUploadConfirmation: translations.PLU...
positron.provide ("ChangeLensAction"); ChangeLensAction = function () { positron.action.Action.call (this); console.log ("registering ChangeLensAction"); } positron.inherits (ChangeLensAction, positron.action.Action); ChangeLensAction.prototype.fire = function (inEvent) { positron.action.Action.prototyp...
var Type = require("@kaoscript/runtime").Type; module.exports = function() { class Foobar { constructor() { this.__ks_init(); this.__ks_cons(arguments); } __ks_init() { } __ks_cons(args) { if(args.length !== 0) { throw new SyntaxError("Wrong number of arguments"); } } __ks_func_toString_0...
/** * myLupus - Erweitere Anbindung der Lupusec XT2 Alarmanlage * * Author: @devius_lupus * Source: tbd * */ /** * Todo: * IP, Software Versionen: http://<ip>/action/welcomeGet * Historie: http://<ip>/action/recordListGet (max_count:int) * */ var http = require("http"); var https = require("https"); var config...
var fs = require('fs'), path = require('path'), Sequelize = require('sequelize'), config = require('../config'), db = {} var sequelize = new Sequelize(config.db, { pool: { max: 10, min: 0, idle: 10000 }, // logging: false, define: { underscored: true } }) fs.readdirSync(__dirname).f...
/** * Kebab AboutMe Application Bootstrap Class * * @category Kebab * @package Applications * @namespace KebabOS.applications.aboutMe.application * @author Tayfun Öziş ERİKAN <tayfun.ozis.erikan@lab2023.com> * @copyright Copyright (c) 2010-2011 lab2023 - internet technologies TURKEY Inc. (http://...
import config from '../../config.babel' import env from '../../lib/env.babel' import gulp from 'gulp' import gulpif from 'gulp-if' import changed from 'gulp-changed' import browserSync from 'browser-sync' import imagemin from 'gulp-imagemin' import pngquant from 'imagemin-pngquant' const dev = env !== config.build.pr...
import { css } from "../../src/literals.js"; export default css` #container { display: flex; position: fixed; top: 0; bottom: 0; left: -300px; width: 90vw; height: 100vh; max-width: 300px; z-index: 10001; background: white; font-family: var(--magnon-font); transition: left 0.1...
/** @module ember-metal */ /* JavaScript (before ES6) does not have a Map implementation. Objects, which are often used as dictionaries, may only have Strings as keys. Because Ember has a way to get a unique identifier for every object via `Ember.guidFor`, we can implement a performant Map with arbitrary ke...
var core; module.export = function(){ };
var foodRowID; function fillInvoiceData(rowData, rowId) { //Assigning row's id foodRowID = rowId; //Showing invoce card and background show("#invoice-card"); show(background); //Deleting elements $("#delete-row").remove() $("#checkout").remove(); }
'use strict'; import http from 'http'; import https from 'https'; import express from 'express'; import winston from 'winston'; import bodyParser from 'body-parser'; import helmet from 'helmet'; import consolidate from 'consolidate'; import path from 'path'; import globby from 'globby'; import config from 'modernMean/...
// Copyright (c) Dyoub Applications. All rights reserved. // Licensed under MIT (https://github.com/dyoub/app/blob/master/LICENSE). (function (JQLite) { JQLite.prototype.number = function (options) { var $element = this; function mask(newValue, oldValue) { var digits = newValue.repla...
import chai from 'chai'; import chaiHttp from 'chai-http'; import app from '../src/index'; chai.use(chaiHttp); var server = chai.request(app); const { expect } = chai; /* server.get('/login/') .send({ account : 'timas', pwd : '123456' }); */ describe('demo test', () => { it('should get array', (done) => { ...
var express = require('express'); var app = express(); app.set('port', (process.env.PORT || 8200)); app.use(express.static(__dirname + '/app')); app.listen(app.get('port'), function () { console.log('binary tree app is running on port', app.get('port')); });
// jshint ignore: start (function() { var browser = false; var is_iOS = /iP(hone|od|ad)/.test(navigator.platform) && /Apple Computer/.test(navigator.vendor); var isIE10 = (Function('/*@cc_on return document.documentMode===10@*/')()); var isIE11 = (!(window.ActiveXObject) && "ActiveXObject" in window...