code
stringlengths
2
1.05M
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_pre...
var exampleFormComponent = flight.component(exampleFormUIMixin, loaderMixin, function () { this.defaultAttrs({ //loader loader: "#loader", //general message submitMessage: "#submit-message", //validation usernameError: "#username-error", passwordError: "#passw...
import * as types from '../actions/actionTypes'; //import initialState from './initialState'; // IMPORTANT: Note that with Redux, state should NEVER be changed. // State is considered immutable. Instead, // create a copy of the state passed and set new values on the copy. // Note that I'm using Object.assign to create...
var boardIdentifier; if (!DISABLE_JS) { var volunteerCellTemplate = '<span class="userLabel"></span> '; volunteerCellTemplate += '<input '; volunteerCellTemplate += 'type="hidden" '; volunteerCellTemplate += 'class="userIdentifier" '; volunteerCellTemplate += 'name="login">'; volunteerCellTemplate += '<in...
import _ from 'lodash'; import Promise from 'bluebird'; import db from '../models'; import { NotFoundError } from '../components/errors'; export function list(req, res, next) { db.ProductGroup.findAll() .map(group => Promise.all([group.countProducts(), group.toJSON()]).spread( (productCount, produc...
import { module, test } from 'qunit'; import { setupRenderingTest } from 'ember-qunit'; import hbs from 'htmlbars-inline-precompile'; import { later } from '@ember/runloop'; import { A as emberA } from '@ember/array'; import { Promise } from 'rsvp'; import { click, find, findAll, render, triggerEvent, trigg...
(function($) { $(function() { $('.sort-block__icon').on('click', function() { $(this).toggleClass('sort-block__icon_desc'); }); }); })(jQuery);
// Generated by CoffeeScript 1.12.2 (function() { var Q, _, api, call_api, config, https, publishResource, querystring, transformation_string, update_resources_access_mode, utils, slice = [].slice; _ = require("lodash"); config = require("./config"); if (config().upload_prefix && config().upload_prefix.s...
'use strict'; describe('Controller: MemberEditCtrl', function() { beforeEach(module('ProtractorMeetupApp', 'ControllerTestHelper')); beforeEach(inject(function(jasmineMatchers) { this.addMatchers(jasmineMatchers); })); var MemberEditCtrl, scope, createController, fake; beforeEach(inject(function($con...
/** * @description dev * @author minfive * @date 2017-03-23, 23:27:18 * @lastModify minfive * @lastDate 2017-03-26, 23:08:22 * @github https://github.com/Mrminfive */ const path = require('path'), chalk = require('chalk'), opn = require('opn'), webpackServer = require('webpack-dev-server'); const config =...
/** * Module dependencies. */ var db = require('../../config/sequelize'); var md5 = require('MD5'); var moment = require('moment'); var async = require('async'); var validator = require('validator'); var mailer = require('../lib/mailer'); exports.session = function(req, res, next) { var token = req.headers.token; ...
kitchen_replace_list = [ { "name_jp": "\u30cd\u30b3\u306e\u8d77\u4e0a\u304c\u308a\u8853\u3010\u5c0f\u3011", "name": "Felyne Riser (Lo)" }, { "name_jp": "\u30cd\u30b3\u306e\u8d77\u4e0a\u304c\u308a\u8853\u3010\u5927\u3011", "name": "Felyne Riser (Hi)" }, { "name_jp": "\u30cd\u30b3\u306e\...
'use strict'; //Start by defining the main module and adding the module dependencies angular.module(ApplicationConfiguration.applicationModuleName, ApplicationConfiguration.applicationModuleVendorDependencies); // Setting HTML5 Location Mode angular.module(ApplicationConfiguration.applicationModuleName).config(['$loc...
angular.module('investHouseAdmin.services') .factory('generalConfigurationService', ['$http', '$rootScope', function($http, $rootScope) { var generalSetting = {}; generalSetting.loadInformation = function() { return $http({ url: $rootScope.apiLink + 'api/generalSetting...
import Diamond from './diamond.js' describe('Make diamond function', () => { var diamond = new Diamond(); it('test letter A', function() { const result = "A\n"; expect(diamond.makeDiamond('A')).toEqual(result); }); it('test letter C', function() { const result = [" A ", " B B ", "C...
if (typeof(console) == 'undefined') { window.console = console = { 'log': function() {}, 'info': function() {}, 'warn': function() {}, 'error': function() {} }; } var xn = {}; xn.config = { 'fancyOptions': { 'transitionIn' : 'fade', 'transitionOut' ...
import { getUrlParam,renderData,getMenuList } from './common'; $(function () { getMenuList();//根据角色获取左侧栏手风琴列表 var roles = getUrlParam('roles'); $('.linkUrl').each(function(index,ele){ var url = $(this).attr('href') + '?roles=' + roles; $(this).attr('href',url); }); });
define(function(require) { 'use strict'; var Backbone = require('lib/backbone'), $ = require('lib/jquery'), BuildTable = require('lib/cubetable'), TablePView; TablePView = Backbone.View.extend({ el: '.JpreivewTable', events: { 'click .preview-table th span...
var logdir = require('../'); var test = require('tap').test; var fs = require('fs'); var path = require('path'); var through = require('through'); var os = require('os'); var mkdirp = require('mkdirp'); var tmpdir = path.join(os.tmpDir(), 'logdir-test', String(Math.random())); mkdirp.sync(tmpdir); var ld = logdir(tm...
export default function SocialAuthController($state, $cookies, Auth) { "ngInject"; var token = $cookies.get('social-authentication'); Auth.loginWithToken(token, false).then(function () { $cookies.remove('social-authentication'); Auth.authorize(true); }, function () { $state.go('...
// CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: http://codemirror.net/LICENSE // Depends on jsonlint.js from https://github.com/zaach/jsonlint // declare global: jsonlint (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS m...
import styled from 'styled-components'; import * as defaultTheme from './default-theme'; import themeProp from '../utils/theme'; import { fontSizeSm, borderRadius } from '../utils/defaultTheme'; import arrowPlacement from './arrowPlacement'; const { zIndexTooltip, tooltipMaxWidth, tooltipBg, tooltipOpacity, ...
const express = require( 'express' ), router = express.Router(), models = require( './../models/' ), utils = require( './../utils/' ), bodyParser = require( 'body-parser' ), fs = require( 'fs' ), log = require( './../utils/log' ) router.use( bodyParser.json() ) router.use( bodyParser.urlencoded( { 'extended' : f...
export class AgendaDay { constructor(day, agenda, totalRooms) { this.day = day; this.agenda = agenda; this.totalRooms = totalRooms; } }
'use strict'; describe('bb.version module', function() { beforeEach(module('bb.version')); describe('app-version directive', function() { it('should print current version', function() { module(function($provide) { $provide.value('version', 'TEST_VER'); }); inject(function($compile, $...
(angular => { 'use strict'; angular.module('tubular.services') .controller('GenericPopupController', [ '$rootScope', '$scope', '$uibModalInstance', 'model', 'gridScope', function ( $rootScope, $scop...
import React from 'react'; import ReactDOM from 'react-dom'; class DoneButton extends React.Component { render() { if(this.props.enabled) { return ( <h4><a onClick={this.props.onClick}>Done</a></h4> ); } else { var disabledStyles = { color: '#666666' }; return ( <h4 style={d...
'use strict'; objectToDisplay = objectToDisplay || {}; QUnit = QUnit || {}; var core_test_object = { myHTML : "<a href='http://example.com'>Things and Stuff</a>", text : "<a href='http://example.com'>This should just be text and not an element</a>", myOtherObj : { innerObject1 : "WOO 1 Object", ...
'use strict'; angular.module('stickyApp') .factory('Auth', function Auth($location, $rootScope, $http, User, $cookieStore, $q) { var currentUser = {}; if($cookieStore.get('token')) { currentUser = User.get(); } return { /** * Authenticate user and save token * * @pa...
describe('jqLite', function() { var scope, a, b, c; beforeEach(module(provideLog)); beforeEach(function() { a = jqLite('<div>A</div>')[0]; b = jqLite('<div>B</div>')[0]; c = jqLite('<div>C</div>')[0]; }); beforeEach(inject(function($rootScope) { scope = $rootScope; this.addMatchers({ ...
'use strict'; (function() { // Create challenge Controller Spec describe('Create challenge Controller Tests', function() { // Initialize global variables var CreateChallengeController, scope, $httpBackend, $stateParams, $location; // The $resource service augments the response object with methods ...
var keystone = require('../index.js'), Types = require('../lib/fieldTypes'), request = require('supertest'), demand = require('must'), async = require('async'), getExpressApp = require('./helpers/getExpressApp'), removeModel = require('./helpers/removeModel'); describe('List "track" option', function () { var a...
import React, { Component, PropTypes } from 'react'; import { connect } from 'react-redux'; import FacetValueList from '../components/FacetValueList'; import ModeLink from '../components/ModeLink'; import { changeFacetMode } from '../actions/search'; class FacetPanel extends Component { constructor(props) { supe...
/** * Created by chenjianjun on 16/2/26. */ var env=require("../config"); var type=env.Thinky.type; // 婚礼租车 /* { "success": true, "message": null, "data": [ { "id": 232, "createTime": "2016-01-21 19:46:13", "updateTime": "2016-01-28 16:57:50", "operater": 1, "isUsed": 1, "titl...
$(function(){ $("#header-nav").load("header.html"); });
version https://git-lfs.github.com/spec/v1 oid sha256:e53f63296897f4be839da6c2dd78fb17db764ed4145d0c8ac8eee94e3567bbaa size 53308
/* * This is heavily based on gulp-mvb with slight modifications * * @link <https://github.com/dennisreimann/gulp-mvb> */ (function() { 'use strict'; var fs = require('fs'); var path = require('path'); var glob = require('glob'); var extend = require('util-extend'); ...
import constants from '../../extra/constants'; import httpRequest from '../../extra/http-request'; export const TOGGLE_CART = 'TOGGLE_CART'; export const CLOSE_CART = 'CLOSE_CART'; export const ADD_PRODUCT = 'ADD_PRODUCT'; export const SET_PACKAGES = 'SET_PACKAGES'; export const ADD_PACKAGE = 'ADD_PACKAGE'; export con...
// listen to a firebase and populate links and highlights var Firebase = require("firebase"); var tweets = require('tweets'); var ayb = new Firebase("https://your-firebase.firebaseio.com/"); ayb.authWithCustomToken("FIREBASE_AUTH_TOKEN", function(error, authData) { if (error) { console.log("Login Failed!", err...
module.exports = { // Port server listens on "port" : "8080", // The slash command shown in help text, e.g., /stuart "slash_command" : "panda", // The Bot Persona "name" : "PandaMan", "emoji" : ":panda_face:", // The Slack host // // Careful! Don't include the token with your slack_host val...
// var request = require('supertest'); var expect = require('chai').expect; var sinon = require('sinon'); var Exp = require('../../../server/exps/models/Exp'); var app = require('../../../server/app.js'); var request = require('supertest')(app); var exampleUser = require('../../../dummyData/exampleUsers.json')[0]; var ...
exports.geojson = /** * This function outputs a GeoJSON FeatureCollection (compatible with * OpenLayers). JSONP requests are supported as well. * * @author Volker Mische */ function(head, req) { var row, out, sep = '\n'; // Send the same Content-Type as CouchDB wou...
/** * socket.io * Copyright(c) 2011 LearnBoost <dev@learnboost.com> * MIT Licensed */ (function (exports, io, global) { /** * Expose constructor. * * @api public */ exports.XHR = XHR; /** * XHR constructor * * @costructor * @api public */ function XH...
// Copyright (c) CBC/Radio-Canada. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. import ko from 'knockout'; import $ from 'jquery'; import moment from 'moment'; ko.bindingHandlers.datetime = { update: function(element, valueAccessor, al...
import { ObjectObserver, Observable } from '../observable'; class Transaction extends Observable { constructor(transactionId, itemType, type) { super(); this._observer = this._createObserver(); this._observerLocked = true; this._transactionId = transactionId; this._itemTyp...
// [], target module.exports = [{ input: ['hello'], output: 'olleh', },{ input: ['abcdefg'], output: 'gfedcba', }]
/* eslint-disable flowtype/require-valid-file-annotation */ module.exports = require('../lib/components-icons/Card');
'use strict'; // This is the entry point of the client's script. var jQuery = require('jquery'); var $ = jQuery; global.jQuery = jQuery; require('bootstrap');
define(['razorcharts2/axes/axis'], function (Axis) { var LeftAxis = function () { this.init (); this.registerTransformer ({key: 'render', transform: LeftAxisTransformer}); this.registerTransformer ({key: 'resize', transform: LeftAxisTransformer}); this.registerTransformer ({key: 'upd...
'use strict'; // stdlib import React from 'react'; import createReactClass from 'create-react-class'; import PropTypes from 'prop-types'; // third party lib import { Input } from '../../../../libs/bootstrap/form'; import ModalComponent from '../../../../libs/bootstrap/modal'; /** * Modal to confirm before deleting ...
var webpack = require("webpack"); module.exports = { context: "" , entry: "./node_modules/terminal.js/index", output: { libraryTarget: "var", library: "Terminal", path: "./", filename: "terminal.js" }, plugins: [ new webpack.optimize.UglifyJsPlugin() ] };
/*globals define, _, WebGMEGlobal*/ /*jshint browser: true*/ /** * @author rkereskenyi / https://github.com/rkereskenyi */ define(['js/PanelBase/PanelBaseWithHeader', 'js/PanelManager/IActivePanel', 'js/Widgets/SetEditor/SetEditorWidget', './SetEditorController' ], function (PanelBaseWithHeader, ...
'use strict'; angular.module('mean.icu.ui.searchlist') .controller('SearchListController', function ($scope, results, term) { $scope.results = results; $scope.term = term; });
(function(){ document.addEventListener('keypress',function(deets){ if(deets.charCode===32) window.togglePlayPause(); }); }());
#! /usr/bin/env node var program = require('commander') var tracker = require('../') program .arguments('<tracecode>') .option('-c, --company <company>', 'Company Name', /^(ems)$/i, 'ems') .action(function (tracecode) { if (!tracker.COMPANY[program.company.toUpperCase()]) { console.error('The Company ...
'use strict'; // gulp var gulp = require('gulp'); var paths = gulp.paths; var options = gulp.options; // modules var bs = require('browser-sync').create(); var bsInit = function (paths, openOverride) { var bsOptions = { server: { baseDir: paths }, browser: 'google chrome' }; if (options.open ==...
const expect = require('chai').expect const middleware = require('../../lib/middleware') suite('middleware#toPath', function () { test('overwrite path', function (done) { var req = {} var newPath = '/new/path' var mw = middleware.toPath(newPath) mw(req, null, function assert(err) { expect(err)...
/** * @fileoverview added by tsickle * Generated from: test_files/protected/protected.ts * @suppress {checkTypes,const,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ /** This test checks that we emit \@private/\@protected where necessary. */ goog.module...
import { IconChevronDown, IconTimesCircle } from 'dls-icons-vue' import ui from 'veui/managers/ui' const CHECKBOX_SIZE_MAP = { xs: 's', s: 's', m: 'm', l: 'm' } const TAG_SIZE_MAP = { xs: 's', s: 's', m: 's', l: 'm' } ui.defaults( { icons: { expand: IconChevronDown, collapse: IconCh...
// Test that we *don't* get SpiderMonkey extensions; see // testJS1_8.js. // application/javascript;version=ECMAv3 var GLib = imports.gi.GLib; function testLet() { assertRaises('missing ; before statement', function () { eval("let result = 1+1; result;") }); } function testYield() { assertRaises('missing ; b...
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('./List'), require('./Maybe'), require('../utils/clone')) : typeof define === 'function' && define.amd ? define(['exports', './List', './Maybe', '../utils/clone'], factory) : (factory((global['functi...
var searchData= [ ['validate',['Validate',['../classCSF_1_1Zpt_1_1BatchRendering_1_1BatchRenderingOptionsValidator.html#aa6734e31491c63cf58ae84fae8a45b94',1,'CSF.Zpt.BatchRendering.BatchRenderingOptionsValidator.Validate()'],['../interfaceCSF_1_1Zpt_1_1BatchRendering_1_1IBatchRenderingOptionsValidator.html#a756a3e11c...
/* @flow */ import _ from 'lodash'; import { inspectChain, innerChain } from './'; import { createChainBuilder, chainSymbol } from './chain-builder'; import type { ChainCreator } from './factories'; type DSL = { [key: string]: (...args: Array<*>) => string, }; function wrapBuilder(builder, dsl: DSL) { return new...
const helpers = require('../helpers'); const execSync = require('child_process').execSync; const REPO_NAME_RE = /Push URL: https:\/\/github\.com\/.*\/(.*)\.git/; function getWebpackConfigModule() { if (helpers.hasProcessFlag('github-dev')) { return require('../webpack.dev.js'); } else if (helpers.hasProcessF...
// Eloquent JavaScript // Run this file in your terminal using `node my_solution.js`. Make sure it works before moving on! // Program Structure // Write your own variable and do something to it. var myName = "Alex" console.log(myName.length) // var food = prompt("What is your favorite food?") // alert(food + ' is my...
module.exports = { name: "event", ns: "hammerjs", description: "Takes a hammer event and spreads it to the ports", phrases: { active: "Splitting event" }, ports: { input: { event: { title: "Event", type: "object", required: true } }, output: { timest...
'use strict'; var Vec2 = require('./Common/Vec2'); /** * The agents that live in the simulation engine. * * @class Agent * @module CrowdSim * @submodule Agent * @constructor * @param {Number} x coordinate * @param {Number} y coordinate * @param {Group} group parent * @param {Object} options */ var Agent = ...
module.exports = { entry: './app/app.ts', output: { path: __dirname, filename: "./dist/bundle.js" }, resolve: { extensions: ['', '.ts', '.js'] }, module: { loaders: [ { test: /\.ts$/, loader: 'ts-loader', exclude : /node_modules/ }, ] } }
/** * Pipedrive API v1 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * ...
var canvas = null; var ctx = null; var assets = ['/media/img/gamedev/robowalk/robowalk00.png', '/media/img/gamedev/robowalk/robowalk01.png', '/media/img/gamedev/robowalk/robowalk02.png', '/media/img/gamedev/robowalk/robowalk03.png', '/media/img/gamedev/robowalk/ro...
/** * Internal dependencies. */ var Surround = require('../lib/surround') , index = require('../lib'); /** * Simple object used for surrounding. */ var obj = { bar: function() {} }; describe('index', function() { it('should return new Surround instnace', function() { index(obj, 'bar').should.be.an.in...
var Phase = require('./phase').Phase; var start_tag_handlers = { html: 'startTagHtml', head: 'startTagHead', '-default': 'startTagOther', } var end_tag_handlers = { html: 'endTagImplyHead', head: 'endTagImplyHead', body: 'endTagImplyHead', br: 'endTagImplyHead', p: 'endTagImplyHead', '-default': 'endTagOther...
/** * ConfigController * * @module :: Controller * @description :: A set of functions called `actions`. * * Actions contain code telling Sails how to respond to a certain type of request. * (i.e. do stuff, then send some JSON, show an HTML page, or redirect to another URL) *...
class ValidationError extends Error {} module.exports = ValidationError
var Web3 = require('web3'); var rpc = require('node-json-rpc'); var fs = require('fs'); var totGen, totCons, data; var received = false; /*============ Web3 Initialisation =============================*/ var web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545")); if (!web3.isConnected()) { cons...
if(Meteor.isServer){ Meteor.methods({ 'getCurrentForecast': function(lat, lng){ check(lat, Number); check(lng, Number); var lastDatabase = Forecast.find({'owner_id': Meteor.userId()}).fetch(); var timeChecker; if(lastDatabase[0]){ timeChecker = (moment().valueOf() - moment(lastDatabase[0].fetchT...
/* * Copyright (c) 2011-2012, Yahoo! Inc. All rights reserved. * Copyrights licensed under the New BSD License. * See the accompanying LICENSE file for terms. */ var knox = require('knox'), Crypto = require('crypto'), mime = require('mime'); /** * Send blob to S3 with an optional checksum in the filename...
"use strict"; module.exports = function(ecs, data) { // eslint-disable-line no-unused-vars ecs.addEach(function depositPods(player, elapsed) { // eslint-disable-line no-unused-vars var playerCollisions = data.entities.get(player, "collisions"); var inventory = data.entities.get(player, "inventory"); for (var i...
/* * leap.coffee a flow-control tool (c) 2013 Vladimir Tarasov Leap is unspired by: - [invoke.js](https://github.com/repeatingbeats/invoke) by Steve Lloyd - [first](https://github.com/DanielBaulig/first) by Daniel Baulig - [async.js](https://github.com/caolan/async) by Caolan McMahon Leap is freely distributable un...
var Benchmark = require('benchmark'), benchmarks = require('beautify-benchmark'), isUri = require('..'), suite = new Benchmark.Suite, testUri = 'http://asdf:qw%20er@[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]:8000?asdf=12345&asda=fc%2F#bacon'; suite.add({ name: 'isUri#test(uri)', minSamples: 100,...
'use strict'; const uuid = require('uuid'); const autoBind = require('auto-bind'); /** * @class InMemoryDB */ class InMemoryDB { constructor() { this.data = {}; autoBind(this); } findAll(cb) { const self = this; const results = Object.keys(self.data).map(key => self.data[key]); return cb...
'use strict' const {create, loader, plugin} = require('./config') const plugins = [ plugin.prodEnv, plugin.occurrence, plugin.dedupe, plugin.uglifyJs, plugin.extractCss ] const loaders = [loader.worker, loader.babel, loader.cssExtracted, loader.markdown] module.exports = create(plugins, loaders)
/*****************************************************************************/ /* Utility Methods */ /*****************************************************************************/ Meteor.methods({ /* * Example: * '/app/utility/update/email': function (email) { * Users.update({_id: this.userId}, {$set: {'p...
datab = [{},{"Coding Scheme Designator":{"colspan":"1","rowspan":"1","text":"SRT"},"Code Value":{"colspan":"1","rowspan":"1","text":"R-10260"},"Code Meaning":{"colspan":"1","rowspan":"1","text":"Estimated"},"SNOMED-CT Concept ID":{"colspan":"1","rowspan":"1","text":"414135002"},"UMLS Concept Unique ID":{"colspan":"1","...
var DependencyDiagram = { _data : null, _container : null, _chord : null, _group : null, _chordSystems : [], _chordData : [], _sortProperties : [], _sortDirections: [], _refreshMethod : null, _refreshComponent : null, _collapseStates : [], _searchText : "", init : function() { DependencyDia...
'use strict'; var mon = require("../lib"); function dummy() { } describe("Theme - Positive", function () { describe("valid customization", function () { it("must be successful", function () { expect( mon.setTheme({ time: dummy, ...
import Vue from 'vue' import Avatar from 'src/components/Avatar' import { getRenderedText } from './utils' describe('Avatar.vue', () => { it('should render avatar', () => { const Constructor = Vue.extend(Avatar) const vm = new Constructor().$mount() expect(vm.$el.querySelector('.avatar .icon').textConte...
/* eslint-env jasmine */ 'use strict'; const subject = require('../lib/config.js'); const defaultOptions = subject.defaultOptions; describe('Options', () => { it('default enablement is true', () => { expect(defaultOptions.enabled).toBe(true); }); it('default position is plugin', () => { expect(defaultO...
'use strict'; /*! * Module dependencies. */ const specialProperties = ['__proto__', 'constructor', 'prototype']; /** * Clones objects * * @param {Object} obj the object to clone * @param {Object} options * @return {Object} the cloned object * @api private */ const clone = exports.clone = function clone(obj...
return { // ******************************** Builtin ******************************** // Select Left Tab. "1": "gBrowser.tabContainer.advanceSelectedTab(-1, true);", // Select Right Tab. "2": "gBrowser.tabContainer.advanceSelectedTab(1, true);", // Scroll Left. "A": `goDoCommand("...
var admZip = require('adm-zip'); var check = require('validator'); var fs = require('fs'); var minimatch = require('minimatch'); var os = require('os'); var path = require('path'); var process = require('process'); var ncp = require('child_process'); var semver = require('semver'); var shell = require('shelljs'); var ...
// The MIT License (MIT) // // Copyright (c) 2017-2022 Camptocamp SA // // 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 // u...
/** * Controller for the application * @author: chhetrisushil * @date: 3/27/13 * @time: 2:10 PM */ (function (window, document, $, APP, Base, undefined) { // Package scope Interface var ITodoList = new JSgoodies.Interface('ITodoList', ['add', 'update', 'delete']); APP.TodoListController = JSgoodies.Cl...
'use strict'; var RedisClient = require('./redisclient'); var async = require('async'); var SlidingWindow = {}; function _expire(key, windowInSeconds, callback) { var redisClient = RedisClient.getRedisClient(); var now = new Date().getTime(); var expires = now - (windowInSeconds * 1000); redisClien...
module.exports = { 'ā': {letter: 'a', tone: 1}, 'á': {letter: 'a', tone: 2}, 'ǎ': {letter: 'a', tone: 3}, 'à': {letter: 'a', tone: 4}, 'ō': {letter: 'o', tone: 1}, 'ó': {letter: 'o', tone: 2}, 'ǒ': {letter: 'o', tone: 3}, 'ò': {letter: 'o', tone: 4}, 'ē': {letter: 'e', tone: 1}, 'é': {letter: 'e', t...
import { DESCRIPTORS, GLOBAL, NATIVE, TYPED_ARRAYS } from '../helpers/constants'; if (DESCRIPTORS) QUnit.test('%TypedArrayPrototype%.set', assert => { // we can't implement %TypedArrayPrototype% in all engines, so run all tests for each typed array constructor for (const name in TYPED_ARRAYS) { const TypedArra...
var el = domvm.defineElement; const itemsToLoad = 20; function ItemListView(vm, model) { const itemHeight = 30; const windowHeight = 300; const loadWhenNumFromBottom = 5; function calcLoadLine(scrollHeight) { return scrollHeight - (itemHeight * loadWhenNumFromBottom); } var loadLine = calcLoadLine(itemsToLo...
'use strict' const express = require('express'); const Auth = require('../config/auth'); const router = express.Router(); // Protected route router.get('/', Auth.isLoggedIn, (req, res) => { req.logout(); req.flash('homeMsg', 'You\'ve been logged out!'); res.redirect('/'); }); module.exports = router;
// Copyright 2006 The Closure Library Authors. All Rights Reserved. // // 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 // // Unl...
// To use this file in WebStorm, right click on the file name in the Project Panel (normally left) and select "Open Grunt Console" /** @namespace __dirname */ /* jshint -W097 */// jshint strict:false /*jslint node: true */ "use strict"; module.exports = function (grunt) { var srcDir = __dirname + '/'; var...