code stringlengths 2 1.05M |
|---|
var module = angular.module("example", ["agGrid"]);
module.controller("exampleCtrl", function($scope, $http) {
var columnDefs = [
{headerName: "Athlete", field: "athlete", width: 150, suppressSizeToFit: true},
{headerName: "Age", field: "age", width: 90, minWidth: 50, maxWidth: 100},
{hea... |
/* [ ---- Beoro Admin - dashboard ---- ] */
$(document).ready(function() {
//* todo list
beoro_todoList.init();
//* pageviews chart
beoro_charts.pages();
//* sales chart
beoro_charts.sales();
//* users chart
beoro_charts.users();
//* small gal... |
module.exports = {
mongodb: {
uri: 'MONGODB_URI',
},
googleAnalyticsClientId: 'GOOGLE_ANALYTICS_ID',
gameDbPath: 'GAME_DB_PATH',
};
|
describe('Common Angular Base Apps Services', function() {
beforeEach(module('base.core'));
it('should exist', inject(function(BaseAppsApi) {
expect(BaseAppsApi).not.toEqual(null);
}));
//testing listeners
it('should subscribe and fire a new listener', inject(function(BaseAppsApi) {
var response = ... |
import React from 'react'
import ReactDOM from 'react-dom'
import MemoryRouter from 'react-router/MemoryRouter'
import NavLink from '../NavLink'
describe('NavLink', () => {
const node = document.createElement('div')
afterEach(() => {
ReactDOM.unmountComponentAtNode(node)
})
describe('When a <NavLink> is ... |
(function(){
var curriedAdd, add5, slice$ = [].slice;
function namedFunction(){
var args, a, b, options;
args = slice$.call(arguments);
a = args.a, b = args.b, options = args.options;
import$(options, a);
return options.b = b, options;
}
curriedAdd = curry$(function(x, y, z){
x + y + z;
... |
! function($) {
"use strict";
var Typed = function(el, options) {
// chosen element to manipulate text
this.el = $(el);
// options
this.options = $.extend({}, $.fn.typed.defaults, options);
// attribute to type into
this.isInput = this.el.is('input');
this.attr = this.options.attr;
// show curso... |
'use strict';
var last = require('es5-ext/string/#/last')
, template = require('es6-template-strings')
, mailer = require('mano/lib/server/mailer')
, mano = require('mano')
, _ = mano.i18n.bind("Authentication")
, origin = mano.env.url
, getUrl;
if (origin == null) throw new Error("Url not set ... |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
/... |
'use strict';
const blueprintHelpers = require('ember-cli-blueprint-test-helpers/helpers');
const setupTestHooks = blueprintHelpers.setupTestHooks;
const emberNew = blueprintHelpers.emberNew;
const emberGenerateDestroy = blueprintHelpers.emberGenerateDestroy;
const setupPodConfig = blueprintHelpers.setupPodConfig;
con... |
/*
-- Credits
This file has been adapted from an open source project.
You can find the source code of their open source projects along with license information below.
Project: SOAP Cookie Authentication https://github.com/shanestillwell/soap-cookie
Author: Shane A. Stillwell <shanestillwell@gmail.com>
License: BSD-2-C... |
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 2017,
sourceType: 'module'
},
plugins: [
'ember'
],
extends: [
'eslint:recommended',
'plugin:ember/recommended'
],
env: {
browser: true
},
rules: {
"ember/avoid-leaking-state-in-ember-objects": 0
},
override... |
import { d3SelectAll } from 'dummy/helpers/d3-select-all';
import { test } from 'qunit';
import d3UnitModule from '../../helpers/d3-unit-helper';
d3UnitModule('Unit | Helper | d3 select-all');
test('it returns a function', function(assert) {
assert.equal(typeof d3SelectAll(['circle']), 'function');
});
test('it wo... |
var baseIsEqual = require('./_baseIsEqual'),
get = require('./get'),
hasIn = require('./hasIn'),
isKey = require('./_isKey'),
isStrictComparable = require('./_isStrictComparable'),
matchesStrictComparable = require('./_matchesStrictComparable'),
toKey = require('./_toKey');
/** Used to ... |
var searchData=
[
['init_5fmac',['init_MAC',['../classethernerd__ethernet__interface.html#aeb85aa0a5eefecd16c90d982da035130',1,'ethernerd_ethernet_interface::init_MAC()'],['../classethernerd__ethernet.html#a868fce79230158a52c76b4e73e24d9c6',1,'ethernerd_ethernet::init_MAC()']]],
['is_5freserved',['is_reserved',['..... |
var extended = require('./extended')
, elementary = require('./elementary')
, traverser = require('traverser')
, render = require('render')
, fail = require('./failure').fail
module.exports = {
every: every,
has: has,
apply: apply,
throws: throws,
path: path,
noop: noop,
atIn... |
import CardPaymentFormRoute from './CardPaymentForm'
import CardPaymentApprovalRoute from './CardPaymentApproval'
import CardPaymentResultRoute from './CardPaymentResult'
export {
CardPaymentFormRoute,
CardPaymentApprovalRoute,
CardPaymentResultRoute,
}
|
(function (angular, buildfire) {
'use strict';
if (!buildfire) {
throw ("buildfire not found");
}
angular
.module('media_RSSModals', ['ui.bootstrap'])
.factory('Modals', ['$modal', function ($modal) {
return {
removeTrackModal: function () {
... |
/**
* # Utils
* Parts of the model code which can be split out and unit tested
*/
const _ = require('lodash');
const Promise = require('bluebird');
const ObjectId = require('bson-objectid');
const errors = require('@tryghost/errors');
let attach;
let detach;
/**
* Attach wrapper (please never call attach manual!)... |
/**
* Array Utilities
* @module Ink.Util.Array_1
* @version 1
*/
Ink.createModule('Ink.Util.Array', '1', [], function() {
'use strict';
var arrayProto = Array.prototype;
/**
* @namespace Ink.Util.Array_1
*/
var InkArray = {
/**
* Checks if a value is an array
... |
import Mixin from '@ember/object/mixin';
import $ from 'jquery';
export let Serializer = Mixin.create({
getAttrs: function () {
let parentAttrs = this._super();
let attrs = {
class: { serialize: 'odata-id', deserialize: 'records' }
};
return $.extend(true, {}, parentAttrs, attrs);
},
init:... |
import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import isRequiredForA11y from 'react-prop-types/lib/isRequiredForA11y';
const Popover = React.createClass({
mixins: [ BootstrapMixin ],
propTypes: {
/**
* An html id attribute, necessary for ac... |
var addSetEntry = require('./_addSetEntry'),
arrayReduce = require('./_arrayReduce'),
setToArray = require('./_setToArray');
/**
* Creates a clone of `set`.
*
* @private
* @param {Object} set The set to clone.
* @returns {Object} Returns the cloned set.
*/
function cloneSet(set) {
var Ctor ... |
//@flow
const w: {[string]: number} = {};
const x: {} = {}; // lint
const y: {...} = {}; // Ok
const z: {||} = {}; // Error
|
/* eslint-disable import/no-extraneous-dependencies, import/extensions */
import Class from 'src/class';
describe('Class function', () => {
const symbolIt = typeof Symbol === 'function' ? it : xit;
it('allows to inherit', () => {
const A = Class({ a: true });
const B = Class({ b: true, extends: A });
... |
var blinkstick = require('blinkstick'),
device = blinkstick.findFirst();
if (device) {
var finished = false;
device.setInverse(true);
device.setColor("blue", function () {
finished = true;
});
var wait = function () { if (!finished) setTimeout(wait, 100)}
wait();
}
|
YUI.add('yui2-yuitest', function(Y) {
var YAHOO = Y.YUI2;
/*
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.net/yui/license.txt
version: 2.6.0
*/
YAHOO.namespace("tool");
//---------------------------------------------------------------------... |
//= require apitome/jquery-2.0.3.min
//= require apitome/bootstrap.min
//= require apitome/highlight.min
hljs.initHighlightingOnLoad();
jQuery(function(){
$(document.body).scrollspy({target: '.sidebar', offset: $('.navbar').outerHeight(true)});
var $sideBar = $('.single-page .sidebar');
$sideBar.affix({
off... |
define([
'dojo/_base/declare', 'dojo/_base/lang', 'dojo/_base/Deferred',
'dojo/request', 'dojo/when', 'dojo/topic',
'dojo/store/Memory', 'dojo/store/util/QueryResults', 'dojo/Stateful',
'../widget/GridSelector', '../widget/TsvCsvFeatures'
], function (
declare, lang, Deferred,
request, when, Topic,
Memory... |
/**
Template Name: Uplon Dashboard
Author: CoderThemes
Email: coderthemes@gmail.com
File: Chartjs
*/
!function($) {
"use strict";
var ChartJs = function() {};
ChartJs.prototype.respChart = function(selector,type,data, options) {
// get selector by context
var ctx = selector.get(0).getCon... |
import Directive from './directive';
import {STOP_PROPAGATE_NAME} from '@grid/view/definition';
class StopPropagate extends Directive(STOP_PROPAGATE_NAME) {
constructor($element) {
super();
this.element = $element[0];
}
onInit() {
this.element.addEventListener(this.key, e =>
e.stopPropagation()
);
}
}... |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M12 6.5c3.79 0 7.17 2.13 8.82 5.5-1.65 3.37-5.02 5.5-8.82 5.5S4.83 15.37 3.18 12C4.83 8.63 8.21 6.5 12 6.5m0-2C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9... |
/**
* @license
* MIT License
* Copyright (c) 20092011
* 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 use, copy, mod... |
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
src: 'src/',
srcMain: '<%= src %>main/',
srcTest: '<%= src %>test/',
out: 'out/',
clean: {
out: {
src: ['<%= out %>']
}
},
copy: {
dev: {
cwd: 's... |
//Module dependencies
var express = require('express')
, http = require('http')
, passport = require('passport')
, util = require('util')
, session = require('express-session')
, cookieParser = require('cookie-parser')
, bodyParser = require('body-parser')
, expressValidator = require('expre... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... |
var Utils = require("./../utils")
, DataTypes = require('./../data-types')
module.exports = (function() {
var BelongsTo = function(srcDAO, targetDAO, options) {
this.associationType = 'BelongsTo'
this.source = srcDAO
this.target = targetDAO
this.options = optio... |
'use strict';
/**
* @ngdoc function
* @name tbsApp.controller:ExploreBuddyTharosCtrl
* @description
* # ExploreBuddyTharosCtrl
* Controller of the tbsApp
*/
angular.module('tbsApp').controller('ExploreBuddyTharosCtrl', function ($scope, RBuddy, BuddyData) {
RBuddy.all(function(data){
for(var i = 0; i... |
const sandbox = sinon.sandbox.create()
afterEach(() => {
sandbox.restore()
})
module.exports = sandbox
|
module.exports={A:{A:{"2":"K C G E B A WB"},B:{"2":"D u Y I M H"},C:{"2":"0 1 2 3 5 6 7 UB z F J K C G E B A D u Y I M H N O P Q R S T U V W X w Z a b c d e f L h i j k l m n o p q r s t y v g SB RB"},D:{"1":"1 2 5 6 7 v g GB BB DB VB EB","2":"0 3 F J K C G E B A D u Y I M H N O P Q R S T U W X w Z a b c d e f L h i j ... |
(function($){
$.lnf = {
"toolTable": function(table){
return $.ajax({
url: '/data/feed/resource-info/json',
dataType: 'json'
});
},
"getResourceId": function(){
//this gets the the ResourceID stored on the page, if any
var div = $... |
/*! version : 4.17.43
=========================================================
bootstrap-datetimejs
https://github.com/Eonasdan/bootstrap-datetimepicker
Copyright (c) 2015 Jonathan Peterson
=========================================================
*/
/*
The MIT License (MIT)
Copyright (c) 2015 Jonathan Peterso... |
/**
* Module dependencies.
*/
const mongoose = require('mongoose');
const AuthUserModel = mongoose.model('AuthUserModel');
const CabinQuestUserModel = mongoose.model('CabinQuestUserModel');
const util = require('util');
const events = require('events');
const btoa = require('btoa');
const _ = require('lodash');
con... |
declare module "react-dnd" {
declare type Identifier = string;
declare type ClientOffset = {
x: number,
y: number,
...
};
declare type ElementOrNode = React$Element<any> | HTMLElement;
declare type DndOptions<P> = { arePropsEqual?: (props: P, otherProps: P) => boolean, ... };
declare type Co... |
import Ember from 'ember';
import TestModule from 'ember-test-helpers/test-module';
import TestModuleForAcceptance from 'ember-test-helpers/test-module-for-acceptance';
import TestModuleForIntegration from 'ember-test-helpers/test-module-for-integration';
import TestModuleForComponent from 'ember-test-helpers/test-modu... |
const Event = Jymfony.Contracts.EventDispatcher.Event;
/**
* @memberOf Jymfony.Contracts.Metadata.Event
*/
export default class MetadataLoadedEvent extends Event {
/**
* Constructor.
*
* @param {Jymfony.Contracts.Metadata.MetadataInterface} metadata
*/
__construct(metadata) {
supe... |
import BackboneEvents from 'backbone-events-standalone';
import _ from 'underscore';
import {mediaPlayer} from 'pageflow/frontend';
import sinon from 'sinon';
describe('hooks', function() {
var hooks = mediaPlayer.hooks;
var asyncPlay = mediaPlayer.asyncPlay;
describe('#play', function() {
describe('with... |
'use strict';
describe.skip('App Searching', function() {
describe('#AV.SearchSortBuilder', function() {
it('should build sort string.', function() {
var builder = new AV.SearchSortBuilder();
var s = builder
.ascending('a')
.descending('b', 'max')
.whereNear('location', new AV... |
/*!
* Angular Material Design
* https://github.com/angular/material
* @license MIT
* v1.1.0-rc3-master-30e6657
*/
goog.provide('ng.material.components.subheader');
goog.require('ng.material.components.sticky');
goog.require('ng.material.core');
/**
* @ngdoc module
* @name material.components.subheader
* @descri... |
// Copyright IBM Corp. 2013,2016. All Rights Reserved.
// Node module: loopback-datasource-juggler
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
// Turning on strict for this file breaks lots of test cases;
// disabling strict for this file
/* eslint-d... |
var ngMediaQuery=angular.module("ngMediaQuery",[]);ngMediaQuery.value("media",{xs:[-1,767],sm:[768,991],md:[992,1199],lg:[1200,-1]}),ngMediaQuery.factory("NgMediaQuery",["$rootScope","$window","$log","media","$q",function(n,e,a,r,i){var o={},u=e.innerWidth,t=function(){angular.forEach(r,function(e,a){(u>e[0]||e[0]<0)&&... |
const Promise = require(`bluebird`)
const convertHrtime = require(`convert-hrtime`)
const Worker = require(`jest-worker`).default
const numWorkers = require(`physical-cpu-count`) || 1
const { chunk } = require(`lodash`)
const workerPool = new Worker(require.resolve(`./worker`), {
numWorkers,
forkOptions: {
sil... |
(function(c,r){function k(){c[h]||(c[h]={});return c[h]}var h="app",g;g=k();g.namespace=function(g,k){if(g){g=String(g);var l=g.split("."),n=l.length,e=c[h],a;e||(c[h]={});if(!l)return!1;for(a=0;a<n;a+=1)e[l[a]]||(e[l[a]]={}),a===n-1&&k&&(e[l[a]]=k),e=e[l[a]];return e}return!1};c[h]=g;c.getNamespace=c.getNs=k})(window)... |
/**
* @license Highcharts JS v8.0.1 (2020-03-02)
* @module highcharts/modules/vector
* @requires highcharts
*
* Vector plot series module
*
* (c) 2010-2019 Torstein Honsi
*
* License: www.highcharts.com/license
*/
'use strict';
import '../../modules/vector.src.js';
|
/**
* Module dependencies
*/
var _ = require('@sailshq/lodash');
var rebuild = require('./rebuild');
/**
* validateExemplarStrict()
*
* Check the specified value (`supposedExemplar`) and ensure it is
* a pure RTTC exemplar. If not, throw an error.
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("... |
//jshint ignore: start
module.exports = [{
table: 'table1:collection1',
fields: [{
a: 'rowMongo1',
convertFn: function(entry) {
return 'convertFn ' + entry;
}
}, {
b: 'rowMongo2',
type: 'string'
}, {
c: 'rowMongo3',
type: 'string'
}, {
d: 'rowMongo4',
type: 'integer'... |
/* global confirm, redux, redux_change */
jQuery(document).ready(function() {
/*
jQuery('.redux-icon-select-selected').each(function() {
var parent = jQuery(this).parents('.redux-icon-container:first');
parent.animate({
scrollTop: (jQuery(this).top + parent.scrollTop())
}, 500);
});
*/
// On label click, ... |
'use strict';
const OPTIONS = [
'name',
'selector',
'element',
'tmpl'
];
module.exports = (event, state, args, next) => {
let data = event.data;
if (!state.view) {
return next(new Error('Flow-view.state: Flow-view not initialized'));
}
let options = {};
OPTIONS.forEach(op... |
module.exports={A:{A:{"2":"K C G E B A WB"},B:{"1":"I M H","2":"D u Y"},C:{"1":"2 5 6 7 v g","2":"UB z F J K C G E B A D u Y I M H N O P Q R S T U V W X w Z a b c d e f L h i j k l m n o p q r s t y SB RB","194":"0 1 3"},D:{"1":"0 1 2 3 5 6 7 y v g GB BB DB VB EB","2":"F J K C G E B A D u Y I M H N O P Q R S T U V W X ... |
'use strict';
describe('Directive: pieChannel', function () {
// load the directive's module and view
beforeEach(module('tophemanDatavizApp'));
var element, scope;
beforeEach(inject(function ($rootScope) {
scope = $rootScope.$new();
}));
it('should make hidden element visible', inject(function ($co... |
function makeid()
{
var text = "";
var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
for( var i=0; i < 5; i++ )
text += possible.charAt(Math.floor(Math.random() * possible.length));
return text;
}
function signout(){
element(by.id('userDropdown')).click();
... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.2... |
'use strict';
var $ = require('jquery');
var UI = require('./core');
var isWeChat = window.navigator.userAgent.indexOf('MicroMessenger') > -1;
function appendWeChatSDK(callback) {
var $weChatSDK = $('<script/>', {
id: 'wechat-sdk'
});
$('body').append($weChatSDK);
$weChatSDK.on('load', function() {
... |
function processQueue(router, routerQueue, routeQueue, to, from, resolve, reject, direction) {
const queue = [];
if (Array.isArray(routeQueue)) {
queue.push(...routeQueue);
} else if (routeQueue && typeof routeQueue === 'function') {
queue.push(routeQueue);
}
if (routerQueue) {
if (Array.isArray(... |
const stack = require('./stack');
const memory = require('./memory');
module.exports = {
stack,
memory
}; |
// Copyright Joyent, Inc. and other Node contributors.
//
// 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 use, copy, modi... |
/**
* @class Hooks
* @memberof HaveAPI.Client
*/
function Hooks (debug) {
this.debug = debug;
this.hooks = {};
};
/**
* Register a callback for particular event.
* @method HaveAPI.Client.Hooks#register
* @param {String} type
* @param {String} event
* @param {HaveAPI.Client~doneCallback} callback
*/
Hooks.pr... |
var mocha = require("mocha");
var should = require("should");
var help = require("./helpers");
describe('Super Script QType Matching', function(){
before(help.before("qtype"));
describe('Simple Question Matching (qSubType)', function(){
it("should reply to simple string", function(done) {
bot.reply("u... |
(function () {
/**
* The default state core singleton for {@link SceneJS.Name} nodes
*/
var defaultCore = {
type:"name",
stateId:SceneJS._baseStateId++,
name:null
};
var coreStack = [];
var stackLen = 0;
SceneJS_events.addListener(
SceneJS_events.SCEN... |
import { moduleFor, RenderingTest } from '../utils/test-case';
import { strip } from '../utils/abstract-test-case';
import { Component } from '../utils/helpers';
import { Object as EmberObject } from 'ember-runtime';
import { set, setProperties, computed } from 'ember-metal';
import { GLIMMER_CUSTOM_COMPONENT_MANAGER ... |
var util = require("util");
var youtube = require('youtube-api');
var BaseTrigger = require("./baseTrigger.js").BaseTrigger;
/*
Trigger that responds to messages with the first matching YouTube search result.
command = string - a message must start with this + a space before a response will be given
rickrollChance = ... |
import { nowAsEpoch } from 'binary-utils';
import * as types from '../_constants/ActionTypes';
import { api } from '../_data/LiveData';
import { sellExpiredContract } from './TradeActions';
export const serverDataPortfolio = serverResponse => ({
type: types.SERVER_DATA_PORTFOLIO,
serverResponse,
});
export co... |
export { default } from 'ember-bootstrap/components/bs-form/element/layout/horizontal'; |
/**
* Interactive Labs - TysonVet.com
* @version v0.0.1
*/
"use strict";var stickyTop=250,pImg;$(function(){getParams(),pImg=queryParams.pimg,$("body").scrollspy({target:"#stickyNavMain"}),$(window).scroll(function(){var a=$(window).scrollTop();a>=stickyTop?$("#stickyNavMain").removeClass("hidden"):$("#stickyNavMain... |
import { publishScheduledArticles } from '../src/api/apps/articles/model'
import RavenServer from 'raven'
const { SENTRY_PRIVATE_DSN } = process.env
RavenServer.config(SENTRY_PRIVATE_DSN).install()
RavenServer.context(() => {
publishScheduledArticles((err, results) => {
if (err) {
console.log(err)
re... |
/*
* @name उछाल वाले बुलबुले
* @frame 720,400
* @description कीथ पीटर्स के कोड पर आधारित विवरण। एकाधिक-वस्तु टकराव ..
*/
let numBalls = 13;
let spring = 0.05;
let gravity = 0.03;
let friction = -0.9;
let balls = [];
function setup() {
createCanvas(720, 400);
for (let i = 0; i < numBalls; i++) {
balls[... |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
export var UPGRADE_MODULE_NAME = '$$UpgradeModule';
export var INJECTOR_KEY = '$$angularInjector';
export var $INJECT... |
"use strict"
// Get the testing library.
const tape = require("tape")
// Get Multicolour.
const Multicolour = require("../index.js", {bash: true})
// Where we keep the test content.
const test_content_path = "./tests/test_content/"
tape("CLI initializes an interface", test => {
// Create an instance of multicolou... |
'use strict';
/**
* @ngdoc filter
* @name filter
* @kind function
*
* @description
* Selects a subset of items from `array` and returns it as a new array.
*
* @param {Array} array The source array.
* @param {string|Object|function()} expression The predicate to be used for selecting items from
* `array`.
... |
var i18n = require("@nathanfaucett/i18n"),
fastSlice = require("@nathanfaucett/fast_slice"),
UserStore = require("../stores/UserStore");
module.exports = i18nBound;
function i18nBound(key) {
return i18n(UserStore.user.locale, key, fastSlice(arguments, 1));
}
|
define({
"searchTabTitle": "Cari pengaturan sumber",
"routeTabTitle": "Pengaturan rute",
"add": "Tambahkan sumber pencarian",
"addGeocoder": "Tambahkan geocoder",
"geocoder": "Geocoder",
"setLayerSource": "Atur sumber layer",
"setGeocoderURL": "Atur URL geocoder",
"searchableLayer": "Feature layer",
"... |
"use strict";
d3.mappu.Controllers = function(map) {
return d3_mappu_Controllers(map);
};
d3_mappu_Controllers = function(map){
var drag = d3.behavior.drag()
.on('drag',function(e){
console.log('Drag', d3.mouse(this));
})
.on('dragend',function(e,d){
console.log(... |
/*!
* Copyright (c) 2015-2017 Cisco Systems, Inc. See LICENSE file.
*/
'use strict';
/* eslint global-require: [0] */
module.exports = {
router: require('./router'),
createUser: require('./create-user')
};
|
// jslint.js
// 2010-02-20
/*
Copyright (c) 2002 Douglas Crockford (www.JSLint.com)
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 t... |
[
'lib/jquery/jquery.min.js',
'lib/jquery-ui/jquery-ui.min.js',
'lib/jquery-ui-touch-punch/jquery.ui.touch-punch.min.js',
'lib/angular/angular.js',
'lib/underscore/underscore-min.js',
'lib/moment/moment.min.js',
'lib/flatpickr/flatpickr.js',
'lib/animejs/anime.min.js',
'lib/angu... |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... |
let vendor1 = require('vendor1');
let utility1 = require('./utility1');
let utility2 = require('./utility2');
module.exports = 'pageA';
|
const getFiltersOnNumber = require('./getFiltersOnNumber')
const LATEST_INCOME_FIELD = 'financial.latest.income'
const getFinancesFilters = finances => {
if (!finances) return []
const numericRange = finances.latestIncome
return getFiltersOnNumber(LATEST_INCOME_FIELD, numericRange)
}
module.exports = getFinan... |
import useFastRoot, { fastRootAncestor } from "./fast-root";
import last from "./last";
const map = new WeakMap();
export function getCompletionRecords(path, find = null) {
const stack = [path];
let i = 0;
while (i < stack.length) {
const p = stack[i];
if (p.isSequenceExpression()) {
stack[i] = la... |
var lookup = {};
var charts = ['bar', 'pie', 'line', 'qr'];
charts.forEach(function(item) {
lookup[item.toLowerCase()] = require('./lib/' + item);
});
module.exports = function(type) {
if(!type || typeof type !== 'string') {
throw new Error('Specificy a valid chart type');
}
type = type.toLowerCase();
... |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
errorHandler = require('./errors.server.controller'),
Poll = mongoose.model('Poll'),
_ = require('lodash');
/**
* Create a Poll
*/
exports.create = function(req, res) {
var poll = new Poll(req.body);
poll.user = req.user;
poll.... |
/*!
* jQuery JavaScript Library v2.1.0 -dimensions,-effects,-effects/Tween,-effects/animatedSelector,-offset
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*... |
"use strict";
var M = require('../lib/model'),
assert = require('assert');
var module = describe,
test = it,
deepEqual = assert.deepEqual;
module("model", function() {
test('Element', function() {
//blar;
});
test('Comment', function() {
assert.doesNotThrow(function() {... |
/*global describe: true, env: true, expect: true, it: true */
describe("@overview tag", function() {
var parser = require('jsdoc/src/parser'),
srcParser = new parser.Parser(),
doclets;
require('jsdoc/src/handlers').attachTo(srcParser);
doclets = srcParser.parse(__dirname + '/test/fixtures/... |
Template.createRoom.helpers({
creatingRoom() {
return Template.instance().creatingRoom.get();
}
});
Template.createRoom.events({
'click .create-room-link'(event, template) {
template.creatingRoom.set(true);
event.preventDefault();
},
'click .create-room-cancel'(event, templa... |
import React from 'react';
import ReactDOM from 'react-dom';
import JqxScheduler from '../../../jqwidgets-react/react_jqxscheduler.js';
class App extends React.Component {
componentDidMount() {
this.refs.myScheduler.ensureAppointmentVisible('id1');
}
render() {
let appointments = new Array... |
/**
* @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'button', 'nb', {
selectedLabel: '%1 (Valgt)'
} );
|
/*
* This defines the production settings for our webpack build.
* Anything defined here is only applied during production building.
*/
process.env.NODE_ENV = 'production';
var webpack = require('webpack');
var bundles = require('./webpack.config.js');
for (var i = 0; i < bundles.length; i++) {
bundles[i].plugi... |
jQuery( function( $ ) {
'use strict';
/**
* Object to handle Stripe payment forms.
*/
var wc_stripe_form = {
/**
* Initialize e handlers and UI state.
*/
init: function( form ) {
this.form = form;
this.stripe_submit = false;
$( this.form )
// We need to bind directly to the cl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.