text
stringlengths
3
1.05M
/*! jQuery v1.11.0 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */ define(function(require, exports, module) { ! function(a, b) { "object" == typeof module && "object" == typeof module.exports ? module.exports = a.document ? b(a, !0) : function(a) { if (!a.document) throw new Error("jQuery requir...
'use strict'; var ArraySpeciesCreate = require('es-abstract/2019/ArraySpeciesCreate'); var FlattenIntoArray = require('es-abstract/2019/FlattenIntoArray'); var Get = require('es-abstract/2019/Get'); var IsCallable = require('es-abstract/2019/IsCallable'); var ToLength = require('es-abstract/2019/ToLength'); var ToObje...
"use strict"; var __imns = function(){ return window; } describe("isBoolean Test Suite", function(){ var adr = __imns(); var obj = {}, arr = []; it("isBoolean is a function", function(){ expect(typeof adr.isBoolean === 'function').toBe(true); }); it("isBoolean: {Boolean} = true", function(){ expect(adr....
import React, { Component } from 'react'; import { FormattedMessage, injectIntl } from 'react-intl'; import { Route, Switch, withRouter } from 'react-router-dom'; // APIs import { getNetwork, createComment, createContact, createEndpoint, createIdentifier, createMachineTag, createTag, deleteComment, d...
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[6],{2514:function(e,n,t){"use strict";var o=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("section",{staticClass:"page-header"},[t("div",{staticClass:"donate"},[t("a",{attrs:{href:e.donateUrl,target:"_blank",title:"Donate"}},[t("i",...
// DOCUMENT LOAD $(() => { console.log("detail.js is loaded") handleStickyNav(); }) // NAV - STICKY handleStickyNav = () => { var stickyNavTop = $('#nav').offset().top; var stickyNav = function(){ var scrollTop = $(window).scrollTop(); if (scrollTop > stickyNavTop) { $('#nav').addClass('sticky'...
config = { "interfaces": { "google.monitoring.v3.ServiceMonitoringService": { "retry_codes": { "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], "non_idempotent": [], }, "retry_params": { "default": { "...
var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { 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] =...
App.IconButton = React.createClass({ handleClick(){ let {target} = this.props; $('#' + target).openModal(); }, componentDidMount(){ }, componentDidUpdate(){ }, runModal(){ }, render(){ let {style, customClass, target} = this.props; return ( <i ref='iconButton' style=...
/** * angular-strap * @version v2.3.12 - 2021-06-04 * @link http://mgcrea.github.io/angular-strap * @author Olivier Louvignes <olivier@mg-crea.com> (https://github.com/mgcrea) * @license MIT License, http://www.opensource.org/licenses/MIT */ 'use strict';angular.module('mgcrea.ngStrap.modal').run(['$templateCache...
import HTTPStatus from 'http-status' import Category from './category.model' export async function createCategory(req, res) { try { const category = await Category.createCategory(req.body, req.user._id); return res.status(HTTPStatus.CREATED).json(category); } catch (error) { return re...
// index.js react-bottstrap-test // import React from 'react' import { render } from 'react-dom' import App from './src/App.js' render( <App />, document.getElementById("app") );
const mockAxiosGet = jest.fn(); jest.mock('axios', () => { return { get: mockAxiosGet }; }); jest.mock('../config', () => { return { baseUrl: 'https://test' }; }); global.console = { error: jest.fn(), }; const mockBuildQuery = jest.fn(); jest.mock('../src/build-query', () => { return { buildQ...
if (window['wptForgetSettings']) var wptStorage = {}; else var wptStorage = window.localStorage || {}; function htmlEntities(str) { return String(str).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;'); } function ValidateInput(form) { if( (form.url.v...
"""Contains classes for accuracy analysis. """ from ilbs.arrproc import keyExtract class XPOSRecognitionAnalyzer: """Analyze the accuracy of recognition tokens' morphology. Properties: CHECKED (int increment): Number of analyzed tokens. CORRECT_XPOS (int increment): Number of correct recogni...
import React from "react"; import Employees from "./pages/Employees.js"; function App () { return <Employees /> } export default App;
# Copyright 2019 DeepMind Technologies Limited. 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 ...
var x = 0; var source = "let x: string = 'string'"; function fib(x) { if (x <= 1) return 1; return fib(x - 1) + x; } var result = fib(90); console.log(result);
# echo-server.py import socket HOST = "127.0.0.1" # Standard loopback interface address (localhost) PORT = 7777 # Port to listen on (non-privileged ports are > 1023) with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s: s.bind((HOST, PORT)) s.listen() conn, addr = s.accept() with conn: print(f"Connect...
import axios from 'axios'; import { authConstants } from '../constants/authConstants'; export const login = (data) => async (dispatch) => { dispatch({ type: authConstants.START_LOADING }); try { const result = await axios.post('/auth/access-token', data); const token = result.data....
L.Coordinates = L.Control.extend({ options: { position: 'bottomright' }, onAdd: function(map) { this._container = L.DomUtil.create('div', 'leaflet-bar'); this._container.style.background = '#ffffff'; map.on('mousemove', this._onMouseMove, this); return this._container; }, _onMouseMove: f...
var searchData= [ ['id_0',['id',['../structqos__class.html#a50d6aa2bf63622320919cf7b4a294939',1,'qos_class']]], ['iface_5fin_1',['iface_in',['../structqos__class.html#ab47b524511e925a416f40f401fb736f0',1,'qos_class']]], ['iface_5fout_2',['iface_out',['../structqos__class.html#aac0ca8abb088579b646d489f553b8fb2',1,...
/* @flow */ import React from "react"; import { View, StyleSheet } from "react-native"; import { useTheme } from "@react-navigation/native"; import LText from "./LText"; import Touchable from "./Touchable"; type ChoiceButtonProps = { disabled?: boolean, onSelect: Function, label: React$Node, description?: Rea...
const BackboneElement = require('./BackboneElement'); class EncounterHospitalization extends BackboneElement { constructor(opt) { super(opt); this.__resourceType = 'EncounterHospitalization'; Object.assign(this, opt); } // This is a EncounterHospitalization resource static get __resourceType() { return 'E...
module.exports = function (router) { // CHANGE ME TO THE VERSION YOURE WORKING ON var version = '0-1-4' var base_url = 'raa-v2/' + version + '/sprint/new-flow'; var locations = require('../../../../data/locations.json') var training = require('../../../../data/training.json') var vacancies = require('../...
# Copyright (c) 2020 PaddlePaddle 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 appli...
print("""13 aozccqxeesvgg bapzdcrxfetvh bcaqzecsxgeuv pbdarzfctxhev yqbeaszgcuxie dyrbfatzhcvxj deysbgauzicwx rdfytbhavzjcx wsdgyubiawzkc fwtdhyvbjaxzl fgwudiywbkayz tfhwvdjyxblaz uufiwwdkyybma """)
var searchData= [ ['xml_5frpc_5fclient',['XML_RPC_Client',['../class_x_m_l___r_p_c___client.html',1,'']]], ['xml_5frpc_5fmessage',['XML_RPC_Message',['../class_x_m_l___r_p_c___message.html',1,'']]], ['xml_5frpc_5fresponse',['XML_RPC_Response',['../class_x_m_l___r_p_c___response.html',1,'']]], ['xml_5frpc_5fvalu...
export default [ { path: "/", text: "home", }, { path: "/tours", text: "tours", }, { path: "/blog", text: "blog", }, { path: "/contact", text: "contact", } ];
const chalk = require('chalk') const iconv = require('iconv-lite') const ora = require('ora') const padStart = String.prototype.padStart const log = console.log const format = (label, msg) => { if (!msg) { return '' } return msg.split('\n').map((line, i) => { return i === 0 ? `$...
const path = require('path'); const webpack = require('webpack'); const HtmlWebpackPlugin = require('html-webpack-plugin'); module.exports = { mode: 'development', entry: ['@babel/polyfill', './src/index.tsx', './src/index.css'], output: { filename: '[name].bundle.js', path: path.resolve(__...
var z = {}; var _z = z, x = babelHelpers.objectWithoutProperties(_z, []); var _z2 = z, x = _z2.x, y = babelHelpers.objectWithoutProperties(_z2, ["x"]); var _z3 = z, x = _z3[x], y = babelHelpers.objectWithoutProperties(_z3, [x]); (function (_ref) { var x = _ref.x, y = babelHelpers.objectWith...
"""Sample for getting nexar token with login.""" import argparse import pyperclip from nexar_token import get_token_with_login if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument("client_id", help="The client ID.", type=str) parser.add_argument("client_secret", help="The cli...
["^ ","~:resource-id",["~:shadow.build.classpath/resource","goog/dom/vendor.js"],"~:js","goog.provide(\"goog.dom.vendor\");\ngoog.require(\"goog.string\");\ngoog.require(\"goog.userAgent\");\n/**\n * @return {?string}\n */\ngoog.dom.vendor.getVendorJsPrefix = function() {\n if (goog.userAgent.WEBKIT) {\n return \"W...
const Notifier = require('../lib/Notifier') const notifier = new Notifier({ barkKey: process.env.BARK_KEY, larkWebhook: process.env.LARK_WEBHOOK, workWechat: process.env.QYWX_SEND_CONF, serverChanToken: process.env.SC_SEND_KEY, telegram: { botToken: process.env.TG_BOT_TOKEN, userId: process.env.TG_US...
# Definition for singly-linked list. class ListNode(object): def __init__(self, x): self.val = x self.next = None class Solution(object): def reverseBetween(self, head, m, n): """ :type head: ListNode :type m: int :type n: int :rtype: ListNode """...
import React from "react"; import { shallow } from "enzyme"; import Message from "../Message"; let wrapped; // beforeEach(() => { // wrapped = shallow(<Message items={items} formValues={formValues} />); // }); afterEach(() => { wrapped.unmount(); }); describe("Message tests", () => { it("should say instructio...
import Vue from 'vue' import Router from 'vue-router' const routerOptions = [ { path: '/', component: 'Home' }, { path: '/about', component: 'About' }, { path: '/login', component: 'Login' }, { path: '/register', component: 'Register' }, { path: '/course/view/:courseid', component: 'Course', name: 'course' },...
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F class SPConvBlock(nn.Module): """ SuperPointNet specific convolution block. Parameters: ---------- in_channels : int Number of input channels. out_channels : int Number of output channels. ...
(function (global, factory) { if (typeof define === "function" && define.amd) { define(["exports"], factory); } else if (typeof exports !== "undefined") { factory(exports); } else { var mod = { exports: {} }; factory(mod.exports); global.undefined = mod.exports; } })(this, function...
"use strict"; var _addPageDependency = require("../../redux/actions/add-page-dependency"); const _ = require(`lodash`); const invariant = require(`invariant`); const { getDb, colls } = require(`./index`); function makeTypeCollName(type) { return `gatsby:nodeType:${type}`; } /** * Creates a collection that w...
"use strict"; //# sourceMappingURL=outlined-keyboard-icon.d.js.map
import BarnesHutSolver from "./BarnesHutSolver" class ForceAtlas2BasedRepulsionSolver extends BarnesHutSolver { constructor(body, physicsBody, options) { super(body, physicsBody, options); } /** * Calculate the forces based on the distance. * * @param distance * @param dx * @param dy * @pa...
// manifesto v2.2.21 https://github.com/iiif-commons/manifesto (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...
/* * jQuery appear plugin * * Copyright (c) 2012 Andrey Sidorov * licensed under MIT license. * * https://github.com/morr/jquery.appear/ * * Version: 0.3.3 */ (function($) { var selectors = []; var check_binded = false; var check_lock = false; var defaults = { interval: 250, force_process: fa...
import { moduleForComponent, test } from 'ember-qunit'; import hbs from 'htmlbars-inline-precompile'; moduleForComponent('mdl-layout-title', 'Integration | Component | mdl layout title', { integration: true }); test('it renders', function(assert) { // Set any properties with this.set('myProperty', 'value'); //...
/**! * * Copyright (c) 2015-2016 Cisco Systems, Inc. See LICENSE file. */ 'use strict'; module.exports = require('sinon');
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt Expat (MIT) */ /* Lithuanian (UTF-8) initialisation for the jQuery UI date picker plugin. */ /* @author Arturas Paleicikas <arturas@avalon.lt> */ jQuery(function($){ $.datepicker.regional['lt'] = { closeText: 'Uždaryti', prevText...
#!/usr/bin/python # # Copyright 2018-2021 Polyaxon, Inc. # # 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 ...
from collections.abc import Mapping from struct import unpack, pack __all__ = ['IncorrectHeaderException', 'Field', 'FieldMap', 'FixedHeaderField', 'UInt8Field', 'Int16Field', 'Int32Field', 'Int64Field', 'UInt32Field', 'UInt64Field', 'FloatField', 'DoubleField', 'EnumField', 'BoolField', 'String...
import axios from 'axios'; import qs from 'qs'; import {Message} from '@alifd/next'; import {isPlainObject} from './nacosutil'; // import { SUCCESS_RESULT_CODE } from '../constants'; const API_GENERAL_ERROR_MESSAGE = 'Request error, please try again later!'; const request = () => { const instance = axios.create(); ...
// See http://docs.sequelizejs.com/en/latest/docs/models-definition/ // for more of what you can do here. const Sequelize = require('sequelize'); const DataTypes = Sequelize.DataTypes; module.exports = function (app) { const sequelizeClient = app.get('sequelizeClient'); const phones = sequelizeClient.define('p...
from output.models.ms_data.model_groups.mg_m008_xsd.mg_m008 import ( Doc, Foo, ) __all__ = [ "Doc", "Foo", ]
/// <reference types="cypress" /> context('Assertions', () => { beforeEach(() => { cy.visit('https://example.cypress.io/commands/assertions') }) describe('Implicit Assertions', () => { it('.should() - make an assertion about the current subject', () => { // https://on.cypress.io/should cy.ge...
// ==UserScript== // @name Mod Batch Comment Deleter // @description Batch delete comments using comment permalinks from SEDE https://data.stackexchange.com/stackoverflow/query/1131935 // @homepage https://github.com/samliew/personal-userscripts // @author @samliew // @version 2.0.2 // // @inclu...
import React from 'react' import styles from './layout.module.scss' import Header from './header.js' import Footer from './footer.js' export default ({ children }) => ( <div className={styles.container}> <Header /> <div className={styles.content}> {children} </div> <Footer> My new Gatsby ...
const gulp = require('gulp'); const babel = require('gulp-babel'); const uglify = require('gulp-uglify'); gulp.task('default', () => { return gulp.src('src/nanomsg.js') .pipe(babel({ presets: ['@babel/env'] })) .pipe(uglify()) .pipe(gulp.dest('dist/')); });
# https://leetcode.com/problems/validate-binary-search-tree/ import sys # Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def isValidBST(self, root: TreeNode...
var nijs = require('nijs'); exports.pkg = function(args) { return new nijs.NixAssert({ conditionExpr: true, body: new nijs.NixLet({ value: { test: true }, body: args.writeTextFile({ name : "conditionals", text : new nijs.NixIf({ ifExpr: new nijs.NixExpressi...
'use strict'; describe('Controller: FormsWizardCtrl', function () { // load the controller's module beforeEach(module('minovateApp')); var FormsWizardCtrl, scope; // Initialize the controller and a mock scope beforeEach(inject(function ($controller, $rootScope) { scope = $rootScope.$new(); For...
var webpack = require('webpack'); var config = { context: __dirname + '/app', entry: './index.js', output: { path: __dirname + '/app', filename: 'bundle.js' }, plugins: [ new webpack.DefinePlugin({ ON_TEST: process.env.NODE_ENV === 'test' }) ], module: { loaders: [ {test...
""" (c) ΔQ Programming LLP, 2021 This program is free software; you may redistribute and/or modify it under the terms of the Apache License v2.0. """ import os import pathlib from django.core.management.base import BaseCommand import csv from thoth.models import Thema class Command(BaseCommand): """ A manag...
import React from 'react'; import styles from './styles.less'; const ScopedAnimations = () => ( <div className={styles.root}> <div className={styles.ball} /> </div> ); export default ScopedAnimations;
import React from 'react'; import moment from 'moment'; import {compose} from '@truefit/bach'; import {withSelector} from '@truefit/bach-redux'; import Typography from '@material-ui/core/Typography'; import Divider from './sessionModalDivider'; import { roomForSessionSelector, speakersForSessionSelector, tagsFo...
""" Simple event server for Tuesday's THW This is simplistic event bus setup for doing serverside notebook answer checks for Tuesday's The Hacker Within Python Olympics. """ import os import json import time import uuid from flask import Flask, request from flask_cors import CORS from pymongo import MongoClient app ...
const cp = require('child_process'); const fs = require('fs'); const path = require('path'); const BASE = path.resolve(__dirname, '../..'); const NAN_DIR = path.resolve(BASE, 'third_party', 'nan'); const NPX_CMD = process.platform === 'win32' ? 'npx.cmd' : 'npx'; const utils = require('./lib/utils'); const { YARN_VER...
# -*- encoding: utf-8 -*- """ @Author : zYx.Tom @Contact : 526614962@qq.com @site : https://github.com/zhuyuanxiang/tensorflow_cookbook --------------------------- @Software : PyCharm @Project : TensorFlow_Machine_Learning_Cookbook @File : C0404_svm_kernels.py @Version : v0....
// (function () { // 'use strict' // // Fetch all the forms we want to apply custom Bootstrap validation styles to // var forms = document.querySelectorAll('.needs-validation') // // Loop over them and prevent submission // Array.prototype.slice.call(forms) // .forEach(function (form) { // form.addEventList...
import glob import pkg_resources import subprocess import sys import pathlib import pkg_resources import json def install(package): subprocess.check_call([sys.executable, "-m", "pip", "install", package]) req = glob.glob("/project/**/requirements.txt", recursive=True) install("pipenv") install("pip...
// import {login, logout, getInfo} from '@/api/user' import {getUserInfo, login} from '@/api/user' import {getToken, setToken, removeToken, getUser, setUser, removeUser} from '@/utils/auth' import {Encrypt} from '@/utils/crypto' // import { resetRouter } from '@/router' const getDefaultState = () => { const use...
from agent.strategy.base_strategy import BaseStrategy import numpy as np class EpsilonGreedyStrategy(BaseStrategy): def __init__(self, start, end, decay): super().__init__(start, end, decay) def select_action(self, aq_pairs): threshold = self.get_decayed_rate() try: if (thr...
function exportHandlerMagstrat(event) { var charts = new Array( $("#magstrat-container-declination").highcharts(), $("#magstrat-container-binary").highcharts(), $("#magstrat-container-inclination").highcharts() ); if(charts.includes(undefined)) { return notify("danger", "Can not export charts th...
/* eslint-env browser */ import Url from 'url'; import _ from 'lodash'; import {CLOSE_REPLACED} from '../base-client'; import {log} from '../util'; export default superclass => class BrowserMixin extends superclass { _connect() { if (this._closed) { return; } this._disconnect(CLOSE_REPLACED); ...
import random import math import fractions from ..__init__ import * from .addition import * from .subtraction import * from .multiplication import * from .division import * from .binary_complement_1s import * from .modulo_division import * from .square_root import * from .power_rule_differentiation import * from .squ...
""" Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. 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 ...
# Copyright 2020 Google Inc. # # 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,...
/*! * Angular Material Design * https://github.com/angular/material * @license MIT * v1.1.0-rc4-master-3e15998 */ function MdDividerDirective(e){return{restrict:"E",link:e}}goog.provide("ng.material.components.divider"),goog.require("ng.material.core"),angular.module("material.components.divider",["material.core"]...
#!/usr/bin/env node const log = console.log; log(`process.argv =`, process.argv[2]); // String heterogeneous homogeneity judgment const SHHJ = (str = ``) => { const [s1, s2] = str.trim().split(` `); let result = false; let a = s1.split(``).sort().join(``); let b = s2.split(``).sort().join(``); if(a === b) ...
import $ from 'jquery'; pageflow.DomOrderScrollNavigator = function(slideshow, entryData) { this.getLandingPage = function(pages) { return pages.first(); }; this.back = function(currentPage, pages) { var position = 'bottom'; var previousPage = this.getPreviousPage(currentPage, pages); if (previ...
import logging from selinon import StoragePool _LOGGER = logging.getLogger(__name__) def iter_travis_repos(storage_pool: StoragePool, node_args: dict) -> list: """Iterate over repos and extend node args with the repo name.""" try: repos = storage_pool.get('TravisActiveRepos') new_node_args ...
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2019 Huawei # GNU General Public License v3.0+ (see COPYING or # https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type #################################################################...
"""Mask RCNN with ResNet50-FPN, 1x schedule.""" _base_ = [ "../_base_/models/mask_rcnn_r50_fpn.py", "../_base_/datasets/bdd100k.py", "../_base_/schedules/schedule_1x.py", "../_base_/default_runtime.py", ] load_from = "https://dl.cv.ethz.ch/bdd100k/ins_seg/models/mask_rcnn_r50_fpn_1x_ins_seg_bdd100k.pth...
const vertex = `#version 300 es #define PI 3.1415926535897932384626433832795 #define ASPECT_RATIO 16.0/9.0 uniform float angle; uniform int index; uniform vec2 camera; uniform vec2 position; uniform vec2 size; uniform vec3 dimensions; in vec2 vertex_position; mat3 rotation(floa...
// P_2_2_6_01_class_version // // Generative Gestaltung – Creative Coding im Web // ISBN: 978-3-87439-902-9, First Edition, Hermann Schmidt, Mainz, 2018 // Benedikt Groß, Hartmut Bohnacker, Julia Laub, Claudius Lazzeroni // with contributions by Joey Lee and Niels Poldervaart // Copyright 2018 // // http://www.generati...
"""Support for the SQLite database via pysqlite. Note that pysqlite is the same driver as the ``sqlite3`` module included with the Python distribution. Driver ------ When using Python 2.5 and above, the built in ``sqlite3`` driver is already installed and no additional installation is needed. Otherwise, the ``pysq...
import React from 'react'; import PropTypes from 'prop-types'; import { Svg, Circle as _Circle, Ellipse, G, LinearGradient, RadialGradient, Line, Path, Polygon, Polyline, Rect, Symbol, Text, Use, Defs, Stop, } from 'react-native-svg'; const Loader = props => { const { color, size, ......
import React from 'react'; import {connect} from 'dva'; import moment from 'moment'; import {Alert, Icon, Menu, message, Popover, Select, Badge, Modal, Tooltip} from 'antd'; import {Link} from 'dva/router'; import copy from 'copy-to-clipboard'; import {locales} from '../common/config/data' import intl from 'react-intl-...
/* eslint-disable max-classes-per-file */ const {Duplex} = require('stream'); const {totalmem} = require('os'); const LinkedList = require('linkedlist'); class CachingStream extends Duplex { #parent; /** * Construct a StreamingCache for efficient memory caching capability * @param {StreamCache} parent A pa...
// all static image files export { default as HOME } from "../assets/images/Home.svg"; export { default as PROFILE } from "../assets/images/Profile.svg"; export { default as ELLIPSE } from "../assets/images/Ellipse.svg"; export { default as RED_ELLIPSE } from "../assets/images/Ellipse-red.svg"; export { default as MINE...
import parseDuration from 'parse-duration'; import { coerceCID } from '../../utils.js'; export default { command: 'stat <key>', describe: 'Print information of a raw IPFS block', builder: { key: { type: 'string', coerce: coerceCID }, 'cid-base': { describe: 'Number base to display CI...
/*! * jQuery JavaScript Library v1.8.2 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2012 jQuery Foundation and other contributors * Released under the MIT license * http://jquery.org/license * * Date: Thu Sep 20 2012 21:13:05 GMT-0400 (Eastern Daylight Time) * Changed by ...
;(function (root) { 'use strict'; /**@amsave*/ var SAVEJSON = '{"timebar":{"currTime":582,"timescale":0.12,"length":816.6666666666665},"sequences":[{"type":"css_sequ_type","data":{"name":"#head","fill":"forward","iterations":1,"selectors":["#head"],"parameters":[{"name":"transform","keys":[{"value":{"tx":1...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getStats = void 0; var api_1 = require("../api"); function getStats(options) { return api_1.RightConsents.http({ method: "GET", url: "".concat(api_1.RightConsents.config.apiRoot, "/stats"), options: options, }); } expor...
import { Meteor } from 'meteor/meteor'; import { TAPi18n } from 'meteor/tap:i18n'; import { RocketChat } from 'meteor/rocketchat:lib'; Meteor.methods({ 'jitsi:updateTimeout': (rid) => { if (!Meteor.userId()) { throw new Meteor.Error('error-invalid-user', 'Invalid user', { method: 'jitsi:updateTimeout' }); } ...
sap.ui.define(['sap/ui/webc/common/thirdparty/base/types/Float', 'sap/ui/webc/common/thirdparty/base/i18nBundle', 'sap/ui/webc/common/thirdparty/base/Keys', './SliderBase', './generated/templates/RangeSliderTemplate.lit', './generated/i18n/i18n-defaults'], function (Float, i18nBundle, Keys, SliderBase, RangeSliderTempl...
import io, os, sys, types import nbformat from IPython.core.interactiveshell import InteractiveShell # This tool allows importing .ipynb files in other ipthon notebooks. # Simply type 'import thing' and it will look for thing.ipynb and # import it. def find_notebook(fullname, path=None): """find a not...
import url from 'url'; import 'isomorphic-fetch'; function reject(val) { throw new Error(val); } function status(response) { if (response.status >= 200 && response.status < 300) return response; return response.json().then((data, err) => { if (err) { return response.text().then(reject); } retu...
(this["webpackJsonpergo-template"]=this["webpackJsonpergo-template"]||[]).push([[5],{248:function(e,o){function n(e){var o=new Error("Cannot find module '"+e+"'");throw o.code="MODULE_NOT_FOUND",o}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id=248}}]); //# sourceMappingURL=5.533f67b2.chunk.js.map
import pandas as pd import tkinter as tk from tkinter import filedialog from data_structures import experiment import os Tk = tk.Tk() Tk.withdraw() def ask_path(): return filedialog.asksaveasfile(mode='w').name def df_to_excel(df, sheet_name='Sheet1'): ''' Uses pandas to always return a .xlsx file of th...
import React from "react" import { documentToReactComponents } from "@contentful/rich-text-react-renderer" const SinglePost = ({ post }) => { // Embedded images images in our blog post const options = { renderNode: { "embedded-asset-block": node => { const alt = node.data.target.fields.file["en-U...