text
stringlengths
3
1.05M
// @flow import React from 'react'; import ReactDOM from 'react-dom'; import Transition from 'react-transition-group/Transition'; import { withStyles } from '@material-ui/core/styles'; import { duration } from '@material-ui/core/styles/transitions'; import { noob, opacity, getTransitionProps } from './utils'; import { ...
import quandl # cross_validation 0.2开始废除 import math import numpy as np from sklearn import preprocessing, model_selection, svm from sklearn.linear_model import LinearRegression import matplotlib.pyplot as plt from matplotlib import style import pandas as pd import datetime # 修改matplotlib样式 style.use('ggplot') quandl...
/* * SpiderMonkey host environment */ if(dojo.config["baseUrl"]){ dojo.baseUrl = dojo.config["baseUrl"]; }else{ dojo.baseUrl = "./"; } dojo._name = 'spidermonkey'; /*===== dojo.isSpidermonkey = { // summary: Detect spidermonkey }; =====*/ dojo.isSpidermonkey = true; dojo.exit = function(exitcode){ quit(exit...
// Imports const importer = require('./lib/importer'); const metadata = require('./lib/metadata'); const utils = require('./lib/utils'); const s3 = require('./lib/s3'); // Constants const VIDEO_MATCH_REGEX = '(.+/)*[^/]+.(?:mp4|mov|mxf)'; const DEFAULT_METADATA_MATCH_REGEX = '(.+/)*_default.json'; const functions = {...
// server.js var express = require('express'); var mongoose = require('mongoose'); var passport = require('passport'); var flash = require('connect-flash'); var app = express(); var port = process.env.PORT || 8080; var configDB = require('./config/database.js'); const appInsights = require("applicationinsights"); ap...
export { default as AuthenticatedApp } from "./AuthenticatedApp";
/** * @license * Copyright 2012 Google LLC * SPDX-License-Identifier: Apache-2.0 */ /** * @fileoverview Generating JavaScript for list blocks. * @author fraser@google.com (Neil Fraser) */ 'use strict'; goog.provide('Blockly.JavaScript.lists'); goog.require('Blockly.JavaScript'); Blockly.JavaScript['lists_cr...
from eulfedora.server import Repository from eulxml.xmlmap import load_xmlobject_from_file from django.core.management.base import BaseCommand, CommandError import shutil from readux.books import annotate, export from readux.books.models import Volume from readux.books.tei import Facsimile class Command(BaseCommand)...
require('./angulartics-newrelic-insights'); module.exports = 'angulartics.newrelic.insights';
const Lowdb = require('lowdb') const FileSync = require('lowdb/adapters/FileSync') const path = require('path') const { rcFolder } = require('./rcFolder') const db = new Lowdb(new FileSync(path.resolve(rcFolder, 'db.json'))) // Seed an empty DB db.defaults({ projects: [], foldersFavorite: [], tasks: [], confi...
# -*- coding: utf-8 -*- """ Created on 2018/9/20 @author: gaoan """ import logging import traceback from tigeropen.trade.domain.order import OrderStatus from tigeropen.trade.request.model import AccountsParams from tigeropen.common.response import TigerResponse from tigeropen.tiger_open_client import TigerOpenClient ...
function getTests(input) { const rows = input.split('\n'); const n = +rows.shift(); return rows .slice(0, n) .map(row => row .split('') .map(v => +v) ); } function solveTest(test, i) { let result = ''; let depth = 0; for (let i = 0; i < test....
/******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({ /***/ "./node_modules/axios/index.js": /*!*************************************!*\ !*** ./node_modules/axios/index.js ***! \*************************************/ /***/ ((module, __unused_webpack_exports, __webpack_require__) => { module...
const fs = require('fs'); function generateHTML() { console.log(employees); const filterManager = employees.filter((em) => em.getRole() === 'Manager'); const filterIntern = employees.filter((em) => em.getRole() === 'Intern'); const filterEngineer = employees.filter((em) => em.getRole() === 'Engineer'); con...
import React, { Component } from 'react'; import PlayerForm from '../players/PlayerForm'; import { connect } from 'react-redux'; import { getTeams, deleteTeam } from '../../actions/teams' import { fetchPlayers } from '../../actions/players' class TeamShow extends Component { componentDidMount() { this.props.get...
(window.webpackJsonp=window.webpackJsonp||[]).push([[146],{572:function(t,e,a){"use strict";a.r(e);var l=a(25),s=Object(l.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"状态展示页-statusshow"}},[a("a",{staticClass:...
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('buffer')) : typeof define === 'function' && define.amd ? define(['exports', 'buffer'], factory) : (global = global || self, factory(global.taquitoUtils = {}, global.buffer)); }(this, (function (e...
/*! ========================================================= * Argon Design System React - v1.1.0 ========================================================= * Product Page: https://www.creative-tim.com/product/argon-design-system-react * Copyright 2020 Creative Tim (https://www.creative-tim.com) * Licensed under MIT ...
// AUTO GENERATED FILE import { Endpoint } from './components/APIDocs/Endpoint' import { MethodTags } from './components/APIDocs/MethodTags' import { Accordion } from './components/Accordion' import { AnchorScrollNavbar } from './components/AnchorScrollNavbar' import { AnimateIntoView } from './components/AnimateIntoV...
import React from 'react'; import cx from 'clsx'; import { makeStyles } from '@material-ui/styles'; import Box from '@material-ui/core/Box'; import Card from '@material-ui/core/Card'; import CardActionArea from '@material-ui/core/CardActionArea'; import CardMedia from '@material-ui/core/CardMedia'; import CardContent f...
/** * Compute the result of evaluating 'expression', and compare it to 'result'. Replaces the contents * of 'coll' with a single empty document. */ function testExpression(coll, expression, result) { testExpressionWithCollation(coll, expression, result); } /** * Compute the result of evaluating 'expression', a...
import * as Constants from '../constants/index'; const inititalState = { careersData: [], }; export default function categoryReducer(state = inititalState, action) { switch (action.type) { case Constants.FETCH_CATEGORY_SUCCESS: return Object.assign({}, state, { careersData: action.payload, ...
org_qns = { "Fill in the blank: 423 x 1000 = ____ x 10": { "answers": [ "42300", "423", "4230", "423000" ], "difficulty": "Easy" }, "Which of the following is closest to 1?": { "answers": [ "4/5", "1/2", ...
/*! Wowchemy v5.0.0-beta.2 | https://wowchemy.com/ */ /*! Copyright 2016-present George Cushen (https://georgecushen.com/) */ /*! License: https://github.com/wowchemy/wowchemy-hugo-modules/blob/master/LICENSE.md */ ; (()=>{var codeHighlighting=false;var hugoEnvironment="production";var searchEnabled=true;function fixM...
/*! * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved. * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") * * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. * Unless required ...
Package.describe({ name: 'vulcan:newsletter', summary: 'Vulcan email newsletter package', version: '1.12.13', git: 'https://github.com/VulcanJS/Vulcan.git' }); Package.onUse(function (api) { api.versionsFrom('1.6.1'); api.use([ 'vulcan:core@1.12.13', 'vulcan:email@1.12.13' ]); api.mainModule...
# Copyright (C) 2007 Alexandre Conrad, alexandre (dot) conrad (at) gmail (dot) com # # This module is part of FormAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php import os from gettext import GNUTranslations i18n_path = os.path.join(os.path.dirname(__file__), 'i18n_...
from typing import Iterable, List import numpy as np from ortools.algorithms.pywrapknapsack_solver import KnapsackSolver def f1_score(pred: np.ndarray, test: np.ndarray) -> float: """Compute F1-score on binary classification task. :param pred: Predicted binary label. Sized [N]. :param test: Ground truth...
"""Testing for k-nearest-neighbors.""" # Author: Johann Faouzi <johann.faouzi@gmail.com> # License: BSD-3-Clause import numpy as np import pytest from pyts.classification import KNeighborsClassifier X = np.arange(40).reshape(8, 5) y = np.array([0, 0, 0, 1, 1, 0, 1, 1]) y_proba = np.vstack([1 - y, y]).T X_test = X +...
import hazm from TurkishStemmer import TurkishStemmer from nltk.stem import porter from nltk.stem.snowball import HungarianStemmer stemmers = { "aa": None, "ab": None, "ae": None, "af": None, "ak": None, "am": None, "an": None, "ar": None, "as": None, "av": None, "ay": None,...
const { di: { dcmConfigModel: { nodeDataType: { BLOCK, TROUBLE, NONE }, }, }, } = require('../../../module'); /** * @type {mDeviceMap} */ const map = { drawInfo: { frame: { mapInfo: { width: 3000, height: 2000, backgroundInfo: { backgroundData: '', ...
var fs = require('fs'); var path = require('path'); var sha1 = require('sha1'); var express = require('express'); var router = express.Router(); var UserModel = require('../models/users'); var checkNotLogin = require('../middlewares/check').checkNotLogin; // GET /signup 注册页 router.get('/', checkNotLogin, function(req...
var app = require('express')(); var express = require('express'); var http = require('http').Server(app); //var io = require('socket.io')(http); //var fs = require('fs'); //var os = require('os'); app.use('/images', express.static(__dirname +"/images") ); app.use('/js', express.static(__dirname + "/js")); a...
export function validate(s) { if (/^[0-9\+\-\/\*\%\&\|\^\<\>etvxy\=\?\:\(\)\[\]\" ]+$/.test(s)) { var t = 0; var v = 0; var x = 0; var y = 0; var res = eval(s); return s; } throw new Error("Invalid expression: " + s); } export function* compute(expr) { var t = 0; var v = 0; var x = ...
/******************************************************************************* *Copyright 2018 Cognizant Technology Solutions * * 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 * * ...
export { default } from "./GuitarAnimation.js";
import React from 'react'; import Layout from '../layout/layout'; import { Helmet } from 'react-helmet'; import Banner2 from '../components/banner2'; import styles from './css/about-the-book.module.scss'; import { DiscussionEmbed } from 'disqus-react'; const Book = (props) => { const slug = props.location.href; cons...
(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(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.GraphiQLExplor...
import React, { useEffect, useState } from 'react'; import { ToastContainer, toast } from "react-toastify"; import "react-toastify/dist/ReactToastify.css"; import { Link } from 'react-router-dom'; import loginImage from "../../Assets/Images/test5.svg"; import EmailIcon from '@material-ui/icons/Email'; import LockIcon f...
class EditModalController { constructor( $scope, departmentsDetailTeamsDetailPositions, modal, teamId, position ) { this.$scope = $scope; this.departmentsDetailTeamsDetailPositions = departmentsDetailTeamsDetailPositions; this.modal = modal; this.teamId = teamId; this.id = position.i...
#!/usr/bin/python # # Copyright (c) 2009 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of ...
require('dotenv').config(); const isEnvProduction = process.env === "production"; const shouldUseSourceMap = process.env.GENERATE_SOURCEMAP !== 'false'; const path = require('path'); const Dotenv = require('dotenv-webpack'); /** * css loader getLocalIdent 함수 수정 * scss 파일만 css module 적용되도록 처리 * https://github.com/we...
import React, { Component } from 'react'; import '@fortawesome/fontawesome-free/css/all.min.css'; import 'bootstrap-css-only/css/bootstrap.min.css'; import 'mdbreact/dist/css/mdb.css'; import Layout from '../components/layout'; import Intro from '../components/mask'; import Carousel from '../components/carousel'; impor...
#---------odddd--------shmmmy+---- #---------odddd-----:shddmmdhy+--- #---------ommmd----+dmmmdhddmmdy-- #---------ommmd----hmmmy:--/ys/--- #---------ommmd----hmmmh/--------- #---------ommmd----+dmmmmhyo/----- #---------ommmd-----:sdmmmmmmdy/-- #---------ommmd--------:oshmmmmmy- #---------ommmd------------:sdmmmo #+ddm...
var initialState = { animating: false, dragging: false, autoPlayTimer: null, currentDirection: 0, currentLeft: null, currentSlide: 0, direction: 1, // listWidth: null, // listHeight: null, // loadIndex: 0, slideCount: null, slideWidth: null, // sliding: false, // ...
from django.contrib.auth.decorators import login_required from django.contrib.auth.mixins import PermissionRequiredMixin from django.utils.decorators import method_decorator from django.views.generic import TemplateView from django.shortcuts import render from ...decorators import staff_required from ...models import ...
"use strict"; /* * --------------------------------------------------------- * Copyright(C) Microsoft Corporation. All rights reserved. * --------------------------------------------------------- * * --------------------------------------------------------- * Generated file, DO NOT EDIT * -----------------------...
import argparse import logging import numpy as np import pandas as pd import semutils.db_access.AccessReference as Database import semutils.db_access.MasterConfig as MasterConfig # The number of days to skip because trading to get in and out of the position takes time. trade_period = 1 # Upper and lower bo...
def add_src_to_path(): import sys sys.path.append("src/") print("Added ../src/ to path") def test_init(): add_src_to_path() from scipy_optimstruct import optim_dict var_dict = optim_dict() assert isinstance(var_dict, optim_dict)
var table = require('../CacheJSOrm/Schema/Schema') var tableMapping = require('../CacheJSOrm/lib/Operations') var sch = new table( //schema for mssql /*{ id: {type: Number}, FirstName: {type: String}, LastName: {type: String}, City:{type:String}, Country: {type: Strin...
/* ========================================================================== jQuery plugin settings and other scripts ========================================================================== */ $(document).ready(function() { // FitVids init $("#main").fitVids(); // Sticky sidebar var stickySideBar = ...
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), Schema = mongoose.Schema; /** * Postcode Schema */ var PostcodeSchema = new Schema({ locationcode: { type: String, default: '', required: 'Please fill Postcode locationcode', unique:true, trim: true }, dist...
'use strict'; /* * Checks if the given value is a native function. * * ref: * - https://davidwalsh.name/detect-native-function * - https://github.com/lodash/lodash/blob/master/lodash.js#L11115 */ var isNil = require('is-nil'); var toSource = require('to-source-code'); function isObject(value) { if (!val...
import React from 'react' import { css } from '@emotion/core' import { PropTypes, string } from 'prop-types' const NavigationHeaderStyle = css` ` export function NavigationHeader (props) { return ( <div css={NavigationHeaderStyle}> {props.headerMessage || ''} </div> ) } NavigationHeader.propTypes ...
module.exports = [ { kind: 'CARD', id: 'mycard', shortDescription: 'card short description', longDescription: 'card long description', reportedBy: { id: 'myprovider', title: 'My provider', url: 'https://example.com', }, card: { section: 'Business Partner Tools', ...
Bitloader.define(null);
from setuptools import setup setup( name='linearkernelmdp', version='1.0', description='A Library for Reinforcement Learning on Linear Kernel MDPs', author='Joshua Zhu', author_email='joshua.zhu@gmail.com', license='MIT', packages=['linearkernelmdp'] )
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var MultiLingualActions = require("./multi-lingual.actions"); exports.initialState = { lang: 'en' }; function reducer(state, action) { if (state === void 0) { state = exports.initialState; } if (state === null) state = expo...
import { defineMessages } from 'react-intl'; export default (configContext) => { const { CompoundInput, TextInput, UploadInput, } = configContext.inputComponents; const { configKey: config, } = configContext.configHelpers; const { extensions, } = configContext.config; return { ...
import MaterialFileContainer from './MaterialFileContainer'; export default MaterialFileContainer;
const StringHelper = { isGuid: function(stringToTest) { var regexGuid = /^(\{){0,1}[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}(\}){0,1}$/gi; return regexGuid.test(stringToTest); } }; export default StringHelper;
""" Final Project: Neural Image Captioning. This file contains the CNN-RNN model, the engine of this project. @author: Abid Hossain """ import torch import torch.nn as nn import torchvision.models as models from torch.nn.utils.rnn import pack_padded_sequence from torch.autograd import Variable class Encoder(nn.Modul...
import createEventHub from '~/helpers/event_hub_factory'; export default createEventHub();
export function logIn(options) { return window.Hull.login(options); } export function signUp(options) { return window.Hull.signup(options); } export function resetPassword(email) { return window.Hull.api( 'users/request_password_reset', 'post', { email } ); } export function logOut(options) { r...
# # 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 in writing, software # distributed under t...
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: updateplots_session.py # # Tests: libsim - batch simulations that make images via a session file. # # Programmer: Brad Whitlock # Date: Fri Oct 2 15:18:56 PDT 2015 # # Modifications: # # -...
# -*- coding: utf-8 -*- from pony.orm import * from datetime import datetime from model.group import Group from model.person import Person class ORMFixture: db = Database() class ORMGroup(db.Entity): _table_ = 'group_list' id = PrimaryKey(int, column='group_id') name = Optional(str,...
/** * Is provided object a function? * * @param {*} object * @returns {boolean} */ export default function isFunction(object) { return typeof object === 'function'; }
// @flow import { Component } from 'react'; import type { Node } from 'react'; import { observer } from 'mobx-react'; import CloseCross from '../../assets/images/cross-dark.inline.svg'; import { IconButton } from '@mui/material'; type Props = {| +onClose?: void => PossiblyAsync<void>, +icon?: ?string, |}; @obser...
define({ root: //begin v1.x content ({ "save": "Save" }) //end v1.x content , "zh": true, "zh-tw": true, "uk": true, "tr": true, "th": true, "sv": true, "sl": true, "sk": true, "ru": true, "ro": true, "pt": true, "pt-pt": true, "pl": true, "nl": true, "nb": true, "ko": true, "kk": true, "ja": true, "it": true, "id": t...
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # 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 applica...
/* globals document:true */ import playerObject from '../objects/playerObject'; /* * These are DOM settings that we need in game, * but that would break the help screen at start. * So they are not set until we start the game. */ function updateDomSettingsForGame() { // Set viewport requirements for game, such ...
import React, { useContext, useLayoutEffect, useRef } from 'react'; import clean from 'plotter/cleaner'; import { mm2px } from 'math/svg'; import { observer } from 'mobx-react-lite'; import svgToLines from 'plotter/svg/svg-to-lines'; import classNames from 'classnames'; import styles from './setup.css'; import PlotterC...
/* ***** BEGIN LICENSE BLOCK ***** * Distributed under the BSD license: * * Copyright (c) 2013 Matthew Christopher Kastor-Inare III, Atropa Inc. Intl * All rights reserved. * * Contributed to Ajax.org under the BSD license. * * Redistribution and use in source and binary forms, with or without * modification, ...
'use strict'; var ejs = require('ejs'); var assign = require('object-assign'); function ejsRenderer(data, locals) { return ejs.render(data.text, assign({filename: data.path}, locals)); } ejsRenderer.compile = function(data) { return ejs.compile(data.text, { filename: data.path }); }; module...
/** * The Crosshair interaction allows the user to get precise values for a specific point on the chart. * The values are obtained by single-touch dragging on the chart. * * @example * Ext.create('Ext.Container', { * renderTo: Ext.getBody(), * width: 600, * height: 400, * ...
/* * SeminarCatalog API * Rest API for SeminarCatalog Administration * * OpenAPI spec version: 1.0.0 * Contact: info@databay.de * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * * Swagger Codegen version: 2.4.12 * * Do not ed...
/** * Webpack config for production electron main process */ import path from 'path'; import webpack from 'webpack'; import { merge } from 'webpack-merge'; import TerserPlugin from 'terser-webpack-plugin'; import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer'; import baseConfig from './webpack.config.base';...
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{gIcY:function(t,e,n){"use strict";var o=n("mrSG"),r=n("CcnG"),i=n("6blF"),a=n("isby"),u=n("67Y/"),s=n("McSo"),l=n("0/uQ");function c(t,e){return new i.a(function(n){var o=t.length;if(0!==o)for(var r=new Array(o),i=0,a=0,u=function(u){var s=Object(l.a)(t[u]),c=!1;...
import { Worker } from 'bullmq'; import { STRATEGIES } from '../constants'; import { addToNextQueue, redisConnection, TRADING_Q_NAME } from '../queue'; import atmStraddle from '../strategies/atmStraddle'; import wedThurs from '../strategies/wedThurs'; async function processJob(job) { const { data: { strategy, ....
import torch.nn as nn from .bert import BERT, CustomBERT class BERTLM(nn.Module): """ BERT Language Model Next Sentence Prediction Model + Masked Language Model """ def __init__(self, bert: BERT, vocab_size): """ :param bert: BERT model which should be trained :param voca...
/* eslint-env jest */ import http from 'http' import url from 'url' import stripAnsi from 'strip-ansi' import fs from 'fs-extra' import { join } from 'path' import cheerio from 'cheerio' import webdriver from 'next-webdriver' import { launchApp, killApp, findPort, nextBuild, nextStart, fetchViaHTTP, rend...
{"mlist":[],"rlist":{},"page":{"page":1,"count":0,"size":10,"type":0,"id":40281}}
(function () { 'use strict'; var asyncGenerator = function () { function AwaitValue(value) { this.value = value; } function AsyncGenerator(gen) { var front, back; function send(key, arg) { return new Promise(function (resolve, reject) { var request = { key: key, ar...
/* * uCharts v1.9.4.20200331 * uni-app平台高性能跨全端图表,支持H5、APP、小程序(微信/支付宝/百度/头条/QQ/360) * Copyright (c) 2019 QIUN秋云 https://www.ucharts.cn All rights reserved. * Licensed ( http://www.apache.org/licenses/LICENSE-2.0 ) * * uCharts官方网站 * https://www.uCharts.cn * * 开源地址: * https://gitee.com/uCharts/uChart...
$(document).ready(function () { // duyarlı menu | https://youtu.be/xMTs8tAapnQ $("#res-menu").on("change", function () { if ( $(this).is(':checked') ) { $(".nav ul").addClass("mobile-menu-active"); } else { $(".nav ul").removeClass("mobile-menu-active"); } }); // yapiskan sol menu | https://abouolia.gi...
import os import sqlite3 from flask import g from flask import Flask from flask import render_template app = Flask(__name__) BASE_DIR = os.path.dirname(os.path.abspath(__file__)) DATABASE = os.path.join(BASE_DIR, "dev.db") def connect_db(): return sqlite3.connect(DATABASE) def get_db(): db = getattr(g, '...
/** * isArrayLengthOdd(numbers): * - receives array `numbers` * - returns true if array has an odd number of elements * - returns false otherwise * * e.g. * isArrayLengthOdd([1, 2, 3]) -> true * isArrayLengthOdd([1, 2, 3, 4]) -> flase */ function isArrayLengthOdd(numbers) { // Your code if (numbers.length ...
'use strict'; const expect = require('chai').expect; const Index = require('../../../../../lib/device/brain/index.js'); const config = require('../../../../../lib/config.js'); const nock = require('nock'); describe('./lib/device/brain/index.js', function() { let netMock; beforeEach(function() { netMock = nul...
'use strict'; var fs = require('fs'); var path = require('path'); var walker = require('walker'); var common = require('./common'); var minimatch = require('minimatch'); var path = require('path'); var platform = require('os').platform(); var EventEmitter = require('events').EventEmitter; /** * Constants */ var DE...
/*! JSZip v3.1.3 - A Javascript class for generating and reading zip files <http://stuartk.com/jszip> (c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com> Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/master/LICENSE.markdown. JSZip uses the library pako released under the MI...
import { Given, When, Then } from 'cucumber'; import { expect } from 'chai'; import path from 'path'; import BigNumber from 'bignumber.js'; import { fillOutWalletSendForm, getWalletByName, waitUntilWalletIsLoaded, addOrSetWalletsForScenario, importWalletWithFunds } from '../support/helpers/wallets-helpers'; i...
/*! Source: https://github.com/Turbo87/leaflet-sidebar Date: 2015-01-01 */ L.Control.Sidebar=L.Control.extend({includes:L.Mixin.Events,options:{closeButton:true,position:"left",autoPan:true},initialize:function(e,t){L.setOptions(this,t);var n=this._contentContainer=L.DomUtil.get(e);n.parentNode.removeChild(n);var r="le...
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
'use strict' const callbackify = require('callbackify') const globSource = require('ipfs-utils/src/files/glob-source') const all = require('async-iterator-all') module.exports = self => { return callbackify.variadic((...args) => { const options = typeof args[args.length - 1] === 'string' ? {} : args.pop() ...
let userFirebase; function setUserDB(user) { userFirebase = new UserFirebase(user.uid); } auth.onAuthStateChanged((user) => { if (user) { setUserDB(user); onAuthLogined(user); } else onAuthAnonymous(); });
# -*- coding: utf-8 -*- from ..Qt import QtGui, QtCore from ..python2_3 import asUnicode import numpy as np try: import metaarray HAVE_METAARRAY = True except ImportError: HAVE_METAARRAY = False __all__ = ['TableWidget'] class TableWidget(QtGui.QTableWidget): """Extends QTableWidget with some useful f...
const electron = require('electron') // Module to control application life. const {app, globalShortcut} = require('electron') const {ipcMain} = require('electron') // Module to create native browser window. const BrowserWindow = electron.BrowserWindow var path = require('path') var iconPath = path.join(__dirname, '/...
(function () { 'use strict'; angular.module('AdoBot') .service('BotService', ['$http', function($http) { this.fetch = function() { return $http.get('/bots'); }; this.get = function(id) { return $http.get('/bots/' + id); }; this.delete =function(id) { r...