code stringlengths 2 1.05M |
|---|
'use strict';
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
var _expect = require('expect');
var _expect2 = _interopRequireDefault(_expect);
var _getValues = require('../getValues');
var _getValues2 = _interopRequireDefault(_getValues);
describe('getValues', fun... |
(function($) {
/*
======== A Handy Little QUnit Reference ========
http://api.qunitjs.com/
Test methods:
module(name, {[setup][ ,teardown]})
test(name, callback)
expect(numberOfAssertions)
stop(increment)
start(decrement)
Test assertions:
ok(value, [message])
... |
class Example extends React.Component {
constructor(...args) {
super(...args);
this.state = { show: false };
}
render() {
return (
<ButtonToolbar>
<Button
bsStyle="default"
onClick={e => this.setState({ target: e.target, show: !this.state.show })}
>
... |
'use strict';
var _Link = require('../Link');
var _Link2 = _interopRequireDefault(_Link);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
module.exports = function (eventName) {
var _this = this;
if (this.options.preload) {
var preload = function prel... |
import faker from 'faker'
import React, { Component } from 'react'
import { List, Image } from 'stardust'
export default class ListCelledExample extends Component {
render() {
const avatar1 = <Image className='avatar' src={faker.image.avatar()} />
const avatar2 = <Image className='avatar' src={faker.image.av... |
var Symbol = require('./_Symbol'),
isSymbol = require('./isSymbol');
/** Used as references for various `Number` constants. */
var INFINITY = 1 / 0;
/** Used to convert symbols to primitives and strings. */
var symbolProto = Symbol ? Symbol.prototype : undefined,
symbolToString = Symbol ? symbolProto.... |
{
"AFN_currencyISO" : "AFN",
"AFN_currencySymbol" : "Af",
"ALK_currencyISO" : "AFN",
"ALK_currencySymbol" : "Af",
"ALL_currencyISO" : "AFN",
"ALL_currencySymbol" : "Af",
"AMD_currencyISO" : "AFN",
"AMD_currencySymbol" : "Af",
"ANG_currencyISO" : "ANG",
"ANG_currencySymbol" : "NAf.",
"AOA_currencyISO" : "AOA"... |
/****************************************************************************
Copyright (c) 2008-2010 Ricardo Quesada
Copyright (c) 2011-2012 cocos2d-x.org
Copyright (c) 2013-2014 Chukong Technologies Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated... |
export default {
status: 'Status',
acceptQueueCalls: 'Accept call queue calls',
};
|
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } }... |
'use strict';
/* Controllers */
angular.module('myApp.controllers', ['firebase.utils', 'simpleLogin'])
.controller('LinksCtrl', ['$scope', '$location', 'User', 'Link', 'Auth', '$routeParams',
function ($scope, $location, User, Link, Auth, $routeParams) {
if ($location.path() === '/')
{
... |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M18.93 8C16.72 4.18 11.82 2.87 8 5.07c-1.41.82-2.48 2-3.16 3.37-.13-2.2.22-4.4 1.02-6.44H3.74C2.2 6.49 2.52 11.58 5.07 16c1.1 1.91 2.88 3.19 4.86 3.72 1.98.... |
export default {
title: "Appels"
};
// @key: @#@"title"@#@ @source: @#@"Calls"@#@
|
var path = require('path');
var expect = require('chai').expect;
var pkg = path.normalize(path.join(__dirname, '..', '..', 'package.json'));
describe('cli-command:', function() {
it('should not enumerate builtin properties and methods', function(done) {
var cli = require('../..')(pkg);
var args = ['-s', 'opt... |
Bot.register("LessDumbBot", function(game_state, my_state, done) {
var me = game_state.me;
var safe_dirs = game_state.board.safe_directions(me);
done(safe_dirs[Math.floor(Math.random() * safe_dirs.length)]);
});
|
(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].exports... |
export default {'offset': -36000, 'dst': true, 'abbrev': 'NDT'};
|
'use strict'
var test = require('tape')
var loadConfig = require('../')
test('new API', function (t) {
var config = loadConfig('test-app', { startFrom: __dirname + '/fixture/one/two' })
t.deepEqual(config, {
one: 1,
two: 2,
three: 3,
four: 'package'
})
t.end()
})
|
/**
* @fileoverview Rule to forbid or enforce dangling commas.
* @author Ian Christian Myers
* @copyright 2015 Toru Nagashima
* @copyright 2015 Mathias Schreck
* @copyright 2013 Ian Christian Myers
* See LICENSE file in root directory for full license.
*/
"use strict";
//---------------------------------------... |
/* Fleet.js
KC3改 Fleet Object
Contains summary information about a fleet and its 6 ships
*/
(function(){
"use strict";
window.KC3Fleet = function( data ){
this.active = false;
this.fastFleet = true;
this.fleetId = 0;
this.name = "";
this.ships = [ -1, -1, -1, -1, -1, -1 ];
this.mission = ... |
/**
* Returns true if the supplies object has no properties.
*/
function isEmpty(obj) {
for (var key in obj) {
if (obj.hasOwnProperty(key)) {
return false;
}
}
return true;
};
/**
* Resizes the window to the current dimensions of this page's body.
*/
function resizeWindow() ... |
/* Project specific Javascript goes here. */
/* Up button JS */
var amountScrolled = 300;
$(window).scroll(function() {
if ( $(window).scrollTop() > amountScrolled ) {
$('a.back-to-top').fadeIn('slow');
} else {
$('a.back-to-top').fadeOut('slow');
}
});
$('a.back-to-top').click(function() {
$('html, body').... |
var Events = (function() {
var self = {};
var listeners = {};
self.when = function(event,callback) {
if(typeof(listeners[event]) === "object" && typeof(callback)==="function")
listeners[event].push(callback);
};
self.fire = function(event,data) {
if(typeof... |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon([/*#__PURE__*/_jsx("path", {
d: "m3.31 11 2.2 8.01L18.5 19l2.2-8H3.31zM12 17c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z",
opacity: ".3"
}, "0"), /*#__PURE__*/_jsx("path", {
d: "M22 9h-... |
define({
"configText": "Zdefiniuj grupy filtrów poniżej",
"labels": {
"groupName": "Nazwa zestawu filtrów:",
"groupNameTip": "Nazwa filtru, którą wybierze użytkownik.",
"groupDesc": "Opis:",
"groupDescTip": "Opis zestawu filtrów.",
"groupOperator": "Wstępnie ustawiony operator:",
"groupOpera... |
/* JavaScript content from js/load_data.js in folder common */
//implement JSON.stringify serialization
JSON.stringify = JSON.stringify || function (obj) {
var t = typeof (obj);
if (t != "object" || obj === null) {
// simple data type
if (t == "string") obj = '"'+obj+'"';
return String(... |
var mongoose = require( 'mongoose' );
var Retro = mongoose.model( 'Retro' );
exports.retros = function(req,res){
Retro.find({},function(err,data){
res.json(data);
});
console.log("retros route called:"+req);
}
exports.retro = function(req,res){
console.log("Single project route called:"+req);
Retro.findOne({_... |
/*global define,describe,it,expect*/
/*jslint white:true,browser:true*/
define([
'common/pythonInterop'
], function(PythonInterop) {
'use strict';
describe('Props core functions', function() {
it('Is alive', function() {
var alive;
if (PythonInterop) {
alive ... |
'use strict';
(function (module) {
try {
module = angular.module('awelzijn.downloadfileservice');
} catch (e) {
module = angular.module('awelzijn.downloadfileservice', []);
}
module.factory('aWelzijnDownloadFileService', ['$http', 'aWelzijnNotificationService', function ($http, notificationService) {
... |
if (! this.sh_languages) {
this.sh_languages = {};
}
sh_languages['gherkin_sv'] = [
[
[
/#/g,
'sh_comment',
1
],
[
/\b[+-]?(?:(?:0x[A-Fa-f0-9]+)|(?:(?:[\d]*\.)?[\d]+(?:[eE][+-]?[\d]+)?))u?(?:(?:int(?:8|16|32|64))|L)?\b/g,
'sh_number',
-1
],
[
/^(?:[\s]*(... |
const root = '../../';
jest.useFakeTimers();
describe('resize plugin', function(){
beforeEach(function(){
require(root + 'jspsych.js');
require(root + 'plugins/jspsych-resize.js');
});
test('loads correctly', function(){
expect(typeof window.jsPsych.plugins['resize']).not.toBe('undefined');
});
});
|
"use strict";
// copied from http://www.broofa.com/Tools/Math.uuid.js
var CHARS = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
exports.uuid = function () {
var chars = CHARS, uuid = new Array(36), rnd=0, r;
for (var i = 0; i < 36; i++) {
if (i==8 || i==13 || i==18 || i=... |
//Adapted from here: https://developer.mozilla.org/en-US/docs/Web/Reference/Events/wheel?redirectlocale=en-US&redirectslug=DOM%2FMozilla_event_reference%2Fwheel
var prefix = "", _addEventListener, onwheel, support;
// detect event model
if ( window.addEventListener ) {
_addEventListener = "addEventListener";
} else... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } }... |
'use strict';
module.exports = function dustjs(grunt) {
grunt.loadNpmTasks('grunt-dustjs');
return {
build: {
files: [
{
expand: true,
cwd: 'tmp/',
src: '**/*.dust',
dest: '.build/templates',
... |
const buildFolder = require('./script/helper').getBuildRootFolder();
const path = require('path');
module.exports = {
entry: path.resolve(__dirname, 'src', 'js', 'index.js'),
output: {
filename: 'main.js',
path: path.resolve(buildFolder, 'js')
}
}
|
import configs from "../../shared/configs/config";
export default function(app) {
const config = configs[process.env.NODE_ENV];
if (config.session.proxy) {
app.enable("trust proxy");
}
}
|
/**
* Copyright 2014 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
import Application from '@ember/application';
import { run } from '@ember/runloop';
import { initialize } from 'my-app/init/initializers/foo';
import { module, test } from 'qunit';
module('Unit | Initializer | foo', {
beforeEach() {
run(() => {
this.application = Application.create();
this.applicat... |
var steps = 10;
var nParticles = 10;
var moveSd = 40;
var elements = [];
var ctxs = [];
var userSize = 10;
var userTrace = [
[100, 0],
[200, 0],
[200, 0],
[700, 0],
[700, 300],
[700, 500],
];
var particles = [];
function randn(mean, sd) {
//Retrieved from jStat
var u;
var v;
var x;
var... |
'use strict';
var core = require('./core');
/**
* Small nifty thick that allows us to download a fresh set regexs from t3h
* Int3rNetz when we want to. We will be using the compiled version by default
* but users can opt-in for updates.
*
* @param {Boolean} refresh Refresh the dataset from the remote
* @api pub... |
import svgMarkup from './ErrorIcon.svg';
import svgMarkupFilled from './ErrorIconFilled.svg';
import React from 'react';
import PropTypes from 'prop-types';
import Icon from '../private/Icon/Icon';
export default function ErrorIcon({ filled, ...props }) {
const markup = filled ? svgMarkupFilled : svgMarkup;
ret... |
/**
@license
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://... |
"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")... |
import React from 'react';
import { mount } from 'enzyme';
import { cloneDeep, set } from 'lodash';
import { StackedResources } from '../../../forms/output/StackedResources';
import { CLIENT_DEFAULTS } from '../../../utils/CLIENT_DEFAULTS';
// Skipping till highcharts testing is worked out
describe.skip('<StackedReso... |
import React from 'react';
import ReactDOM from 'react-dom';
import registerServiceWorker from './registerServiceWorker';
import './css/index.css';
import './css/fonts.css';
import AppContainer from './containers/AppContainer';
ReactDOM.render(<AppContainer />, document.getElementById('root'));
registerServiceWorker... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
/**
* Developer: Grigory Kuznetsov
* Date: 16.07.2015
* Copyright: 2009-2016 Comindware®
* All Rights Reserved
* Published under the MIT license
*/
"use strict";
import { Handlebars, moment } from 'lib';
import { helpers, dateHelpers } from 'utils';
import template from '../templates/timeInput... |
export function prepareStatusResponses(responses) {
// Convert array of responses to an object
const processed = {};
responses.forEach((response) => {
if (!response.subject) {
return;
}
// Undefined status means we are unable to get presence for that user.
// Setting to false keeps us from ... |
'use strict';
/**
* @see https://github.com/nickmerwin/node-coveralls
*/
module.exports = function() {
return {
options: {
src: 'coverage/lcov.info',
force: false
},
default: {
src: 'coverage/lcov.info'
}
};
};
|
"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")... |
'use strict'
const functionNameSupport = require('function-name-support')
const constants = require('../constants')
const getStringTag = require('../getStringTag')
const isEnumerable = require('../isEnumerable')
const formatUtils = require('../formatUtils')
const lineBuilder = require('../lineBuilder')
const NOOP_REC... |
/*
<script src="js/faye-browser.js"></script>
<script src="js/watchersClient.js"></script>
<script type="text/javascript">listenAndRefresh()</script>
*/
function listenAndRefresh(options){
var listener;
var subscription;
var fayeClientObj_ = {test:true};
var connected = false;
this.defaultOptions = {};
options... |
import { nonDefaultStyled } from 'package-one'
let SomeComp = nonDefaultStyled.div({ color: 'hotpink' })
|
module.exports = {
//
// Set the server mode.
// Public servers does not require authentication.
//
// Set to 'false' to enable users.
//
// @type boolean
// @default false
//
public: true,
//
// Allow connections from this host.
//
// @type string
// @default "0.0.0.0"
//
host: "0.0.0.0",
... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S15.1.3.1_A5.1;
* @section: 15.1.3.1, 15.2.4.7, 12.6.4;
* @assertion: The length property of decodeURI has the attribute DontEnum;
* @description: Checking use pro... |
var BMap; //百度地图构造函数(为了应对jshint检查,其实没有也可以照常运行)
var define;
(function (factory) {
if (typeof define === "function" && define.amd) {
// AMD模式
define('wangEditor', ["jquery"], factory);
} else {
// 全局模式
factory(window.jQuery);
}
})(function($){
$(function(){
//判断IE6、7、8
... |
var _foo = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("foo");
let Foo = /*#__PURE__*/function () {
"use strict";
function Foo() {
babelHelpers.classCallCheck(this, Foo);
Object.defineProperty(this, _foo, {
writable: true,
value: 1
});
}
babelHelpers.createClass(Foo, [{
ke... |
/**
* @fileoverview Tests for naming util
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
const assert = require("chai").assert,
leche = require("leche"),
naming... |
module.exports.PLAN_PER_USER = "plan_per_user";
module.exports.APILA_EMAIL = "Apila@apila.care";
const taskState = {
"CURRENT" : "current",
"COMPLETE" : "complete",
"INACTIVE" : "inactive"
};
const day = {
"MONDAY" : 1,
"TUESDAY" : 2,
"WEDNESDAY" : 3,
"THURSDAY" :4,
"FRIDAY": 5,
"SATURDAY" : 6,
... |
/*
Draw the round marker, and the polygon on hover
*/
/*
new L.ClusterMarker(latlng, {
color: null, // (optional) A color to drive the cluster drawing, else it can use all the color spectre to show density (from green to red)
geojson: '', // GeoJSON shape of the cluster,
value: '' // Cluster value (usually... |
/*
* globalmigration
* https://github.com/null2/globalmigration
*
* Copyright (c) 2013 null2 GmbH Berlin
* Licensed under the MIT license.
*/
// Timeline: year selector
(function(scope) {
scope.timeline = function(diagram, config) {
var years = Object.keys(diagram.data.matrix).map(function(y) { return pars... |
export const a: string = "a";
|
import * as flowsActions from '../flows'
import { getDiff } from "../../utils"
import _ from 'lodash'
export const SET_CONTENT_VIEW = 'UI_FLOWVIEW_SET_CONTENT_VIEW',
DISPLAY_LARGE = 'UI_FLOWVIEW_DISPLAY_LARGE',
SET_TAB = "UI_FLOWVIEW_SET_TAB",
START_EDIT = 'UI_... |
System.register(['aurelia-dependency-injection', 'aurelia-templating', '../common/widget-base', '../common/decorators', '../common/constants'], function (_export, _context) {
"use strict";
var inject, customAttribute, WidgetBase, generateBindables, constants, _dec, _dec2, _dec3, _class, Editor;
function _classC... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b)... |
import { ActionTypes } from './createStore'
import isPlainObject from './utils/isPlainObject'
import mapValues from './utils/mapValues'
// 用来过滤对象 obj,过滤的条件,是根据传入的函数fn,然后调用fn(obj[attr]),看结果是否返回 true
import pick from './utils/pick'
/* eslint-disable no-console */
// 无定义 state 错误信息
function getUndefinedStateErrorMessage... |
var appFilters = angular.module('OnlyMobile.filters', []); |
const freact = function(plugin, modulePath, data, parsed) {
const [, , args, head, declaration, _body] = parsed;
const body = declaration + args.join(", ") + _body;
return `
${head}
deps.unshift({amd: 'react', common: '!React'}, {amd: 'react-dom', common: '!ReactDOM'});
function factory(r... |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (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.mozilla.org/MPL/
*
* Software distr... |
/**
* Tests for all non-environmental options. Non-environmental options are
* options that change how JSHint behaves instead of just pre-defining a set
* of global variables.
*/
"use strict";
var JSHINT = require('../../src/jshint.js').JSHINT;
var fs = require('fs');
var TestRun = require('../helpers/testhelper'... |
// Copyright 2016 Intel Corporation
//
// 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 applicable law or agreed ... |
'use strict';
module.exports = function (sequelize, DataTypes) {
var invcode = sequelize.define('invcode', {
code: {
type: DataTypes.STRING,
allowNull: false,
validate: {
len: [10, 10]
},
unique: true,
index: true
},
type: {
type: DataTypes.ENUM('admin', ... |
/**
* Created by <%= author_username %> on <%= dateTime.now %>.
*/
(function() {
'use strict';
angular
.module('components', [
/* Shared */
'main',
'widgets'
]);
})(); |
/***********************************************************************
*author:huang.chao
*date:2013.9.2
*overview:TBD
************************************************************************/
var highchartSize = {
getFooterHeight: function () {
var footer = document.getElementsByClassName("ui-footer ui-b... |
// Copyright 2015 Teem2 LLC, MIT License (see LICENSE)
// dump js
define(function(){
function dump(arg, space, colors, arraynames){
if(!colors) colors = dump_plain
if(space === undefined) space = 100000
if(space <= 0) return ''
// ok how shall we go about logging it.
if(arg === undefined) return colors.und... |
/*
---
name: Object Specs
description: n/a
requires: [Core/Object]
provides: [Object.Specs]
...
*/
(function(){
var object = { a: 'string', b: 233, c: {} };
describe("Object Methods", {
// Object subset
'should return an object with only the specified keys': function(){
expect(Object.subset(object, ['a', 'b']))... |
'use strict';
var fs = require('fs');
var path = require('path');
var throat = require('throat');
var Promise = require('promise');
var less = require('../thirdparty/less');
var fixUrls = require('./url-fixer.js');
var supportNpmImport = require('./support-npm-import.js');
var readFile = Promise.denodeify(fs.readFile... |
var hello = require('scripts/helloWorld').hello;
console.log(hello());
window.onload = function() {
document.getElementById('hello').innerText = hello();
} |
var expect = require('chai').expect
var keyStore = require('../lib/keystore')
var fixtures = require('./fixtures/keystore')
// Test with 100 private keys
var addrprivkeyvector = require('./fixtures/addrprivkey100.json')
// Test with 10000 private keys - takes about 40 seconds to run
// var addrprivkeyvector = require(... |
import assert from 'assert'
import encoder from '../../src/path/encoder'
describe('encoder()', function()
{
it('should encode basic path string', function()
{
assert.equal('M0 1L2 3', encoder([
{ type: 'm', relative: false, x: 0, y: 1 },
{ type: 'l', relative: false, x: 2, y: 3 },
]))
})
it('should enco... |
(function() {
window.shared || (window.shared = {});
var dom = window.shared.ReactHelpers.dom;
var createEl = window.shared.ReactHelpers.createEl;
var merge = window.shared.ReactHelpers.merge;
var QuadConverter = window.shared.QuadConverter;
/*
Project quads outside of the date range, since interpolatio... |
/* eslint-env jest */
const storage = require('../../src/cache/null')
const cache = storage()
describe('cache > null', function () {
beforeEach(() => {
cache.flush()
})
it('can set and get a single value', async () => {
await cache.set('foo', 'bar', 1)
let cached = await cache.get('foo')
expect(... |
'use strict';
/* http://docs.angularjs.org/guide/dev_guide.e2e-testing */
describe('Test the directive from the examples', function() {
describe('Simple example test', function() {
it('should load the leaflet map', function() {
browser().navigateTo('/examples/simple-example.html');
... |
// @flow
import { Component } from "react";
import { connect } from "react-redux";
import Layout from "./Layout";
import Loading from "../../../components/giving/checkout-views/Loading";
import Err from "../../../components/giving/checkout-views/Err";
import Success from "../../../components/giving/checkout-views/Suc... |
YUI.add("lang/calendar-base_pt-BR",function(e){e.Intl.add("calendar-base","pt-BR",{very_short_weekdays:["Dom","Seg","Ter","Qua","Qui","Sex","Sab"],first_weekday:0,weekends:[0,6]})},"patched-v3.18.0");
|
module.exports = {"MrBedfort":{"normal":"MrBedfort-Regular.ttf","bold":"MrBedfort-Regular.ttf","italics":"MrBedfort-Regular.ttf","bolditalics":"MrBedfort-Regular.ttf"}}; |
/**
* @param _
* @param fs
* @param Print
* @param {Plus.Files.Logger} Logger
* @ignore
*/
function Module(_, fs, Print, /**Plus.Files.Logger*/Logger) {
/**
* @readme plugins.Image
*
* Image plugin will add any PNG/GIF image file that matches the name of the remote origin repository.
*
... |
module.exports = function (cart, inventory) {
function Foo() {
}
return Foo;
}(require('mymodule/src/cart'), require('mymodule/src/inventory')); |
/* */
module.exports = {
'inRange': require('./number/inRange'),
'random': require('./number/random')
};
|
KISSY.add('brix/gallery/charts/js/e/histogram2/main',function(S,Base,Global,SVGElement,DataParse,ConfigParse,Widget){
function Main(){
var self = this
/*
arguments:
o:{
parent :'' //SVGElement
w :100 //chart 宽
h :100 //chart 高
config :'' //图表配置... |
global.fixtures = global.fixtures || {};
global.fixtures.wednesday = {
// Wednesday; same day
sameDay: {
duration: 0,
weekDays: 0,
weekendDays: 0
},
// Wednesday => Thursday
zeroWeeksWednesdayToThursday: {
duration: 1,
weekDays: 1,
weekendDays: 0
},
// Wednesday => Friday
zer... |
import {
beforeBlockString,
blockString,
hasBlock,
hasEmptyBlock,
optionsHaveIgnoredAtRule,
report,
ruleMessages,
validateOptions,
whitespaceChecker,
} from "../../utils"
import { isString } from "lodash"
export const ruleName = "block-opening-brace-space-before"
export const messages = ruleMessages... |
'use strict';
angular.module('rastros')
.directive('navbar', function ($window, flow, user) {
return {
restrict : 'E',
scope : true,
templateUrl: 'app/templates/directives/navbar-directive-template.html',
link : function (scope) {
scope.goTo = function (page) {
var _page = page || '/';
... |
import _curry3 from './internal/_curry3';
/**
* Creates a new list out of the two supplied by applying the function to each
* equally-positioned pair in the lists. The returned list is truncated to the
* length of the shorter of the two input lists.
*
* @function
* @memberOf R
* @since v0.1.0
* @category List... |
"use strict";
var express = require('express');
var bodyParser = require('body-parser');
// Paquete para gestionar cargas y desgargas de archivos
var multer = require('multer');
var options = {
extensions: ['htm', 'html'],
maxAge: '1d',
setHeaders: function (res, path, stat) {
res.set('x-timestamp', Date.now())
... |
//
// 91websql.js
// WebSQL database support
// (c) 2014, Andrey Gershun
//
var WEBSQL = alasql.engines.WEBSQL = function (){};
WEBSQL.createDatabase = function(wdbid, args, dbid, cb){
var res = 1;
var wdb = openDatabase(wdbid, args[0], args[1], args[2]);
if(this.dbid) {
var db = alasql.createDatabase(this.dbid)... |
var EventEmitter = require('events').EventEmitter;
var util = require('util');
var logger = require('pomelo-logger').getLogger('pomelo', __filename);
var utils = require('../../util/utils');
var FRONTEND_SESSION_FIELDS = ['id', 'frontendId', 'uid', '__sessionService__'];
var EXPORTED_SESSION_FIELDS = ['id', 'frontendI... |
/*!
* Bootstrap-select v1.13.12 (https://developer.snapappointments.com/bootstrap-select)
*
* Copyright 2012-2019 SnapAppointments, LLC
* Licensed under MIT (https://github.com/snapappointments/bootstrap-select/blob/master/LICENSE)
*/
(function (root, factory) {
if (root === undefined && window !== unde... |
'use strict';
var Q = require('q'),
QFS = require('q-io/fs'),
CP = require('child_process'),
PATH = require('../path'),
URL = require('url'),
UTIL = require('util'),
U = require('../util'),
LOGGER = require('../logger'),
registry = require('../nodesregistry'),
Node = require('./nod... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.