code stringlengths 2 1.05M |
|---|
const DrawCard = require('../../drawcard.js');
class Harmonize extends DrawCard {
setupCardAbilities(ability) {
this.action({
title: 'Send a character home from each side',
cannotBeMirrored: true,
targets: {
myCharacter: {
cardConditio... |
// ***********************************************
// This example commands.js shows you how to
// create the custom command: 'login'.
//
// The commands.js file is a great place to
// modify existing commands and create custom
// commands for use throughout your tests.
//
// You can read more about custom commands her... |
/** Used to map aliases to their real names. */
exports.aliasToReal = {
// Lodash aliases.
'each': 'forEach',
'eachRight': 'forEachRight',
'entries': 'toPairs',
'entriesIn': 'toPairsIn',
'extend': 'assignIn',
'extendWith': 'assignInWith',
'first': 'head',
// Ramda aliases.
'__': 'plac... |
var arrayOfJsStrings = [
{"foo": 'bar'},
{"a b c": {unquoted:"nested"}},
{"hyphen-ated": [1,2,3]},
{unquoted: "<html>here<script>var a = 'string';</script></html>"}
];
if (typeof module !== 'undefined' && module.exports) {
module.exports = arrayOfJsStrings;
}
|
import * as actions from './actions';
import * as authActions from '../auth/actions';
import User from './user';
import { Record, Seq } from 'immutable';
import { firebaseActions, mapAuthToUser } from '../lib/redux-firebase';
const InitialState = Record({
// Undefined is absence of evidence. Null is evidence of abse... |
import LegendEffectOpacity from './LegendEffectOpacity';
export default {
LegendEffectOpacity,
};
|
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S11.9.4_A8_T3;
* @section: 11.9.4, 11.9.6;
* @assertion: If Type(x) is different from Type(y), return false;
* @description: x or y is primitive string;
*/
... |
"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 div = document.createElement('div');
div.innerHTML = 'Script was loaded and added this div!';
document.body.appendChild(div); |
import { configure } from "enzyme";
import Adapter from "enzyme-adapter-react-16";
configure({ adapter: new Adapter() });
|
{
"ADP_currencyISO" : "peseta andorrana",
"ADP_currencyPlural" : "pesetas andorranas",
"ADP_currencySingular" : "peseta andorrana",
"ADP_currencySymbol" : "ADP",
"AED_currencyISO" : "dírham de los Emiratos Árabes Unidos",
"AED_currencyPlural" : "dirhams de los Emiratos Árabes Unidos",
"AED_currencySingular" : "d... |
'use strict';
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['jquery', 'moment'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
module.exports = factory(require('jquery'), require('moment'));
} ... |
import React from 'react';
const EventType = React.createClass({
propTypes: {
weekendInfo: React.PropTypes.object
},
getDefaultProps: function() {
return {
weekendInfo: {}
}
},
shouldComponentUpdate: function(nextProps, nextState) {
return this.props.we... |
'use strict';
var request = require('request');
var imgurwrapUtil = require('./imgurwrap.util.js');
var imgurwrapImage = require('./imgurwrap.image.js');
var imgurwrapAlbum = require('./imgurwrap.album.js');
var imgurwrap = module.exports;
/**
* URL parsing and testing
*/
var _imgurDomain = /.*\/\/((i|m)\.)?imgur.co... |
'use strict';
var chai = require('chai');
chai.use(require('chai-things'));
var expect = chai.expect;
var universities = require('../universities.js');
describe('universities', function() {
beforeEach(function(done) {
universities.connectDb((err) => {
if (err) {
return done... |
const axios = require("axios");
const crypto = require("crypto");
const mongoose = require("mongoose");
const nodemailer = require("nodemailer");
const User = require("./user.model");
const { generateAccessToken, generateRefreshToken } = require("../../core/server/authorize.middleware");
function formatProfile(user) {... |
/**
* 工具
*/
var array = require('./array');
var object = require('./object');
/**
* 将数字id转化为字符串
*/
var intzip = exports.intzip = function(a, bit){
bit = bit || 'qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890';
if(typeof a=='number'){
if(a==0) return bit.charAt(0);
for(var... |
'use strict';
import abbreviateNumber from '../abbreviateNumber';
describe('abbreviateNumber', () => {
it('always returns a string', () => {
expect(abbreviateNumber(1, 0)).to.equal('1');
expect(abbreviateNumber(999, 1)).to.equal('999');
});
it('abbreviates numbers correctly', () => {
... |
function js_beautify(js_source_text, indent_size, indent_character, indent_level) {
var input, output, token_text, last_type, last_text, last_word, current_mode, modes, indent_string;
var whitespace, wordchar, punct, parser_pos, line_starters, in_case;
var prefix, token_type, do_block_just_closed, var_line... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S10.1.5_A2.3_T2;
* @section: 10.1.5, 15.1;
* @assertion: Global object properties have attributes { DontEnum };
* @description: Global execution context - Function... |
var Surface = require('@src/traces/surface');
var Lib = require('@src/lib');
describe('Test surface', function() {
'use strict';
describe('supplyDefaults', function() {
var supplyDefaults = Surface.supplyDefaults;
var defaultColor = '#444',
layout = {};
var traceIn, tra... |
import About from "./about.json";
import CongratsModal from "./congrats-modal.json";
import Home from "./home.json";
import MainMenu from "./menu.json";
import Map from "./map.json";
import NewEventModal from "./new-event-modal.json";
import Team from "./team.json";
import Partners from "./partners.json";
import Faq fr... |
/**
* Terminus.js
* Copyright © 2012 Ramón Lamana
*/
define(function(require) {
'use strict';
var Promise = require('core/promise');
var Events = require('core/events');
/**
* @class
*/
var InputStream = function() {
this.events = new Events();
this._buffer = [];
// Default reader function
this.... |
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modi... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S12.6.1_A5;
* @section: 12.6.1;
* @assertion: After "do-while" is broken, (normal, V, empty) is returned;
* @description: Using eval;
*/
__evaluated = eval("do {__... |
/**
* Copyright 2015 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 agreed to ... |
import Immutable, { Map, List, is } from 'immutable'
import { Reactor, Store } from '../src/main'
import { getOption } from '../src/reactor/fns'
import { toImmutable } from '../src/immutable-helpers'
import { PROD_OPTIONS, DEBUG_OPTIONS } from '../src/reactor/records'
import { NoopLogger, ConsoleGroupLogger } from '../... |
/*global define*/
define([
'./CubicRealPolynomial',
'./DeveloperError',
'./Math',
'./QuadraticRealPolynomial'
], function(
CubicRealPolynomial,
DeveloperError,
CesiumMath,
QuadraticRealPolynomial) {
"use strict";
/**
* Defines functions f... |
const FOO = 1;
const BAR = 2;
const BAZ = 3;
module.exports = {
name: 'Enums',
constants: {
FOO,
BAR,
BAZ,
},
attributes: {
consts: {
type: 'enum',
valueType: 'number',
values: ['FOO', 'BAR', BAZ, 4],
constant: true,
},
},
};
|
/**
* Install plugin.
*/
import Util from './util';
import Fields, { Mixin } from './fields';
import { Validate } from './validate';
import { Validator, Filter, Directive } from './validator';
function plugin(Vue) {
if (plugin.installed) {
return;
}
Util(Vue);
Vue.field = Fields;
Vue.... |
// QUnit move the fixture out of the viewport area by setting its position: absolute; top: -10000px; left: -10000px;
// This helper make it possible to show the fixture quickly for debugging purposes.
function showFixture() {
$('#qunit-fixture').css({
position: 'static'
});
}
function checkBbox(... |
import cx from 'classnames'
import _ from 'lodash'
import PropTypes from 'prop-types'
import React from 'react'
import {
createShorthandFactory,
customPropTypes,
getElementType,
getUnhandledProps,
META,
} from '../../lib'
/**
* An item can contain a description with a single or multiple paragraphs.
*/
fun... |
const config = require('configModule');
const noJquery = require('withoutJqueryModule');
const content = require('./templates/main.ejs');
const layout = require('layout-without-nav');
const dirsConfig = config.DIRS;
const loginBoxHtml = require('./templates/login-box.ejs')({
constructInsideUrl: noJquery.constructIns... |
/**
* $Id: JSON.js 920 2008-09-09 14:05:33Z spocke $
*
* @author Moxiecode
* @copyright Copyright © 2004-2006, Moxiecode Systems AB, All rights reserved.
*/
tinymce.create('static tinymce.util.JSONP', {
callbacks : {},
count : 0,
send : function(o) {
var t = this, dom = tinymce.DOM, count = o.count !== unde... |
/**
*
* Returns a list of the currently active sessions. Each session will be returned
* as a list of JSON objects with the following keys:
*
* | Key | Type | Description |
* |--------------|--------|----------------|
* | id | string | The session ID |
* | capabilities | object | An obje... |
angular.module('portal')
.factory('tokenCleaner', ['$injector', '$cookies', '$rootScope', '$q', function ($injector, $cookies, $rootScope, $q) {
var interceptor = {
responseError: function(response) {
if (response.status === 401 && response.data) {
if (response.data.detail === 'Invalid token.') {
... |
var common = require("./common")
, odbc = require("../odbc.js")
, db = new odbc.Database();
db.open(common.connectionString, function(err)
{
db.query("drop table test", function (err, data) {
if (err) {
console.error(err);
process.exit(1);
}
console.error(data);
});
});
|
describe('Iuchi Wayfinder', function() {
integration(function() {
describe('Iuchi Wayfinder ability', function() {
beforeEach(function() {
this.setupTest({
phase: 'conflict',
player1: {
hand: ['iuchi-wayfinder']
... |
export default (() => {
let o;
return Jymfony.Component.VarExporter.Internal.Hydrator.hydrate(
o = [
(new ReflectionClass('Jymfony.Component.DateTime.Internal.RuleSet')).newInstanceWithoutConstructor(),
(new ReflectionClass('Jymfony.Component.DateTime.Internal.Rule')).newInstance... |
import {SubsetCollection} from './SubsetCollection';
import {editor} from '../base';
import {orderedCollection} from './mixins/orderedCollection';
export const ChapterPagesCollection = SubsetCollection.extend({
mixins: [orderedCollection],
constructor: function(options) {
var chapter = options.chapter;
S... |
/* global TrelloPowerUp */
var MAPROSOFT_ICON_WITH_TEXT_COLOR = './images/Maprosoft-logo-with-text-color.svg';
var MAPROSOFT_ICON_GRAY = './images/Maprosoft-logo-no-text-gray.svg';
var MAPROSOFT_ICON_COLOR = './images/Maprosoft-logo-no-text-color.svg';
var CACHED_SHARED_MAP_INFO_KEY = 'cached-shared-map-info';
var TE... |
// @flow
import { describe, it } from "flow-typed-test";
import { spawn } from "redux-saga/effects";
describe("spawn effect", () => {
describe("structure", () => {
const c = spawn(() => {});
it('type must be equal "FORK"', () => {
(c.type: "FORK");
});
it("returned object must be read only", ... |
// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it.
import fn from '../../setDay/index.js'
import convertToFP from '../_lib/convertToFP/index.js'
var setDay = convertToFP(fn, 2)
export default setDay
|
import {
moduleForModel,
test
} from 'ember-qunit';
moduleForModel('driver', {
// Specify the other units that are required for this test.
needs: []
});
test('it exists', function(assert) {
var model = this.subject();
// var store = this.store();
assert.ok(!!model);
});
|
module.exports = function(api) {
api.add({
'ul, ol': {
mar: '30px 0 30px 22px',
pad: 0,
list: 'c',
li: {
mar: 0,
pad: 0
}
}
})
} |
$(function(){
var shrinkHeader = 300;
$(window).scroll(function() {
var scroll = getCurrentScroll();
if ( scroll >= shrinkHeader ) {
$('.header').addClass('shrink');
}
else {
$('.header').removeClass('shrink');
}
});
function getCurrentScroll() {
return ... |
/*
* This file is part of Arduino
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, ... |
// ======================
// StereoAudioRecorder.js
// source code from: http://typedarray.org/wp-content/projects/WebAudioRecorder/script.js
function StereoAudioRecorder(mediaStream, root) {
// variables
var leftchannel = [];
var rightchannel = [];
var scriptprocessornode;
var recording = false;
... |
var tistorekit = require('tistorekit')
, loadingView = false
, modal;
var skhelper = {
extend: function (obj) {
for (var i = 1; i < arguments.length; i++) {
for (var prop in arguments[i]) {
if (arguments[i].hasOwnProperty(prop)) {
obj[prop] = arguments[i][prop];
}
}
}
return obj;
... |
import React, { Component } from 'react'
import S3Client from '/lib/s3';
export class S3Upload extends Component {
constructor(props) {
super(props);
this.s3 = new S3Client();
this.setCredentials(props.credentials, props.configuration);
this.inputRef = React.createRef();
}
isReady(creds, config... |
"use strict";
//# sourceMappingURL=product.js.map |
const AbstractHandler = require('./AbstractHandler');
class GuildSyncHandler extends AbstractHandler {
handle(packet) {
const client = this.packetManager.client;
const data = packet.d;
client.actions.GuildSync.handle(data);
}
}
module.exports = GuildSyncHandler;
|
const { describe, it } = global;
import { expect } from 'chai';
import { shallow } from 'enzyme';
import SignIn from '../sign_in';
describe('users.components.sign_in', () => {
it('should do something');
});
|
var Calendar = require('./Calendar');
var CalendarToggleButton = require('./CalendarToggleButton');
var DateInput = require('./DateInput');
var React = require('react/addons');
var {InputWithPopup} = require('react-pick');
var {PureRenderMixin} = React.addons;
var moment = require('moment');
var emptyFunction = requi... |
/*
* jQuery Custom Forms Plugin 1.0
* www.ZURB.com
* Copyright 2010, ZURB
* Free to use under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*/
jQuery.foundation = jQuery.foundation || {};
jQuery.foundation.customForms = jQuery.foundation.customForms || {};
jQuery(document).ready(function ... |
// Copyright 2012 Mark Cavage, Inc. All rights reserved.
var EventEmitter = require('events').EventEmitter;
var http = require('http');
var https = require('https');
var url = require('url');
var util = require('util');
var assert = require('assert-plus');
var clone = require('clone');
var mime = require('mime');
va... |
angular.module('vinibar.gift', [
'ui.router',
'clientFactory',
'vinibar.gift.vinibar',
'ui.bootstrap',
'Resources',
'Mixpanel',
'settings'
])
.config(function config ($stateProvider) {
$stateProvider
.state('gift', {
url: '/cadeau',
abstract: true,
views: {
main: {
... |
import React, { Component } from 'react'
export default class URL extends Component {
constructor(props) {
super(props)
this.state = {
formState: 'default',
value: this.props.url,
}
}
handleChange(evt) {
this.setState({
value: evt.target.value,
formState: ... |
// Meta data used by the AngularJS docs app
angular.module('versionsData', [])
.value('NG_VERSION', {
"raw": "v1.3.20",
"major": 1,
"minor": 3,
"patch": 20,
"prerelease": [],
"build": [],
"version": "1.3.20",
"codeName": "shallow-translucence",
"full": "1.3.20",
"commitSHA": "2a65c3deb76566b881080... |
!function(){function t(t){return function(e,i){e=d3.hsl(e),i=d3.hsl(i);var r=(e.h+120)*a,h=(i.h+120)*a-r,s=e.s,l=i.s-s,o=e.l,u=i.l-o;return isNaN(l)&&(l=0,s=isNaN(s)?i.s:s),isNaN(h)&&(h=0,r=isNaN(r)?i.h:r),function(a){var e=r+h*a,i=Math.pow(o+u*a,t),c=(s+l*a)*i*(1-i);return"#"+n(i+c*(-.14861*Math.cos(e)+1.78277*Math.si... |
const commonConfig = require('./webpack.common.conf');
const webpackMerge = require('webpack-merge'); // used to merge webpack configs
// tools
const ip = require('ip').address();
const os = require('os');
const chalk = require('chalk');
const path = require('path');
const webpack = require('webpack');
const helper = r... |
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e=e||self).ru={})}(this,function(e){"use strict";var n="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},t={weekdays:{shorthand:["Вс","Пн","Вт","С... |
var test = require('tape');
var Random = require('random-js');
var random = new Random(Random.engines.mt19937().seed(0));
var ss = require('../');
function rng() { return random.real(0, 1); }
test('shuffle', function(t) {
var input = [1, 2, 3, 4, 5, 6];
t.deepEqual(ss.shuffle([], rng), []);
t.deepEqual(ss... |
define([], function() {
return {
"PropertyPaneDescription": "Description",
"BasicGroupName": "Group Name",
"DescriptionFieldLabel": "Description Field",
"TargetEmailFieldLabel": "Target Email",
"SubjectFieldLabel": "Subject"
}
});
|
'use strict';
/* jshint -W030 */
/* jshint -W110 */
var chai = require('chai')
, Sequelize = require('../../index')
, expect = chai.expect
, Support = require(__dirname + '/support')
, DataTypes = require(__dirname + '/../../lib/data-types')
, dialect = Support.getTestDialect()
, sinon = require('sinon')
... |
(function($){
// Caption
$('.entry').each(function(i){
$(this).find('img').each(function(){
if (!$(this).parent().is("a")) {
var alt = this.alt, title = this.title;
var caption = title ? title : alt;
if (caption){
$(this).after('<div class="caption"><i class="fa fa-pictu... |
/**
* E2D Engine v1.0.6
* @author Jack Dalton <jack@jackdalton.org>
* Copyright © 2015 Jack Dalton under the MIT license (https://opensource.org/licenses/MIT)
**/
"use strict";
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = pr... |
export default function Home() {
return __jsx("h1", null, "Hello World!");
}
|
const DrawCard = require('../../drawcard.js');
class LittleBird extends DrawCard {
setupCardAbilities(ability) {
this.whileAttached({
effect: ability.effects.addIcon('intrigue')
});
}
}
LittleBird.code = '01034';
module.exports = LittleBird;
|
Template.layout.events({
'click #content, click aside': function(e) {
Aside.hide();
hideBalloons();
}
});
|
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'flash', 'fa', {
access: 'دسترسی به اسکریپت',
accessAlways: 'همیشه',
accessNever: 'هرگز',
accessSameDomain: 'همان دامنه',
alignAbsBottom... |
'use strict';
define('forum/topic', [
'forum/infinitescroll',
'forum/topic/threadTools',
'forum/topic/postTools',
'forum/topic/events',
'forum/topic/posts',
'forum/topic/images',
'forum/topic/replies',
'navigator',
'sort',
'components',
'storage',
], function (infinitescroll, threadTools, postTools, events... |
'use strict';
(function (scope) {
/**
* Dots input component
*
* @class MusicDotsInputComponent
* @extends AbstractMusicInputComponent
* @constructor
*/
function MusicDotsInputComponent(obj) {
scope.AbstractMusicInputComponent.call(this, obj);
this.type = 'dots';
... |
class Animal {
sayHi() {
return 'I am an animal.'
}
sayOther() {
return 'WAT?!';
}
}
class Horse extends Animal {
sayHi() {
return super.sayOther();
}
sayOther() {
return 'I see dead objects.';
}
}
expect(new Horse().sayHi()).toBe('WAT?!');
|
import {
OFFLINE_STATUS_CHANGED,
OFFLINE_SCHEDULE_RETRY,
OFFLINE_COMPLETE_RETRY,
OFFLINE_BUSY
} from './constants';
export const networkStatusChanged = online => ({
type: OFFLINE_STATUS_CHANGED,
payload: {
online
}
});
export const scheduleRetry = (delay = 0) => ({
type: OFFLINE_SCHEDULE_RETRY,
... |
/**
* @fileoverview Rule to flag when using constructor for wrapper objects
* @author Ilya Volodin
*/
"use strict";
//------------------------------------------------------------------------------
// Rule Definition
//------------------------------------------------------------------------------
module.exports = ... |
/**
* 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.
*
*/
import {hydrateRoot} from 'react-dom';
import App from './App';
hydrateRoot(document, <App assets={window.assetManifest} />);
|
import { RECEIVE_USER_PROFILE_STATS } from '../constants';
const initialState = {
stats: {},
isLoading: true
};
export default function userProfile(state = initialState, action) {
switch (action.type) {
case RECEIVE_USER_PROFILE_STATS:
return {
stats: action.data,
isLoading: false
... |
var cadpat;
(function (cadpat) {
'use strict';
angular.module('cadpat')
.config(config);
config.$inject = ['$routeProvider', '$locationProvider'];
function config($routeProvider, $locationProvider) {
$locationProvider.html5Mode(true);
$routeProvider
.when('/bens', {
... |
/**
* Created by Peter on 2017. 10. 15..
*/
"use strict";
var async = require('async');
var modelKmaTownMidForecast = require('../../models/kma/kma.town.mid.forecast.model.js');
var modelKmaTownMidLand = require('../../models/kma/kma.town.mid.land.model.js');
var modelKmaTownMidSea = require('../../models/kma/kma.t... |
// Opinion: I think it's gross to start written English sentences with "there (is|are)"
// (most of the time)
// this implementation is really naive
var re = new RegExp('([^\n\\.;!?]+)([\\.;!?]+)', 'gi');
var startsWithThereIs = new RegExp('^(\\s)*there\\b\\s(is|are)\\b', 'i');
module.exports = function (tex... |
version https://git-lfs.github.com/spec/v1
oid sha256:3860434f80db971d49c66c99011afb45ad197162f47626659d2fbbbfae289f55
size 1425
|
/**
* List for data storage
* @module echarts/data/List
*/
import {__DEV__} from '../config';
import * as zrUtil from 'zrender/src/core/util';
import Model from '../model/Model';
import DataDiffer from './DataDiffer';
import * as modelUtil from '../util/model';
var isObject = zrUtil.isObject;
var UNDEFINED = 'und... |
/**
* Environment for Jasmine
*
* @constructor
*/
jasmine.Env = function() {
this.currentSpec = null;
this.currentSuite = null;
this.currentRunner_ = new jasmine.Runner(this);
this.reporter = new jasmine.MultiReporter();
this.updateInterval = jasmine.DEFAULT_UPDATE_INTERVAL;
this.defaultTimeoutInterva... |
/**
* $Id: del.js 6572 2009-02-25 02:46:35Z Garbin $
*
* @author Moxiecode - based on work by Andrew Tetlaw
* @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
*/
function init() {
SXE.initElementDialog('del');
if (SXE.currentAction == "update") {
setFormValue... |
'use strict';
exports.init = function(grunt, phantomjs) {
// node api
var fs = require('fs'),
path = require('path');
// npm
var rimraf = require('rimraf'),
_ = require('lodash');
var baseDir = '.',
tempDir = '.grunt/grunt-contrib-jasmine';
var exports = {};
exports.writeTempFile =... |
YUI.add('gallery-itsacalendarmodellist', function (Y, NAME) {
'use strict';
/**
* @module gallery-itsacalendarmarkeddates
* @class ITSACalendarModelList
* @since 0.3
*
* <i>Copyright (c) 2013 Its Asbreuk - http://itsasbreuk.nl</i>
* YUI BSD License - http://developer.yahoo.com/yui/license.html
**/
var Lang ... |
define("clipart/Refresh", [
"dojo/_base/declare",
"clipart/_clipart"
], function(declare, _clipart){
return declare("clipart.Refresh", [_clipart], {
});
});
|
/*
Language: SubUnit
Author: Sergey Bronnikov <sergeyb@bronevichok.ru>
Website: https://pypi.org/project/python-subunit/
*/
function subunit(hljs) {
var DETAILS = {
className: 'string',
begin: '\\[\n(multipart)?', end: '\\]\n'
};
var TIME = {
className: 'string',
begin: '\\d{4}-\\d{2}-\\d{2}(\\s+... |
var should = require('should');
var serverController = require("../controllers/server");
describe("Server", function(){
it('start one server', function(done) {
serverController.startup(8000, 1, done);
});
it('start two server', function(done) {
serverController.startup(8000, 2, done);
});
it("list", functi... |
var searchData=
[
['bool1',['bool1',['../a00732.html#gaddcd7aa2e30e61af5b38660613d3979e',1,'glm']]],
['bool1x1',['bool1x1',['../a00732.html#ga7f895c936f0c29c8729afbbf22806090',1,'glm']]],
['bool2',['bool2',['../a00732.html#gaa09ab65ec9c3c54305ff502e2b1fe6d9',1,'glm']]],
['bool2x2',['bool2x2',['../a00732.html#ga... |
const init = ({ next_disabled, dev }) => new Promise(resolve => {
// Disabled?
if (next_disabled) return resolve(null)
// Create NextJS
const nextjs = require('next')({ dev })
// Preparing...
nextjs.prepare().then(() => resolve(nextjs))
})
module.exports = init
|
import T from './Translated';
import Modal from './Modal';
import {has} from '../Helpers';
export default class ConfirmDeleteModal extends React.Component {
constructor(props) {
has(props, 'modalId');
has(props, 'modalBody');
has(props, 'onDelete');
super(props);
}
render(... |
import Ember from 'ember';
export default Ember.Route.extend({
model() {
return this.get('store').findAll('todo');
}
});
|
console.log('test');
console.log('foo');
console.log('bar');
console.log('baz');
|
function isAutoComplete(keyboardProxy) {
var typeahead = keyboardProxy.data("typeahead");
if (typeahead && typeahead.$menu.is(":visible")) {
return typeahead;
}
else {
return false;
}
}
/**
* Autocomplete editor
* @param {Object} instance Handsontable instance
* @param {Element} td Table cell wher... |
'use strict';
const DataTypes = require('./data-types');
const SqlString = require('./sql-string');
const _ = require('lodash');
const parameterValidator = require('./utils/parameter-validator');
const Logger = require('./utils/logger');
const uuid = require('uuid');
const Promise = require('./promise');
const operato... |
define(["npm:aurelia-history-browser@1.0.0-beta.1/aurelia-history-browser"], function(main) {
return main;
}); |
/**
* @class AjaxBootstrapSelect
*
* @param {jQuery|HTMLElement} element
* The select element this plugin is to affect.
* @param {Object} [options={}]
* The options used to affect the desired functionality of this plugin.
*
* @return {AjaxBootstrapSelect|null}
* A new instance of this class or null if un... |
/**
* bardjs - Mocha/chai spec helpers for testing angular apps
* @authors John Papa,Ward Bell
* @version v0.0.9
* @link https://github.com/wardbell/bardjs
* @license MIT
*/
/* jshint -W117, -W030 */
(function() {
window.bard = window.bard || {};
/**
* Creates the global ngRouteTester function
*... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.