code
stringlengths
2
1.05M
'use strict'; const gulp = require('gulp'); const addSrc = require('gulp-add-src'); const concat = require('gulp-concat'); const insert = require('gulp-insert'); const remoteSrc = require('gulp-remote-src'); const replace = require('gulp-replace'); const uglify = require('gulp-uglify'); const BENCHMARKJS_VERSION = r...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { fetchPolicies, setNavigation } from '../actions'; import localization from '../helpers/localization'; import Command from '../components/commands/command'; import Content from '../components/templates/content'; import ContentHeade...
// ##### # # // # # # #### ##### ## # # # ## ##### #### // # # # # # # # # # # # # # # # # // # #### # # # ##### # # # # # # # # # #### // # # # # # # # ####...
import { constants } from '../actions/apiQueries' function apiQueryReducer (state, action) { var key = null var queries = null switch (action.type) { case constants.FETCH_API: key = [action.path, action.params] queries = Object.assign({}, state.queries) queries[key] = { isFetching: true } ...
import Mixin from '@ember/object/mixin'; import $ from 'jquery'; import DS from 'ember-data'; export let Model = Mixin.create({ name: DS.attr('string'), getValidations: function () { let parentValidations = this._super(); let thisValidations = { }; return $.extend(true, {}, parentValidations, thisV...
// # Ghost Configuration // Setup your Ghost install for various environments // Documentation can be found at http://support.ghost.org/config/ var path = require('path'), config; config = { // ### Development **(default)** development: { // The url to use when providing links to the site, E.g. in...
--- yuiCompress: !!bool true --- (function($, window, document) { /** * Currently loaded page information. */ var curPage, /** * This function should be called in the jQuery click handler of a link * element (`a`). It will try to use AJAX and history magic to kee...
/* eslint-disable func-names, prefer-arrow-callback, */ const maxRecursive = require('./maxRecursive'); it(`maxRecursive`, function() { const len = 1e4; const array = Array.from(Array(len), () => Math.random()); console.time(`\nmaxRecursive`); const max = maxRecursive(array); console.timeEnd(`\nmaxR...
'use strict' const Router = require('../..').Server const program = require('commander') program .version('0.0.1') .option('-p, --port [Port]', 'The used port', 3000) .parse(process.argv) const port = program.port const app = new Router() app.newRoute() .matchPath('/') .toEndpoint('http://www.z...
/** * Created by JXP1195 on 7/2/2015. */ asyncTest(callbackTest); console.log('not done'); function asyncTest(cbt){ setTimeout(function(){cbt('done')},1500); } function callbackTest(output){ console.log(output); }
angular .module('controllers.news-detail.controller', []) .controller('NewsDetailController', [ '$scope', '$stateParams', 'News', '$ionicNavBarDelegate', '$window', function($scope, $stateParams, News, $ionicNavBarDelegate, $window) { $scope.article = News.get($stateParams.id); $scope.onPublishedCh...
$(document).ready(function () { $('.button-collapse').sideNav(); }); Template.ApplicationLayout.events({ "click .menu-item": function (event, template) { // FIXME change to $('.button-collapse').sideNav('hide'); (https://github.com/Dogfalo/materialize/issues/411) $('#sidenav-overlay').trigger('...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.16/esri/copyright.txt for details. //>>built define("require exports ../../../core/tsSupport/assignHelper ../../../core/tsSupport/extendsHelper ../../../Color ./support/colors ./support/SymbologyBase ./suppor...
angular.module('orderCloud') .directive('ocQuantityInput', OCQuantityInput) ; function OCQuantityInput(toastr, OrderCloudSDK, $rootScope) { return { scope: { product: '=', lineitem: '=', label: '@', order: '=', onUpdate: '&' }, ...
export const iosBarcode = {"viewBox":"0 0 512 512","children":[{"name":"g","attribs":{},"children":[{"name":"path","attribs":{"d":"M48,128v256h416V128H48z M128,320h-16V192h16V320z M192,352h-16V160h16V352z M263,336h-16V176h16V336z M336,352h-16V160h16\r\n\t\tV352z M400,320h-16V192h16V320z"},"children":[{"name":"path","at...
angular.module("ui.bootstrap", ["ui.bootstrap.tpls", "ui.bootstrap.modal"]); angular.module("ui.bootstrap.tpls", ["template/modal/backdrop.html","template/modal/window.html"]); angular.module('ui.bootstrap.modal', []) /** * A helper, internal data structure that acts as a map but also allows getting / removing * ele...
angular .module('openeApp.workflows') .controller('StartParallelGroupReviewWorkflowController', StartParallelGroupReviewWorkflowController); function StartParallelGroupReviewWorkflowController($controller, groupService, workflowDef) { angular.extend(this, $controller('...
module.exports = function (grunt) { grunt.registerTask('serve', [ 'concurrent:server', 'connect:server', 'karma:server', 'open', 'watch' ]); grunt.registerTask('serve:dist', [ 'connect:dist', 'open' ]); };
export const initialState = { user: null } export const getUser = (state = initialState) => state.user
var style = document.createElement('style'); var style_str = "@font-face {"; style_str = style_str + "font-family: \"Silkscreen\";"; style_str = style_str + "src: url(\"type/slkscr.ttf\");"; style_str = style_str + "}"; style.innerHTML = style_str; document.documentElement.appendChild(style); var docCookies={getIte...
legend = []; function addLegend(id, text) { if(typeof legend[id] === "undefined") { legend[id] = []; } legend[id][text] = text; } $("body").on("click", ".BPASLViewerLink", function(event){ event.stopPropagation(); var e = $(this); var wList = e.attr("data-list"), wRow = e.attr("data-row"), wView =...
'use strict'; crop.factory('cropAreaCircle', ['cropArea', function(CropArea) { var CropAreaCircle = function() { CropArea.apply(this, arguments); this._boxResizeBaseSize = 20; this._boxResizeNormalRatio = 0.9; this._boxResizeHoverRatio = 1.2; this._iconMoveNormalRatio = 0.9; this._iconMoveHo...
import { assert, deprecate, isTesting } from '@ember/debug'; import { onErrorTarget } from 'ember-error-handling'; import { beginPropertyChanges, endPropertyChanges } from 'ember-metal'; import Backburner from 'backburner'; import { RUN_SYNC } from '@ember/deprecated-features'; let currentRunLoop = null; export functi...
'use strict'; /*! * ss2react * https://github.com/SnakeskinTpl/ss2react * * Released under the MIT license * https://github.com/SnakeskinTpl/ss2react/blob/master/LICENSE */ const snakeskin = require('snakeskin'), babel = require('babel-core'); function setParams(p) { p = Object.assign({}, p, { doctype: 't...
'use strict'; angular.module("snippetShare") .controller("BoardsEditController", function ($scope, Board, User, $routeParams, $location, categories) { //request GET the current board from server Board.find($routeParams.userid, $routeParams.bid) .success(function (data) { ...
const _ = require(`lodash`) const normalize = require(`./normalize`) const fetchData = require(`./fetch`) const conflictFieldPrefix = `contentful` // restrictedNodeFields from here https://www.gatsbyjs.org/docs/node-interface/ const restrictedNodeFields = [`id`, `children`, `parent`, `fields`, `internal`] exports.s...
(function() { requirejs.config({ paths: { // google analytics "Analytics": "google_analytics_universal", // "Analytics": "google_analytics_classic", "Popover": "popover", "ContentTabs": "content_tabs", "AccordionContent": "accordion_con...
var User = function(id, name) { var id = id, name = name; return { id: id, name: name } }; exports.User = User;
var should = require('should'); var helper = require('../support/spec_helper'); var ORM = require('../.'); describe("hasMany extra properties", function() { var db = null; var Person = null; var Pet = null; var setup = function (opts) { opts = opts || {}; return function (done) { db.s...
$(function() { var linksURL = '../scripts/graph.js/links/json'; var hosts = {}; var links = {}; var nodes; var edges; var network; function addLink(link,from,to) { links[link] = link; edges.add({ id:link, from:from, to:to }); } function removeLink(link) { delete lin...
/** * lscache library * Copyright (c) 2011, Pamela Fox * * 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 ap...
require('board'); var util = require('utilities'); SetGame = function(options) { this.options = options; this.options.mode = this.options.mode || 'easy'; var opts = SetGame.MODES[this.options.mode]; this.board = new Board(opts); } // key used in message passing so that we can filter out messages addressed only...
declare module '@react-navigation/material-top-tabs' { //--------------------------------------------------------------------------- // SECTION 1: IDENTICAL TYPE DEFINITIONS // This section is identical across all React Navigation libdefs and contains // shared definitions. We wish we could make it DRY and imp...
(function() { function resolveTranslationValue(value, dimension) { var v = /^(-?\d+)px$/.exec(value); if (v) { return parseInt(v[1]); } v = /^(-?\d+)%$/.exec(value); if (v) { return dimension * parseInt(v[1]) / 100; } return 0; } function resolveCssTranslate(element)...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import {bindActionCreators} from 'redux'; import { Link } from 'react-router'; import { List } from 'semantic-ui-react'; import { fetchRoster } from './../actions/action_index'; class Roster extends Component { componentWillMount(){ ...
export default { LEFT_BUTTON: 0 };
app.controller('ProjectCtrl', function($scope, $state, $stateParams, Project) { $scope.state = $state.current.name; Project.get({name: $stateParams.name}, function(project) { $scope.project = project; }); $scope.navigateTo = function(state) { $state.transitionTo(state, {name: $stateParams.name}, {reload: true...
define([ 'app/App', 'dojo/has', 'dojo/request/xhr', 'dojo/_base/Color', 'esri/config', 'esri/symbols/SimpleMarkerSymbol', 'dojo/domReady!' ], function ( App, has, xhr, Color, esriConfig, SimpleMarkerSymbol ) { esriConfig.defaults.io.corsEnabledServers.push('g...
'use strict'; const routes = [ { method: 'GET', path: '/threejs/', config: { cache: false, handler(request, reply){ reply.view('./threejs/app/templates/index.pug', {}); }, tags: ['web'], validate: {} } } ]; module.exports = routes;
//Problem: https://www.hackerrank.com/challenges/electronics-shop //JavaScript /* Initial Thoughts: We can sort and compare all pairs. If a pair is > max and <= s then we set it as the new max. Then we eturn max after checking all pairs. Time Complexity: O(n * m) //Iterate over both arrays Space Complexity: O(1) ...
import { h } from 'omi'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon(h(h.f, null, h("circle", { cx: "4.5", cy: "9.5", r: "1.5" }), h("path", { d: "M22.17 9.17c0-3.91-3.19-7.06-7.11-7-3.83.06-6.99 3.37-6.88 7.19.09 3.38 2.58 6.16 5.83 6.7V20H6v-3h.5c.28 0 .5-.22.5-.5V13c0-.55-...
var path = require('path'); var exec = require('child_process').exec; var fs = require('fs'); exec('npm run-script generateparser', function(err, stdout,stderr) { console.log( stdout, stderr); if( err ) console.log( "!Error", err ); else { exec('npm run-script buildclient', function(err, stdout,stde...
(function() { var content = $('#content'); var video = $('#webcam')[0]; var resize = function() { var w = $(this).width(); var h = $(this).height() - 110; var ratio = video.width / video.height; if (content.width() > w) { content.width(w); content.height(w / ratio); } else { content.height(h);...
var count = (function log(Decimal) { var start = +new Date(), log, error, passed = 0, total = 0; if (typeof window === 'undefined') { log = console.log; error = console.error; } else { log = function (str) { document.body.innerHTML += str.replace('\n'...
/*! * Angular Material Design * https://github.com/angular/material * @license MIT * v1.1.1-master-f6dedff */ !function(e,t,o){"use strict";function n(e){function t(e,t){this.$scope=e,this.$element=t}return{restrict:"E",controller:["$scope","$element",t],link:function(t,o){o.addClass("_md"),e(o),t.$broadcast("$mdC...
'use strict'; var os = require('os'); var Helper = require('../../helper'); describe('bpmn-moddle - read', function() { var moddle = Helper.createModdle(); function read(xml, root, opts, callback) { return moddle.fromXML(xml, root, opts, callback); } function fromFile(file, root, opts, callback) { ...
/* * Network Access Status v2.1.0 *Copyright 2017 *Authors: Venkatesh Chinthakindi. *All Rights Reserved. *use ,reproduction, distribution, and modification of this code is subject to the terms and conditions of the MIT license * */ debugger; var networkAccessStatus=(function(){ return{ check: function() { ...
function SimpleProfileMapper (pu) { if(!(this instanceof SimpleProfileMapper)) { return new SimpleProfileMapper(pu); } this._pu = pu; } SimpleProfileMapper.fromMetadata = function (metadata) { function CustomProfileMapper(user) { if(!(this instanceof CustomProfileMapper)) { return new CustomProfi...
'use strict'; // lessons-model.js - A mongoose model // // See http://mongoosejs.com/docs/models.html // for more of what you can do here. const mongoose = require('mongoose'); const Schema = mongoose.Schema; const lessonsSchema = new Schema({ name: { type: String, required: true, unique: true }, createdAt: { ty...
function paginatedResultInterface(context) { describe('the paginated result', function() { var result; beforeEach(function() { result = context.result; }); it('is defined', function(){ expect(result).toBeDefined(); }); it('has not previous page at the beginning', function() { ...
/** * @author mrdoob / http://mrdoob.com/ */ THREE.Color = function ( color ) { if ( arguments.length === 3 ) { return this.fromArray( arguments ); } return this.set( color ); }; THREE.Color.prototype = { constructor: THREE.Color, r: 1, g: 1, b: 1, set: function ( value ) { if ( value instanceof ...
'use strict'; require('busboy'); var dataPath1 = 'busboy/lib/types/test-y-require.js'; var data1 = require(dataPath1); console.log(data1); require('log4js/index.js'); var dataPath2 = 'log4js/lib/appenders/test-z-require.js'; var data2 = require(dataPath2); console.log(data2);
var path = require("path"); var fs = require("fs"); function detectWithExtension(filename, extensions = [""], folders = [""]) { if (extensions === null) { extensions = [""]; } if (folders === null) folders = [""]; extensions = [].concat(extensions); return new Promise(function (ok, oh) { ...
const {Stream} = require('stream') /** * This is taken from event-stream npm module. * * Merges the given streams into a new stream. * * @param {Stream[]) toMerge streams to be merged */ module.exports = function mergeStream (toMerge) { const stream = new Stream() stream.setMaxListeners(0) // allow adding m...
import React from 'react' /* interface RDFISelector{ rdfi, onRDFIChange } */ export default class RDFISelector extends React.PureComponent{ render(){ const { rdfi, onRDFIChange } = this.props; return React.createElement( 'div', { className: 'rdfi...
window.addEventListener( 'DOMContentLoaded', function () { 'use strict'; var i, l; var $navs = document.querySelectorAll( '.CG2-compactNav' ); if ( $navs.length === 0 ) { return; } for ( i = 0, l = $navs.length; i < l; i = ( i + 1 )|0 ) { ( function () { var $nav = $navs[ i ...
var fs = require('fs'); var shaker = require('../lib/shaker.js') module.exports = function(app,client_redis,__dirname){ app.get("/cms",function(req,res){ if(!req.session.authentificated) res.redirect('/'); var f=[]; f[0]=''; f[1]=''; f[2]=''; f[3]=''; f[4]=''; var d=[]; ...
let utils = require('../core/utils.js'); let _ = require('underscore'); /* * beware of distance (period) versus * values (date), see {date,nbr}Mgr.js */ let computeTicks = function(first,last,minor,fac){ let mgr = utils.mgr(first); let start = mgr.closestRoundUp(first,mgr.divide(mgr.distance(first,last),10)); let...
module.exports = require('./src/initializer');
import crypto from 'crypto'; export default function(method, username, password) { const hash = crypto.createHmac(method, username); hash.update(password); return hash.digest('hex'); }
var path = require('path'); var express = require('express'); var webpack = require('webpack'); var config = require('./webpack.config.dev'); var pug = require('pug'); var app = express(); var compiler = webpack(config); app.locals.env = app.settings.env; app.use(express.static('dist')); app.use(require('webpack-hot-...
'use strict'; var mongoose = require('mongoose'); var futures = require('../futures'); var _ = require('lodash'); var validateLoyalty = function(obj) { if(!_.isObject(obj)) { return false; } var allValid = true; _.each(obj, function(val, key) { if(!_.isNumber(val) || val <= 0 || ...
var mime = require('mime'), uuid = require('node-uuid'), aws = require('aws-sdk'), express = require('express'); function checkTrailingSlash(path) { if (path && path[path.length-1] != '/') { path += '/'; } return path; } function S3Router(options) { var S3_BUCKET = options.bucke...
/** * * Fetch a listing of user accounts. * * @author Salvatore Garbesi <sal@dolox.com> * @module router/adminUserAnswerGet * * @return {undefined} Nothing is returned from this Function. * */ module.exports = function(app) { 'use strict'; app.service.express.get('/admin/user/answer/', function(request, response) { ...
(function (factory) { if (typeof module === "object" && typeof module.exports === "object") { var v = factory(require, exports); if (v !== undefined) module.exports = v; } else if (typeof define === "function" && define.amd) { define(["require", "exports", "../src/index"], factory); ...
(function () { "use strict"; function bidderDescriptionStore(dispatcher, BIDDER_DESCRIPTION_ACTIONS) { var self = this; dispatcher.addListener({ actionType: BIDDER_DESCRIPTION_ACTIONS.ADD_OR_UPDATE, callback: function (options) { self.storeInstance.add...
// <img src="http://www.kegg.jp/kegg/pathway/pti/pti00630.png"/> // http://rest.kegg.jp/get/pti00630/kgml //http://stackoverflow.com/questions/610406/javascript-equivalent-to-printf-string-format if (!String.format) { String.format = function(format) { var args = Array.prototype.slice.call(arguments, 1); re...
describe('Ionic Checkbox', function() { var el, scope, compile; beforeEach(module('ionic')); beforeEach(inject(function($compile, $rootScope) { compile = $compile; scope = $rootScope; })); it('should set the checkbox name', function() { el = compile('<ion-checkbox name="myname"></ion-checkbox>'...
'use strict'; angular.module('gisto.directive.editor', []).directive('editor', ['$timeout', 'appSettings', function ($timeout, appSettings) { return { restrict: 'E', template: '<div ng-if="showmd" class="special-editor-markdown" ng-bind-html="file.content | markDown"></div>' + '<pre id="edi...
br: { year: [ 'ano', 'anos' ], month: [ 'mês', 'meses' ], week: [ 'semana', 'semanas' ], day: [ 'dia', 'dias' ], hour: [ 'hora', 'horas' ], minute: [ 'minuto', 'minutos' ], past: function (vagueTime, unit) { ret...
/** * Select2 Norwegian translation. * * Author: Torgeir Veimo <torgeir.veimo@gmail.com> */ (function ($) { "use strict"; $.extend($.fn.select2.defaults, { formatNoMatches: function () { return "Ingen treff"; }, formatInputTooShort: function (input, min) { var n = min - input.length; retur...
import uglify from 'rollup-plugin-uglify'; import { minify } from 'uglify-js-harmony'; export default { entry: 'lib/index.js', format: 'umd', dest: 'js-csvparser.umd.min.js', moduleName: 'CSVParser', plugins: [ uglify({}, minify) ] };
const debug = require('debug')('cygnus:api:project'); const express = require('express'); const router = express.Router(); const ProjectService = require('../service/srv.project'); // Get all actived projects. router.get('/all', (req, res) => { var service = new ProjectService(); service.getAllProjects(true) ...
$(document).ready( function() { $('#newWeddingBtn').click( function(e) { var regExp = new RegExp("^[A-z]*$"); if(regExp.test($('#weddingName').val())) { regExp = new RegExp("^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}$"); if(regExp.test($('#brideEmail').val())) ...
import { test, module } from 'qunit'; import { setupTest } from 'ember-qunit'; import { setupPact, given, interaction } from 'ember-cli-pact'; import { run } from '@ember/runloop'; module('Pact | People', function(hooks) { setupTest(hooks); setupPact(hooks); test('listing people', async function(assert) { g...
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d...
(function (root, factory) { if (typeof define === 'function' && define.amd) { //Allow using this built library as an AMD module //in another project. That other project will only //see this AMD call, not the internal modules in //the closure below. define([], factory); } ...
var breadcrumbs=[['-1',"",""],['2',"SOLUTION-WIDE PROPERTIES Reference","topic_0000000000000C16.html"],['2267',"Tlece.Recruitment.Models.RecruitmentPlanning Namespace","topic_0000000000000692.html"],['2709',"VacancyVm Class","topic_0000000000000923.html"],['2710',"VacancyVm Constructor","topic_0000000000000924.html"]];
module.exports = function(grunt){ grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), jshint: { all:['src/*.js'] }, concat: { dist:{ src:'src/*.js', dest:'dist/<%= pkg.name %>.js' } }, uglify: { options: { banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy...
import React from 'react'; import ReactDOM from 'react-dom'; import injectTapEventPlugin from 'react-tap-event-plugin'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; // Needed for onTouchTap // http://stackoverflow.com/a/34015469/988941 injectTapEventPlugin(); ReactDOM.render(<...
/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2016 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ // Provides control sap.m.DateTimeInput. sap.ui.define(['jquery.sap.global', 'sap/ui/core/Control', './library', 'sap/ui/model/type/D...
import { RESULTS_PAGINATION, SET_SHOWMORE } from '../actions/types'; const INITIAL_STATE = { }; export default function(state = INITIAL_STATE, action) { switch(action.type) { case RESULTS_PAGINATION: return { ...state, ...action.payload } case SET_SHOWMORE: return { .....
c['24']=[['25',"Methods","topic_0000000000000009_methods--.html",1]];
'use strict' /** * Modules (Electron) * @constant */ const { app, ipcMain } = require('electron') /** * Modules (Third party) * @constant */ const logger = require('@sidneys/logger')({ write: true }) const notificationProvider = require('@sidneys/electron-notification-provider') /** * Modules (Local) * @co...
var showf = require('../'); var test = require('tape'); test('Infinity', function (t) { t.equal(showf( Infinity, 0), undefined); t.equal(showf(-Infinity, 0), undefined); t.equal(showf( Infinity, 1), undefined); t.equal(showf(-Infinity, 1), undefined); t.equal(showf( Infinity, 2), ' I'); t.equal...
var Model = require('ampersand-model'); module.exports = Model.extend({ type: 'repo', props: { // npm slug id: ['string', true], description: ['string', true], tags: ['array', true], author: ['string', true, ''], homepage: ['string', true, ''] }, derived...
'use strict'; var mongoose = require('mongoose') // mongo abstraction , request = require('request') // to place http requests , cheerio = require('cheerio') // to parse fetched DOM data , async = require('async') // to call many async functions in a loop , provider = require('../controllers/provider') // prov...
import configureStore from 'store/configureStore'; /*const state = (<window>window).__initialState__ || undefined;*/ export const store = configureStore({});
const iconWithOptionsDriverFactory = component => ({ element: () => component, mouseEnter: () => browser.actions().mouseMove(component.$('[data-hook=icon-wrapper')).perform(), mouseLeave: () => browser.actions().mouseMove({x: 400, y: -100}).perform(), getDropdown: () => component.$(`[data-hook="iconWithOptions-...
// Quartz.Points // require:core.point var Points = null; (function () { Points = qz.Points = function (points) { this._points = []; if (Util.isArray(points)) { this.addMultiplePoint(points); } }; // yeni eleman ekler Points.prototype.addPoint = function (p , ind...
// Rdio Utils 0.0.1 // Copyright 2013, Rdio, Inc. // https://github.com/rdio/jsapi-examples/tree/master/utils // Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php (function(R) { var verbose = false; // ---------- var log = function() { /*globals console */ if (verbose &...
'use strict'; export class NavbarComponent { constructor(Auth) { 'ngInject'; this.isLoggedIn = Auth.isLoggedInSync; this.isAdmin = Auth.isAdminSync; this.getCurrentUser = Auth.getCurrentUserSync; } } export default angular.module('directives.navbar', []) .component('navbar', { template: r...
var undef; console.log("Undefined: " + typeof undef); var nil = null; console.log ("Null: " + typeof nil);
import List from './list'; import React from 'react'; export default class ChannelSwitcher extends React.Component { getHomeChannelClassName() { return `account-channel ${this.getHomeChannelSelected() ? ' account-channel-selected' : ''}`; } getHomeChannelSelected() { return this.props.channelId === 'HOM...
import * as ReactNative from "react-native"; function getString(prim) { return ReactNative.Clipboard.getString(); } function setString(prim) { ReactNative.Clipboard.setString(prim); return /* () */0; } export { getString , setString , } /* react-native Not a pure module */
search_result['3173']=["topic_000000000000079D_attached_props--.html","AddVideoCommand Attached Properties",""];
//MooTools More, <http://mootools.net/more>. Copyright (c) 2006-2009 Aaron Newton <http://clientcide.com/>, Valerio Proietti <http://mad4milk.net> & the MooTools team <http://mootools.net/developers>, MIT Style License. MooTools.More={version:"1.2.3.1"};var Log=new Class({log:function(){Log.logger.call(this,arguments)...
const findLayoutDirectories = require('prefab/MaxBucknell_Prefab/lib/find-layout-directories'); const glob = require('glob'); const _ = require('lodash'); const fs = require('fs'); const path = require('path'); const magentoData = require('prefab/MaxBucknell_Prefab/lib/magento-data'); const cssPattern = /<css\s+src="(...
var OdysseusLimiter = require('../index'); var express = require('express'); var request = require('supertest'); describe('limit', function(){ var app; beforeEach(function(){ app = express(); }); describe('defaults', function(){ it('key should be general', (done) => { app.us...
import Note from './Note' export default Note