code stringlengths 2 1.05M |
|---|
import styled from 'styled-components'
const RulesContainer = styled.div`
text-align: justify;
h3 {
margin-bottom: 10px;
margin-left: 0;
}
.summary {
margin-left: 10px;
font-size: 10pt;
line-height: 13pt;
font-style: italic;
}
`
export default RulesContainer
|
/* eslint-disable */ 'use strict';
const chai = require('chai');
global.chaiAsPromised = require('chai-as-promised');
chai.should();
chai.use(chaiAsPromised);
global.expect = chai.expect;
global.AssertionError = chai.AssertionError;
global.Assertion = chai.Assertion;
global.assert = chai.assert;
|
/*!
* better-scroll / better-scroll
* (c) 2016-2020 ustbhuangyi
* Released under the MIT License.
*/
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may n... |
describe('addClassDecorator', function () {
it('should call the decorate method when the Decorator is invoked', function () {
var info = {decorate: jasmine.createSpy('decorate')};
BaseClass.addClassDecorator('decorator', info);
BaseClass('name', function () {
~decorator();
... |
'use strict';
const stateModule = angular.module('hkRouter', ['ui.router']);
stateModule
.config(['$stateProvider', '$urlRouterProvider',
function($stateProvider, $urlRouterProvider) {
/////////////////////////////
// Redirects and Otherwise //
/////////////////////////////
$urlRouterProvide... |
$(function() {
setInterval( function() {
var seconds = new Date().getSeconds();
var sdegree = seconds * 6;
var srotate = "rotate(" + sdegree + "deg)";
$('.dynamic-time').html(moment(new Date()).format("hh:mm:ss A"));
$("#sec").css({"-moz-transform" : srotate, "-webkit-transform" :... |
angular
.module('AngularCommunicator', [])
.provider('angularCommunicatorService', function() {
var registeredListeners = {};
function buildHierarchicalStructure(reg, splitName, callback) {
(!reg[splitName[0]]) && (reg[splitName[0]] = {listeners: []});
if(splitName.length === 1) {
reg[... |
import React from 'react';
import SvgImage from 'components/svg-image';
import ChartLabel from 'components/chart-label';
import { getLayout } from 'layouts/flexbox';
import getCenter from 'decorators/get-center';
@getCenter
export default class HorizontalBarDetail extends React.Component {
static propTypes = {
... |
var breadcrumbs=[['-1',"",""],['2',"SOLUTION-WIDE PROPERTIES Reference","topic_0000000000000C16.html"],['408',"Tlece.Recruitment.Controllers Namespace","topic_000000000000018A.html"],['597',"SiteManagementController Class","topic_000000000000022F.html"],['599',"Methods","topic_000000000000022F_methods--.html"],['605',"... |
;(function(jqi, $, undefined) {
function Dive(index, $step, $previous, options) {
var z = $step.attr('data-z'),
x = $previous.attr('data-x'),
y = $previous.attr('data-y');
if (!z) z = -2000;
else z = parseInt(z) - 2000;
$step.attr({'data-z' : z, 'data-x' : x, 'data-y' : y });
return this;
}
jqi.Di... |
/*!
* DevExtreme (dx.aspnet.mvc.js)
* Version: 20.1.8 (build 20303-1716)
* Build date: Thu Oct 29 2020
*
* Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
! function(factory) {
if ("function" === typeof define && d... |
/*!
* DevExtreme (dx.messages.en.js)
* Version: 22.1.0 (build 22018-0314)
* Build date: Tue Jan 18 2022
*
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
"use strict";
! function(root, factory) {
if ("function" ... |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define("Navigo", [], factory);
else if(typeof exports === 'object')
exports["Navigo"] = factory();
else
ro... |
import{B as e}from"./index-5cf9ee19.js";export default class extends e{constructor(e){super(e);const t=document.documentElement,o=e=>{this.setMod("active",e)},n=e=>{"webkitUserSelect"in t.style?t.style.webkitUserSelect=e?"":"none":t.style.userSelect=e?"":"none"};this.on("click",(t=>{o(!1),e.nuDisabled||(t.stopPropagati... |
import{W as t,d as e,s,b as i}from"./index-19c813a5.js";import n from"./menu-29457b97.js";const o=n.prototype;export default class extends t{static get params(){return{input:!0,provideValue:!0,itemRole:"radio",contextValue:!0}}init(){this.props.disabled=t=>{const{host:n}=this,o=i(t);return e(n,"[nu-action]").forEach(t=... |
/**
* @version : 17.8.0 - Bridge.NET
* @author : Object.NET, Inc. http://bridge.net/
* @copyright : Copyright 2008-2019 Object.NET, Inc. http://object.net/
* @license : See license.txt and https://github.com/bridgedotnet/Bridge/blob/master/LICENSE.md
*/
Bridge.assembly("Bridge", function ($asm, globals) {
... |
/*!
* Native JavaScript for Bootstrap Modal v3.0.15-alpha2 (https://thednp.github.io/bootstrap.native/)
* Copyright 2015-2021 © dnp_theme
* Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE)
*/
var addEventListener = 'addEventListener';
var removeEventListener = 'removeEventLis... |
/*
Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang("devtools","ko",{title:"구성 요소 정보",dialogName:"다이얼로그 윈도우 이름",tabName:"탭 이름",elementId:"요소 ID",elementType:"요소 형식"}); |
/*! shepherd.js 8.0.1 */
'use strict';(function(E,Y){"object"===typeof exports&&"undefined"!==typeof module?module.exports=Y():"function"===typeof define&&define.amd?define(Y):(E=E||self,E.Shepherd=Y())})(this,function(){function E(a,b){return!1!==b.clone&&b.isMergeableObject(a)?R(Array.isArray(a)?[]:{},a,b):a}functio... |
import _clone from 'lodash-es/clone';
import _keys from 'lodash-es/keys';
import _toPairs from 'lodash-es/toPairs';
import _union from 'lodash-es/union';
import _without from 'lodash-es/without';
import { debug } from '../index';
import { osmIsInterestingTag } from './tags';
import { dataDeprecated } from '../../data/... |
'use strict';
module.exports = function enableAuthentication(server) {
// enable authentication
server.enableAuth();
};
|
'use strict';
var core = require('./src/core/bootstrap');
core.start()
.catch((err) => {
console.log(err);
});
|
'use strict';
var ndtutil = require('../ndtutil')
/**
* Alarm
* @param {object} env
* @return {P}
*/
module.exports = function(env){
return ndtutil.svc(env,'alarm')
}
|
version https://git-lfs.github.com/spec/v1
oid sha256:44f9d14a36ef7f6c42f2c7bbac59a92b1dac5e546fe6d9b9febc62e5474b1c95
size 22242
|
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S11.13.2_A4.6_T2.8;
* @section: 11.13.2, 11.7.1;
* @assertion: The production x <<= y is the same as x = x << y;
* @description: Type(x) is different from Type(y)... |
var mongoose = require('mongoose'),
Schema = mongoose.Schema,
async = require('async'),
jf = require('jsonfile'),
executing = false;
var config = require('../config.json');
var configM = require('./config.json');
jf.spaces = 2;
mongoose.connect(config.db.url ||
('mongodb://' + config.db.host + '/'+ confi... |
describe('update element Function', function() {
var updateElement;
beforeEach(function() {
module('angular-stick-to');
inject(function(_updateElement_) {
updateElement = _updateElement_;
});
});
describe('when called with element in Case1', function() {
var element;
beforeEach(functi... |
var System = require('../entities/systems/System');
/**
* Manages entities with a TimelineComponent
* @example-link http://code.gooengine.com/latest/visual-test/goo/timelinepack/TimelineComponent/TimelineComponent-vtest.html Working example
*/
function TimelineSystem() {
System.call(this, 'TimelineSystem', ['Timel... |
//>>excludeStart("exclude", pragmas.exclude);
define([ "shoestring" ], function(){
//>>excludeEnd("exclude");
/**
* Returns a `shoestring` object with the set of siblings of each element in the original set.
*
* @return shoestring
* @this shoestring
*/
shoestring.fn.next = function(){
//>>includeStart("d... |
/*
=========================================================
Name : InsertArg (ia)
GitHub : https://github.com/TimRohr22/Cauldron/tree/master/InsertArg
Roll20 Contact : timmaugh
---------------------------------------------------------
COMPONENTS
-------------------------------------------------... |
'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 ("va... |
'use strict';
(function() {
var env = '';
if (typeof module !== 'undefined' && module.exports) env = 'node';
var exports = {};
if (env === 'node') {
var layer = require('layer');
} else {
exports = this;
var layer = layer || this.layer;
}
exports.intercept = function (ctx, fn, interceptFn) {
var result = fals... |
'use strict';
var mean = require('meanio');
var request = require('request');
var unescape = require('unescape');
exports.render = function(req, res) {
var modules = [];
// Preparing angular modules list with dependencies
for (var name in mean.modules) {
modules.push({
name: name,
module: 'me... |
import createMarkup from "../react.markup";
it("should return blank if no content", () => {
const result = createMarkup({
content: {
body: "false",
},
});
expect(result).toEqual({
__html: "",
});
});
it("should return from body prop by default", () => {
const result = createMarkup({
co... |
// Example input: [ '6', '-26 -25 -28 31 2 27' ]
function largerThanNeighbours(args) {
var i,
count = 0,
len = +args[0],
myArray = args[1].split(' ').map(Number);
for (i = 1; i < len - 1; i += 1) {
if (myArray[i] > myArray[i - 1] && myArray[i] > myArray[i + 1]) {
count += 1;
}
... |
"use strict";
var util = require("util");
/**
* InvalidRateLimitConfiguration error triggered when passed invalid configurations.
*
* @param {String} description Extended description
* @returns {void}
*/
function InvalidRateLimiterConfiguration(description) {
Error.captureStackTrace(this, this.constructor);
... |
'use strict';
var assert = require('chai').assert;
var LinePredictor = require('../src/js/model/linePredictor.js').LinePredictor;
var Geometry = require('../src/js/model/geometry.js').Geometry;
var Line = require('../src/js/model/line.js').Line;
Geometry.init();
Line.init();
function Target (x, y) {
this.left = x;
... |
var shovel = require('../shovel'),
util = require('../util'),
temp = require('temp');
module.exports.run = function run(opts, cb) {
temp.track();
var racketCodeDir = temp.mkdirSync('racket'),
args = ['-l', 'racket/base'];
shovel.start(opts, cb, {
solutionOnly: function () {
... |
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
requirejs: {
compile: {
options: {
paths: { requireLib: 'node_modules/requirejs/require' },
include: [ "requireLib" ],
baseUrl: ".",
mainConfigFile: "app.js",
name: "app",
optimize:... |
var d3 = require('d3');
function true_index(arr, config) {
// Series.ix[start, end].true().index;
if (!config) { config = {}; }
if (!config.length) { config.length = arr.length }
config.start = config.start ? config.start : 0;
config.end = config.end ? config.end : config.length;
var valid = new Array(co... |
if (process.title !== 'browser') {
switch (process.env.KADOH_TRANSPORT) {
default:
case 'xmpp':
//@browserify-ignore
module.exports = require('./node-xmpp');
break;
case 'udp':
//@browserify-ignore
module.exports = require('./udp') ;
break;
}
} else {
switch (process.env.KADOH_TRA... |
'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]; } }... |
var cooking = require('cooking');
var path = require('path');
cooking.set({
entry: {
index: path.join(__dirname, 'index.js')
},
dist: path.join(__dirname, 'lib'),
template: false,
format: 'umd',
moduleName: 'MintIndicator',
extractCSS: 'style.css',
extends: ['vue', 'saladcss']
});
cooking.add('re... |
import { connect } from 'react-redux'
import { helloWorld } from '../actions'
import Hello from './../components/Hello'
const mapStateToProps = (state) => {
return {
message: state.hello.message
}
}
const mapDispatchToProps = (dispatch) => {
return {
onClick: () => {
dispatch(helloWorld())
}
... |
/* */
define( [
"../core"
], function( jQuery ) {
"use strict";
// Cross-browser xml parsing
jQuery.parseXML = function( data ) {
var xml;
if ( !data || typeof data !== "string" ) {
return null;
}
// Support: IE 9 - 11 only
// IE throws on parseFromString with invalid input.
try {
xml = ( new window.DOMP... |
'use strict'
exports.register = function(server, options, next){
server.route([
{
method: 'GET',
path: '/createuser',
config: {
// Uncomment for security
//auth: {
// strategy: 'standard',
// scope: 'admin'
//},
handler: function(request, reply) {
return reply('<html><head><title>User Crea... |
BASE.require([
"BASE.sqlite.Visitor"
],
function () {
}); |
// This file is part of Indico.
// Copyright (C) 2002 - 2019 CERN
//
// Indico is free software; you can redistribute it and/or
// modify it under the terms of the MIT License; see the
// LICENSE file for more details.
(function(global) {
'use strict';
global.setupLinkingWidget = function setupLinkingWidget(optio... |
/**
@ngdoc directive
@name umbraco.directives.directive:umbChildSelector
@restrict E
@scope
@description
Use this directive to render a ui component for selecting child items to a parent node.
<h3>Markup example</h3>
<pre>
<div ng-controller="My.Controller as vm">
<umb-child-selector
selecte... |
'use strict'
var fs = require('graceful-fs')
var path = require('path')
var mkdirpSync = require('mkdirp').sync
var rimraf = require('rimraf')
var test = require('tap').test
var common = require('../common-tap.js')
var base = common.pkg
var cruft = path.join(base, 'node_modules', 'cruuuft')
var pkg = {
name: 'exampl... |
var _INCLUDED = false;
module.exports = function() {
var BandRenderer = require('../../../core/renderers/band_renderer.js');
if (_INCLUDED) { return BandRenderer; }
_INCLUDED = true;
// cached state object, for quick access during rendering, populated in begin() method:
BandRenderer.hasA("state");... |
import React from 'react';
import { shallow } from 'enzyme';
import { expect } from 'chai';
import Welcome from '../../src/js/components/Welcome';
describe('Welcome Component', () => {
var welcomeComponent;
beforeEach(() => {
welcomeComponent = shallow(<Welcome />);
});
it('renders Mikey Welcomes You! in... |
export default {
'ACT': 'Australian Capital Territory',
'NSW': 'New South Wales',
'NT' : 'Northern Territory',
'QLD': 'Queensland',
'SA' : 'South Australia',
'TAS': 'Tasmania',
'VIC': 'Victoria',
'WA' : 'Western Australia'
} |
if( typeof module !== 'undefined' )
require( 'wFiles' )
var _ = wTools;
/* filesCopy HardDrive -> Extract */
var hub = _.FileProvider.Hub();
var simpleStructure = _.FileProvider.Extract
({
filesTree : Object.create( null )
});
hub.providerRegister( simpleStructure );
var hdUrl = _.fileProvider.urlFromLocal( _.no... |
version https://git-lfs.github.com/spec/v1
oid sha256:e330e85aabf65a6116144dfe2e726f649a1cdfd88a33e6ce4e3a39f40ebadfbb
size 153184
|
/**
* report business validation library
*/
var async = require('async');
module.exports = function(services, logger) {
var me = this;
me.validate = function(object, callback) {
var errors = [];
me.done = function() {
var bVal = {valid: !(errors.length), errors: errors};
callback(bVal);
};
me.vali... |
win = windows.getAll()[0]
test(function() {
g[0] = groups.create(
[
{ url: "data:text/plain,1" },
{ url: "data:text/plain,2" },
{ url: "data:text/plain,yay" },
])
assert_equals(g[0].tabs.getAll().length, 3)
var tab = g[0].tabs.getAll()[2]
g[1] = groups.create(
[
tab, // <-- throws
{ url: "da... |
// @flow
import Bluebird from 'bluebird';
import type { Disposable } from 'bluebird';
const defer: Bluebird.Defer = Bluebird.defer();
const promise: Bluebird<*> = defer.promise;
(promise.isFulfilled(): bool);
promise.reflect().then(inspection => {
(inspection.isCancelled(): bool);
(inspection.pending(): bool);
});... |
"use strict";
input.map(function (item) {
return item + 1;
});
(function (a) {
return a + 1;
}); |
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="m12 17.27l4.15 2.51c.76.46 1.69-.22 1.49-1.08l-1.1-4.72 3.67-3.18c.67-.58.31-1.68-.57-1.75l-4.83-.41-1.89-4.46c-.34-.81-1.5-.81-1.84 0L9.19 8.63l-4.83.41c-.88.07-1.24 1.17-.57 1.75l3.67 3.18-1.1 ... |
#!/usr/bin/env node
'use strict'
var fs = require('fs')
var Promise = require('promise')
var colors = require('colors')
var _ = require('underscore')
const areaNameRegex = new RegExp('^[a-zA-Z]+$')
const templatesDir = process.cwd() + '/_scripts/.templates'
const areasDir = process.cwd() + '/src/app/areas'
var area... |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon([/*#__PURE__*/_jsx("path", {
d: "m14 16.64-4-1.45V17h4zM6 8.5c.15 0 .3-.03.44-.1.49-.24.7-.84.46-1.34-.19-.41-.59-.56-.9-.56-.15 0-.3.03-.44.1-.32.16-.45.42-.5.56-.05.15-.12.44.04.77.2.42.5... |
var b2Vec2 = Box2D.Common.Math.b2Vec2;
var b2Body = Box2D.Dynamics.b2Body;
var b2BodyDef = Box2D.Dynamics.b2BodyDef;
var b2FixtureDef = Box2D.Dynamics.b2FixtureDef;
var b2PolygonShape = Box2D.Collision.Shapes.b2PolygonShape;
var b2CircleShape = Box2D.Collision.Shapes.b2CircleShape;
var b2Math = Box2D.Common.Math.b2Math... |
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M10 6.35V4.26c-.66.17-1.29.43-1.88.75l1.5 1.5c.13-.05.25-.11.38-.16zM20 12c0-2.21-.91-4.2-2.36-5.64L20 4h-6v6l2.24-2.24C17.32 8.85 18 10.34 18 12c0 .85-.19 1.65-.51 2.38l1.5 1.5C19.63 14.74 20 13... |
import {ColumnView} from '../scene/view';
import {ColumnModel} from './column.model';
import {TemplatePath} from '../template';
TemplatePath.register('row-number-cell', (template, column) => {
return {
model: template.for,
resource: column.key
};
});
export class RowNumberColumnModel extends ColumnModel {
cons... |
$(function (){
location.hash = "#welcome.html";
loader("welcome.html");
});
var loader = function (s) {
// load content from server
$.get(s, function (data){
var result = $(data);
$("#content").html(result);
// send event to Google Analytics
ga('send', 'event', 'content', 'load', s)... |
(function() {
'use strict';
angular.module('civic.events.evidence')
.config(evidenceEditConfig)
.factory('EvidenceEditViewOptions', EvidenceEditViewOptions)
.controller('EvidenceEditController', EvidenceEditController);
// @ngInject
function evidenceEditConfig($stateProvider) {
$stateProvider
... |
'use strict';
const applySourceMap = require('vinyl-sourcemaps-apply');
const CleanCSS = require('clean-css');
const path = require('path');
const PluginError = require('gulp-util').PluginError;
const through = require('through2');
module.exports = function gulpCleanCSS(options, callback) {
options = opt... |
var anchor;
while (anchor = schema.nextAnchor()) {
if(anchor.hasMoreAttributes()) { // only do perspectives if there are attributes
var knot, attribute;
/*~
-- Point-in-time perspective ------------------------------------------------------------------------------------------
-- p$anchor.name viewed as it wa... |
'use strict';
// Use local.env.js for environment variables that grunt will set when the server starts locally.
// Use for your api keys, secrets, etc. This file should not be tracked by git.
//
// You will need to set these on the server you deploy to.
module.exports = {
DOMAIN: 'http://localhost:9000',
SESSION_... |
"use strict";
module.exports = MapField;
// extends Field
var Field = require("./field");
((MapField.prototype = Object.create(Field.prototype)).constructor = MapField).className = "MapField";
var types = require("./types"),
util = require("./util");
/**
* Constructs a new map field instance.
* @classdesc... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
* @flow
* @emails oncall+relay
*/
// flowlint ambiguous-object-type:error
'use strict';
const RelayModernEnvironmen... |
/* eslint no-sync: 0 */
const fs = require("fs");
const path = require("path");
const Logger = require("./Log");
const Plugin = require("./Plugin");
// A small utility functor to find a plugin with a given name
const nameMatches = targetName => pl => pl.plugin.name.toLowerCase() === targetName.toLowerCase();
const SY... |
/**
Represents a bullet bill enemy.
Code by Rob Kleffner, 2011
*/
Mario.BulletBill = function(world, x, y, dir) {
this.Image = Enjine.Resources.Images["enemies"];
this.World = world;
this.X = x;
this.Y = y;
this.Facing = dir;
this.XPicO = 8;
this.YPicO = 31;
this.Height = 12;
this.Width = 4... |
'use strict';
var assert = require('assert');
it('throws after timeout', function (done) {
setTimeout(function () {
throw new Error('Exception in delayed function');
}, 10);
});
|
/*
* mocaccino.js
*
* Copyright (c) 2014 Maximilian Antoni <mail@maxantoni.de>
*
* @license MIT
*/
/*globals describe, it*/
'use strict';
describe('cover', function () {
function called() {
return 42;
}
function test(a) {
return a || called();
}
it('yields', function (done) {
setTimeout(... |
var _curry2 = require('./internal/_curry2');
var _map = require('./internal/_map');
var curryN = require('./curryN');
var pluck = require('./pluck');
/**
* Accepts a converging function and a list of branching functions and returns a new function.
* When invoked, this new function is applied to some arguments, each... |
import {
MISC_SELECTEDPLAYLIST_SET,
MISC_SELECTEDPLAYLIST_CLEAR,
MISC_SONGNAVSELECTION_SET,
} from '../constants';
export function setActivePlaylist(playlistId) {
return {
type: MISC_SELECTEDPLAYLIST_SET,
payload: { playlistId },
};
}
export function clearActivePlaylist() {
return {
type: MISC... |
angular.module('dialogDemo1', ['ngMaterial'])
.controller('AppCtrl', function($scope, $mdDialog) {
$scope.alert = '';
$scope.showAlert = function(ev) {
// Appending dialog to document.body to cover sidenav in docs app
// Modal dialogs should fully cover application
// to prevent interaction outside of... |
/**
* jquery.calendar.js 1.0
* http://jquerywidget.com
*/
;(function (factory) {
if (typeof define === "function" && (define.amd || define.cmd) && !jQuery) {
// AMD或CMD
define([ "jquery" ],factory);
} else if (typeof module === 'object' && module.exports) {
// Node/CommonJS
mo... |
import Route from '@ember/routing/route';
export default class Index extends Route {
async model() {
return await this.modelFor('blog');
}
resetController(controller, isExiting, transition) {
if (isExiting && transition.targetName !== 'error') {
controller.set('page', 1);
}
}
}
|
/* global describe, it */
var assert = require('assert');
var jsdom = require('mocha-jsdom');
var React = require('react/addons');
var TestUtils = React.addons.TestUtils;
var stubContext = require('react-stub-context');
var Three = require('../src/Three');
describe('Three', function () {
jsdom();
var levels, con... |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ re... |
var searchData=
[
['addra',['addrA',['../a00028.html#a3cae9d5d9bef65c080151c7a068aba59',1,'ip_addr']]],
['addrb',['addrB',['../a00028.html#affc4950defbac0add14648c302d1cca3',1,'ip_addr']]],
['addrc',['addrC',['../a00028.html#a2965c835c1e5f0a593e0ce78a9e22596',1,'ip_addr']]],
['addrd',['addrD',['../a00028.html#a... |
/*
Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("widget","en-gb",{move:"Click and drag to move"}); |
import { initialize } from 'ember-off-canvas-components/initializers/custom-events';
export default {
name: 'eoc-custom-events',
initialize: initialize
};
|
import React, { PropTypes, Component } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router';
import NoteAdd from 'material-ui/svg-icons/action/note-add';
import Delete from 'material-ui/svg-icons/action/delete';
import IconMenu from 'material-ui/IconMenu';
import ShowChart from 'mate... |
/*! 1.2.7 */
window.XMLHttpRequest&&window.FormData&&(XMLHttpRequest=function(a){return function(){var b=new a;return b.setRequestHeader=function(a){return function(c,d){if("__setXHR_"===c){var e=d(b);e instanceof Function&&e(b)}else a.apply(b,arguments)}}(b.setRequestHeader),b}}(XMLHttpRequest),window.XMLHttpRequest._... |
const ClientCommand = require('./_base-command.js');
/**
* Maximizes the current window.
*
* @example
* this.demoTest = function (browser) {
* browser.maximizeWindow();
* };
*
*
* @method maximizeWindow
* @param {function} [callback] Optional callback function to be called when the command finishes.
* ... |
'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]; } }... |
$(function () {
if (!Modernizr.json) {
alert('Navegador muy antiguo, por favor actualícelo');
window.location = "http://whatbrowser.org/"
}
});
|
var baseDifference = require('../internal/baseDifference'),
baseFlatten = require('../internal/baseFlatten'),
isArguments = require('../lang/isArguments'),
isArray = require('../lang/isArray'),
restParam = require('../function/restParam');
/**
* Creates an array excluding all values of the prov... |
// class HandleDeleteApplication {
// constructor() {
// this.ui = {};
//
// this.applications_page = $('div#third_party_applications_page');
//
// //Delete aplication modal
// this.modal_delete_application = $('div#delete_application_modal');
// this.button_delete_application = $(
// 'butto... |
var block = {
"tags":["video-tag"],
"videos":["https:\/\/www.youtube.com\/v\/YigKNDHhjTA?version=3&f=videos&app=youtube_gdata"],
"liked":false,
"notebooks":["47307eb6-cd32-4544-9677-1ba276b54dd3"],
"image":"https:\/\/i1.ytimg.com\/vi\/YigKNDHhjTA\/0.jpg",
"type":"Video",
"url":"https:\/\/www.youtube.com\/watch?v=YigKND... |
$(document).ready(function() {
//WAYPOINT - JQUERY COUNTTO PROGRESS BAR//
$('#count-wrapper').waypoint(function() {
$('.title-count').countTo();
}, {
offset: '80%',
triggerOnce: true
});
// MIXITUP PORTFOLIO
$(function() {
$('#container-mixitup').mixIt... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S12.14_A10_T1;
* @section: 12.14;
* @assertion: Using "try" with "catch" or "finally" statement within/without a "while" statement;
* @description: Throwing except... |
'use strict';
var chai = require('chai'),
chaiAsPromised = require('chai-as-promised');
if (!global.Promise) {
global.Promise = require('promise-polyfill');
}
chai.use(chaiAsPromised);
chai.should();
var async = require('../../lib/async-as-promised');
describe('aplus', function () {
describe('setPromise(... |
'use strict';
var ssacl = require('../lib')
, chai = require('chai')
, expect = chai.expect
, helper = require('./helper')
, Sequelize = require('sequelize')
, Promise = helper.Promise;
Promise.longStackTraces();
chai.use(require('chai-as-promised'));
describe('writer', function () {
beforeEach(function ... |
'use strict'
/*global describe, it, before, after, beforeEach */
var should = require('should')
var thunk = require('thunks')()
var JSONKit = require('jsonkit')
var redis = require('../index')
module.exports = function () {
describe('commands:Set', function () {
var client
before(function () {
client... |
/**
* Custom error types to differentiate eBay response errors and client-level errors.
*
* @see http://developer.ebay.com/devzone/xml/docs/Reference/ebay/Errors/ErrorMessages.htm
*/
var
inherits = require('util').inherits,
_ = require('lodash');
function EbayClientError(message, extraProps) {
Error.apply(t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.