code stringlengths 2 1.05M |
|---|
'use strict';
var app = angular.module('myApp.bonus_splash_views.services', ['ngResource',]);
app.factory('BonusSplashViews', ['$resource', '$localStorage', 'API_END_POINT',
function($resource, $localStorage, API_END_POINT){
return $resource(API_END_POINT + '/bonus_splash_views',
{
},
{
... |
import animations from '../../shared/animations';
import Animation from './animate/Animation';
import { isEqual } from '../../utils/is';
import { normalise } from '../../shared/keypaths';
import Promise from '../../utils/Promise';
import noop from '../../utils/noop';
var noAnimation = { stop: noop };
export default f... |
var number = 10;
var a = 6;
var b = 7;
// 関数addを定義してください
function add(num1,num2){
var number=num1+num2;
return number;
}
// 関数add()の引数に変数a, bを渡し、コンソールに表示してください
console.log(add(a,b));
// 変数numberをコンソールに表示してください
console.log(number);
|
/* eslint-disable no-useless-escape */
import utilities from "utils";
import * as dayjs from "dayjs";
export function formatDate(dateValue, longformat) {
if (!dateValue) {
return "";
}
let date = new Date(dateValue);
let yearValue = date.getFullYear();
if (yearValue < 1900) {
return... |
exports.module = function(pagination, util) {
"use strict";
var SearchPaginator = function(options) {
pagination.Paginator.call(this, options);
};
pagination.SearchPaginator = SearchPaginator;
util.inherits(SearchPaginator, pagination.Paginator);
SearchPaginator.prototype.render = function() {
var i, len, ... |
version https://git-lfs.github.com/spec/v1
oid sha256:307b531eeb7e1d8a18be31b64b983c8a96cd05784e93c92a47e081554c65b96d
size 3697
|
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: "RegularExpressionChar :: LineTerminator is incorrect"
es5id: 7.8.5_A2.3_T3
description: Carriage Return, without eval
negative: SyntaxError
---*/
//CHECK#1
/a
/
|
'use strict';
//Setting up route
angular.module('adverts').config(['$stateProvider',
function($stateProvider) {
// Adverts state routing
$stateProvider.
state('listAdverts', {
url: '/adverts',
templateUrl: 'modules/adverts/views/list-adverts.client.view.html'
}).
state('createAdvert', {
url: '/adve... |
/**
* @fileoverview Tests for options.
* @author Sindre Sorhus
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
const assert = require("chai").assert,
chalk = requi... |
// User scripts
|
/**
* package.json
*/
// Node.js
var path = require('path');
// node_modules
var grunt = require('grunt');
var _ = require('lodash');
// Config
var cwd = path.join.bind(null, __dirname, '../');
var githubApi = require('github');
var github = new githubApi({
version: '3.0.0',
timeout: 5000
});
var getPackageF... |
/*
* Copyright (c) 2013-2015 node-coap contributors.
*
* node-coap is licensed under an MIT +no-false-attribs license.
* All rights not explicitly granted in the MIT license are reserved.
* See the included LICENSE file for more details.
*/
require('./polyfill')
var dgram = require('dgram')
, net ... |
$(function(){$.widget("primeui.puiinputtextarea",{options:{autoResize:false,autoComplete:false,maxlength:null,counter:null,counterTemplate:"{0}",minQueryLength:3,queryDelay:700},_create:function(){var a=this;
this.element.puiinputtext();
if(this.options.autoResize){this.options.rowsDefault=this.element.attr("rows");
th... |
if(!window.calendar_languages) {
window.calendar_languages = {};
}
window.calendar_languages['nl-NL'] = {
error_noview: 'Kalender: View {0} niet gevonden',
error_dateformat: 'Kalender: Verkeerde datum formaat {0}. Dit formaat moet "now" zijn of "yyyy-mm-dd"',
error_loadurl: 'Kalender: Agenda laad URL is niet... |
/*
* Copyright 2016 Hewlett-Packard Development Company, L.P.
* Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
*/
define([
'js-whatever/js/substitution'
], function(substitution) {
return substitution({});
});
|
const { CompositeDisposable } = require('event-kit');
const path = require('path');
module.exports = class ReopenProjectMenuManager {
constructor({ menu, commands, history, config, open }) {
this.menuManager = menu;
this.historyManager = history;
this.config = config;
this.open = open;
this.proje... |
/**********************************************
* Author : @Author
* Timestamp : @Timestamp
**********************************************/
var d1 = require("deviceone");
var app = d1.sm("do_App");
app.on("loaded", function () {
this.openPage("source://view/index.ui");
}); |
export default {
props: {
value: [String, Number],
disabled: Boolean,
required: Boolean,
maxlength: [Number, String],
placeholder: String
},
watch: {
value(value) {
this.setParentValue(value);
this.updateValues(value);
},
disabled() {
this.setParentDisabled();
... |
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
This software is covered by CKEditor Commercial License. Usage without proper license is prohibited.
*/
CKEDITOR.plugins.setLang("uploadwidget","nl",{abort:"Upload gestopt door de gebruiker.",doneOne:"Bestand succesvol geüpload.",doneMany... |
/**
* Copyright (c) 2013 Petka Antonov
*
* 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, merg... |
describe('pause', () => {
before(global.setupInstance)
it('should pause command queue', async function () {
var time = new Date().getTime()
await this.client.pause(1000)
var newTime = new Date().getTime();
(newTime - time).should.be.greaterThan(999);
(newTime - time).sho... |
'use strict';
/**
* A TCP socket based live debugging/inspection interface
* (essentially a glorified wrapper around node's built-in
* repl module).
* Gives access to a couple of core GS modules/APIs at
* runtime; that well-known Spiderman quote applies.
*
* See `/tools/repl-client.js` for the client counterpar... |
/**
* Handle directional light
*
* @class include THREE.HemisphereLight. It inherit from {@link tQuery.Light}
*
* @borrows tQuery.Node#get as this.get
* @borrows tQuery.Node#each as this.each
* @borrows tQuery.Node#back as this.back
*
* @param {THREE.HemisphereLight} element an instance or array of instance
*... |
/*
Highcharts JS v7.0.0 (2018-12-11)
Indicator series type for Highstock
(c) 2010-2018 Rafal Sebestjanski
License: www.highcharts.com/license
*/
(function(a){"object"===typeof module&&module.exports?module.exports=a:"function"===typeof define&&define.amd?define(function(){return a}):a("undefined"!==typeof Highc... |
"function"!==typeof Object.create&&(Object.create=function(f){function g(){}g.prototype=f;return new g});
(function(f,g,k){var l={init:function(a,b){this.$elem=f(b);this.options=f.extend({},f.fn.owlCarousel.options,this.$elem.data(),a);this.userOptions=a;this.loadContent()},loadContent:function(){function a(a){var d,e=... |
/**
* @license Highcharts Gantt JS v7.1.3 (2019-08-14)
*
* CurrentDateIndicator
*
* (c) 2010-2019 Lars A. V. Cabrera
*
* License: www.highcharts.com/license
*/
'use strict';
(function (factory) {
if (typeof module === 'object' && module.exports) {
factory['default'] = factory;
module.exports... |
import React from 'react'
import Document, {Head, Main, NextScript} from 'next/document'
export default class MyDocument extends Document {
render () {
return (
<html>
<Head>
<title>With babel-macros</title>
<style dangerouslySetInnerHTML={{__html: this.props.css}} />
</... |
/** @license React v16.8.0
* react-dom-test-utils.production.min.js
*
* 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.
*/
'use strict';var g=require("object-assign"),l=require("react")... |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'div', 'nl', {
IdInputLabel: 'Id',
advisoryTitleInputLabel: 'Adviserende titel',
cssClassInputLabel: 'Stylesheet klassen',
edit: 'Div wijz... |
requirejs.config({
map : {
"*" : {
'tquery.minecraft' : 'plugins/requirejs/confrequire/minecraft.initrequire',
}
},
shim : {
'plugins/requirejs/confrequire/minecraft.initrequire' : [
// 'plugins/minecraft/obsolete/tquery.midikeytween',
// 'plugins/minecraft/obsolete/tquery.camerafpscontrols',
... |
import { get } from "ember-metal/property_get";
import run from "ember-metal/run_loop";
import jQuery from "ember-views/system/jquery";
import EmberView from "ember-views/views/view";
var rootView, childView;
QUnit.module("virtual views", {
teardown: function() {
run(function() {
rootView.destroy();
... |
/* global window */
window.es6Example = window.es6Example || {};
window.es6Example.blockScope = {};
window.es6Example.blockScope.code =
`var x = 0;
for (let i = 0; i < 10; i++) {
x += 10;
}
try {
console.log(i);
} catch(e) {
console.log(
'i does not exist here!'
);
}
`;
window.es6Example.blockScope.di... |
goog.require('ol.Map');
goog.require('ol.View');
goog.require('ol.control');
goog.require('ol.format.GeoJSON');
goog.require('ol.layer.Tile');
goog.require('ol.layer.Vector');
goog.require('ol.source.OSM');
goog.require('ol.source.Vector');
goog.require('ol.style.Circle');
goog.require('ol.style.Fill');
goog.require('o... |
angular.module('textAngular.factories', [])
.factory('taBrowserTag', [function(){
return function(tag){
/* istanbul ignore next: ie specific test */
if(!tag) return (_browserDetect.ie <= 8)? 'P' : 'p';
else if(tag === '') return (_browserDetect.ie === undefined)? 'div' : (_browserDetect.ie <= 8)? 'P' : 'p';
el... |
(function () {
var a = tinymce.each;
tinymce.create("tinymce.plugins.AdvListPlugin", {init: function (b, c) {
var d = this;
d.editor = b;
function e(g) {
var f = [];
a(g.split(/,/), function (h) {
f.push({title: "advlist." + (h == "default" ? "def"... |
require('ember-routing/helpers/shared');
require('ember-routing/helpers/link_to');
require('ember-routing/helpers/outlet');
require('ember-routing/helpers/render');
require('ember-routing/helpers/action');
|
var Vue = require('../../../../src/vue')
describe('Child API', function () {
var vm
beforeEach(function () {
vm = new Vue({
data: {
a: 1,
b: 1
},
directives: {
test: function () {}
}
})
})
it('default', function () {
var child = vm.$addChild()
e... |
$(window).resize(function() {
// chosen resize bug
"use strict";
$('.chzn-container').each(function() {
$(this).css('width', $('.chzn-container').parent().width()+'px');
$(".chzn-drop").css('width', ($('.chzn-container').parent().width()-2)+'px');
$(".chzn-search input").css('width', ($('.chzn-container').pare... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _pure = require('recompose/pure');
var _pure2 = _interopRequireDefault(_pure);
var _SvgIcon = require('../../SvgIcon');
var _SvgIcon2 = _interopRequireDe... |
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = exports.styles = void 0;
var _extends2 = _int... |
exports.removeFromPost = function(data, next){
var model = hexo.model,
Post = model('Post');
data.posts.forEach(function(post){
Post.updateById(post, {tags: {$pull: data._id}});
});
}; |
import API from 'sse-api-client';
export default new API(process.env.API_ROOT);
|
'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
function getDecimals(n) {
n = n + '';
var i = n.indexOf('.');
return (i == -1) ? 0 : n.length - i - 1;
}
function getVF(n, opt_pre... |
(function (root) {
// Store setTimeout reference so promise-polyfill will be unaffected by
// other code modifying setTimeout (like sinon.useFakeTimers())
var setTimeoutFunc = setTimeout;
function noop() {}
// Polyfill for Function.prototype.bind
function bind(fn, thisArg) {
return functi... |
version https://git-lfs.github.com/spec/v1
oid sha256:ae05808639c11473fc8ab0bd137e0a42d58142ee63a83dbbb63ae0c754e32e40
size 17877
|
'use strict';
function noop() {}
// States:
//
// 0 - pending
// 1 - fulfilled with _value
// 2 - rejected with _value
// 3 - adopted the state of another promise, _value
//
// once the state is no longer pending (0) it is immutable
// All `_` prefixed properties will be reduced to `_{random number}`
// at build t... |
// Parse link destination
//
'use strict';
var unescapeAll = require('../common/utils').unescapeAll;
module.exports = function parseLinkDestination(str, pos, max) {
var code, level,
lines = 0,
start = pos,
result = {
ok: false,
pos: 0,
lines: 0,
str: ''
};
... |
'use strict';
var validator = require('validator');
var React = require('react');
var ReactBootstrap = require('react-bootstrap');
var Modal = ReactBootstrap.Modal;
var Button = ReactBootstrap.Button;
var Panel = ReactBootstrap.Panel;
var Input = ReactBootstrap.Input;
var ListGroup = ReactBootstrap.ListGroup;
var List... |
if (!Object.assign) {
Object.defineProperty(Object, 'assign', {
enumerable: false,
configurable: true,
writable: true,
value: function(target, firstSource) {
'use strict';
if (target === undefined || target === null) {
throw new TypeError('Cannot convert first argument to object');... |
var fs = require('fs');
var util = require('util');
var _ = require('underscore');
var _s = require('underscore.string');
var htmlparser = require('htmlparser');
var helper = require('./helper');
var format = require('./formatter');
// Which type of tags should not be parsed
var SKIP_TYPES = [
'style',
'script'
];... |
/* *
*
* License: www.highcharts.com/license
*
* */
'use strict';
import H from '../parts/Globals.js';
import '../parts/Utilities.js';
var UNDEFINED,
seriesType = H.seriesType,
merge = H.merge,
color = H.color,
isArray = H.isArray,
defined = H.defined,
SMA = H.seriesTypes.sma;
// Utils:... |
/*
This file is part of Ext JS 4.2
Copyright (c) 2011-2013 Sencha Inc
Contact: http://www.sencha.com/contact
Commercial Usage
Licensees holding valid commercial licenses may use this file in accordance with the Commercial
Software License Agreement provided with the Software or, alternatively, in accordance with th... |
module.exports={A:{A:{"1":"A B","2":"K C G E YB"},B:{"1":"D w Z I M H"},C:{"1":"0 1 3 5 6 7 8 AB F J K C G E A B D w Z I M H N O P Q R S T U V W X Y y a b c d e f L h i j k l m n o p q r s t u v z x UB OB","2":"WB"},D:{"1":"0 1 3 5 6 7 8 G E A B D w Z I M H N O P Q R S T U V W X Y y a b c d e f L h i j k l m n o p q r ... |
var monthlySalesModule = angular.module('monthlySales', ['angularGrid']);
monthlySalesModule.controller('monthlySalesController', function($scope, $http) {
var monthValueGetter = '(ctx.month < colDef.month) ? data[colDef.field + "_bud"] : data[colDef.field + "_act"]';
var monthCellClassRules = {
'cell... |
'use strict';
var db = require('../../database');
var async = require('async');
var winston = require('winston');
module.exports = {
name: 'Granting edit/delete/delete topic on existing categories',
timestamp: Date.UTC(2016, 7, 7),
method: function (callback) {
var groupsAPI = require('../../groups');
var pri... |
import Ember from "ember";
const { Component } = Ember;
export default Component.extend({
attributeBindings: ['dataLabel:data-label', 'title'],
tagName: 'button',
title: null,
click() {
this.sendAction();
}
});
|
/*!
* ui-grid - v4.4.4 - 2018-03-23
* Copyright (c) 2018 ; License: MIT
*/
(function () {
'use strict';
/**
* @ngdoc overview
* @name ui.grid.validate
* @description
*
* # ui.grid.validate
*
* <div class="alert alert-warning" role="alert"><strong>Alpha</strong> This feature is in develo... |
/*jslint newcap: true */
/*global XMLHttpRequest: false, FormData: false */
/*
* Inline Text Attachment
*
* Author: Roy van Kaathoven
* Contact: ik@royvankaathoven.nl
*/
(function(document, window) {
'use strict';
var inlineAttachment = function(options, instance) {
this.settings = inlineAttachment.util.m... |
'use strict';
const fs = require('fs');
const request = require('request');
const path = require('path');
console.log('Uploading ZIP artifact'); // eslint-disable-line
const req = request.post(`http://mac.googleplaymusicdesktopplayer.com/upload/${process.env.TRAVIS_COMMIT}/${process.env.TRAVIS_BUILD_NUMBER}`, (err, ... |
/**
* ECharts option manager
*
* @module {echarts/model/OptionManager}
*/
define(function (require) {
var zrUtil = require('zrender/core/util');
var modelUtil = require('../util/model');
var ComponentModel = require('./Component');
var each = zrUtil.each;
var clone = zrUtil.clone;
var map ... |
import shallowProperty from './_shallowProperty.js';
// Internal helper to obtain the `byteLength` property of an object.
export default shallowProperty('byteLength');
|
import React from 'react';
import createSvgIcon from './createSvgIcon';
/**
* @ignore - internal component.
*/
export default createSvgIcon(React.createElement("path", {
d: "M7 10l5 5 5-5z"
}), 'ArrowDropDown'); |
module.exports = function () {
"use strict";
return {
options: {
// TODO: disable `zeroUnits` optimization once clean-css 3.2 is released
// and then simplify the fix for https://github.com/twbs/bootstrap/issues/14837 accordingly
compatibility: 'ie8',
keepSpecialComments: '*',
... |
"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)... |
/*
* Poll chat plugin
* By bumbadadabum and Zarel.
*/
'use strict';
class Poll {
constructor(room, questionData, options) {
if (room.pollNumber) {
room.pollNumber++;
} else {
room.pollNumber = 1;
}
this.room = room;
this.question = questionData.source;
this.supportHTML = questionData.supportHTML;
... |
/**
* Taken from jQuery 1
*
* @param obj
* @returns {*}
*/
var $isplainobject = function( obj ) {
var key;
// Must be an Object.
// Because of IE, we also have to check the presence of the constructor property.
// Make sure that DOM nodes and window objects don't pass through, as well
if ( !obj || typeo... |
var FluxConstant = require('flux-constant');
var PayloadSources = require('../../constants/PayloadSources');
module.exports = {
PayloadSources: PayloadSources,
ActionTypes: FluxConstant.set([
'GET_ACCOUNT_SETTINGS',
'GET_ACCOUNT_SETTINGS_RESPONSE',
'SAVE_ACCOUNT_SETTINGS',
'SAV... |
var util = require('util'),
async = require('async'),
path = require('path'),
buffer = require('buffer'),
fs = require('fs'),
jszip = require('./jszip');
function EasyZip(){
jszip.JSZip.apply(this,arguments);
}
util.inherits(EasyZip, jszip.JSZip);
function toArrayBuffer(buffer) {
var ab = new ArrayBuffer(b... |
'use strict';
angular.module('mean.__pkgName__').factory('__class__', [
function() {
return {
name: '__pkgName__'
};
}
]);
|
'use strict';
var Promise = require('../../lib/ext/promise');
var conf = require('ember-cli-internal-test-helpers/lib/helpers/conf');
var ember = require('../helpers/ember');
var fs = require('fs-extra');
var path = require('path');
var remo... |
"use strict";
arr.map(function (x) {
return x * MULTIPLIER;
});
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNjcmlwdC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLElBQUksR0FBSixDQUFRO0FBQUEsU0FBSyxJQUFJLFVBQVQ7QUFBQSxDQUFSIiwiZmlsZSI6InNjcmlwdDIuanMiLCJzb3VyY2Vz... |
'use strict';
const utils = require('./utils');
/**
* Render a placeholder value with cursor and styling based on the
* position of the cursor.
*
* @param {Object} `prompt` Prompt instance.
* @param {String} `input` Input string.
* @param {String} `initial` The initial user-provided value.
* @param {Number} `p... |
/**
@name: aping-plugin-dailymotion
@version: 0.7.8 (26-01-2016)
@author: Jonathan Hornung <jonathan.hornung@gmail.com>
@url: https://github.com/JohnnyTheTank/apiNG-plugin-dailymotion#readme
@license: MIT
*/
"use strict";
angular.module("jtt_aping_dailymotion", ['jtt_dailymotion'])
.directi... |
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'filetools', 'ja', {
loadError: 'ファイルの読み込み中にエラーが発生しました。',
networkError: 'ファイルのアップロード中にネットワークエラーが発生しました。',
httpError404: 'ファイルのアップロー... |
var shared1 = require('./cjs-in-12.js');
module.exports = { name: 'cjs2' };
|
'use strict';
var pathFn = require('path');
var fs = require('hexo-fs');
module.exports = function(cwd, args){
if (args.cwd){
var path = pathFn.resolve(cwd, args.cwd);
var pkgPath = pathFn.join(path, 'package.json');
return fs.exists(pkgPath).then(function(exist){
if (!exist) return;
retur... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = rtl;
var reTranslate = /((^|\s)translate(3d|X)?\()(\-?[\d]+)/;
var reSkew = /((^|\s)skew(x|y)?\()\s*(\-?[\d]+)(deg|rad|grad)(,\s*(\-?[\d]+)(deg|rad|grad))?/;
/**
* This function ensures that `style` supports both ltr and... |
function solve() {
$.fn.datepicker = function () {
var MONTH_NAMES = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
var WEEK_DAY_NAMES = ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'];
Date.prototype.getMonthName = fu... |
/**
* Utility functions to work with <code>AbbreviationNode</code> as HTML element
* @param {Function} require
* @param {Underscore} _
*/
if (typeof module === 'object' && typeof define !== 'function') {
var define = function (factory) {
module.exports = factory(require, exports, module);
};
}
define(function(... |
'use strict';
var dotProp = require('dot-prop');
var arrify = require('arrify');
var dotPropGet = dotProp.get;
module.exports = function (arr, prop) {
if (!Array.isArray(arr)) {
throw new TypeError('Expected an array');
}
return arr.slice().sort(function (a, b) {
var ret = 0;
arrify(prop).some(function (el)... |
define(["Tone/core/Tone", "Tone/source/Oscillator", "Tone/instrument/Instrument",
"Tone/component/AmplitudeEnvelope"],
function(Tone){
"use strict";
/**
* @class Tone.DrumSynth makes kick and tom sounds using a single oscillator
* with an amplitude envelope and frequency ramp. A Tone.Oscillator
*... |
/// Copyright (c) 2009 Microsoft Corporation
///
/// 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 conditions and
/// ... |
// Local configuration
//
// Included in the .gitignore by default,
// this is where you include configuration overrides for your local system
// or for a production deployment.
// For example, to use port 80 on the local machine, override the `port` config
// module.exports.port = 80;
// or to keep your db credent... |
/* flatpickr v4.0.5, @license MIT */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(factory((global.sk = {})));
}(this, (function (exports) { 'use strict';
var fp = typeof wi... |
var httpProxy = require('../lib/http-proxy'),
expect = require('expect.js'),
http = require('http'),
ws = require('ws')
io = require('socket.io'),
ioClient = require('socket.io-client');
//
// Expose a port number generator.
// thanks to @3rd-Eden
//
var initialPort = 1024, g... |
var I18n = I18n || {};
I18n.translations = {}; |
class C {
constructor(x, y = 0, z = 0) {
this.x = x;
this.y = y;
this.z = z;
}
}
|
KB.component('chart-project-task-distribution', function (containerElement, options) {
this.render = function () {
var columns = [];
for (var i = 0; i < options.metrics.length; i++) {
columns.push([options.metrics[i].column_title, options.metrics[i].nb_tasks]);
}
KB.do... |
/*
This file is part of Ext JS 3.4
Copyright (c) 2011-2013 Sencha Inc
Contact: http://www.sencha.com/contact
GNU General Public License Usage
This file may be used under the terms of the GNU General Public License version 3.0 as
published by the Free Software Foundation and appearing in the file LICENSE included in... |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(global = global || self, factory(global.hr = {}));
}(this, function (exports) { 'use strict';
var fp = typeof window !== "... |
/**
* videojs-chromecast
* @version 2.0.8
* @copyright 2016 Benjipott, Inc.
* @license Apache-2.0
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(ty... |
/**
* @author mrdoob / http://mrdoob.com/
*/
THREE.WebGLLights = function () {
var lights = {};
this.get = function ( light ) {
if ( lights[ light.id ] !== undefined ) {
return lights[ light.id ];
}
var uniforms;
switch ( light.type ) {
case 'DirectionalLight':
uniforms... |
describe("Timer", function() {
it("reports the time elapsed", function() {
var fakeNow = jasmine.createSpy('fake Date.now'),
timer = new j$.Timer({now: fakeNow});
fakeNow.and.returnValue(100);
timer.start();
fakeNow.and.returnValue(200);
expect(timer.elapsed()).toEqual(100);
});
});
|
import fooBar from 'dummy/utils/foo-bar';
import { module, test } from 'qunit';
module('Unit | Utility | foo-bar');
// TODO: Replace this with your real tests.
test('it works', function(assert) {
let result = fooBar();
assert.ok(result);
});
|
(function(){var f,aa="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(c.get||c.set)throw new TypeError("ES3 does not support getters and setters.");a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},k="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&nul... |
declare module 'escape-string-regexp' {
declare module.exports: (input: string) => string;
}
|
import Ember from 'ember';
const {Mixin, run} = Ember;
export default Mixin.create({
/**
* Determine if the cursor is at the end of the textarea
*/
isCursorAtEnd() {
let selection = this.$().getSelection();
let value = this.getValue();
let linesAtEnd = 3;
let match,
... |
define(["../_base/declare", "./util/QueryResults", "./util/SimpleQueryEngine" /*=====, "./api/Store" =====*/],
function(declare, QueryResults, SimpleQueryEngine /*=====, Store =====*/){
// module:
// dojo/store/Memory
// No base class, but for purposes of documentation, the base class is dojo/store/api/Store
... |
Router.map(function() {
// This defines a modal in the 'application' scope. It will observe
// the property 'foo' on the application controller. Whenever foo
// has a non-default value, the component 'first-modal' will render
// in a popup.
this.modal('first-modal', { withParams: 'foo' });
this.resource('p... |
import * as jqxcore from '../../jqwidgets/jqxcore';
import * as jqxdata from '../../jqwidgets/jqxdata';
import * as jqxbuttons from '../../jqwidgets/jqxbuttons';
import * as jqxscrollbar from '../../jqwidgets/jqxscrollbar';
import * as jqxlistmenu from '../../jqwidgets/jqxlistmenu';
import { createElement, PureComponen... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.