code stringlengths 2 1.05M |
|---|
/*jshint white: false, node: true, vars: true, indent: 4 */
(function (module, __dirname) {
"use strict";
var HTTP_SUCCESS = 200,
uglifyjs = require("uglify-js"),
util = require("./util"),
Batch = require("batch"),
url = require("url"),
fs = require("fs"),
jsp = ... |
version https://git-lfs.github.com/spec/v1
oid sha256:c9c61ebaf3ce296b169b87bafc8c417016293f57be2924476ee945c3411754a0
size 6301
|
var _curry3 = require('./internal/_curry3');
/**
* The mapAccum function behaves like a combination of map and reduce; it applies a
* function to each element of a list, passing an accumulating parameter from left to
* right, and returning a final value of this accumulator together with the new list.
*
* The ite... |
'use strict';
const chai = require('chai'),
expect = chai.expect,
Utils = require('../../lib/utils'),
Support = require('./support'),
DataTypes = require('../../lib/data-types'),
Sequelize = require('../../index'),
Op = Sequelize.Op;
describe(Support.getTestDialectTeaser('Utils'), () => {
describe('unde... |
opera.isReady(function() {
var currentWindow = windows.getLastFocused();
var win = null;
var tests = {}, // Asynchronous tests
eventsReceived = [], // List of events received
eventsExpected = [ "create", "blur", "focus" ]; // List of expected events
tests["create"] = async_test("Window create event");
... |
define({
"page1": {
"selectToolHeader": "Odaberite metod za izbor zapisa za grupno ažuriranje.",
"selectToolDesc": "Vidžet podržava 3 metode za generisanje izabranog seta podataka za ažuriranje. Možete da odaberete samo jednu od metoda. Ako zahtevate više od jedne, kreirajte novu instancu vidžeta.",
"sele... |
{
"name": "birdie.js",
"url": "https://github.com/bcorreia/birdie.js.git"
}
|
var temporal;
$(document).on('ready', function(){
$('#editmoto').modal();
$('.edit_modal_moto').on('click',function(event){
return false;
});
$('.edit_modal_moto').on('click',function(event){
var options = {
//target: '#output2', // target element(s) to be updated with server re... |
(function($) {
var cultures = $.cultures,
en = cultures.en,
standard = en.calendars.standard,
culture = cultures["sv-FI"] = $.extend(true, {}, en, {
name: "sv-FI",
englishName: "Swedish (Finland)",
nativeName: "svenska (Finland)",
language: "sv",
numbe... |
var EXIF = (function () {
var debug = false;
var ExifTags = {
// version tags
0x9000 : "ExifVersion", // EXIF version
0xA000 : "FlashpixVersion", // Flashpix format version
// colorspace tags
0xA001 : "ColorSpace", // Color space information tag
// imag... |
const os = require('os'),
uuid = require('uuid'),
path = require('path'),
fsUtil = require('./fs-util');
module.exports = function tmppath(ext, generator) {
'use strict';
let result;
generator = generator || uuid.v4;
ext = ext || '';
while (!result || fsUtil.fileExists(result)) {
result = path.join(os.tmpdi... |
// @flow
export default class Util {
static isUndefined(obj) {
return obj === undefined;
}
static isNull(obs) {
return obj === null;
}
static isString(obj) {
return typeof obj === 'string';
}
static isFunction(obj) {
return obj && {}.toString.call(obj) === ... |
(function (window, $, undefined) {
'use strict';
var Battery;
Battery = function Battery(cockpit) {
console.log("Loading Battery indicator plugin.");
// Instance variables
this.cockpit = cockpit;
this.level = 100;
// Add required UI elements
$... |
import staticConfig from 'configs.json';
let config;
export default function(moduleId) {
if (!config) {
config = combineConfig();
}
if (!config[moduleId] && console && console.warn) {
console.warn('Missing config for module "' + moduleId + '"');
}
return config[moduleId] || {};
};
... |
/**
* Lolcat CSS Values
*/
module.exports = {
'fixed': 'fixd',
'relative': 'relativ',
'right': 'rite',
// Colors
'antiquewhite': 'antiquewite',
'chocolate': 'chawklit',
'floralwhite': 'floralwite',
'ghostwhite': 'ghostwite',
'navajowhite': 'navajowite',
'paleturquoise': 'paleturquoize',
'silver... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S11.6.1_A2.4_T3;
* @section: 11.6.1;
* @assertion: First expression is evaluated first, and then second expression;
* @description: Checking with undeclarated vari... |
var searchData=
[
['iscolliding',['isColliding',['../d8/df9/classRobotSimulator.html#a564d79ead199c034841eda1b3ebebfcd',1,'RobotSimulator']]]
];
|
"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 browser_1 = require('angular2/platform/browser');
var app_component_1 = require('./app.component');
browser_1.bootstrap(app_component_1.AppComponent);
//# sourceMappingURL=main.js.map |
'use strict';
/*
* The MIT License (MIT)
*
* Copyright (c) 2014-2016 Riptide Software Inc.
*
* 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 limi... |
// Same as @apiparam
var apiParam = require("./parser_api_param.js");
function parse(content, source)
{
return apiParam.parse(content, source, "Success 200");
}
function pushTo()
{
return "local.success.fields." + apiParam.getGroup();
}
/**
* Exports.
*/
module.exports = {
parse: parse,
pushTo: pushTo
}; |
ace.define("ace/mode/coffee_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
"use strict";
var oop = require("../lib/oop");
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
oop.inherits(CoffeeH... |
const DirectionWay = require('./DirectionWay');
class SimulcastInfo {
constructor() {
this.send = [];
this.recv = [];
this.plainString = null;
}
clone() {
const cloned = new SimulcastInfo();
this.send.forEach((sendStreams) => {
const alternatives = [];
sendStreams.forEach((sendSt... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S11.12_A3_T3;
* @section: 11.12;
* @assertion: If ToBoolean(x) is false, return z;
* @description: Type(y) and Type(z) are string primitives;
*/
//CHECK#1
if ((""... |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
const path = require('path');
const config = require('./webpack.config.common.js');
const dist = path.resolve(__di... |
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M16.76 9l1.41 1.41-9.19 9.19 1.41 1.41 9.19-9.19L21 13.24V9h-4.24zm-8.28 3.75l3.54-3.54 2.19.92 1.48-1.48L4.56 4.23 3.5 5.29l4.42 11.14 1.48-1.48-.92-2.2zm-.82-1.72L5.43 6.16l4.87 2.23-2.64 2.64z... |
'use strict';
var https = require('https');
var express = require('express');
var router = express.Router();
var request = require('request');
var settings = require('../config/config.json');
var users = require('../users');
var replies = require('../replies');
/* GET */
router.get('/', function (req, res) {
var ... |
/**
* RoomController
*
* @description :: Server-side logic for managing rooms
* @help :: See http://links.sailsjs.org/docs/controllers
*/
var moment = require('moment');
var actionUtil = require('../../node_modules/sails/lib/hooks/blueprints/actionUtil');
var ObjectId = require('mongodb').ObjectID;
var Pro... |
import Ember from 'ember';
import { STEPS } from 'diesel/components/spd-nav/component';
import SPDRouteMixin from 'diesel/mixins/routes/spd-route';
export default Ember.Route.extend(SPDRouteMixin, {
redirect() {
let profile = this.modelFor('gridiron-setup');
let currentStep = profile.get('currentStep');
... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... |
'use strict';
var _ = require('lodash');
var Rx = require('rxjs/Rx');
var runAsync = require('run-async');
/**
* Resolve a question property value if it is passed as a function.
* This method will overwrite the property on the question object with the received value.
* @param {Object} question - Question object
*... |
/** * Imports ***/
import { geometriesSlice } from '../geometries/geometries.slice';
import ShadersUniform from '../shaders/shaders.data.uniform';
import ShadersVertex from '../shaders/shaders.data.vertex';
import ShadersFragment from '../shaders/shaders.data.fragment';
import { helpersMaterialMixin } from '../helpers... |
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc);
switch (arguments.length) {
case 2: return decorators.reduceRight(function(o, d) ... |
$(document).on('click', '.btAdd', function(event) {
var id = $('#txtId').val();
/*//Cambiar nombre del panel heading para add (Inserción)*/
$('.pnHeadingLabelAdd').removeClass('hidden');
$('.pnHeadingLabelEdit').addClass('hidden');
if (id!='') {
$('#txtId').val('');
$('#txt... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M6 19h6v-7H6z" opacity=".3" /><path d="M12 3H6c-1.1 0-2 .9-2 2v16h10v-7.5h1.5v5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V9c0-.69-.28-1.32-.73-1.... |
// Picked from: https://github.com/ScottHamper/Cookies
/*!
* Cookies.js - 0.3.1
* Wednesday, April 24 2013 @ 2:28 AM EST
*
* Copyright (c) 2013, Scott Hamper
* Licensed under the MIT license,
* http://www.opensource.org/licenses/MIT
*/
(function (undefined) {
'use strict';
var Cookies = function (key, ... |
import chalk from 'chalk'
function safeStringify (obj) {
let cache = []
const returnValue = JSON.stringify(obj || {}, function (key, value) {
if (typeof value === 'object' && value !== null) {
if (cache.indexOf(value) === -1) {
cache.push(value)
return value
}
return '[CIRCUL... |
'use strict';
var corsSchedule = require('./corsSchedule1516Sem2.json');
var DAYS = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
function toUTC(date) {
var d = Date.UTC(date.getFullYear(),
date.getMonth(),
date.getDate(),
date... |
// [VexFlow](http://vexflow.com) - Copyright (c) Mohit Muthanna 2010.
//
// ## Description
// This file implements notes for standard notation. This consists of one or
// more `NoteHeads`, an optional stem, and an optional flag.
//
// *Throughout these comments, a "note" refers to the entire `StaveNote`,
// and a "key"... |
'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 pc = require("../../");
var expect = require("expect.js");
var doc = require("nofactor");
describe(__filename + "#", function() {
it("can get() a property on the context", function() {
var v = pc.template("").view({ a: { b: 1 }});
expect(v.get("a.b")).to.be(1);
});
it("can set() a prop... |
(function($) {
var cultures = $.cultures,
en = cultures.en,
standard = en.calendars.standard,
culture = cultures["en-ZA"] = $.extend(true, {}, en, {
name: "en-ZA",
englishName: "English (South Africa)",
nativeName: "English (South Africa)",
numberFormat: {
... |
"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")... |
/* jshint node: true */
'use strict';
module.exports = {
name: 'ember-form-for',
included: function(app) {
this._super.included(app);
}
};
|
//>>built
define("dojo/_base/lang dojo/_base/declare dojo/_base/Color ../utils ../../RectangularGauge ../../LinearScaler ../../RectangularScale ../../RectangularValueIndicator ../DefaultPropertiesMixin".split(" "),function(e,f,d,g,h,k,l,m,n){return f("dojox.dgauges.components.green.HorizontalLinearGauge",[h,n],{borderC... |
// Copyright 2017 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --allow-natives-syntax
(function modifyArrayIterator() {
'use strict';
class Point {
constructor(x, y) {
this.x = x;
thi... |
import { SimpleSchema } from 'meteor/aldeed:simple-schema';
import { _ } from 'lodash';
import Organizations from '/organizations/collection';
import OrganizationApis from './';
OrganizationApis.schema = new SimpleSchema({
organizationId: {
type: String,
optional: false,
autoform: {
options () {
... |
import d3 from 'd3';
import exponentialMovingAverageCalculator from './calculator/exponentialMovingAverage';
import merge from './merge';
export default function() {
var ema = exponentialMovingAverageCalculator()
.value(function(d) { return d.close; });
var mergedAlgorithm = merge()
.... |
/*
Copyright by Oleg Efimov and node-mysql-libmysqlclient contributors
See contributors list in README
See license text in LICENSE file
*/
/*
#See before_script commands in .travis.yml for actual version of this commends
> mysql -u root
DELETE FROM mysql.db WHERE Db = 'test\\_%';
DELETE FROM mysql.user WHERE Host = '... |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M12 19c0-3.87 3.13-7 7-7 1.08 0 2.09.25 3 .68V4H2v16h10.08c-.05-.33-.08-.66-.08-1zM4 6l8 5 8-5v2l-8 5-8-5V6zm13.34 16-3.54-3.54 1.41-1.41 2.12 2.12 4.24-4.2... |
"use strict";
module.exports = function valid(patch) {
if (!Array.isArray(patch)) return false;
for (let i = 0, l = patch.length; i < l; i++) {
const op = patch[i];
if (typeof op !== "object" || op === null || Array.isArray(op))
return false;
if (typeof op.path !== "string") return false;
... |
Admin.User = DS.Model.extend({
firstName: DS.attr('string'),
lastName: DS.attr('string'),
email: DS.attr('string'),
apiKey: DS.attr('string'),
timezone: DS.attr('string'),
password1: DS.attr('string'),
password2: DS.attr('string'),
casUid: DS.attr('string')
}); |
angular.module('meanApp.directives')
.filter('capitalize', function() {
return function(string) {
return string.substring(0, 1).toUpperCase() + string.substring(1);
}
}); |
//----------------------------------------------------------------------
//
// This source file is part of the Folktale project.
//
// Licensed under MIT. See LICENCE for full licence information.
// See CONTRIBUTORS for the list of contributors to the project.
//
//-----------------------------------------------------... |
var searchData=
[
['begin',['begin',['../classgriffin_1_1handle__map.html#aeaaf41138493de00272dc83b1956ae1a',1,'griffin::handle_map']]]
];
|
/**
* Each section of the site has its own module. It probably also has
* submodules, though this boilerplate is too simple to demonstrate it. Within
* `src/app/home`, however, could exist several additional folders representing
* additional modules that would then be listed as dependencies of this one.
* For exam... |
module.exports = function( Release ) {
var
fs = require( "fs" ),
shell = require( "shelljs" ),
// Windows needs the .cmd version but will find the non-.cmd
// On Windows, ensure the HOME environment variable is set
gruntCmd = process.platform === "win32" ? "grunt.cmd" : "grunt",
devFile = "dist/jquery.j... |
//>>built
define(["../SimpleTheme","./common"],function(b,a){a.BlueDusk=new b({colors:["#292e76","#3e56a6","#10143f","#33449c","#798dcd"]});return a.BlueDusk}); |
app.lib.ui = function() {
/**
* Set the active state of menu links
* @param Object data
* @param Function next
*/
var setActiveLink = function(data, next) {
var url = data.path;
if (url == '/') {
// Recognize / as ./
url = './';
} else {
// Remove the slash in the beginning
url = url.substr... |
//@flow
declare var y: ?Array<number>;
y.
//^
opaque type t: Array<number> = Array<number>;
declare var z: t;
z.
//^
|
function timer(tw,tc) {
godzin = Math.floor(tc / 3600);
minut = Math.floor((tc - godzin * 3600) / 60);
sekund = tc - minut * 60 - godzin * 3600;
if (godzin < 10){ godzin = "0"+ godzin; }
if (minut < 10){ minut = "0" + minut; }
if (sekund < 10){ sekund = "0" + sekund; }
if (tc > 0) {
tc--;
document.getEl... |
'use strict';
/**
* Module dependencies.
*/
var should = require('should'),
mongoose = require('mongoose'),
User = mongoose.model('User');
/**
* Globals
*/
var user, user2;
/**
* Unit tests
*/
describe('User Model Unit Tests:', function() {
before(function(done) {
user = new User({
firstName: '... |
'use strict';
require('mocha');
const assert = require('assert');
const mm = require('..');
const { isMatch } = require('..');
describe('globstars - "**"', () => {
});
|
;
(function() {
window.require(["ace/snippets/elm"], function(m) {
if (typeof module == "object" && typeof exports == "object" && module) {
module.exports = m;
}
});
})(); |
'use strict';
var chai = chai || require('chai');
var bitcore = bitcore || require('../bitcore');
var should = chai.should();
var Armory = bitcore.Armory;
var Address = bitcore.Address;
/**
* This is the Armory root code that was used to generated the hard coded values in
* those tests:
*/
var seed = [
'aagh ... |
/**
* Created by Florin Chelaru ( florin [dot] chelaru [at] gmail [dot] com )
* Date: 8/27/2015
* Time: 2:20 PM
*/
goog.provide('vs.plugins.canvas.ScatterPlot');
goog.require('vs.ui.canvas.CanvasVis');
goog.require('vs.models.DataRow');
goog.require('vs.models.Transformer');
/**
* @constructor
* @extends vs.ui... |
angular.module('ionicApp', ['ionic'])
.config(function($stateProvider, $urlRouterProvider) {
$stateProvider
.state('eventmenu', {
url: "/event",
abstract: true,
templateUrl: "event-menu.html"
})
.state('eventmenu.home', {
url: "/home",
views: {
'menuContent' :{
t... |
"use strict";
var compression = (function (compression) {
function build_code_table(input) {
var code_table = new jDataView(0x200);
var data = input.getUint8();
while (data !== 0xFF) {
var pindex = data;
while ((data = input.getUint8()) < 0x80) {
var repcount = data;
pindex ... |
/* global describe:true, it:true */
'use strict';
// Constants:
import constants from '../constants';
// Utilities:
import chai from 'chai';
import sinon from 'sinon';
import sinonChai from 'sinon-chai';
// Test setup:
const expect = chai.expect;
chai.use(sinonChai);
// Under test:
import TractorError from './Tract... |
var decentraland = require('../');
var co = decentraland.co;
var assert = require('assert');
var file = process.argv[2];
var BufferWriter = require('../lib/utils/writer');
assert(typeof file === 'string', 'Please pass in a database path.');
file = file.replace(/\.ldb\/?$/, '');
var db = decentraland.ldb({
location... |
/**
* Created by phantomk on 2015/12/17.
*/
var fibonacci = function (n) {
if (typeof n !== 'number') {
throw new Error('n should be a Number');
}
if (n < 0) {
throw new Error('n should >= 0');
}
if (n > 10) {
throw new Error('n should <= 10');
}
if (n === 0) {
... |
var expect = require("expect.js"),
sift = require(".."),
assert = require("assert");
describe("objects", function () {
var topic = [{
name: 'craig',
age: 90001,
tags: ['coder', 'programmer', 'traveler', 'photographer'],
address: {
city: 'Min... |
/*global QUnit*/
import FakeServer, { stubRequest } from 'ember-cli-fake-server';
import { STATUS_CODES } from 'ember-cli-fake-server/lib/responses';
import jQuery from 'jquery';
import Ember from 'ember';
let module = QUnit.module, test = QUnit.test;
module('ember-cli-fake-server:stubRequest responses', {
setup() ... |
Clazz.declarePackage ("JV");
Clazz.load (null, "JV.ShapeManager", ["java.lang.Boolean", "JU.BS", "$.P3", "J.api.Interface", "J.c.PAL", "$.VDW", "JM.Atom", "JU.BSUtil", "JV.JC"], function () {
c$ = Clazz.decorateAsClass (function () {
this.ms = null;
this.shapes = null;
this.vwr = null;
this.bsRenderableAtoms = nu... |
const readline = require('readline');
const fs = require('fs');
const path = require("path");
const MAX_LINE_LENGTH = 80;
const DEFAULT_TAB_SIZE = 4;
let tabString;
// Go through all lines in a file, formatting them if needed and appending
// them to a temporary file. When done, replaces the original file with the
//... |
'use strict';
// Declare app level module which depends on views, and components
var serket = angular.module('serket', ['ngRoute'])
serket.config(['$routeProvider', function($routeProvider) {
$routeProvider.otherwise({redirectTo: '/home'});
$routeProvider.when('/home', {
templateUrl: 'home/home.html',
c... |
version https://git-lfs.github.com/spec/v1
oid sha256:bb676b748d720ca3aa8efe743047ca0e948723ecf27c30495ce83a080b5caa88
size 28842
|
version https://git-lfs.github.com/spec/v1
oid sha256:8aaaef52b4c29f1c1d9f3bab6775656f9c46baff8ec0812d869cfaf07fd524ff
size 2318
|
module.exports = {
mode: "production",
entry: "./index",
externals: {
test: "commonjs test"
}
};
|
import React from 'react'
import Icon from 'react-icon-base'
const MdNetworkWifi = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m34.1 18.2l0 0.1-14.1 17.5-14.1-17.5 0-0.1-5.3-6.6c0.8-0.5 8.2-6.6 19.4-6.6s18.6 6.1 19.4 6.6z"/></g>
</Icon>
)
export default MdNetworkWifi
|
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2019 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* Moves the given array element up one place in the array.
* The array is modified in-place.
*
* @function Phaser.Utils.Array.MoveUp
* ... |
angular.module('movietimeplusApp')
.service('ShareDataService', ['$q', function($q) {
var dataObject = {};
var addData = function(newData) {
dataObject = newData;
};
var getData = function() {
var deferred = $q.defer();
if (dataObject.email || dataObject.timeLogged) {
defer... |
/**
* Update the table using an Ajax call
* @param {object} oSettings dataTables settings object
* @returns {boolean} Block the table drawing or not
* @memberof DataTable#oApi
*/
function _fnAjaxUpdate(oSettings) {
if (oSettings.bAjaxDataGet) {
oSettings.iDraw++;
_fnProcessingDisplay(oSettin... |
/**
* Template object for the column information object in DataTables. This object
* is held in the settings aoColumns array and contains all the information that
* DataTables needs about each individual column.
*
* Note that this object is related to {@link DataTable.defaults.columns}
* but this on... |
'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]; } }... |
version https://git-lfs.github.com/spec/v1
oid sha256:7d439e3e166fc53b77f4eaee398ebbdf04c87aaf7dd15a45bc0931c6cbd69558
size 635
|
export const getUpdatedCards = (cards, updatedCard) => {
return cards.map(card => card.id == updatedCard.id ? updatedCard : card)
}
export const getUpdatedDebitCards = (debitCards, updatedDebitCard) => {
return debitCards.map(debitCard => debitCard.debitCard.id == updatedDebitCard.id ? updatedDebitCard : debitCard... |
import React from 'react';
import QuickControl from './QuickControl';
class AutoItems extends React.Component {
static propTypes = {
onChange: React.PropTypes.func.isRequired,
items: React.PropTypes.object.isRequired,
};
constructor(props) {
super(props);
this.handleCheckChange = this.handleChec... |
//>>built
define(["dojo/_base/declare","dijit/_WidgetBase","dojo/_base/lang"],function(b,c,d){return b("dojox.mvc.Group",c,{target:null,startup:function(){d.isFunction(this.getParent)&&this.getParent()&&this.getParent().removeRepeatNode&&(this.select=this.getParent().select,this.onCheckStateChanged=this.getParent().onC... |
var expect = chai.expect
// locationHelperProximity = sinon.spy(LocationHelper.prototype, "proximity");
describe("B", function() {
beforeEach(function() {
// var sandbox = sinon.sandbox.create();
// var A1 = {
// diameter: 50,
// path: function() {
// return {
// currentCoords: {
// x: 20,
... |
"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 _objectWithoutPr... |
'use strict';
const sensorDefinitions = require('../sensorDefinitions');
const { sds011_pm25, sds011_pm10 } = sensorDefinitions;
module.exports = [
sds011_pm10,
sds011_pm25
];
|
/**
* Configure web server sessions
* session.js
*/
var session=require('express-session');
var SessionStore=require('session-file-store')(session);
var session_api=require('./session_api');
var storeOptions={
ttl: 7*24*60*60
};
var instance=session({ secret: "sslhUIduDQ36djH6RksiQkd3jo2",resave:true,saveUninitia... |
import { ɵɵdefineInjectable, ɵɵinject, Injectable } from '@angular/core';
import { Angulartics2 } from 'angulartics2';
class Angulartics2BaiduAnalytics {
constructor(angulartics2) {
this.angulartics2 = angulartics2;
if (typeof _hmt === 'undefined') {
_hmt = [];
}
else {
... |
import { Injectable, defineInjectable, inject } from '@angular/core';
import { Angulartics2 } from 'angulartics2';
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var Angulartics2Splunk = /** @class */ (function () {
fun... |
;(function(){
/* UNBUILD */
var root;
if(typeof window !== "undefined"){ root = window }
if(typeof global !== "undefined"){ root = global }
root = root || {};
var console = root.console || {log: function(){}};
function USE(arg, req){
return req? require(arg) : arg.slice? USE[R(arg)] : function(mod... |
var customMaterial = {
wood: new THREE.MeshLambertMaterial({
map: THREE.ImageUtils.loadTexture('images/wood.jpg'),
}),
bricks: new THREE.MeshLambertMaterial({
map: THREE.ImageUtils.loadTexture('images/bricks.jpg'),
}),
woodFloor: new THREE.MeshLambertMaterial({
map: THREE.ImageUtils.loadTexture('images/wo... |
/* Copyright (c) 2006-2012 by OpenLayers Contributors (see authors.txt for
* full list of contributors). Published under the Clear BSD license.
* See http://svn.openlayers.org/trunk/openlayers/license.txt for the
* full text of the license. */
/**
* @requires OpenLayers/Format/XML.js
*/
/**
* Class... |
var annotate = require('annotate');
var is = require('is-js');
module.exports = annotate('acos', 'Returns the arccosine (in radians) of a number')
.on(function(a) {
return is.number(a) && -1 <= a && a <= 1;
}, Math.acos);
|
/* Italian initialisation for the jQuery UI date picker plugin. */
jQuery(function($){
if($.datepicker) {
$.datepicker.regional['it'] = {
closeText: 'Chiudi',
prevText: '<Prec',
nextText: 'Succ>',
currentText: 'Oggi',
monthNames: ['Gennaio','Febbraio','Marzo','Aprile','Maggio','Giugno',... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.