code stringlengths 2 1.05M |
|---|
$(function () {
var loadFlag = false
$('a.social-icon.search').on('click', function () {
$('body').css('width', '100%')
$('body').css('overflow', 'hidden')
$('.search-dialog').velocity('stop')
.velocity('transition.expandIn', {
duration: 300,
complete: function () {
$('#l... |
var text = "";
fim: for (var i = 1; i <= 3; i++) {
for (var j = 1; j <= 3; j++) {
if (j === 3) break fim;
text += "The number is " + j + "<br>";
}
}
console.log(text);
function Finaliza() {
var text = "";
for (var i = 1; i <= 3; i++) {
for (var j = 1; j <= 3; j++) {
... |
(function(_){
"use strict";
describe("wards controllers test suite", function(){
var createController, $scope, $stateParams, $httpBackend, $state, adminApi;
var formService, SERVER_URL;
beforeEach(function(){
module("mflAdminApp");
inject(["$rootScope", "$control... |
function generateLineChart(){
var margin = {top: 20, right: 20, bottom: 25, left: 55},
width = $("#line_total").width() - margin.left - margin.right,
height = $("#line_total").height() - margin.top - margin.bottom;
var x = d3.time.scale()
.range([0, width]);
var y = d3.scale.linear... |
/* prevent execution of jQuery if included more then once */
if(typeof window.jQuery == "undefined") {
/*
* jQuery 1.0.3 - New Wave Javascript
*
* Copyright (c) 2006 John Resig (jquery.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* $Date: 2006-11-21 05:01:48 -0500 ... |
import jsonPath from './jsonpath.js';
export default class DataWrapper {
constructor(response){
this._response = response;
}
pathBuild(path, value) {
//XXX ???
//Partly this requires the opposite of jsonPath - find a reasonable set of fields
//that would satisfy the path... or paths
//i.e. w... |
const setupComponentTest = require('./helpers/setup-component');
QUnit.module('Components can be rendered without a DOM dependency', function(hooks) {
setupComponentTest(hooks);
QUnit.test('Simple component', function(assert) {
let html = this.render('<h1>Hello</h1>');
assert.ok(html.match(/<h1>Hello<\/h... |
var clone = require('clone');
var defaults = require('defaults');
var each = require('async').each;
var front = require('front-matter');
var fs = require('fs-extra');
var noop = function(){};
var path = require('path');
var readdir = require('recursive-readdir');
var utf8 = require('is-utf8');
var Ware = require('ware... |
import filter from '../util/filter'
import TreeIndex from '../util/TreeIndex'
import DocumentIndex from './DocumentIndex'
class AnchorIndex extends DocumentIndex {
constructor(doc) {
super()
this.doc = doc
this.byPath = new TreeIndex.Arrays()
this.byId = {}
}
select(node) {
return (node._i... |
/*
* Code generated by Microsoft (R) AutoRest Code Generator 1.1.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
const msRest = require('ms-rest');
const msRestAzure = require('ms-rest-azure');
const WebResource = msRest.WebResource;
/**
* Checks that a... |
GeoExt.Lang.add("fr", {
"gxp.plugins.AddLayers.prototype": {
addActionMenuText: "Ajouter des calques",
addActionTip: "Ajouter des calques",
addServerText: "Ajouter un nouveau serveur",
untitledText: "Sans titre",
addLayerSourceErrorText: "Impossible d'obtenir les ca... |
import React, { Component } from 'react';
import { classNames, ObjectUtils, DomHandler } from 'primereact/utils';
import { Ripple } from 'primereact/ripple';
import { Button } from 'primereact/button';
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError... |
'use strict';
/**
* @ngdoc service
* @name tbsApp.cps
* @description
* # cps
* Service in the tbsApp.
*/
angular.module('tbsApp')
.service('cps', function () {
// AngularJS will instantiate a singleton by calling "new" on this function
});
|
var cluster = require('cluster')
, assert = require('assert')
, async = require('async')
, argv = process.argv.slice(2)
, workerCount = parseInt(argv.shift(), 10)
, script = argv.shift()
, own = {}.hasOwnProperty
, statusesToShutdown = ['booting', 'online', 'new_online'];
cluster.setupMaster({
exec:... |
// ┌────────────────────────────────────────────────────────────────────┐ \\
// │ Raphaël 2.1.0 - JavaScript Vector Library │ \\
// ├────────────────────────────────────────────────────────────────────┤ \\
// │ Copyright © 2008-2012 Dmitry Baranovskiy (http://raphaeljs.com) │ \\
// │ Copyrig... |
angular.module('services.authentication', ['angular-storage'])
.factory('authentication',
['Base64', '$http', '$log', '$rootScope', 'store',
function (Base64, $http, $log, $rootScope, store) {
return {
Login: function (username, passw... |
/* global AFRAME, NAF, THREE */
var naf = require('../NafIndex');
AFRAME.registerComponent('networked-audio-source', {
schema: {
streamName: { default: 'audio' },
positional: { default: true },
distanceModel: {
default: "inverse",
oneOf: ["linear", "inverse", "exponential"]
},
maxDist... |
import {
default as React,
PropTypes,
Component,
Children,
} from "react";
import { default as KmlLayerEventList } from "../eventLists/KmlLayerEventList";
import { default as eventHandlerCreator } from "../utils/eventHandlerCreator";
import { default as defaultPropsCreator } from "../utils/defaultPropsCreator"... |
/*! UIkit 2.26.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
(function(addon) {
var component;
if (window.UIkit) {
component = addon(UIkit);
}
if (typeof define == "function" && define.amd) {
define("uikit-accordion", ["uikit"], function(){
return compone... |
version https://git-lfs.github.com/spec/v1
oid sha256:44fcd9058edf18a5c80c14e78159928a8494d841cfa2a434a73df94d8742076c
size 5751
|
var common = require('../common-tap.js')
var resolve = require('path').resolve
var fs = require('graceful-fs')
var test = require('tap').test
var rimraf = require('rimraf')
var Tacks = require('tacks')
var File = Tacks.File
var Dir = Tacks.Dir
var Symlink = Tacks.Symlink
var isWindows = require('../../lib/utils/is-win... |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2019 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* The Arcade Physics Tile Overlap Event.
*
* This event is dispatched by an Arcade Physics World instance if a body overlaps with a Tile... |
(function(global) {
'use strict';
/**
* This class is defined for the feature of eraser.
* @param {Point} point This argumnet is the instance of Point.
*/
function Eraser(point) {
this.point = new Mocks.ArtCanvas.Point(0, 0);
if (point instanceof Mocks.ArtCanvas.Point) {
... |
function validaCampo() {
if (dias.length == 0) {
alert("O Campo Dias disponíveis é obrigatório!");
return false;
}
return true;
}
//https://pt.stackoverflow.com/q/236418/101
|
var pex = pex || require('../../build/pex');
pex.sys.Window.create({
settings: {
width: 1280,
height: 720,
type: '3d',
vsync: true,
multisample: true,
fullscreen: false,
center: true
},
init: function() {
this.camera = new pex.scene.Camera(60, this.width/this.height);
new pex.... |
const test = require('ava')
, { matches } = require('../dist/redash')
test('returns true if the spec is a partial match of the target', (t) => {
t.true(matches({ a: { b: { c: 'hello' } } }, { a: { b: { c: 'hello' } } }))
})
test('returns false if any property does not match', (t) => {
t.false(matches({ a: ... |
/**
* Copyright <%= year %> Telerik AD
*
* 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 agr... |
"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 ENTER_KEY = 13;
var ESCAPE_KEY = 27;
// A factory function we can use to create binding handlers for specific
// keycodes.
function keyhandlerBindingFactory(keyCode) {
return {
init: function (element, valueAccessor, allBindingsAccessor, data, bindingContext) {
var wrappedHandler, newValueA... |
/*!
* Copyright 2015 Drifty Co.
* http://drifty.com/
*
* Ionic, v1.3.5
* A powerful HTML5 mobile app framework.
* http://ionicframework.com/
*
* By @maxlynch, @benjsperry, @adamdbradley <3
*
* Licensed under the MIT license. Please see LICENSE for more information.
*
*/
/*!
* Copyright 2015 Drifty Co.
* ... |
'use strict';
var logger = require('../logger').child({component: 'mysql'});
var shimmer = require('../shimmer');
var parseSql = require('../db/parse-sql');
var MYSQL = require('../metrics/names').MYSQL;
module.exports = function initialize(agent, mysql) {
var tracer = agent.tracer;
function wrapQueriable(queri... |
import React from 'react';
const SearchIcon = (props) => {
return (
<i className="material-icons pes-search-icon">search</i>
);
};
export default SearchIcon; |
import Ember from 'ember';
import { module, test } from 'qunit';
import { sumBy } from 'ember-array-computed-macros';
module('Unit | Computed | sumBy');
test('Sums a list of values', (assert) => {
const subject = Ember.Object.extend({
sumOfAll: sumBy('list', 'score')
}).create({ list: [{ score: 1 }, { score:... |
//>>built
define("dojo/_base/array dojo/_base/declare dojo/dom-attr dojo/keys dojo/_base/lang dojo/on dijit/registry dijit/_FocusMixin".split(" "),function(m,k,g,d,b,e,h,l){return k("dijit._KeyNavMixin",l,{tabIndex:"0",childSelector:null,postCreate:function(){this.inherited(arguments);g.set(this.domNode,"tabIndex",this... |
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//---------------------------------------------------------... |
import { BrowserWindow } from 'electron';
import path from 'path';
import AutoLaunch from 'auto-launch';
const appLauncher = new AutoLaunch({
name: 'Google Play Music Desktop Player',
});
export const showDesktopSettings = () => {
if (WindowManager.getAll('settings').length > 0) {
WindowManager.getAll('settin... |
module.exports = function(grunt) {
require('load-grunt-tasks')(grunt);
require('time-grunt')(grunt);
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
module: {
options: {
banner: '/*!\n * <%= pkg.name %> - v<%= pkg.version %> (<%= grunt.templa... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var excelWorkbook = {
getTemplate: function () {
return {
name: "ExcelWorkbook",
properties: {
rawMap: {
xmlns: "urn:schemas-microsoft-com:office:excel"
}
... |
var pomelo = require('pomelo');
var fs = require('fs');
/**
* Init app for client.
*/
var app = pomelo.createApp();
app.set('name', 'test');
// app configuration
if (app.serverId === 'connector-server-1') {
app.configure('production|development', function(){
app.set('connectorConfig',
{
connect... |
this.primereact = this.primereact || {};
this.primereact.knob = (function (exports, React, utils) {
'use strict';
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
function _classC... |
/* *
*
* License: www.highcharts.com/license
*
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
*
* */
'use strict';
import H from '../../Core/Globals.js';
import './ADIndicator.js';
import U from '../../Core/Utilities.js';
var correctFloat = U.correctFloat, error = U.error, seriesType... |
'use strict';
var bodyParser = require('body-parser');
var http = require('http');
var url = require('url');
module.exports = function startServer(port, cb) {
var server = http.createServer(function (req, res) {
bodyParser.json()(req, res, function () {
var path = url.parse(req.url).pathna... |
import { select as d3_select } from 'd3-selection';
var jsonpCache = {};
window.jsonpCache = jsonpCache;
export function jsonpRequest(url, callback) {
if (window.JSONP_FIX) {
if (window.JSONP_DELAY === 0) {
callback(window.JSONP_FIX);
} else {
setTimeout(function() {
callback(window.JS... |
/**
* @author Eberhard Graether / http://egraether.com/
*/
THREE.TrackballControls = function ( object, domElement ) {
var _this = this;
var STATE = { NONE: -1, ROTATE: 0, ZOOM: 1, PAN: 2, TOUCH_ROTATE: 3, TOUCH_ZOOM: 4, TOUCH_PAN: 5 };
this.object = object;
this.domElement = ( domElement !== undefined ) ? dom... |
define(function(require) {
'use strict';
var $ = require('jquery');
var PageableCollection = require('orodatagrid/js/pageable-collection');
describe('orodatagrid/js/pageable-collection', function() {
describe('check state encoding/decoding', function() {
beforeEach(function() {
... |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('core/view')) :
typeof define === 'function' && define.amd ? define(['core/view'], factory) :
(global.foo = factory(global.View));
}(this, (function (View) { 'use strict';
var main = View.e... |
//adjectival forms of place names, as adjectives.
module.exports= [
"afghan",
"albanian",
"algerian",
"argentine",
"armenian",
"australian",
"aussie",
"austrian",
"bangladeshi",
"belgian",
"bolivian",
"bosnian",
"brazilian",
"bulgarian",
"cambodian",
"cana... |
import { AsyncAction } from './AsyncAction';
import { AnimationFrame } from '../util/AnimationFrame';
/**
* We need this JSDoc comment for affecting ESDoc.
*/
export class AnimationFrameAction extends AsyncAction {
/**
* @param {?} scheduler
* @param {?} work
*/
constructor(scheduler, work) {
... |
'use strict'
//AFTER
var http = require('http');
var fs = require('fs');
var static_contents = require('./static.js');
var server = http.createServer(function (request, response){
static_contents(request, response); //this will serve all static files automatically
});
server.listen(8080);
console.log("Running i... |
module.exports = function(should, Assertion) {
/**
* Simple chaining. It actually do nothing.
*
* @memberOf Assertion
* @name be
* @property {should.Assertion} be
* @alias Assertion#an
* @alias Assertion#of
* @alias Assertion#a
* @alias Assertion#and
* @alias Assertion#have
... |
import React from 'react'
import Component from 'react-class'
import assign from 'object-assign'
import { NotifyResize } from 'react-notify-resize'
import join from './join'
import toMoment from './toMoment'
import normalize from 'react-style-normalizer'
const MINUTES = Array.apply(null, new Array(60)).map((_, inde... |
/**
* React Blessed Dependency Injection
* ===================================
*
* Injecting the renderer's needed dependencies into React's internals.
*/
import ReactInjection from 'react/lib/ReactInjection';
import ReactComponentEnvironment from 'react/lib/ReactComponentEnvironment';
import ReactBlessedReconcile... |
module.exports = require('regenerate')(0x951, 0x1CD7, 0x1CD9, 0x1CE0).addRange(0x1CDC, 0x1CDD).addRange(0x11180, 0x111CD).addRange(0x111D0, 0x111DF);
|
/*!
* Angular Material Design
* https://github.com/angular/material
* @license MIT
* v1.1.0-rc4-master-f9738f5
*/
goog.provide('ng.material.components.tabs');
goog.require('ng.material.components.icon');
goog.require('ng.material.core');
/**
* @ngdoc module
* @name material.components.tabs
* @description
*
* ... |
showdown.subParser('makeMarkdown.listItem', function (node, globals) {
'use strict';
var listItemTxt = '';
var children = node.childNodes,
childrenLenght = children.length;
for (var i = 0; i < childrenLenght; ++i) {
listItemTxt += showdown.subParser('makeMarkdown.node')(children[i], globals);
}
... |
var gulp = require('gulp');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var cssMin = require('gulp-css');
var pubnub = [
'bower_components/pubnub/web/pubnub.min.js',
'bower_components/subsub/subsub.js'
];
var map = [
'bower_components/eon-map/lib/mapbox.js',
'bower_components/eon... |
const { expect } = require('chai');
const fill = require('lodash/fill');
const Compiler = require('../../lib/compiler');
const BaseTestRunMock = require('./helpers/base-test-run-mock');
describe('Test run tracker', function () {
this.timeout(20000);
function runTest (testName) {
... |
exports.Client = require('./lib/client.js');
exports.Server = require('./lib/server.js');
|
/**
* Error reporting
*
* @param {mixed} error
* @returns {json} message - Error message to be sended as a response
*/
export default function reportError(err) {
return {
message: err
};
}
|
exports.BattleItems = {
"abomasite": {
id: "abomasite",
name: "Abomasite",
spritenum: 575,
megaStone: "Abomasnow-Mega",
megaEvolves: "Abomasnow",
onTakeItem: function (item, source) {
if (item.megaEvolves === source.baseTemplate.baseSpecies) return false;
return true;
},
num: 674,
gen: 6,
des... |
QUnit.test("map num array", function (assert) {
var data = [1, 2, 3, 4];
var result = Stream(data)
.map(function (num) {
return "obj" + num;
})
.toArray();
assert.equal(result.length, 4);
assert.equal(result[0], 'obj1');
assert.equal(result[1], 'obj2');
asse... |
/*! jQuery UI - v1.10.4 - 2014-04-27
* http://jqueryui.com
* Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */
jQuery(function(t){t.datepicker.regional.ky={closeText:"Жабуу",prevText:"<Мур",nextText:"Кий>",currentText:"Бүгүн",monthNames:["Январь","Февраль","Март","Апрель","Май","Июнь",... |
const times = (count) => (count >= 0 ? [...new Array(count)] : []).map((v, i) => i)
export default times
|
'use strict';
/**
* @class CachedStore
*
* An implementation of a cached store.
* It stores all values together with a timestamp. When retrieving the item,
* a TTL (time to live) must be specified (or defaults to 0). If the item in
* the cache is older than the specified TTL, the value is not returned.
*/
funct... |
window.DEP = "this is a config dep";
|
var fs = require('fs')
, path = require('path')
, http = require('http')
, racer = require('racer')
, tracks = require('tracks')
, View = require('./View.server')
, sharedCreateApp = require('./app').create
, autoRefresh = require('./refresh.server').autoRefresh
, derbyCluster = require('./cluster')
,... |
'use strict';
var gutil = require('gulp-util');
var exec = require('child_process').exec;
var escape = require('any-shell-escape');
// want to get the current branch instead?
// git.revParse({args:'--abbrev-ref HEAD'})
module.exports = function (branch, opt, cb) {
if (!cb && typeof opt === 'function') {
// opt... |
var http = require('http');
var fs = require('fs');
var srt2vtt = require('srt2vtt');
var internalIp = require('internal-ip');
var debug = require('debug')('castnow:subtitles');
var got = require('got');
var port = 4101;
var srtToVtt = function(options, cb) {
var source = options.subtitles;
var handler = fs.exists... |
var kafka = require('kafka-node'),
HighLevelConsumer = kafka.HighLevelConsumer,
client = new kafka.Client();
module.exports = function(chatServer, groupId) {
var consumer = new HighLevelConsumer(
client,
[
{ topic: 'chatmessages' }
],
{
groupId: grou... |
import React from 'react';
import TriggersContainer from './TriggersContainer';
import { mount } from 'enzyme';
const emptyDispatch = () => null;
const emptyActions = { setGeoJSON: () => null };
describe('(Container) TriggersContainer', () => {
it('Renders a TriggersContainer', () => {
const _component = mount(... |
Meteor.publish('pages', function () {
return orion.pages.collection.find();
});
Meteor.publish('page', function (url) {
check(url, String);
return orion.pages.collection.find({ url: url });
});
Meteor.startup(function() {
orion.pages.collection._ensureIndex({ url: 1 }, { unique: 1 });
});
Meteor.methods({
... |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'flash', 'bg', {
access: 'Достъп до скрипт',
accessAlways: 'Винаги',
accessNever: 'Никога',
accessSameDomain: 'Същият домейн',
alignAbsB... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const ts = require("typescript");
/** Checks whether the given node is part of an import specifier node. */
function isImportSpecifierNode(node) {
return isPartOfKind(node, ts.SyntaxKind.ImportSpecifier);
}
exports.isImportSpecifierNode = ... |
var math_module = require('./mathlib');
math_module.add(2,3);
math_module.multiply(3,5);
math_module.square(5);
math_module.random(10,100); |
const fp="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}};export const Hebrew={weekdays:{shorthand:["א","ב","ג","ד","ה","ו","ש"],longhand:["ראשון","שני","שלישי","רביעי","חמישי","שישי","שבת"]},months:{shorthand:["ינו׳","פבר׳","מרץ","אפר׳","מאי","יוני","יולי","אוג׳","ספט׳","אוק׳","נוב׳","... |
/* global define */
define(['jquery', 'underscore', 'backbone'],
function($, _, Backbone) {
'use strict';
/**
* Datagrid pagination widget
*
* @export oro/datagrid/pagination
* @class oro.datagrid.Pagination
* @extends Backbone.View
*/
return Backbone.View.extend({
... |
import React, { Component, PropTypes } from 'react';
import { Flex,Box } from 'reflexbox';
export default class Attributes extends Component {
static propTypes = {
attributes: PropTypes.array.isRequired,
onSelect: PropTypes.func.isRequired
};
render(){
const items = this.props.attribu... |
/**
* @fileoverview Contains prefab assemblies for core GLAM package
* @author Tony Parisi
*/
goog.provide('glam.Prefabs'); |
/**
* Users
* Pokemon Showdown - http://pokemonshowdown.com/
*
* Most of the communication with users happens here.
*
* There are two object types this file introduces:
* User and Connection.
*
* A User object is a user, identified by username. A guest has a
* username in the form "Guest 12". Any user whose u... |
// Extracts the video id from a YouTube link
function fixYoutubeUri(uri) {
var parts = uri.split('http');
var original_src = "http"+parts[parts.length-1];
// Matches http://(www.)?youtube.com/watch?v=(.+)
var yt_url = /^https?:\/\/(?:www\.)?youtube\.com\/watch\?v=(.+)$/;
var yt_match = original_src.match(yt_u... |
// Providers
// ---------
// Providers provide tile URLs and possibly elements for layers.
//
// MapProvider ->
// Template
//
MM.MapProvider = function(getTile) {
if (getTile) {
this.getTile = getTile;
}
};
MM.MapProvider.prototype = {
// ... |
import _extends from "@babel/runtime/helpers/esm/extends";
import * as React from 'react';
import { Transition } from '@material-ui/react-transition-group';
import { useForkRef } from '../utils';
import Fade from './Fade';
/**
* @ignore - internal component.
*/
const StrictModeFade = React.forwardRef(function Strict... |
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _objectWithoutPropertiesLoose2 = ... |
/*expected
initial->s2_1->s2_2->s2_4;
s2_1->s2_3->s2_4->final;
*/
/*expected
initial->s1_1->final;
*/
function Foo() { this.a = b ? c : d }; new Foo()
/*DOT
digraph {
node[shape=box,style="rounded,filled",fillcolor=white];
initial[label="",shape=circle,style=filled,fillcolor=black,width=0.25,height=0.25];
... |
var should = require("should");
var path = require("path");
var fs = require("fs");
var vm = require("vm");
var Test = require("mocha/lib/test");
var ExtractTextPlugin = require("extract-text-webpack-plugin");
var checkArrayExpectation = require("./checkArrayExpectation");
var webpack = require("../lib/webpack");
des... |
// Copyright 2013 Google Inc. All rights reserved.
//
// Use of this source code is governed by The MIT License.
// See the LICENSE file for details.
/**
* @fileoverview Element class manipulation functions.
* See {@link http://www.w3.org/TR/html5/dom.html#classes}.
*
* @author nicksay@google.com (Alex Nicksay)
*... |
import Stylis from 'stylis/stylis.min';
import _insertRulePlugin from 'stylis-rule-sheet';
import React, { cloneElement, createContext, Component, createElement } from 'react';
import memoize from 'memoize-one';
import stream from 'stream';
import PropTypes from 'prop-types';
import validAttr from '@emotion/is-prop-val... |
Tinytest.add('facts-base - increments server facts', test => {
Facts.resetServerFacts()
Facts.incrementServerFact('newPackage', 'skyIsBlue', 42);
test.equal(Facts._factsByPackage.newPackage, { skyIsBlue: 42 });
Facts.incrementServerFact('newPackage', 'skyIsBlue', 21);
test.equal(Facts._factsByPackage.newPac... |
// flow-typed signature: 48b4850fb955566488446b6ce731a25b
// flow-typed version: <<STUB>>/react-native-side-menu_v^0.20.0/flow_v0.38.0
/**
* This is an autogenerated libdef stub for:
*
* 'react-native-side-menu'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to ... |
module.exports = storeitems;
storeitems.desc = "Administer MAM App Store Store Items";
storeitems.usage = "\nfhc admin-storeitems list"
+"\nfhc admin-storeitems create <name> [description=<description>] [authToken=<authToken>] [restrictToGroups=<restrictToGroups>]"
+"\nfhc admin-storeitems delete <storeitem guid>"... |
define({
"_widgetLabel": "Upit",
"executeQueryTip": "Kliknite na jednu od sledećih stavki zadataka da biste izvršili upit.",
"invalidConfig": "Nevažeća konfiguracija. Koristite stranicu postavki Upita da biste dobili ispravnu konfiguraciju.",
"queryParams": "Opcije",
"parameters": "OPCIJE",
"queries": "UPIT... |
/*!
* jQuery DFP v2.4.2
* http://github.com/coop182/jquery.dfp.js
*
* Copyright 2016 Matt Cooper
* Released under the MIT license
*/
(function (window, undefined) {
"use strict";
/**
* Make plugin UMD compatible
* Uses CommonJS, AMD or browser globals to create plugin.
*/
(function (f... |
version https://git-lfs.github.com/spec/v1
oid sha256:3d6077997ac2c765d91638a02e71ee6d2f16f914e12b8dece8b2d614caddb098
size 3639
|
/*! Swipebox v1.3.0.2 | Constantin Saguin csag.co | MIT License | github.com/brutaldesign/swipebox */
;
( function (window, document, $, undefined) {
$.swipebox = function (elem, options) {
// Default options
var ui,
defaults = {
useCSS: true,
... |
import React from 'react';
import { shallow } from 'enzyme';
import toJson from 'enzyme-to-json';
import Rating from '../Rating';
describe('Rating Component', () => {
it('should render without issues', () => {
const component = shallow(<Rating />);
expect(component.length).toBe(1);
expect(toJson(compone... |
/*
* Copyright (C) 2010 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... |
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
var Sort = {
Numeric: function Numeric(a, b) {
var valA = parseFloat(a.toString().replace(/,/g, ''));
var valB = parseFloat(b.toString().replace(/,/g, ''));
// Sort non-numeric values alphabetically at the bot... |
module.exports = function (config) {
config.set({
basePath: './',
files: [
'app/bower_components/angular/angular.js',
'app/bower_components/angular-ui-router/release/angular-ui-router.js',
'app/bower_components/angular-mocks/angular-mocks.js',
'app/b... |
version https://git-lfs.github.com/spec/v1
oid sha256:1731b36436e7f870e24d58eb886ce827330caaaff6c8ee56cd4def11f12d2fdc
size 621
|
"use strict";
var assert = require("chai").assert
, handleException = require("../../lib/resolve-exception");
describe("lib/handle-exception", function () {
it("Should throw TypeError", function () {
try {
handleException(12, "Invalid value");
throw new Error("Unexpected");
} catch (error) {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.