text
stringlengths
3
1.05M
import React, { Component } from 'react'; import { BrowserRouter, Redirect, Switch, Route } from 'react-router-dom'; import { CUSTOMERS_URI_PATTERN, CUSTOMER_URI_PATTERN, QUOTATIONS_URI_PATTERN, QUOTATION_URI_PATTERN, SIGN_IN_URI_PATTERN, } from './routes'; import PrivateRoute from './containers/privateRoute'...
VAR=1 REF=2 PAIR=3 CONST=4 # unnamed variable def var() : v=[None] v[0]=v return v # named variable def nvar(name): v=[None,name] v[0]=v return v # return type of data object def type_of(x) : if isinstance(x,list) : return VAR+(not x is x[0]) # VAR or REF elif isinstance(x,tuple) : return PAI...
import { UnavailabilityError } from '@unimodules/core'; import { PermissionStatus, createPermissionHook, } from 'expo-modules-core'; import { Platform } from 'react-native'; import ExpoBrightness from './ExpoBrightness'; // @needsAudit export var BrightnessMode; (function (BrightnessMode) { /** * Means that th...
(function() { 'use strict'; angular.module('app', [ 'app.core', 'app.home', 'app.dashboard' ]); })();
/** * Copyright 2017 The AMP HTML 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 require...
import request from '@/utils/request' export async function taskVariable(params) { return request(`/bpm/task/variable`, { params }) } export async function taskHistoric(params) { return request(`/bpm/task/historic`, { params }) } export async function taskFileQuery(params) { return request(`/bpm/ta...
#!/usr/bin/env python # -*- coding: utf-8 -*- # Author: Pradeep Jairamani , github.com/pradeepjairamani import socket import socks import time import json import threading import string import random import sys import struct import re import os from OpenSSL import crypto import ssl from core.alert import * from core.t...
/*! * Jeff Christian Co - Agency v5.0.2 (https://startbootstrap.com/template-overviews/agency) * Copyright 2013-2018 Jeff Christian Co * Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap-agency/blob/master/LICENSE) */ !function(m){var u=[],t={options:{prependExistingHelpBlock:!1,sniffHtml:!0,p...
# Copyright 2013 Devsim LLC # # 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, s...
{ executable: 'php', arguments: '-l -f "%1"', onparse: function(output, error){ var check = true; var errors = []; var re = /([a-zA-Z ]+):(.+) in .+ on line (\d+)/; var target = output.split("\n"); for(var i = 0; i < target.length; i++){ var t = target[i]; if(t != ""){ var ...
# SimpleCV Feature library # # Tools return basic features in feature sets # # x = 0.00 # y = 0.00 # _mMaxX = None # _mMaxY = None # _mMinX = None # _mMinY = None # _mWidth = None # _mHeight = None # _mSrcImgW = None # mSrcImgH = None #load system libraries from SimpleCV.base im...
const js = (el) => document.querySelector(el); const jsAll = (el) => document.querySelectorAll(el); const Netflix = {} let primary = 0 Netflix.images = { "0": "avengers", "1": "barracabeijo2", "2": "billions", "3": "blacklist", "4": "blindspot", "5": "freshprinceofbelair", "6": "frien...
import { ValidatedMethod } from "meteor/mdg:validated-method"; import SimpleSchema from "simpl-schema"; import { Stages } from "./stages.js"; import shared from "../../shared.js"; export const updateStageData = new ValidatedMethod({ name: "Stages.methods.updateData", validate: new SimpleSchema({ stageId: { ...
/** @license (C) Copyright Nuxeo Corp. (http://nuxeo.com/) 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 agree...
""" Wrap lambda handler and call main app """ from app import IngestAlert def run_app(evt=None, ctx=None): """Parse event and run main app""" resources = IngestAlert(event=evt).run() return resources def lambda_handler(event, context): """Lambda handler""" try: return run_app(event, c...
mycallback( {"ELECTION CODE": "P2012", "EXPENDITURE PURPOSE DESCRIP": "", "BENEFICIARY CANDIDATE OFFICE": "H", "PAYEE ZIP": "90026", "MEMO CODE": "", "PAYEE STATE": "CA", "PAYEE LAST NAME": "", "PAYEE CITY": "Los Angeles", "PAYEE SUFFIX": "", "CONDUIT STREET 2": "", "CONDUIT STREET 1": "", "PAYEE FIRST NAME": "", "BACK...
const defaultState = { version: null, cards: {}, validCards: [], trends: { data: [], dt: null, }, doodle: { data: {}, dt: null, }, backgroundLocal: { filename: null, dataUrl: '', }, }; export default { state: defaultState, mutations: { SET_VERSION(state, version) { ...
import React from 'react'; import { screen } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; import renderWithRouter from './renderWithRouter'; import App from '../App'; import pokemons from '../data'; const nextPokemon = 'next-pokemon'; const pokemonName = 'pokemon-name'; describe...
/* Template Name: Stexo - Responsive Bootstrap 4 Admin Dashboard Author: Themesdesign Website: www.themesdesign.in File: Nestable js */ !function($) { "use strict"; var Nestable = function() {}; Nestable.prototype.updateOutput = function (e) { var list = e.length ? e : $(e.target), ...
const path = require("path"); const express = require("express"); const bodyParser = require("body-parser"); const cookieParser = require("cookie-parser"); const common = require("./common"); const app = express(); //Declare all Routes here const authenticateRoutes = require("./routes/authenticate"); const infoRoutes ...
const mongoose = require('mongoose') const passportLocalMongoose = require('passport-local-mongoose') const UserSchema = new mongoose.Schema ({ username: String, password: String, githubId: String, notes: [ { type: mongoose.Schema.Types.ObjectId, ref: 'note-app-note' } ] }) UserSchema.pl...
'use strict'; const CHARACTERS = [ { id: 'card-0', link: 'assets/catwoman.jpg', title: 'Catwoman', subtitle: 'Selina Kyle', description: 'Is a fictional character created by Bill Finger and Bob Kane who appears in American comic books published by DC Comics, commonly in association with Batm...
H5.define("System.Collections.Generic.SortedSetEqualityComparer$1", function (T) { return { inherits: [System.Collections.Generic.IEqualityComparer$1(System.Collections.Generic.SortedSet$1(T))], fields: { comparer: null, e_comparer: null }, alias: [ ...
/** * DevExtreme (exporter/excel/excel.doc_comments.js) * Version: 19.2.4 * Build date: Tue Nov 19 2019 * * Copyright (c) 2012 - 2019 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ "use strict";
import hooks from 'feathers-hooks'; import { hooks as auth } from 'feathers-authentication'; import { validateHook as validate } from '../../hooks'; import { required } from '../../utils/validation'; import uuid from 'uuid'; import dashify from 'dashify'; const schemaValidator = { name: [required], email: [require...
module.exports={"type":"FeatureCollection","features":[{"type":"Feature","id":"310230","properties":{"name":"崇明县","cp":[121.5637,31.5383],"childNum":1},"geometry":{"type":"Polygon","coordinates":[[[121.9798,31.3522],[121.9537,31.219],[121.9276,31.1586],[121.9235,31.1668],[121.918,31.1771],[121.8631,31.2472],[121.6104,3...
/** * JsonLD source for a repository. */ ((definition) => { if (typeof define === "function" && define.amd) { define(["./jsonld-to-json", "./http"], definition); } else if (typeof module !== "undefined") { const jsonLdToJson = require("./jsonld-to-json"); const http = require("./http")...
"""`librabbitmq`_ transport. .. _`librabbitmq`: https://pypi.python.org/librabbitmq/ """ from __future__ import absolute_import, unicode_literals import os import socket import warnings import librabbitmq as amqp from librabbitmq import ChannelError, ConnectionError from kombu.five import items, values from kombu.u...
import React from "react" export default function Loading(){ return( <img className="loading" src="./images/pikachu.gif" /> ); }
import numpy as np import h5py as py import matplotlib.pyplot as plt depth = [] s22 = [] hdf5_file = py.File("..\\Build\\TestsWithGL\\t2d_mpm_chm_t_bar_conference_restart.hdf5", "r") frame_id = 100 frame_dset = hdf5_file['TimeHistory']['penetration']['frame_%d' % frame_id]['ParticleData'] pcl_num = frame_dset.attrs[...
// valid.js http://github.com/bronson/valid.js // // A simple, chainable validation library under the MIT license. // Works in Node, the browser, and anywhere JavaScript should run. var Valid = function Valid() { }; module.exports = Valid; // Internals // --------- Valid.GetChain = function GetChain() { if...
import React, { Component } from 'react'; import { connect } from 'dva'; import { formatMessage, FormattedMessage } from 'umi/locale'; import Link from 'umi/link'; import router from 'umi/router'; import { Form, Input, Button, Select, Row, Col, Popover, Progress } from 'antd'; import styles from './Register.less'; con...
""" ASGI config for azureproject project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/4.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_...
const Heart = props => ( <svg width={24} height={24} viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={2} strokeLinecap="round" strokeLinejoin="round" className="feather feather-heart" {...props} > <path d="M20.84 4.61a5.5 5.5 0 00-7.78 0L12 5.67l-1.06-1....
import nodemailer from 'nodemailer'; import exphbs from 'express-handlebars'; import nodemailerhbs from 'nodemailer-express-handlebars'; import { resolve } from 'path'; import mailConfig from '../config/mail'; class Mail { constructor() { const { host, port, secure, auth } = mailConfig; this.transporter = ...
// Useful imports import { Meteor } from 'meteor/meteor'; import { Template } from 'meteor/templating'; import { FlowRouter } from 'meteor/ostrio:flow-router-extra'; import { BlazeLayout } from 'meteor/kadira:blaze-layout'; // HTML import import './management.html'; // JS import import './modals/confirmDelete.js'; /...
import * as React from 'react'; import { View, Text, Button } from 'react-native'; import { NavigationContainer } from '@react-navigation/native'; import { createStackNavigator } from '@react-navigation/stack'; function HomeScreen({ navigation }) { return ( <View style={{ flex: 1, alignItems: 'center', justifyCo...
# -*- coding: utf-8 -*- """Unit test package for chaostoolkit-k6."""
/* BOM, DOM 브라우저 정보, 해상도, 사용자 정보 등 확인 브라우저 기능지원 여부: http://modernizr.com/download/ @date (버전관리) MAJOR.MINOR.BUGFIX 2015.04.09 @copyright Copyright (c) Sung-min Yu. @license Dual licensed under the MIT and GPL licenses. http://www.opensource.org/licenses/MIT @browser compatibility IE7 이상(IE7, IE8 부...
import logging import os def setup_logging(): logfile = 'logfile.txt' if os.path.exists(logfile): os.remove(logfile) logging.basicConfig(filename=logfile, level=logging.DEBUG, format='%(message)s')
import getScrollRtlBehavior from "../../../core/utils/scroll_rtl_behavior"; import { titleize } from "../../../core/utils/inflector"; import { DIRECTION_VERTICAL, DIRECTION_HORIZONTAL, DIRECTION_BOTH } from "./common/consts"; import { ScrollDirection } from "./utils/scroll_direction"; function isScrollInverted(rtlEnab...
'use strict'; let Options = {}; let gConfig = null; // Text in the butter bar, to prompt the user to reload after a config change. let kReloadText = { en: 'To apply configuration changes, reload cactbot overlays.', de: 'Um die Änderungen zu aktivieren, aktualisiere bitte die Cacbot Overlays.', fr: 'Afi...
/** * Copyright (c) Microsoft Corporation. * * 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 agr...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. const fs = require('fs'); const path = require('path'); const map = require('lodash/map'); const reduce = require('lodash/reduce'); const zipObject = require('lodash/zipObject'); const ruleNames = map(fs.readdirSync(path.resolve(__dirname, 'r...
import express from 'express' import { Nuxt, Builder } from 'nuxt' import api from './api' const bodyParser = require('body-parser') const app = express() const host = process.env.HOST || '0.0.0.0' const port = process.env.PORT || 3000 process.env.TZ = 'Europe/London' app.set('port', port) // parse application/x-ww...
/* ======================================================================== * Bootstrap: iconset-glyphicon.js by @recktoner * https://victor-valencia.github.com/bootstrap-iconpicker * * Iconset: Glyphicons * ======================================================================== * Copyright 2013-2014 Victor Va...
$(function() { mui('.mui-scroll-wrapper').scroll(); $('body').on('tap', '#submit1', function() { if($('#thisForm').find('input.dasmust').val() != ''){ $.ajax({ type : 'post', url : 'courseApplySave', data : $('#thisForm').serialize(), dataType : 'htm...
(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8206],{17253:(e,i,t)=>{"use strict";function a(e){}t.d(i,{Bg:()=>a}),t(77645)},80108:(e,i,t)=>{"use strict";t.d(i,{Y:()=>c});var a=t(14983),n=t(45851),r=t(67380),s=t(84066),l=(t(77645),t(38215),t(74184)),o=t(29444);const c=e=>{let i=class extends ...
import { Chemistry16 } from '..'; export default Chemistry16;
const Discord = require('discord.js'); const fetch = require('node-fetch'); require('dotenv').config(); const WolframAlphaAPI = require('wolfram-alpha-api'); const waApi = WolframAlphaAPI(process.env.WOLFRAMALPHA_API_KEY); module.exports = { name: 'wolfram', category: 'Search', description: '울프럼 알파 검색 결과의 짧은 버...
const baseUrl = "http://localhost:3000/"; const scenarios = [ { label: 'home', url: baseUrl, misMatchThreshold: 1e-10, requireSameDimensions: false, } ]; const projectId = "dark"; module.exports = { id: projectId, scenarios, paths: { bitmaps_reference: `backstop_data/snapshots/${projectId}`, bitmaps_...
window.API_URL = PROJECT.apiUrl || window.location.protocol + '//' + window.location.hostname; if (window.location.port && !PROJECT.apiUrl) window.API_URL += ':' + window.location.port window.DEBUG = true; window.app = { models: {}, collections: {}, views: {}, routers: {}, initialize: function(){ // ini...
import { govPoolABI } from '../abi'; export const avalancheStakePools = [ { id: 'bifi-avax', name: 'BIFI', logo: 'single-assets/BIFI.png', token: 'BIFI', tokenDecimals: 18, tokenAddress: '0xd6070ae98b8069de6B494332d1A1a81B6179D960', tokenOracle: 'tokens', tokenOracleId: 'BIFI', ea...
import React from 'react'; export default class Tile extends React.Component { render() { return ( <div className="fl ma2 bg-white bg-gray0-d overflow-hidden" style={{ height: '126px', width: '126px' }}> {this.props.children} </div> ); } }
var Axes; import { vis } from '../../../lib/pub/draw/Vis.js'; Axes = class Axes { constructor(svgMgr) { this.svgMgr = svgMgr; this.d3 = this.svgMgr.d3; this.svg = this.svgMgr.svg; this.g = this.svgMgr.g; this.ready(); } ready() { var sz; sz = this.svgMgr.size; this.margin = { ...
var casper = require('casper').create({ // verbose: true, // logLevel: "debug", pageSettings: { userAgent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.97 Safari/537.11" } }); var xpath = require('casper').selectXPath; var symbolList = [ 'CNX A...
import math class Point: def __init__(self, x, y): self.x = x self.y = y def __str__(self): return '({:.2f}, {:.2f})'.format(self.x, self.y) def distanceTo(self, point): return math.sqrt((self.x - point.x)**2 + (self.y - point.y)**2) p = Point(2.34, 5.67) print ("...
#!/usr/bin/python # -*- coding=utf-8 -*- # Project: catchcore # Class: TailorTen # The tailorable tensor class to manage the tensor data # # tailorten.py # Version: 1.0 # Goal: Class script # Created by @wenchieh on <10/23/2018> # # Copyright: # This software is free of cha...
import { mat4, quat, vec3 } from 'gl-matrix'; import macro from 'vtk.js/Sources/macros'; import vtkBufferObject from 'vtk.js/Sources/Rendering/OpenGL/BufferObject'; import { ObjectType } from 'vtk.js/Sources/Rendering/OpenGL/BufferObject/Constants'; import { Representation } from 'vtk.js/Sources/Rendering/Core/Propert...
import React, { useState, useEffect } from "react"; import ReactDOM from "react-dom"; import "./content.css"; /** * CONCEPTS :- * (1) Functional Component * (2) Using hooks for the Life-cycle management * (3) Using state for setting the value of the props * (4) Using react Children API to clone the react element ...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Problem 1.6 compress a string by having subsequent identical characters transformed like so hhhhh -> h5. If the string is no shorter, keep it unchanged >>> compress(qqqwwwwweerty) q3w5e2t1y1 Trivia: oddly enough, there are English words with three consecutive identica...
const pathModule = require('path'); /* global describe, it */ const expect = require('../unexpected-with-plugins'); const AssetGraph = require('../../lib/AssetGraph'); describe('relations/HtmlShortcutIcon', function() { it('should handle a test case with an existing <link rel="shortcut icon" href="..."> elements in ...
import alertIfConfigIncomplete from '../../alert-if-config-incomplete'; jest.mock('../../config', () => ({ get: (key) => { switch (key) { case 'codeshipApiKey': return 'secret squirrel'; case 'githubUsername': return 'cbovis'; default: return undefined; } }, })); ...
;(function(){ // ga (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com...
# -*- coding: utf-8 -*- """ wechatpy._compat ~~~~~~~~~~~~~~~~~ This module makes it easy for wechatpy to run on both Python 2 and 3. :copyright: (c) 2014 by messense. :license: MIT, see LICENSE for more details. """ from __future__ import absolute_import, unicode_literals import sys import six imp...
import { login, logout, getInfo } from '@/api/user' import { getToken, setToken, removeToken } from '@/utils/auth' import router, { resetRouter } from '@/router' import {baseURL,token} from "@/api/globaldata.js" const state = { token: getToken(), name: '', avatar: '', introduction: '', roles: [] } const mut...
# encoding: UTF-8 # AUTHOR:李来佳 # WeChat/QQ: 28888502 from datetime import datetime import talib as ta import numpy import copy,csv from pykalman import KalmanFilter from vnpy.trader.app.ctaStrategy.ctaBase import * from vnpy.trader.vtConstant import * DEBUGCTALOG = True PERIOD_SECOND = 'second' # 秒级别周期 PERIOD_MI...
import Vue from 'vue' import Router from 'vue-router' import routes from './routers' import store from '@/store' import iView from 'iview' import { setToken, getToken, canTurnTo, formatRouters } from '@/libs/util' import config from '@/config' const { homeName } = config Vue.use(Router) // 存放加载的动态路由 let dyncRouters = ...
# -*- coding: utf-8 -*- # # Copyright 2015 Google Inc. 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 requir...
module.exports = function (PerfectScrollBar) { const tables = document.querySelectorAll(".table-custom-scroll"); [...tables].forEach(table => { const scroll = new PerfectScrollBar(table, { }); $(scroll.element).on("ps-x-reach-start", function () { $(this) ....
'use strict'; describe('Feature Test:', function (){ var plane; var airport; beforeEach(function(){ plane = new Plane(); airport = new Airport(); }); it('planes can be istructed to land at an airport', function(){ plane.land(airport); expect(airport.planes()).toContain(plane); }); it('...
/* ========================================================= * bootstrap-datepicker.js * http://www.eyecon.ro/bootstrap-datepicker * ========================================================= * Copyright 2012 Stefan Petre * Improvements by Andrew Rowls * * Licensed under the Apache License, Version 2.0 (the "Lice...
self["webpackHotUpdate_N_E"]("webpack",{}, /******/ function(__webpack_require__) { // webpackRuntimeModules /******/ "use strict"; /******/ /******/ /* webpack/runtime/getFullHash */ /******/ !function() { /******/ __webpack_require__.h = function() { return "960686566055d109b371"; } /******/ }(); /******/ /******/...
""" Local Density Congruence """ ########################################################################## ## Methods which compute the local densities for representing a number ## by a quadratic form at a prime (possibly subject to additional ## congruence conditions). ##############################################...
angular.module('ovh-api-services').service('OvhApiXdslModemAvailableWLANChannel', ($injector, $cacheFactory) => { const cache = $cacheFactory('OvhApiXdslModemAvailableWLANChannel'); return { v6() { return $injector.get('OvhApiXdslModemAvailableWLANChannelV6'); }, resetCache: cache.removeAll, ...
# ***************************************************************************** # ***************************************************************************** # # Name: asmtables.py # Author: Paul Robson (paul@robsons.org.uk) # Date: 13th March 2021 # Purpose: Generate various tables (assembler specific) # # **...
const Joi = require('joi'); const mongoose = require('mongoose'); const ticket = mongoose.model('Ticket', new mongoose.Schema({ client:{ type: mongoose.Schema.Types.ObjectId, ref: 'client', }, parts: [ type: mongoose.Schema.Types.ObjectId, ref: 'part', ], notes: { type: String, mi...
const User = require("../user"); const email = require("../services/email"); const { connectMongoose, clearDatabase, disconnectMongoose, request } = require("../../test/util"); jest.mock("../services/email"); beforeAll(connectMongoose); beforeEach(clearDatabase); afterAll(disconnectMongoose); test("GET /u...
import React, { useEffect } from 'react'; const MyNotes = () => { useEffect(() => { // update the document title document.title = 'My Notes — Notedly'; }); return ( <div> <p>These are my notes</p> </div> ); }; export default MyNotes;
""" Print all permutations of a string """ def permutate(str_list: list, start: int, end: int) -> None: """ Time Complexity: O(n*n!) """ if start == end: print("".join(str_list)) # O(n) else: for i in range(start, end + 1): str_list[start], str_list[i] = str_list[i], s...
var searchData= [ ['clienthandler_2ecpp_30',['clienthandler.cpp',['../clienthandler_8cpp.html',1,'']]], ['clienthandler_2eh_31',['clienthandler.h',['../clienthandler_8h.html',1,'']]] ];
/*! * delims <https://github.com/jonschlinkert/delims> * * Copyright (c) 2014 Jon Schlinkert * Licensed under the MIT license. */ 'use strict'; var merge = require('mixin-deep'); var arrayify = require('arrayify-compact'); // Escape custom template delimiters exports.escapeDelim = function (re) { return re.r...
(this.webpackJsonpclient=this.webpackJsonpclient||[]).push([[0],{100:function(e,t,a){},136:function(e,t){},139:function(e,t,a){},182:function(e,t,a){},183:function(e,t,a){},184:function(e,t,a){},185:function(e,t,a){},186:function(e,t,a){},187:function(e,t,a){},188:function(e,t,a){"use strict";a.r(t);var n,r=a(0),l=a.n(...
import os import scipy.signal import sklearn.utils import numpy as np import tensorflow as tf from sklearn.model_selection import KFold class DataReader(object): def __init__(self, input_size, output_size, x_range, y_range, cross_val=5, val_fold=0, batch_size=100, shuffle_size=100, data_dir=os.pa...
import Store from "../index"; /** * Initiate your global store with default state. */ const { state, listen, detach } = Store({ count: 5 }, true ); /** * Set up initial content. */ const countEl = document.querySelector("#count"); countEl.innerHTML = JSON.stringify({count: 0}); const stateEl = document.querySel...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.proto...
import datetime from collections import OrderedDict, defaultdict import pytest import pytz from bs4 import BeautifulSoup from pytest import param as case from urwid import Columns, Divider, Padding, Text from zulipterminal.config.keys import keys_for_command from zulipterminal.config.symbols import ( QUOTED_TEXT_...
require('./angular-locale_he-il'); module.exports = 'ngLocale';
import AddPermissionTemplate from './add-permissions-template'; import { debouncedAsyncValidator } from './validators'; export default { fields: [ { component: 'wizard', name: 'wizzard', isDynamic: true, inModal: true, showTitles: true, ...
"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)...
// Just a random function function randomNumber(min, max) { return Math.floor(Math.random() * (1 + max - min) + min); } module.exports = randomNumber;
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/eda.ipynb (unless otherwise specified). __all__ = []
import time import requests from typing import Union from .baseendpoint import BaseEndpoint from ..resources import KeepAliveResource from ..exceptions import KeepAliveError, APIError, InvalidResponse from ..utils import check_status_code from ..compat import json class KeepAlive(BaseEndpoint): """ KeepAlive...
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2019, Anaconda, Inc., and Bokeh Contributors. # All rights reserved. # # The full license is in the file LICENSE.txt, distributed with this software. #-------------------------------------------------------------------...
const webpack = require('webpack'); const { CheckerPlugin } = require('awesome-typescript-loader'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const path = require('path'); module.exports = { output: { path: path.resolve(__dirname, './dist/'), filename: '[name].js', ...
const {Worlds, Fortunes} = require('../models/sequelize'); const Bluebird = require('bluebird'); module.exports = { getWorld: id => Worlds.findOne({where: {id}}), getWorldLean: id => Worlds.findOne({where: {id}, raw: true}), allFortunes: () => Fortunes.findAll(), saveWorlds: worlds => Bluebird.all(worlds.map(w...
""" Database models for user_tasks. """ import logging from uuid import uuid4 from celery import current_app from django.conf import settings as django_settings from django.core.validators import URLValidator from django.db import models, transaction from django.db.models import Q from django.db.models.expressions i...
# -*- coding: utf-8 -*- """Loan Qualifier Application. This is a command line application to match applicants with qualifying loans. Example: $ python app.py """ import sys import fire import questionary from pathlib import Path import csv from questionary.prompts.common import Choice from questionary.prompts.co...
import Vue from "vue"; import App from "./App.vue"; import router from "./router/index"; import "./registerServiceWorker"; import { store } from "./store/store"; import VeeValidate from 'vee-validate'; Vue.use(VeeValidate); Vue.config.productionTip = false; new Vue({ router, store, render: h => h(App) }).$moun...
var ctx = document.getElementById("myChart"); var myChart = new Chart(ctx, { type: 'bar', data: { labels: ["Red", "Blue", "Yellow", "Green", "Purple", "Orange"], datasets: [{ label: '# of Votes', data: [12, 19, 13, 15, 12, 3], backgroundColor: [ ...