code stringlengths 2 1.05M |
|---|
var util__imgs_8h =
[
[ "UTIL_IMGS_IMG_MOCKED_1_PATH", "util__imgs_8h.html#a544720a7217c027217eb61b51c956e40", null ],
[ "UTIL_IMGS_IMG_MOCKED_2_PATH", "util__imgs_8h.html#afdf78b6d0330f04ce02abdbc15539737", null ],
[ "UTIL_IMGS_IMG_MOCKED_3_PATH", "util__imgs_8h.html#ac296a5448c205aa9b0756430d9e0d68b", nul... |
/**
* @jsx React.DOM
* @copyright Prometheus Research, LLC 2014
*/
'use strict';
var React = require('react/addons');
var cx = React.addons.classSet;
var MixinHelper = require('../utils/MixinHelper');
var EditorMixin = require('./mixins/EditorMixin');
v... |
/* create new database server config file */
$('#btn-add-server').click(function ()
{
var label = $('#new_db_label').val();
var host = $('#new_db_host').val();
var port = $('#new_db_port').val();
var user = $('#new_db_user').val();
var pass = $('#new_db_pass').val();
var save_pass;
if ($('#n... |
'use strict';
module.exports = function beatbox(controller) {
controller.hears('beatbox', ['direct_mention'], function(bot, message) {
bot.reply(message, 'Boots and Cats and Boots and Cats and Boots and Cats and Boots and Cats and Cats and Boots and Cats and Boots and Cats and Boots and Cats and Boots.');
});
... |
function identityBank(bar) {
this.bar = bar;
this.blank = {
firstName: '',
lastName: '',
category: '',
bio: '',
interestes: '',
};
}
identityBank.prototype.name = function() {
};
module.exports = identityBank;
|
var mongoose = require('mongoose');
var StatusBoard = mongoose.model('StatusBoard');
module.exports = {
getAlerts: function(req, res){
var mission = req.query.missionname;
//Load the alerts and vehicles from the statusboard collection
StatusBoard.findOne({ 'mission' : mission },
... |
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... |
var promise = require('bluebird');
var options = {
promiseLib: promise
};
var pgp = require('pg-promise')(options);
var connectionString = 'postgres://localhost:5432/todos';
var db = pgp(connectionString);
module.exports = {
getAllTodos: getAllTodos,
getTodo: getTodo,
addTodo: addTodo,
updateTodo: updateTo... |
'use strict';
var path = require('path');
var service = require( path.normalize('../lib/service.js') );
var assert = require('should');
var tools = require( path.normalize('../lib/tools.js') );
describe('Start a background service', function() {
it('should start a service', function(done) {
this.timeout(20000);
... |
app.controller('usersCtrl', ['$scope', '$http', '$filter', '$q', 'ngTableParams', 'ngDialog', 'toaster', 'enums', function($scope, $http, $filter, $q, ngTableParams, ngDialog, toaster, enums) {
$scope.szerepek = enums.szerepek;
$scope.locales = enums.locales;
$scope.tszesnevlist = [];
$scope.users = []... |
/**
* Implement the `countLeaves` function in this Tree class.
*
* A leaf node is any node in the tree that has no children. `countLeaves` should
* traverse the tree, and return the number of leaf nodes the tree contains.
*
* Illustration of a tree with three leaves:
*
* * <- root
* ... |
var searchData=
[
['xfeatures2d_2ehpp',['xfeatures2d.hpp',['../dc/daa/xfeatures2d_8hpp.html',1,'']]],
['ximgproc_2ehpp',['ximgproc.hpp',['../df/d6c/ximgproc_8hpp.html',1,'']]],
['xobjdetect_2ehpp',['xobjdetect.hpp',['../d3/d14/xobjdetect_8hpp.html',1,'']]],
['xphoto_2ehpp',['xphoto.hpp',['../d3/dec/xphoto_8hpp.... |
import { default as flamingo } from '../flamingo'
import _ from 'lodash'
const size = flamingo.size
describe( "size", () => {
it('Gets the size of the collection by returning its length.', () => {
expect( size([ 1, 2, 3] ) ).toEqual( 3 )
})
})
describe( "size", () => {
it('Gets the size of the collectio... |
import webpack from 'webpack'
import cssnano from 'cssnano'
import HtmlWebpackPlugin from 'html-webpack-plugin'
import ExtractTextPlugin from 'extract-text-webpack-plugin'
import config from '../config'
import _debug from 'debug'
const debug = _debug('app:webpack:config')
const paths = config.utils_paths
const {__DEV_... |
/*!
* bespoke-extern v1.0.1-dev
*
* Copyright 2016, Dan Allen
* This content is released under the MIT license
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=win... |
(function() {
define(['engine/EventSet'], function(EventSet) {
/**
* @file Implements Container.
* @author CORSAIR <vladimir.corsair@gmail.com>
* @author Zmei Zelen <zmei.zelen@gmail.com>
* @version 2013.12.11-0
*/
function KeyboardInput() {
... |
(function () {
'use strict'
angular.module('ad.promotion')
.config(['$translateProvider', function ($translateProvider) {
$translateProvider.useCookieStorage()
$translateProvider.translations('en', {
'business-promotion': 'Business Promotion',
'bac... |
import createObject from "./createObject";
export default function createChildren( i ) {
let children = [];
while ( i-- ) {
children[ i ] = createObject( 0 );
}
return children;
}
|
// All code points in the Yi Radicals block as per Unicode v6.1.0:
[
0xA490,
0xA491,
0xA492,
0xA493,
0xA494,
0xA495,
0xA496,
0xA497,
0xA498,
0xA499,
0xA49A,
0xA49B,
0xA49C,
0xA49D,
0xA49E,
0xA49F,
0xA4A0,
0xA4A1,
0xA4A2,
0xA4A3,
0xA4A4,
0xA4A5,
0xA4A6,
0xA4A7,
0xA4A8,
0xA4A9,
0xA4AA,
0xA4AB,... |
import React from "react";
const title = "Sizes";
const description = `
Available options:
<code>small</code>,
<code>normal</code>,
<code>large</code>,
<code>xlarge</code>,
`;
const liveSnippet = () => [
<ui-badge color="primary" size="small" label="small" />,
<ui-badge color="primary" size="n... |
'use strict';
// Configuring the Articles module
angular.module('crawlers').run(['Menus','USER_ROLES',
function(Menus, USER_ROLES) {
// Set top bar menu items
Menus.addMenuItem('topbar', '爬虫', 'crawlers', 'dropdown', '/crawlers(/create)?', false, [USER_ROLES.admin]);
Menus.addSubMenuItem('topbar', 'crawlers', '... |
import React from 'react'
import { Route, IndexRoute } from 'react-router'
// NOTE: here we're making use of the `resolve.root` configuration
// option in webpack, which allows us to specify import paths as if
// they were from the root of the ~/src directory. This makes it
// very easy to navigate to files regardless... |
import { h } from 'omi';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(h("path", {
d: "M12.09 2.91C10.08.9 7.07.49 4.65 1.67L8.28 5.3c.39.39.39 1.02 0 1.41L6.69 8.3c-.39.4-1.02.4-1.41 0L1.65 4.67C.48 7.1.89 10.09 2.9 12.1c1.86 1.86 4.58 2.35 6.89 1.48l7.96 7.96c1.03 1.03 2.69 1.03 3.... |
/*
* PLUGIN TRAFFIC
*
* Turkish language file.
*
* Author:
*/
theUILang.traf = "Traffic";
theUILang.perDay = "Per day";
theUILang.perMonth = "Per month";
theUILang.perYear = "Per year";
theUILang.allTrackers = "All trackers";
theUILang.ClearButton = "Clear";
theUILang.ClearQuest = "Do you really... |
'use strict';
/**
* @ngdoc overview
* @name sbAdminApp
* @description
* # sbAdminApp
*
* Main module of the application.
*/
angular
.module('sbAdminApp', [
'oc.lazyLoad',
'ui.router',
'ui.bootstrap',
'angular-loading-bar',
])
.config(['$stateProvider','$urlRouterProvider','$ocLazyLoadProvid... |
(function(){
mobile_hover();
responsive_tables();
link_tables();
})();
//toggle menu for mobile
var menu;
function toggle_menu() {
if(menu===undefined) {
menu = document.getElementById('main-navigation')
}
if(menu.className==='show') {
menu.className = '';
}else {
menu.className = 'show';
... |
import React from 'react';
import renderer from 'react-test-renderer';
import Hungary from './Hungary';
it('renders correctly', () => {
const tree = renderer.create(<Hungary />).toJSON();
expect(tree).toMatchSnapshot();
});
|
// ==UserScript==
// @name vimkeybindings
// @namespace renevier.fdn.fr
// @author arno
// @licence GPL/LGPL/MPL
// @description use vim keybingings (i, j, k, l, …) to navigate a web page.
// ==/UserScript==
/*
* If you're a vim addict, and you always find yourself typing j or k in a web
* page, then wondering why ... |
ngapp.directive('errorResolutions', function () {
return {
restrict: 'E',
templateUrl: 'directives/errorResolutions.html',
scope: false
}
});
|
/* global SimpleSchema */
/* global Address:true */
/*
* BEGIN SETUP FOR TESTS
*/
//SimpleSchema.debug = true;
// Custom type for custom type checking
Address = function(city, state) {
this.city = city;
this.state = state;
};
Address.prototype = {
constructor: Address,
toString: function() {
return th... |
module.exports.getLocaltime = function(){
var offset = (new Date().getTimezoneOffset() / 60) * -1 * 3600000;
return new Date(new Date().getTime() + offset).toJSON();
};
var timeout = 0;
module.exports.getTimeout = function(){
return timeout += 500;
}
if (typeof String.prototype.capitalize != 'function') {
String... |
var UserModel = require('../../models').User;
var eventproxy = require('eventproxy');
var validator = require('validator');
// 非登录用户直接屏蔽
var auth = function (req, res, next) {
var ep = new eventproxy();
ep.fail(next);
var accessToken = String(req.body.accesstoken || req.query.accesstoken || req.session.user.a... |
exports.seed = (knex, Promise) => knex('messages').del()
.then(() => knex('messages').insert([
{ message: 'Just a little test 1', categories_id: 1, pools_id: 1, username: 'donavan.aziaka@epitech.eu' },
{ message: 'Just a little test 2', categories_id: 2, pools_id: 1, username: 'donavan.aziaka@epitec... |
import React, { Component, PropTypes } from 'react';
import styles from './Bean.scss';
export default class BeanForNetwork extends Component {
static propTypes = {
name: PropTypes.string.isRequired,
audioIn: PropTypes.string.isRequired,
profile: PropTypes.string.isRequired,
from: PropTypes.string,
... |
ns.views.tumbler = Backbone.View.extend({
'block': 'i-tumbler',
'events': {
'click': 'toggle'
},
'initialize': function(options) {
this.button = options.button;
this.listenTo(
this.button,
'action',
this.toggle
);
this.listenTo(... |
$(function(){
// influencer hover
// ================
$('.influencer-grid__tile').hover(function() {
$(this).find(':nth-child(2)').removeClass('hide');
}, function() {
$(this).find(':nth-child(2)').addClass('hide');
});
// book carousel
// =============
var slides = $('.slide');
var ... |
const checkAlphabeticalOrder = require('../checkAlphabeticalOrder');
const { vendor } = require('../../utils');
// eslint-disable-next-line consistent-return
module.exports = function checkOrder({
firstPropertyData,
secondPropertyData,
allPropertiesData,
unspecified,
}) {
function report(isCorrect, firstNode = fi... |
'use strict';
angular.module('Iguana')
.factory('Iguana.Mock.Adapter', ['Iguana.Adapters.AdapterBase', '$q', '$rootScope', 'AClassAbove',
function(AdapterBase, $q, $rootScope, AClassAbove) {
var Expectation = AClassAbove.subclass(function() {
this.extend({
... |
// All symbols in the Ancient Symbols block as per Unicode v7.0.0:
[
'\uD800\uDD90',
'\uD800\uDD91',
'\uD800\uDD92',
'\uD800\uDD93',
'\uD800\uDD94',
'\uD800\uDD95',
'\uD800\uDD96',
'\uD800\uDD97',
'\uD800\uDD98',
'\uD800\uDD99',
'\uD800\uDD9A',
'\uD800\uDD9B',
'\uD800\uDD9C',
'\uD800\uDD9D',
'\uD800\uDD9... |
var parse = require('../')
var tape = require('tape')
var fs = require('fs')
tape('should parse a Dockerfile', function (t) {
var dockerFile = fs.readFileSync(__dirname + '/Dockerfile', 'utf8')
var pojo = parse(dockerFile)
var wanted = {
add:[{
source:'.',
dest:'/srv/app'
}, {
sour... |
var RNDBModel = require('react-native-db-models')
//var DB = {
// "app": new RNDBModel.create_db('app'),
// "users": new RNDBModel.create_db('users'),
//}
//
//module.exports = DB
//import RNDBModel from 'react-native-db-models';
var DB = {
"recipes": new RNDBModel.create_db('recipes'),
"terms": new RN... |
(function(wtfFacebook, undefined) {
// Private
function statusChangeCallback(response) {
if (response.status === 'connected') {
document.getElementById('js-state-fb-login-status').style.display = 'none';
}
}
// Public
wtfFacebook.checkLoginState = function() {
FB.getLoginStatus(function(re... |
'use strict';
var XHTMLEntities = {
quot: '\u0022',
amp: '&',
apos: '\u0027',
lt: '<',
gt: '>',
nbsp: '\u00A0',
iexcl: '\u00A1',
cent: '\u00A2',
pound: '\u00A3',
curren: '\u00A4',
yen: '\u00A5',
brvbar: '\u00A6',
sect: '\u00A7',
uml: '\u00A8',
copy: '\u00A9',... |
const webpack = require('webpack');
const conf = require('./gulp.conf');
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const pkg = require('../package.json');
const autoprefixer = require('autoprefixer');
modul... |
var frontend = require('../controllers/frontend'),
config = require('../config'),
express = require('express'),
utils = require('../utils'),
frontendRoutes;
frontendRoutes = function (middleware) {
var router = express.Router(),
subdir = config.paths.subdir,
route... |
/*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2015 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
// Provides control sap.ui.table.Column.
sap.ui.define(['jquery.sap.global', 'sap/ui/core/Element', 'sap/ui/core/RenderManager', 'sap... |
'use strict';
module.exports = (_, model, state) =>
_.div({class: 'modal in'},
_.div({class: 'modal__dialog fields'},
_.div({class: 'modal__header'},
_.h4({localized: true, class: 'modal__title'}, 'Create new project'),
_.button({class: 'modal__close fa fa-close', onclick: _.onClic... |
const CSGOTM = require('./index.js'); //change to 'csgotm'
const APIKEY = 'xxx'; //insert your csgotm apikey
let market = new CSGOTM(APIKEY);
market.socket.connect();
market.on('connected', function() {
console.log('Connected to websocket');
market.socket.auth(function (err) {
if (err) return console.err... |
System.register([], function (_export, _context) {
"use strict";
var s;
function q() {}
_export("default", q);
return {
setters: [],
execute: function () {
_export("s", s = 4);
}
};
}); |
const puppeteer = require('puppeteer')
;(async () => {
const browser = await puppeteer.launch({
headless: false,
defaultViewport: { width: 1440, height: 1000 },
args: [`--window-size=${1440},${1000}`],
ignoreHTTPSErrors: false, //忽略 https 报错
})
const page = await browser.newPage()
// 创建 cdp 会话... |
angular.module('webkitMaterial', ['ngMaterial', 'angularLoad'])
.config(function () {
console.debug("webkit-material loading...");
})
.controller('loginController', function ($scope, $filter, $mdToast, settings, backgroundManager) {
var ls = localStorage;
//... |
'use strict';
const Co = require('co');
const OAuth = require('oauth');
const Pify = require('pify');
const internals = {};
internals.kRequestTokenUrl = 'https://api.twitter.com/oauth/request_token';
internals.kAccessTokenUrl = 'https://api.twitter.com/oauth/access_token';
internals.kVerifyCredentialsUrl = 'https://... |
(function (Ember) {
var PassageController = Ember.ObjectController.extend({
apiKey: Ember.computed.alias('parentController.apiKey'),
translation: Ember.computed.alias('parentController.translation'),
baseUrl: function () {
var apiKey = this.get('apiKey'),
translation = this.get('translation'),
ur... |
// Copyright (c) 2012 Ecma International. All rights reserved.
// Ecma International makes this code available under the terms and conditions set
// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
// "Use Terms"). Any redistribution of this code must retain the above
// copyright and this n... |
/**
* v0.0.1
*
* Copyright (c) 2017
*
* Date: 2017/5/4 by Heaven
*/
export const UPDATE_REPLY = 'UPDATE_REPLY';
export * from './loadReply';
export * from './createReply';
export * from './deleteReply';
|
/*globals Firebase*/
/**
* @ngdoc service
* @name Volusion.toolboxCommon.vnFirebase
* @requires vnConfig
* @requires vnDataEndpoint
* @requires $firebase
* @description
*
* # vnFirebase
* This is a service to manage the data flow into and out of the firebase service when
* an app is in either the SiteBuilder ... |
'use strict';
var Caml_obj = require("./caml_obj.js");
var Caml_builtin_exceptions = require("./caml_builtin_exceptions.js");
function init_mod(loc, shape) {
var undef_module = function () {
throw [
Caml_builtin_exceptions.undefined_recursive_module,
loc
];
};
var loop = function... |
var React = require('react');
var Prompt = require('../components/Prompt');
var PromptContaier = React.createClass({
contextTypes: {
router: React.PropTypes.object.isRequired
},
getInitialState: function() {
return {
username: ''
};
},
handleUpdateUser: function(e) {
this.setState({
... |
import css from 'css!./styles.css'
var styles = [
'photos'
];
export default {
restrict: 'A',
/**
* @ngInject
*/
link: function($element, $attrs) {
$element.addClass('elgg-gallery');
$attrs.$observe('elggGallery', function(style) {
styles.forEach(function(oldSty... |
import * as React from "react";
import PropTypes from "prop-types";
import { withWrapper } from "../Icon";
const Vector = React.forwardRef(({ size, color, ...props }, ref) => (
<svg
width={size}
height={size}
viewBox="4 4 32 32"
xmlns="http://www.w3.org/2000/svg"
ref={ref}
aria-hidden={!props... |
const test = require('ava');
const syntax = require('./utils/syntax');
const path = require('path');
// Only need to test the literal fixture for these:
var fixturePath = path.join(__dirname, "./fixtures/literals.js");
test(`Can do double`, syntax.testFactory, fixturePath, { width: 80, minSpace: 1, quotes: '"' });
tes... |
var async = require('async')
, log = require('../../log');
function MemoryPubSubProvider() {
this.subscriptions = {};
}
MemoryPubSubProvider.prototype.createSubscription = function(subscription, callback) {
this.subscriptions[subscription.id] = subscription;
return callback();
};
MemoryPubSubProvider.... |
import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './components/app';
import Login from './components/auth/login';
import Dashboard from './components/dashboard';
import SalesReport from './components/reports/report-sales';
import RankingReport from './components/reports/repo... |
const { compact, filter, map } = require('lodash')
// Returns an array containing the interpolateable parts of a CSS property
// value based on the given arrays of AST value nodes for both start
// and end values.
export const getAnimatableValues = (startValues, endValues) =>
compact(
map(startValues, (start, i)... |
'use strict';
const AcknowledgementResponse = require('./AcknowledgementResponse');
class InitResponse extends AcknowledgementResponse
{
/**
* Instantiate a Init response
* @param {AcknowledgementResponse} response
* @param {NapiInitInfo} napiInitInfo
*/
constructor (response, napiInitInfo... |
import canHelper from 'ember-can/helpers/can';
export default canHelper;
|
import Ember from 'ember'
const {Service} = Ember
export default Service.extend({
user: null,
init () {
this._super()
this.user = 'Test User'
}
})
|
const lab = require("lab").script();
const code = require("code");
exports.lab = lab;
let Execute = require("../src/index");
lab.experiment("Condition Test", () => {
lab.test("should execute the correct step based on condition (with function)", () => {
let execute = new Execute();
let execution... |
/**
* lodash 3.0.0 (Custom Build) <https://lodash.com/>
* Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.7.0 <http://underscorejs.org/LICENSE>
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigat... |
/* From http://www.nczonline.net/blog/2010/05/25/cross-domain-ajax-with-cross-origin-resource-sharing/ */
function createCORSRequest(method, url) {
var xhr = new XMLHttpRequest();
if ("withCredentials" in xhr) {
xhr.open(method, url, true);
} else if (typeof XDomainRequest != "undefined") {
... |
import EchonestAdapter from './echonest';
export default EchonestAdapter.extend({
pathForType() {
return 'artist';
},
buildURL() {
let url = this._super.apply(this, arguments);
// If the `genre` method is passed, refactor the url to point to the correct API
return url.repl... |
import Lego from '../src';
import assert from 'assert';
import { compile } from '../src/parse/index.js';
describe('parse', function () {
it('simple rows', function () {
const rows = [{
id: 1,
name: 'Test 1',
}, {
id: 2,
name: 'Test 2',
}];
const objects = Lego.parse(rows, [{
id: 'id',
name:... |
Oskari.registerLocalization({
"lang": "nl",
"key": "LayerSelection",
"value": {
"title": "Geselecteerde laag",
"desc": "",
"layer": {
"style": "Stijl",
"show": "Toon",
"hide": "Verberg",
"hidden": "De kaart is tijdelijk verbor... |
import bem from '../../utils/bem';
const b = bem('MenuItemGroup');
export default function MenuItemGroup(attrs, children) {
return (
<div class={ b() } role="group">
<div class={ b('title') } role="presentation">
{ attrs.title }
</div>
{ children }
... |
"use strict";
debugger;
function order(mili) {
return new Promise((resolve, reject) => {
setTimeout(() => {
console.log(mili);
resolve(mili);
}, mili);
});
};
Promise.race([order(300), order(200), order(100)])
.then((milis) => console.log("then:", milis),
(error) => conso... |
import Ember from 'ember';
import { formatDate } from '../utils/date-helpers';
export default Ember.Handlebars.makeBoundHelper(function(date, format) {
return formatDate(date, format);
}); |
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
/* Copyright 2012 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Licen... |
$(function(){
var $MainContent = $('#MainContent');
$MainContent.on('click', '[type=submit]', function(e){
e.preventDefault();
var $form = $(this).closest('form');
var form_data = {};
$form.find('[name]').each(function(i, val){
if (this.type === 'checkbox') {
... |
'use strict';
var test = require('tape');
var setTimeout = require('timers').setTimeout;
var processReporter = require('./index');
test('processReporter reports libuv health', function t(assert) {
var fakeStatsd = createFakeStatsd();
var reporter = processReporter({
handleInterval: 10,
reque... |
/* jshint -W097 */// jshint strict:false
/*jslint node: true */
var chai = require('chai');
chai.use(require('chai-string'));
var expect = chai.expect;
var setup = require(__dirname + '/lib/setup');
var util = require(__dirname + '/lib/testUtil');
var fs = require('fs');
var objects = null;
var states = null;
v... |
System.register([], function (exports_1, context_1) {
"use strict";
var DebugNodeEventHandler;
var __moduleName = context_1 && context_1.id;
return {
setters: [],
execute: function () {
DebugNodeEventHandler = (function () {
function DebugNodeEventHandler() {
... |
const webappNodeAzure = require("sleeveforarm/src/webapp-node-azure").default;
module.exports = new webappNodeAzure();
|
var app = angular.module('appen', []);
app.controller('MainCtrl', function($scope) {
$scope.termsshow = true;
});
|
module.exports = [
[false, true, true, false, false, false, false, true, true, false],
[false, true, true, false, false, false, false, true, true, false],
[false, true, true, false, true, true, false, true, true, false],
[false, true, true, false, true, true, false, true, true, false],
[false, true,... |
'use strict';
import {should as should_} from 'chai';
const should = should_();
import $ from 'jquery';
import {spy, stub} from 'sinon';
import {Rect} from '../../src/graphical-util';
import draw from '../../src/draw';
import RootDrawable from '../../src/drawable/root-drawable';
import {DrawableImage, ScaleMode} fr... |
import React from 'react'
import { storiesOf } from '@storybook/react-native'
import { action } from '@storybook/addon-actions'
import { linkTo } from '@storybook/addon-links'
import UserConnect_2 from 'app/components/UserConnect_2'
storiesOf('UserConnect_2', module)
.add('default', () => (
<UserConnect_2
butt... |
import { Input, ButtonInput } from 'react-bootstrap';
var inputTypeInstance = (
<div>
<form>
<Input type="text" label="Text" placeholder="Enter text" />
<Input type="email" label="Email Address" placeholder="Enter email" />
<Input type="password" label="Password" />
<Input type="file" label="File" hel... |
/**
* Copyright 2016 aixigo AG
* Released under the MIT license.
* http://laxarjs.org/license
*/
import { object } from 'laxar';
import { createAxEventBusMock } from 'laxar/laxar-widget-service-mocks';
import * as actions from '../actions';
const anyObject = jasmine.any( Object );
const anyFunction = jasmine.any( ... |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
// Include necessary modules
var { assert } = require("../../../../lib/assertions");
var tabs = req... |
function DataObject(name, data) {
this.name = name;
this.data = data;
}
var resultToArray = new function (data) {
var array = [];
$.each(data, function (k, v) {
array[k] = new Array();
array[k][0] = parseInt(v.clock) * 1000;
array[k][1] = parseFloat(v.value);
});
return ... |
import { SPACE, ENTER } from '../../constants/keyCodes';
import closest from '../closest';
import isFormPartRole from '../isFormPartRole';
/**
* A utility function for adding keyboard accessibility to elements that are not a natively
* clickable (div, span, etc). When the space or enter key is pressed while focusing... |
'use strict';
let RestJS = require('restjs');
if(RestJS.Rest)
RestJS = RestJS.Rest;
const serializeArray = function (array, prefix){
let out = [];
for(const idx in array){
var formatted = (prefix ? prefix : '') + '[]';
if(prefix && typeof array[idx] === 'object')
formatted = formatted.replace(/\[\]$/i, '['... |
"use strict";
class Response {
constructor() {
this.status = 0;
this.data = {};
this.message = "";
}
}
module.exports = Response; |
"use strict";
var app;
try {
app = angular.module("aphel.cloud");
}
catch (err) {
app = angular.module("aphel.cloud", []);
}
app.factory("$visitAPI", function ($http, $q) {
var _partnerKey = "",
_platform = "web",
_language = "en",
_currentCompanyId,
_originatorMemberId... |
import check from "check-arg-types";
import pathGet from "@wasmuth/path";
const toType = check.prototype.toType;
// `window` that won't fail server side
export const safeWindow = (path, ...args) => {
if (typeof window === "undefined") {
return;
}
const ref = pathGet(path, window);
if (toType(ref) === "fu... |
module.exports = function(grunt) {
"use strict";
// Project configuration.
grunt.initConfig({
nodeunit: {
all: ['test/**/*_test.js']
},
lint: {
files: ['grunt.js', 'lib/**/*.js', 'test/**/*.js']
},
watch: {
files: '<config:lint.files>',
tasks: 'lint nodeunit'
},
... |
module.exports = {
name: 'cdk',
preset: '../../jest.config.js',
coverageDirectory: '../../coverage/libs/cdk',
snapshotSerializers: [
'jest-preset-angular/AngularSnapshotSerializer.js',
'jest-preset-angular/HTMLCommentSerializer.js',
],
};
|
/**
* Created by louisha on 15/5/13.
*/
'use strict';
var path = require('path'),
async = require('async'),
appDb = require('../../libraries/mongoose').appDb,
orderError = require('../errors/order'),
TransportEvent = appDb.model('TransportEvent'),
userError = require('../errors/user'),
driver... |
/**
* HOC that authorizes users based on their role
* and the component required role
* @module Auth
*/
import React, { Component } from 'react'
import { object, bool, func, string, arrayOf, array } from 'prop-types'
export class RequireAuth extends Component {
constructor (props) {
super(props)
const ... |
/// <reference name="MicrosoftAjax.debug.js" />
/// <reference name="MicrosoftAjaxTimer.debug.js" />
/// <reference name="MicrosoftAjaxWebForms.debug.js" />
/// <reference path="../ExtenderBase/BaseScripts.js" />
/// <reference path="../Common/Common.js" />
/// <reference path="../Compat/Timer/Timer.js" />
/// <ref... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.