code
stringlengths
2
1.05M
var stories = require("../routes/stories.js"), string = require("string"), config = require("../util/config"), Promise = require('bluebird'), util = require("../util/util"); exports.pastDelay = function(baseTime){ return (typeof baseTime == 'number') && ((new Date()).getTime() - baseTime) > config.re...
var searchData= [ ['queue_351',['Queue',['../interface_n_a_t_s_1_1_client_1_1_i_subscription.html#a3e505b346b8dc6339e84059441d9b1f4',1,'NATS.Client.ISubscription.Queue()'],['../class_n_a_t_s_1_1_client_1_1_subscription.html#ad275b73355ef820f9ce461689170c028',1,'NATS.Client.Subscription.Queue()']]], ['queuedmessagec...
/** * The graph data model used in sigma.js. * @constructor * @extends sigma.classes.Cascade * @extends sigma.classes.EventDispatcher * @this {Graph} */ function Graph() { sigma.classes.Cascade.call(this); sigma.classes.EventDispatcher.call(this); /** * Represents "this", without the well-known scope is...
'use strict'; var requestretry = require('requestretry'); var assertStatus = require('pocci/util.js').assertStatus; module.exports = function(url) { var handleResponse = function(err, response) { if(err) { throw err; } assertStatus(response, 'response.statusCode === 200'); console.log(' OK: ' ...
/*! * then-callback <https://github.com/hybridables/then-callback> * * Copyright (c) 2015-2016 Charlike Mike Reagent <@tunnckoCore> (http://www.tunnckocore.tk) * Released under the MIT license. */ 'use strict' var fs = require('fs') var path = require('path') var redolent = require('redolent') var readFile = red...
export { default } from 'ember-bulma/components/bulma-panel-block';
(function() { 'use strict'; angular .module('apinterest.visualization.json-editor') .directive('jsonEditor', JsonEditor); function JsonEditor() { return { restrict: 'A', require: '^form', scope: { model: '=model', ...
(function (global, factory) { if (typeof define === 'function' && define.amd) { define(['exports', 'module', 'formula-flatten'], factory); } else if (typeof exports !== 'undefined' && typeof module !== 'undefined') { factory(exports, module, require('formula-flatten')); } else { var mod = { expo...
var Stream = require("stream"), events = require("events"); module.exports = (function(){ // CONSTRUCTOR var klass = module.exports = function DuplexStream(writable, readable){ // Function-mode support var self = this instanceof Stream ? this : Object.create(proto); // Build the Stream to be returned Str...
var game = require('../game'); var Command = require('./Command'); function Slash(dx, dy, direction) { Command.apply(this); } Slash.prototype = Object.create(Command.prototype); Slash.prototype.constructor = Slash; Slash.prototype.isNoop = function isNoop() { return false; }; Slash.prototype.send = function (soc...
import './ngbBookmarksTableFilter.scss'; import angular from 'angular'; // Import internal modules import component from './ngbBookmarksTableFilter.component'; import controller from './ngbBookmarksTableFilter.controller'; import filterInput from './ngbBookmarksFilterInput'; import filterList from './ngbBookmarksFilt...
import { ipcRenderer } from 'electron'; import React from 'react'; import PropTypes from 'prop-types'; import { Checkbox } from '@blueprintjs/core'; import { isWindows } from 'utils/platform.util'; import { ElectronSettingsPaths } from 'enums'; import { DESTROY_TRAY_ICON } from 'channels'; const SystemPanel = ({ min...
var app=angular.module("yemaWebApp",[]),navIndex=1;app.controller("taskDetailControl",function($scope,$http,$location){var appurlList=$location.absUrl().split("/"),excTaskId=appurlList[appurlList.length-1],detailUrl="detail/"+excTaskId;$http.get(detailUrl).success(function(response){$scope.oneAppInfo=response.oneAppInf...
'use strict'; angular.module('myApp.view1', []) .controller('View1Ctrl', [function() { }]);
module("Core - VIE 1.x API"); test("Disabled Classic API", function () { var v = new VIE({classic: false}); ok(v); equal(typeof v.EntityManager, "undefined"); equal(typeof v.RDFa, "undefined"); equal(typeof v.RDFaEntities, "undefined"); equal(typeof v.cleanup, "undefined"); }); test("Enabled C...
define("device", function (a) { var b = this, c = a.media = {}; a.media.mediamsg = { 0: "NONE ACTIVE.", 1: "ABORT_ERR.", 2: "CONNECTION ERR.", 3: "DECODE ERR.", 4: "SRC NOT SUPPORT." }; a.MEDIA_DESTINATION = {}, a.MEDIA_ENCODEING = {}, a.MEDIA_TYPE = {}, ...
var Code = require('code'); var Lab = require('lab'); var partial = require('lodash.partial'); var lab = exports.lab = Lab.script(); var describe = lab.describe; var it = lab.it; var before = lab.before; var after = lab.after; var expect = Code.expect; var bdd = {it: it, expect: expect}; var utilities = require('../...
import fs from 'fs'; let config = require('./environment'); /** * Module init function. */ module.exports = { getLogFormat: function() { return config.log.format; }, getLogOptions: function() { let options = {}; try { if ('stream' in config.log.options) { options = { stre...
/** * image-duplicate-remover * https://github.com/paazmaya/image-duplicate-remover * * Remove duplicate images from the two given directories recursively * * Copyright (c) Juga Paazmaya <paazmaya@yahoo.com> (https://paazmaya.fi) * Licensed under the MIT license */ const findFiles = require('tozan/lib/find-fil...
// SaltarelleCompiler Runtime (http://www.saltarelle-compiler.com) // Modified version of Script# Core Runtime (http://projects.nikhilk.net/ScriptSharp) if (typeof(global) === "undefined") { if (typeof(window) !== "undefined") global = window; else if (typeof(self) !== "undefined") global = self; } (fun...
/* Copyright 2013, KISSY UI Library v1.40dev MIT Licensed build time: Aug 15 00:00 */ /* Combined processedModules by KISSY Module Compiler: resizable/plugin/proxy */ /** * resize proxy plugin for resizable. * same with dd/plugin/proxy * @ignore * @author yiminghe@gmail.com */ KISSY.add('resizable/plugin/prox...
import {createStore, compose, applyMiddleware} from 'redux'; import thunk from 'redux-thunk'; import rootReducer from '../reducers'; import commonMiddleware from '../middlewares/common'; const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose; // add support for Redux dev tools function configu...
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 index = require('./routes/index'); var prices = require('./routes/prices'); var app = express(...
/* eslint-disable id-match, id-length, no-undef, camelcase */ import PianoConfig from '../src/example-config.js'; import ReactI13nPiano from '../src/index'; import chai from 'chai'; import spies from 'chai-spies'; chai.use(spies).should(); mocha.setup({ globals: [ 'tp', 'init', 'jQuery*', 'setAdblockerCookie', 'script'...
/* Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'horizontalrule', 'az', { toolbar: 'Sərhəd xətti yarat' } );
import FeatureBaseRenderer from '../../../../../gene/internal/renderer/features/drawing/featureBaseRenderer'; import {ColorProcessor, PixiTextSize} from '../../../../../../utilities'; import drawStrandDirection, {getStrandArrowSize} from '../../../../../gene/internal/renderer/features/drawing/strandDrawing'; const Mat...
(function(){ var pluginName = 'qqvideo'; CKEDITOR.plugins.add(pluginName, { lang:'zh-cn', onLoad: function(){ }, beforeInit: function(editor){ }, init: function(editor) { var lang = editor.lang[pluginName]; editor.addCommand(pluginName, new CKEDITOR.dialogCommand(pluginName)); ...
var nomnoml = nomnoml || {}; var JDLParser = module.exports; nomnoml.parse = function (source){ function onlyCompilables(line){ var ok = line[0] !== '#' && line[0] !== '/' && line[0] !== '*' return ok ? line.replace(/\/\/[^\n\r]*/mg, '') : '' } var isDirective = function (line){ return line.text[0] === '#' } v...
import fp from 'lodash/fp' import HTMLElementAttributes from 'html-element-attributes/index.json' import jsdom from 'jsdom' import bail from 'bail' import fs from 'fs' import { join } from 'path' import svgTags from 'svg-tags' import htmlTags from 'html-tags' const htmlAttributeListTitleSelector = 'h2:contains("All Su...
let createCalculator = require('../add-or-subtract').createCalculator; let expect = require('chai').expect; describe("createCalculator() - Simple adding and subtracting calculations", function() { let calc; beforeEach(function() { calc = createCalculator(); }); it('should return 10 for add(10)...
var assert = require('assert'), mongoose = require('mongoose'), mockgoose = require('mockgoose'), Request, Mapping; // in-memory mongoose for model testing mockgoose(mongoose, true); Request = require('../../lib/models/request'); Mapping = require('../../lib/models/mapping'); exports.it_should_require_all_required_f...
var should = require('should'); var is = require('../index.js'); describe('lat', () => { it('should work with a number type (positive integer)', () => { is(37, 'lat').should.be.a.Boolean().and.be.true(); }); it('should work with a number type (negative integer)', () => { is(-37, 'lat').s...
// ------------------------------------------------------------------ // // Nodejs module that provides the server-side game model. // // ------------------------------------------------------------------ 'use strict'; let present = require('present'); let Player = require('./player'); let NetworkIds = require('../sha...
const chai = require('chai'); const expect = chai.expect; const Timer = require('../../lib/timer'); describe('Timer', () => { it('exist', () => { expect(Timer).to.exist; }); it('runs', () => { const timer = new Timer(() => {}, 0); expect(timer.running).to.be.true; }); it('triggers callback', ...
'use strict'; /** * Tests for 'filter' module. */ const expect = require('chai').expect; const MetadataFilter = require('../../core/content/filter'); /** * Test data is an array of objects. Each object must contain * three fields: 'description', 'source' and 'expected'. * * 'description' is a test description ...
/** * User.js * * @description :: TODO: You might write a short summary of how this model works and what it represents here. * @docs :: http://sailsjs.org/documentation/concepts/models-and-orm/models */ module.exports = { attributes: { uid: { type: 'string' }, name: { type: 'string' ...
/* Form related utilities module */ var _ = require('lodash'), /* A field object is this structure: { // Any attributes, eg: id, etc. (optional) name: "", // Name of the field (optional) options: [], // Any options, for selectboxes, etc (optional) meta: {} // Any other attributes, eg: label, pla...
var url = 'http://localhost:3000', request = require('superagent'), moment = require('moment'), user = { username: 'smalik', password: '12345' }, authToken, userId; var document1 = { title: 'Area of Triangle', content: 'This is obtained from the base and height. Get half of' + ' the base...
import qb from 'orbit/query/builder'; import { Observable } from 'rxjs/Observable'; import 'rxjs/add/operator/filter'; import 'rxjs/add/operator/map'; import 'rxjs/add/observable/concat'; import '../../rxjs/add/operator/matching'; import RecordsObservable from './records-observable'; export default class HasManyObserv...
describe('util', function(){ describe('Ticker', function(){ var ticker, tickObj; beforeEach('init Ticker', function(){ ticker = new Hilo.Ticker(60); tickObj = { tickNum:0, tick:function(){ this.tickNum ++; } ...
'use strict' var opbeat = require('opbeat').start() var fs = require('fs') var http = require('http') var handlebars = require('handlebars') var afterAll = require('after-all') var AWS = require('aws-sdk') var s3 = new AWS.S3() var tmpl = handlebars.compile(fs.readFileSync('index.handlebars').toString()) var BUCKET =...
'use strict'; /* * Defining the Package */ var Module = require('meanio').Module, favicon = require('serve-favicon'), express = require('express'); var System = new Module('system'); /* * All MEAN packages require registration * Dependency injection is used to define required modules */ System.register(func...
var nodemailer = require('nodemailer'); // email sender function exports.sendEmail = function(to, text){ var transporter = nodemailer.createTransport({ service: 'Gmail', auth: { user: 'example@gmail.com', pass: 'password' } }); var mailOptions = { from: 'Web...
// Wait till the browser is ready to render the game (avoids glitches) window.requestAnimationFrame(function () { var manager = new GameManager(8, KeyboardInputManager, HTMLActuator); });
function solve(args) { let newArr = []; for (let i = 0; i < args.length; i++) { let temp = args[i].split(' '); index = temp[0]; value = temp[1]; if (index == "add") { newArr.push(value); } if (index == "remove") { newArr.splice(value, ...
/*global jasmine*/ (function () { 'use strict'; var jasmineEnv = jasmine.getEnv(), htmlReporter; jasmineEnv.updateInterval = 1000; htmlReporter = new jasmine.HtmlReporter(); jasmineEnv.addReporter(htmlReporter); jasmineEnv.specFilter = function (spec) { return htmlReporter.spe...
"use strict"; var toggleClass_1 = require("./toggleClass"); var moveElement = function (elementToMove) { return function _moveElement(elementBeingDragged, event, details) { var initialClientX = details.initialClientX, initialClientY = details.initialClientY, lastClientX = details.lastClientX, lastClientY = ...
// The admin bar module implements Apostrophe's admin bar at the top of the screen. Any module // can register a button (or more than one) for this bar by calling the `add` method of this // module. Buttons can also be grouped into dropdown menus and restricted to those with // particular permissions. [apostrophe-piece...
import updateModel from '../actions/updateModel'; export default [ updateModel ];
var primitivemap = require('./../primitivemap') var m = new primitivemap.StringStringMap() m.put('hello', 'world') console.log('hello ' + m.get('hello')) m.put(undefined,undefined) var lookup = {} var deleted = {} for(var i=0;i<100000;++i){ var k = 'key_'+i var v = 'value_'+i+'_'+Math.random() lookup[k] = v m....
angular.module('jdFontselect.app', ['jdFontselect']).run(function($rootScope) { $rootScope.header = '"Underdog", fantasy, "google"'; $rootScope.content = '"Open Sans", sans-serif, "google"'; $rootScope.footer = '"Mate", serif, "google"'; }).config(["jdfsCuratedFontsProvider", function (jdfsCuratedFontsProvider) {...
'use strict'; var gulp = require('gulp'), // require for gulp-tasks folder requireDir = require('require-dir'); requireDir('gulp-tasks');
var expect = require('chai').expect; describe('random-natural', function () { var randomNatural = require('../../'); it('randomNatural()', function () { expect(randomNatural()).to.be.a('number'); }); it('randomNatural({ max: 2 })', function () { expect(randomNatural({ max: 2 })).to.be.oneOf([0, 1, ...
module.exports = function($stateProvider) { $stateProvider .state('app.userProfile', { url: '/user/:id/profile', templateUrl: 'js/user/profile/user-profile.html', controller: 'UserProfileController', controllerAs: 'vm', data: { requiresLogin: true, pageTitle: 'Profile...
angular.module('app') .directive('fieldZoom', function () { return { restrict: 'E', scope : { field: '=' }, require : ['^form'], template: '<div class="field-aria-container">' + '<div ng-if="field.$viewValue" class="field-aria">{{placeholder}}</div>' + ...
const log = require('./log'); function shareFirst(path) { return ( this.backend === 'dropbox' && path.match(/^\/public\/.*[^\/]$/) ); } function maxAgeInvalid(maxAge) { return maxAge !== false && typeof(maxAge) !== 'number'; } var SyncedGetPutDelete = { get: function (path, maxAge) { if (this.lo...
// Global Variables // Meetup.com API Key for Steve Kornahrens var MeetupKey = "6a3426d1c7d3565234713b22683948" //Variables needed for Data Gathering and Looping var GroupEventPairs = {} var CategoryData = [] var EventData = [] var DateArray var StartDate var EndDate var SetDates var ZipCity var ZipCodeChosen = $("#Cit...
const fs = require('fs-extra') const gulp = require('gulp') const handlebars = require('handlebars') const autoprefixer = require('gulp-autoprefixer') const clean = require('gulp-clean-css') const connect = require('gulp-connect') const sass = require('gulp-sass') gulp.task('connect', () => connect.server({ liv...
var SchemaObject = require('node-schema-object'); var NotEmptyString = require('./NotEmptyString'); var Resource = new SchemaObject( { id: NotEmptyString, text: NotEmptyString, amount: Number, maxAmount: Number, usable: Boolean, requirement: String } ); module....
export function isLoadSuccess (state) { let comp = state.app.globalData.components; comp = comp == undefined ? 0 : comp; return state.app.loadedCompNum == comp.length ; }
const sec = 1000; const min = 60 * sec; export const GAME_INACTIVE_TIMEOUT = 30 * sec; export const GAME_EXPIRE_TIMEOUT = 15 * min; export const ACTION_STATS_FLUSH_INTERVAL = 5 * sec; export const ACTION_STATS_FLUSH_DELAY = 1 * sec;
/* * $Id: MooEditable.js 68 2008-11-13 16:00:18Z tjleahy.jr@gmail.com $ * * The MIT License * * Copyright (c) 2007, 2008 Lim Chee Aun <cheeaun@gmail.com> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to d...
(function () { 'use strict'; var module = angular.module('np.common', []); module.factory('np.common.requestFactory', [ '$log', '$q', '$http', function (console, Q, http) { return function (config) { return function (method, path, data, params) { ...
"use strict"; const {EventEmitter} = require('events'); const dface = require('dface'); const {format} = require('util'); const WebSocket = require('ws'); const errors = require('./errors'); const PROTOCOL_VERSION_ARRAY = [1, 0]; const PROTOCOL_VERSION = '1.0'; class VertexSocket extends EventEmitter { static c...
import * as assert from 'assert'; import * as OV from '../../source/engine/main.js'; export default function suite () { function ImportFilesWithImporter (importer, files, callbacks) { let settings = new OV.ImportSettings (); importer.ImportFiles (files, OV.FileSource.File, settings, { onFilesLoaded : ...
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const loaderFlag = "LOADER_EXECUTION"; const webpackOptionsFlag = "WEBPACK_OPTIONS"; exports.cutOffByFlag = (stack, flag) => { stack = stack.split("\n"); for (let i = 0; i < stack.length; i++) { if ...
;(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].export...
import React, { Component } from 'react' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import { Menu, Icon } from 'antd' import { fetchData } from '../actions/Sider' import { Link } from 'react-router' const SubMenu = Menu.SubMenu const MenuItemGroup = Menu.ItemGroup const mapStateT...
import test from 'blue-tape'; import animal from '../../../source/zoo/1-just-protos/animal'; // this test is about linking the new instance to a prototype and just setting // the properties on it test('animal speaks', (assert) => { let actual; let expected; let instance = animal; // the proto itself actual ...
import compose from '../../utils/compose'; var ValueAPI = { value: function(value) { return this._getValue(); }, onChange: function(cb) { return this._onChange(cb); }, }; var Value = compose(function(props, computeFn) { this.ctr = compose(ValueAPI, { _props: props, _...
'use strict'; var d3Hierarchy = require('d3-hierarchy'); var flipTree = require('./flip_tree'); module.exports = function partition(entry, size, opts) { var flipX = opts.flipX; var flipY = opts.flipY; var swapXY = opts.packing === 'dice-slice'; var top = opts.pad[flipY ? 'bottom' : 'top']; var le...
/** * Author: Jeff Whelpley * Date: 2/13/14 * * Unit test for the data manipulator */ var name = 'utils/obj.utils'; var taste = require('../../pancakes.taste.js')(); var objUtils = taste.flapjack(name); describe('UNIT ' + name, function () { describe('removeAllFieldsFromObj()', function () { it(...
// Karma configuration file, see link for more information // https://karma-runner.github.io/1.0/config/configuration-file.html module.exports = function (config) { config.set({ basePath: '', frameworks: ['jasmine', '@angular-devkit/build-angular'], plugins: [ require('karma-jasmine'), requir...
// Copyright (c) Dyoub Applications. All rights reserved. // Licensed under MIT (https://github.com/dyoub/app/blob/master/LICENSE). (function () { function Service() { } Service.prototype.create = function (max) { var installments = []; for (var installment = 1; installment <= max; installm...
import React, { PropTypes } from 'react' import SettingsList from './SettingsList' import { parseVocabulary } from '../../common/Vocabulary' export class Predictions extends React.Component { static propTypes = { token: PropTypes.string.isRequired, state: PropTypes.object.isRequired, actions: PropTypes.o...
var ctx=document.getElementById("cvs").getContext("2d"); var timercount=200; var timerctx; var chrmtx=new Array(); var keywait=false; window.onload=(function(){ clck=new Audio("cggsys/audio/pingpong1.mp3"); buzzer=new Audio("cggsys/audio/buzzer.mp3"); alerm=new Audio("cggsys/audio/alerm.wav"); //vraminit(); d...
/* * Copyright 2015. Author: Jeffrey Hing. All Rights Reserved. * * MIT License * * Unit tests for extendThis.js. */ 'use strict'; var extend = require('extend-this'); describe('extendThis.js:', function() { // Pet class function Pet(name, color, type) { this._name = name; this._color =...
var login = require('../index'); login({email: "ynmedia.test.004@gmail.com", password: "ynmedia123"}, function(err, account) { if (err) { console.log('onLogin', err); return; } account.sendComment('cmt6', 1483435788651394, function(err, res) { console.log('comment', err, res); }...
'use strict'; var path = require('path'), util = require('util'), lodash = require ('lodash'), ngUtil = require('../../utils/componentUtil'), ScriptBase = require('../../script-base.js'); var Generator = module.exports = function Generator() { ScriptBase.apply(this, arguments); }; ...
import gulp from "gulp"; import {spawn} from "child_process"; import hugoBin from "hugo-bin"; import gutil from "gulp-util"; import gulpif from "gulp-if"; import yargs from "yargs"; import postcss from "gulp-postcss"; import cssnext from "postcss-cssnext"; import cssnano from "gulp-cssnano"; import atImport from "postc...
import React, {Component, PropTypes} from 'react'; import {connectReduxForm} from 'redux-form'; import surveyValidation from '../validation/surveyValidation'; import mapProps from 'map-props'; function asyncValidator(data) { // TODO: figure out a way to move this to the server. need an instance of ApiClient if (!d...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const fileService_1 = require("../services/fileService"); const logService_1 = require("../services/logService"); const directoryService_1 = require("../services/directoryService"); class Remove { constructor() { this._fileService ...
const _ = require('lodash/object'); module.exports = { remove(tids, options = {}) { const method = 'tags/remove'; const params = { tids }; _.assign(params, _.pick(options, ['password'])); return { method, params }; }, save(tids, uid, options = {}) { const method = 'tags/save'; const pa...
const Queue = require('./Queue'); class CircularQueue extends Queue { getIndex(index) { return index >= this.size ? (index % this.size) : index } find(index) { return this.isEmpty ? null : this.items[this.getIndex(index)] } } module.exports = CircularQueue;
/** * @file san-mui/Button * @author leon <ludafa@outlook.com> */ import {create} from '../common/util/cx'; import {TouchRipple} from '../Ripple'; import BaseButton from './Base'; import {DataTypes} from 'san'; const cx = create('button'); export default class Button extends BaseButton { static components = ...
jQuery(document).ready(function(){var ua=window.navigator.userAgent,safari=ua.indexOf("Safari"),chrome=ua.indexOf("Chrome"),mobile=ua.indexOf("Mobile"),version=ua.substring(0,safari).substring(ua.substring(0,safari).lastIndexOf("/")+1);if(SafariPushParams.websitePushID===null){console.log("Website Push ID is missing")...
'use strict'; var Route = (function(){ /** * Variables */ var realPath = null, currentPath = null, currentRouteIndex = null, _on = [{ event: 'change', callback: function(){} }]; /** * events * This object handles the registration and handling of events rela...
import { addToken as _addToken, removeToken as _removeToken, replaceTokenList as _replaceTokenList, isValidToken as _isValidToken, clearTokenList as _clearTokenList, } from 'utils/tokenHelper'; import { Auth } from 'utils/api'; // Export export const UPDATE_TOKEN = 'UPDATE_TOKEN'; export const ad...
'use strict'; var events = require('events'); var _ = require('underscore'); _.extend(exports, events.prototype);
import EmberRouter from '@ember/routing/router' import config from './config/environment' const Router = EmberRouter.extend({ location : config.locationType, rootURL : config.rootURL }) Router.map(function () { }) export default Router
var mem = new Uint8Array(30000); var r = 0; var buf = ''; var pc = []; function putchar() { process.stdout.write(String.fromCharCode(mem[r]));} function getchar() { if (buf.length == 0) return false; mem[r] = buf.charCodeAt(0); buf = buf.substring(1); return true; } function main() { mem[r]++; /* + */ r++; /* > */ mem[...
function booWho(bool) { return typeof bool === "boolean"; } booWho(null);
/* globals Swivel */ ;(function() { "use strict"; /** * Bucket test suite */ describe("Bucket", function() { var Bucket = Swivel.Bucket; var FeatureMap = Swivel.FeatureMap; var Behavior = Swivel.Behavior; describe("enabled", function() { it("should del...
'use strict'; define([ 'jquery', 'underscore', 'view/widget/panel/panel', 'view/widget/body/body', 'view/widget/navigation/navigation', ], function ($, _, Panel, Body, Navigation) { return Panel.extend({ initialize: function () { Panel.prototype.initialize.call(this, { ...
import React, {useContext} from "react"; import SurveyRule from "../components/SurveyRule"; import SvgIcon from "../components/svg/SvgIcon"; import {isNumber, sameContents} from "../utils/generalUtils"; import {ProjectContext} from "./constants"; const getNextId = array => array.reduce((maxId, obj) => Math.max(maxId...
// if change the 'printWidth' don't forget set same value: // - for `max_line_length` in `.editorconfig` // - for `max-len` rule in `eslint` config module.exports = { printWidth: 120, singleQuote: true, trailingComma: 'all', };
$(function() { var app_id = '184245778775374'; var scopes = 'email, public_profile, user_friends'; var btn_login = '<a href="#" id="login"><img src="../LOGO/face.png" width= "18%"></a>'; var div_session = "<div id='facebook-session'>"+ "<a href='#' id='logout' class='btn btn-danger'>DESLOGAR</a>"+ ...
// @flow import { AUTH_ASAP, AUTH_BASIC, AUTH_BEARER, AUTH_HAWK, AUTH_OAUTH_1, AUTH_OAUTH_2 } from '../common/constants'; import getOAuth2Token from './o-auth-2/get-token'; import getOAuth1Token from './o-auth-1/get-token'; import * as Hawk from 'hawk'; import jwtAuthentication from 'jwt-authentication'; im...
////////////////////////////////////////////// // TODO: // put in CQ // Mobile Events - test these ////////////////////////////////////////////// if (typeof jQuery === "undefined") { throw "This widget requires jquery module to be loaded"; } (function($){ var widgetObj = { options: { view...
var byname, microdom; if (typeof require !== "undefined") { byname = require("../byname.js"); microdom = require('microdom'); } else { byname = window.byname; microdom = window.microdom; } var ok = function(a, msg) { if (!a) throw new Error(msg || "not ok"); }; describe('byname', function() { describe('#byN...