text
stringlengths
3
1.05M
# # Copyright (c) 2019-2020 The Board of Trustees of the Leland Stanford Junior University # 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 abov...
(() => { 'use strict'; angular .module('Ekspedisi.ppn', [ 'ui.router', 'ui.bootstrap', 'swangular', 'datatables', ]).config(($stateProvider) => { $stateProvider .state('admin.ppn', { url: '/ppn', ...
function test(){ var props = ""; var tests = filter(isTest_, Object.keys(window)); var testsText = foldl(function(x, acc){ return acc + x + ", " }, tests, ""); var results = zip(tests, map(function(f){return window[f]()}, tests)); var failed = filter(function(arr){return !arr[1]}, results); var failedText =...
/*! ramp-theme-usability 13-11-2014 10:46:00 : v. 3.0.1 * * RAMP GIS viewer - Canada Goose; Sample of an implementation of RAMP with Usability Theme **/ define(["dojo/dom","dojo/_base/array","dojo/_base/Color","dojo/_base/lang","esri/config","esri/graphic","esri/tasks/GeometryService","esri/tasks/BufferParameters...
const xlsx = require('xlsx') const fs = require('fs') const TableDataCache = {} function LoadTable(filename, sheetIndex = 0) { const cachekey = `${filename}|${sheetIndex}` if (TableDataCache.hasOwnProperty(cachekey) == false) { const wb = xlsx.readFile(filename) const sheet = wb.Sheets[...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { enumerable: true, get: function () { return _createServer.default; } }); Object.defineProperty(expo...
# reference: https://github.com/open-mmlab/mmselfsup/tree/master/mmselfsup/models/algorithms # modified from mmselfsup byol.py import torch import torch.nn as nn from openmixup.utils import print_log from ..classifiers import BaseModel from .. import builder from ..registry import MODELS @MODELS.register_module cla...
import { createElement } from 'react'; import dynamic from 'dva/dynamic'; import { getMenuData } from './menu'; let routerDataCache; const modelNotExisted = (app, model) => ( // eslint-disable-next-line !app._models.some(({ namespace }) => namespace === model) ); // wrapper of dynamic const dynamicWrapper = (app...
const { GiConsoleController } = require("react-icons/gi"); const pool = require("../config/database.js"); const router = require("express").Router(); require("dotenv").config(); router.post("/login", (req, res) => { const { email, password } = req.body; pool.query( `SELECT * FROM users WHERE user_email=? AND ...
import React from 'react'; import SortableHeaderCell, {DEFINE_SORT} from '../SortableHeaderCell'; import { shallow } from 'enzyme'; const defaultProps = { columnKey: 'col1', column: { name: 'col1', key: 'col1' }, onSort: jasmine.createSpy(), sortDirection: DEFINE_SORT.NONE }; describe('<SortableHead...
import logger from 'morgan'; import express from 'express'; import cookieParser from 'cookie-parser'; import indexRouter from './routes/index'; const app = express(); app.use(logger('dev')); app.use(express.json()); app.use(express.urlencoded({ extended: true })); app.use(cookieParser()); app.use('/v1', indexRouter)...
import * as fetch from '../../lib/fetch/index.js'; import * as parse from '../../lib/parse.js'; import datetime from '../../lib/datetime/index.js'; import maintainers from '../../lib/maintainers.js'; import * as transform from '../../lib/transform.js'; import mapping from './mapping.json'; const scraper = { country...
# Copyright 2015 The Shaderc 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 applicable...
import ContactItem from './ContactItem'; import s from './ContactList.module.css'; import { useGetContactsQuery } from '../../services/phoneBookAPI'; import { useSelector } from 'react-redux'; import Loader from '../Loader/Loader'; export default function ContactList() { const filter = useSelector(state => state.fil...
const express = require("express"); const { createPageRenderer } = require("vite-plugin-ssr"); const vite = require("vite"); const isProduction = process.env.NODE_ENV === "production"; const root = `${__dirname}/..`; const base = isProduction ? "/dist/client/" : "/"; startServer(); async function startServer() { c...
import _extends from "@babel/runtime/helpers/extends"; import _slicedToArray from "@babel/runtime/helpers/slicedToArray"; import * as React from 'react'; import classNames from 'classnames'; import LoadingOutlined from '@ant-design/icons/LoadingOutlined'; import CloseCircleFilled from '@ant-design/icons/CloseCircleFill...
var callbackArguments = []; var argument1 = function (el) { callbackArguments.push(arguments) return el.num === 2 && el.char === 'B'; }; var argument2 = null; var argument3 = function () { callbackArguments.push(arguments) return true; }; var argument4 = r_1; var argument5 = function (doc) { callba...
Clazz.declarePackage ("JV"); Clazz.load (["java.lang.Enum", "javajs.api.PlatformViewer", "J.api.JmolViewer", "J.atomdata.AtomDataServer", "java.util.Hashtable"], "JV.Viewer", ["java.io.Reader", "java.lang.Boolean", "$.Character", "$.Float", "$.NullPointerException", "javajs.awt.Dimension", "JU.BS", "$.CU", "$.DF", "$....
wm.JsonRpcService.smdCache['runtimeService.smd'] = { "methods": [{ "name": "delete", "operationType": null, "parameters": [{ "name": "arg0", "type": "java.lang.String" }, { "name": "arg1", "type": "java.lang.String" }, { "name": "arg2", "type": "java.lang.Object" }], "returnType": null ...
describe('E2E: Views', function() { beforeEach(function() { browser().navigateTo('#/'); }); it('should load the home template', function() { expect( element('#emailTable').html() ).toContain('tbody'); }); it('should not load the dashboard template', function() { expect( element('...
//>>built (function(a,b){"object"===typeof exports&&"undefined"!==typeof module&&"function"===typeof require?b(require("../moment")):"function"===typeof define&&define.amd?define("moment/locale/mt",["../moment"],b):b(a.moment)})(this,function(a){return a.defineLocale("mt",{months:"Jannar Frar Marzu April Mejju \u0120un...
import { r as registerInstance, c as getContext, h, g as getElement } from './index-6b8c719e.js'; import { A as ActiveRouter } from './active-router-0c1a0411.js'; import { s as stripTrailingSlash, a as addLeadingSlash, h as hasBasename, b as stripBasename, c as createLocation, d as createKey, e as createPath, f as stri...
import os import shutil def create_notebooks(): wpth = ".working" if os.path.isdir(wpth): shutil.rmtree(wpth) os.makedirs(wpth) # copy the python files pth = os.path.join("..", "examples", "Tutorials") # get a list of python files py_files = [] for dirpath, _, filenames in os...
// Followed this: https://www.gatsbyjs.org/tutorial/part-seven/#creating-pages const path = require("path") exports.createPages = async ({ graphql, actions }) => { const { createPage } = actions const response = await graphql(` query { allContentfulBlogPost { edges { ...
"use strict"; // ========================= // // = Copyright (c) NullDev = // // ========================= // let fs = require("fs"); let path = require("path"); let { EOL } = require("os"); let { performance } = require("perf_hooks"); const CONTENT_READ = String(fs.readFileSync(path.join(__dirname, "input.txt"))).s...
"""Test an example.""" from . import main def test_main() -> None: """Ensure the demo matches expected.""" assert main() == "<div>Hello World</div>"
# Copyright 2015 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...
/** * Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org) Apache License, Version 2.0 http://www.apache.org/licenses/LICENSE-2.0 */ define(['require', 'elementUtils'], function (require, ElementUtils) { /** * @class Table * @constructor * @class Table Creates a Table ...
#!/usr/bin/env python # -*- encoding: utf-8 -*- # 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...
import styled from 'styled-components'; export const H2 = styled.h2` margin-top: 0; margin-bottom: 0.5rem; font-family: inherit; font-weight: 500; line-height: 1.2; color: inherit; font-size: 2rem; `;
import React, { Component } from "react"; import "./card.css"; import IndCard from "./IndCard"; import logo from "./24px.svg" ; class Carder extends Component{ render(){ return( <div className="screen"> <div className="mainCard"> <div style={{display:"flex",...
class sapi_onecore_spinprocrecognizer_1 { constructor() { } // System.Runtime.Remoting.ObjRef CreateObjRef(type requestedType) CreateObjRef() { } // bool Equals(System.Object obj) Equals() { } // int GetHashCode() GetHashCode() { } // System.Object GetLifetimeServi...
# AUTO GENERATED FILE - DO NOT EDIT from dash.development.base_component import Component, _explicitize_args class Div(Component): """A Div component. Keyword arguments: - children (a list of or a singular dash component, string or number; optional): The children of this component - id (string; optional): The ...
from __future__ import absolute_import, division, print_function import six import logging import os import json import numpy as np import torch from madminer.utils.ml import ratio_losses, flow_losses from madminer.utils.ml.models.maf import ConditionalMaskedAutoregressiveFlow from madminer.utils.ml.models.maf_mog i...
const SwaggerParser = require('swagger-parser'); const getError = (errorItem) => { if (errorItem.inner) { return { type: 'error', label: '#/' + errorItem.path.join('/'), title: errorItem.message, context: getInnerErrors(errorItem.inner) }; } return { type: 'error', label: '#/' + errorItem.path....
import { format, distanceInWords, differenceInDays } from 'date-fns' import React from 'react' import styled from 'styled-components' import { buildImageObj } from '../lib/helpers' import { imageUrlFor } from '../lib/image-url' import BlockContent from './block-content' import Container from './container' import RoleLi...
module.exports = { parser: '@typescript-eslint/parser', plugins: ['@typescript-eslint', 'notice'], parserOptions: { ecmaVersion: 9, sourceType: 'module', }, extends: [ 'plugin:react-hooks/recommended' ], /** * ESLint rules * * All available rules: http://esl...
# 27. 移除元素 # # 20200722 # huao # 用list最后的元素来填充被移除的val,从而避免所有剩余元素的移动 # 注意终止时count和last的关系 class Solution: def removeElement(self, nums: List[int], val: int) -> int: last = len(nums) - 1 count = 0 while count <= last: if nums[count] == val: nums[count] = nums[last]...
Ext.ns('Kwf.Utils'); /* By Osvaldas Valutis, www.osvaldas.info Available for use under the MIT License */ Kwf.Utils.DoubleTapToGo = function(el, params) { if (!('ontouchstart' in window) && !navigator.msMaxTouchPoints && !navigator.userAgent.toLowerCase().match( /windows phone os 7/i ) )...
/** * Mocha test for the model blueprints */ 'use strict' const itShouldGenerateCorrectly = require('./utils').itShouldGenerateCorrectly itShouldGenerateCorrectly('model-test', [ 'foo-bar' ])
import { Link, useColorModeValue } from "@chakra-ui/react"; import NextLink from "next/link"; import { useRouter } from "next/router"; const LinkItem = (props) => { const router = useRouter(); const active = router.pathname === props.href; const inactiveColor = useColorModeValue("gray200", "whiteAlpha.900"...
'use es6'; import { useEffect } from 'react'; const handleLocationError = (map, browserHasGeolocation, infoWindow, pos) => { infoWindow.setPosition(pos); infoWindow.setContent( browserHasGeolocation ? 'Error: The Geolocation service failed.' : "Error: Your browser doesn't support geolocation." )...
""" biosignalsnotebooks module responsible for loading data from the available signal samples (used on biosignalsnotebooks Notebooks). Available Functions ------------------- [Public] load_signal Function that returns a dictionary with the data contained inside a signal sample file (stored in the biosignalsno...
/** * Downloads card JSON data from https://squadbuilder.fantasyflightgames.com/api/cards/{id}/ and * stores them in ffgcards.json */ var https = require("https"); var fs = require("fs"); let cards = "https://x-wing-api.fantasyflightgames.com/cards/"; let metadata = "https://x-wing-api.fantasyflightgames.com/app-m...
'use strict';Object.defineProperty(exports,"__esModule",{value:true});var _MetricsController=require('./MetricsController');var _MetricsController2=_interopRequireDefault(_MetricsController);var _ManifestParsing=require('../utils/ManifestParsing');var _ManifestParsing2=_interopRequireDefault(_ManifestParsing);var _Metr...
export const sayHello = name => `sayHello:: Hello ${name}!`; export const sayBye = name => `sayBye:: Bye ${name}!`;
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2018-07-28 12:07 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('events', '0001_initial'), ] operations = [ migrations.AddField( mo...
const theme = require('./styleguidist.theme'); module.exports = { title: 'beautiful react hooks playground', /* eslint-disable global-require */ webpackConfig: require('./webpack.config.js'), /* eslint-enable global-require */ ignore: ['test/**/*.spec.{js,jsx}', 'node_modules', 'docs', 'test'], exampleMode...
import { exportDataGrid } from './exporter/exceljs/export_data_grid'; import { exportPivotGrid } from './exporter/exceljs/export_pivot_grid'; /** * @name excelExporter * @section utils */ export { exportDataGrid, exportPivotGrid };
const { NotImplementedError } = require('../extensions/index.js'); /** * Create a repeating string based on the given parameters * * @param {String} str string to repeat * @param {Object} options options object * @return {String} repeating string * * * @example * * repeater('STRING', { repeatTimes: 3, s...
"use strict"; var Unit = require('deadunit') var odiff = require('../odiff') require("../build") // build every you test so you don't forget to update the bundle Unit.test("Testing odiff", function() { //* this.test("simple value test", function() { var diffs = odiff(1,2) this.eq(diffs.len...
'use strict' // Template version: 1.3.1 // see http://vuejs-templates.github.io/webpack for documentation. const path = require('path') module.exports = { dev: { // Paths assetsSubDirectory: 'static', assetsPublicPath: '/', proxyTable: {}, // Various Dev Server settings host: 'localhost', ...
import Vue from 'vue' import Router from 'vue-router' import Note from '../components/Note' import NewNote from '../components/NewNote' import Login from '../components/Login' import Trash from '../components/Trash' Vue.use(Router); export default new Router({ mode: 'history', routes: [ { path: '/note',...
import pandas as pd import datetime from apscheduler.schedulers.background import BackgroundScheduler def round_datetime_to_minute(dt): dt = dt - datetime.timedelta(seconds=dt.second, microseconds=dt.microsecond) return dt class Occurrences: def __init__(self): self.update_graph = (lambda: print...
"use strict";function _interopDefault(t){return t&&"object"==typeof t&&"default"in t?t.default:t}Object.defineProperty(exports,"__esModule",{value:!0});var _extends=_interopDefault(require("@babel/runtime/helpers/extends")),_objectWithoutPropertiesLoose=_interopDefault(require("@babel/runtime/helpers/objectWithoutPrope...
var Backend = require('../../lib/backend'); var expect = require('chai').expect; var MemoryDb = require('../../lib/db/memory'); var MemoryMilestoneDb = require('../../lib/milestone-db/memory'); var sinon = require('sinon'); var async = require('async'); var json0v2 = require('ot-json0-v2').type; var types = require('.....
var app = getApp() Page({ data: { orderLists: [], pages: 1, types: { // 只有一种商品订单时,types保存商品订单的五个分类 // 订单状态 0待付款 1待发货 2待收货 3待评价 4退款审核 5退款中 6成功 7关闭 0: [undefined, 0, 1, 2, 3], // 电商 1: [undefined, 0, 1, 2, 3], // 预约 2: [undefined, 0, 6, 7], // 外卖 3: [undefi...
function main() { let v32 = 0; const v33 = v32 + 1; v32 = v33; const v38 = [13.37]; with (v38) { } } %NeverOptimizeFunction(main); main();
import React, { useContext } from 'react'; import { View, ViewPropTypes } from 'react-native'; import PropTypes from 'prop-types'; import { Text } from './Text'; import { ThemeContext } from '../../theme'; const formatPrice = (price, currencyRate) => parseFloat((price * currencyRate).toFixed(2)); /** * Component to ...
'use strict'; require('dotenv').config() const APIAI_TOKEN = process.env.APIAI_TOKEN; const APIAI_SESSION_ID = process.env.APIAI_SESSION_ID; const express = require('express'); const app = express(); app.use(express.static(__dirname + '/views')); app.use(express.static(__dirname + '/public')); const server = app.l...
import torch import torch.nn as nn from torch.nn.utils.rnn import pad_sequence from torch.utils.data import DataLoader from torchtext.datasets import Multi30k from torchtext.data import Field, BucketIterator from torchtext.vocab import Vocab from torchtext.data.utils import get_tokenizer import spacy import numpy as ...
import "./App.css"; import React from "react"; import Navigation from "./components/Navigation"; import TasteFinder from "./components/TasteFinder" function App() { return ( <div className="App"> <Navigation /> <TasteFinder /> <div id="shopTop" alt=""/...
import {CreateCoinTxParams} from '~/src'; import {ENV_DATA, minterGate, minterNode} from './variables'; beforeAll(async () => { // ensure custom coin exists const txParams = new CreateCoinTxParams({ privateKey: ENV_DATA.privateKey, chainId: 2, coinName: ENV_DATA.customCoin, coin...
# -*- coding: utf-8 -*- from poke_env.environment.battle import Battle from poke_env.player.player import Player from unittest.mock import MagicMock class SimplePlayer(Player): def choose_move(self, battle): return self.choose_random_move(battle) def test_player_default_order(): assert SimplePlayer...
import coxSymbols from "../utils/symbols"; import generateEffect from "../generateEffect"; import generateEffectProps from "../generateEffectProps"; export default generateEffectProps((options) => generateEffect(coxSymbols.call, options));
/*! UIkit 3.7.6 | https://www.getuikit.com | (c) 2014 - 2021 YOOtheme | MIT License */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define("uikit",e):(t="undefined"!=typeof globalThis?globalThis:t||self).UIkit=e()}(this,function(){"use str...
const { Client, Message } = require('discord.js') const { ownerID } = require('../../config.json') module.exports = { name: 'reload', /** * @param {Client} client * @param {Message} message * @param {String[]} args */ run: async(client, message, args) => { if(owne...
/** * @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 */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory() : typeof define ==...
/* * CKFinder * ======== * http://ckfinder.com * Copyright (C) 2007-2012, CKSource - Frederico Knabben. All rights reserved. * * The software, this file, and its contents are subject to the CKFinder * License. Please read the license.txt file before using, installing, copying, * modifying, or distribut...
(function (global) { 'use strict'; var LIB_METHODS = ['setItem', 'getItem', 'hasItem', 'removeItem', 'getKeys', 'getLength', 'clear']; var CONFIGURABLE_PROPS = ['dbName', 'storeName', 'defaultType']; var TYPE_DB = 'db'; var TYPE_LS = 'ls'; var TYPE_AUTO = 'auto'; var TR_READ_WRITE = 'read...
/** * Copyright 2018 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...
/** * @license Copyright 2016 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 required by applicable law or a...
/* exported deleteDependencyModal, cancelCodeComment, onOAuthLoginClick */ import './publicpath.js'; import Vue from 'vue'; import {htmlEscape} from 'escape-goat'; import 'jquery.are-you-sure'; import './vendor/semanticdropdown.js'; import initMigration from './features/migration.js'; import initContextPopups from '...
/* IMPORT */ import {describe} from 'fava'; import {isFinite} from '../dist/index.js'; import {args, realm} from './_utils.js'; /* MAIN */ describe ( 'isFinite', test => { test ( 'should return "true" for finite numbers', t => { t.true ( isFinite ( -100 ) ); t.true ( isFinite ( 0 ) ); t.true ( isFin...
'use strict'; const chai = require('chai'); const overrideEnv = require('process-utils/override-env'); const Invoke = require('../../../../lib/plugins/invoke'); const Serverless = require('../../../../lib/Serverless'); chai.use(require('chai-as-promised')); const expect = chai.expect; describe('Invoke', () => { l...
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vega-dataflow'), require('vega-util'), require('d3-collection'), require('d3-hierarchy')) : typeof define === 'function' && define.amd ? define(['exports', 'vega-dataflow', 'vega-util', 'd3-collectio...
/* Copyright 2016 OpenMarket Ltd 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 ...
#!/usr/bin/env python2 from __future__ import print_function import roslib import sys import rospy import numpy as np import datetime import time from geometry_msgs.msg import PoseArray from geometry_msgs.msg import Pose from dse_msgs.msg import PoseMarkers from std_msgs.msg import Float64MultiArray from std_msgs.msg i...
import React from "react"; import ScrollBarBox from '../../../../ScrollBarBox/ScrollBarBox' function BrandBox(props) { return ( <div> <h3>BrandBox</h3> <ScrollBarBox/> </div> ); } export default BrandBox;
'use strict'; // https://github.com/tc39/proposal-iterator-helpers var $ = require('../internals/export'); var call = require('../internals/function-call'); var aCallable = require('../internals/a-callable'); var anObject = require('../internals/an-object'); var getIteratorMethod = require('../internals/get-iterator-me...
module.exports={A:{A:{"2":"L H G A B jB","16":"E"},B:{"2":"C D d K I N J BB"},C:{"2":"0 1 3 5 6 7 8 9 gB IB L H G E A B C D d K I N J P Q R S T U V W X Y Z a b c e f g h i j k l m n o M q r s t u v w x y z AB CB DB EB O GB HB aB ZB","16":"2 F"},D:{"2":"0 1 2 3 5 6 7 8 9 F L H G E A D d K I N J P Q R S T U V W X Y Z a b...
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(t=t||self).LazyLoad=n()}(this,(function(){"use strict";function t(){return(t=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.pro...
from pyparsing import * EOL = Forward() QUOTE = Forward() COMMA = Forward() POINT = Forward() LPAREN = Forward() RPAREN = Forward() LBRACE = Forward() RBRACE = Forward() LBRACKET = Forward() RBRACKET = Forward() SLASH = Forward() DASH = Forward() COLON = Forward() APOS = Forward()
import * as React from 'react'; import { status } from '@findable/adf-schema'; import StatusIcon from '@findable/icon/glyph/status'; import { findDomRefAtPos } from 'prosemirror-utils'; import createStatusPlugin, { pluginKey, } from './plugin'; import WithPluginState from '../../ui/WithPluginState'; import StatusPicker...
#!/usr/bin/env python3 """ Programmer: Chris Blanks Last Edited: May 2019 Project: Automated Self-Serving System Purpose: This script defines the EmployeeWindow Class. """ import tkinter as tk from tkinter import messagebox import os #ThirdParty Libraries from tkcolorpicker import askcolor #pip3 install tkcolorpicker...
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import getpass import glob import hashlib import netrc import os import platform import sh import shlex import shutil i...
# Fallowing command is used to upload to pipy # python setup.py register sdist upload # Always prefer setuptools over distutils from os import path from setuptools import setup, find_packages here = path.abspath(path.dirname(__file__)) setup( name="pythontemplate", description="", # Versions should com...
from ast import Assign, Constant, Import, ImportFrom, List, Module, Name, Str from enum import IntEnum from functools import total_ordering from stdlib_list import in_stdlib class AlphabetizeException(Exception): pass class Alphabetize: name = "alphabetize" def __init__(self, tree): self.tree ...
# -*- coding: utf-8 -*- import os import sys import re import time import getpass import warnings import scrapy from inline_requests import inline_requests from loguru import logger from src.extra import utils warnings.filterwarnings("ignore") def get_paths(workdir, *args): return ( os.path.join(work...
require("ts-node").register({ fast: true }); module.exports = require("./webpack.config.ts").default;
let cep = document.querySelector("#cep"); let rua = document.querySelector("#rua"); let cidade = document.querySelector("#cidade"); let bairro = document.querySelector("#bairro"); let UF = document.querySelector("#UF"); cep.onkeyup = async (event) => { if (cep.value.length == 8) { console.log("Faz a pesquisa na ...
var Tiler = require('map-the-tiles'), SphericalMercator = require('sphericalmercator'), baseURL = 'http://tile.openstreetmap.org', tilesContainerDiv, size, merc, tiler; // get map window size tilesContainerDiv = document.getElementById('tilesContainer'); size = { height: parseInt(tilesContainerDiv.clientHeight...
/* * web: customPage.js * XNAT http://www.xnat.org * Copyright (c) 2005-2017, Washington University School of Medicine and Howard Hughes Medical Institute * All Rights Reserved * * Released under the Simplified BSD. */ /*! * Retrieve custom pages via AJAX * Used in: /xnat-templates/screens/Page.vm */ var XN...
var question = [ { question: "Commonly used data types DO NOT include:", choices: [ "1.string", "2.booleans", "3.alerts", "4.numbers"], answer: "alert", }, { question: "The conditions in an if/else statement is enclosed with ____.", choices: [ "curly"...
import { h } from 'vue' export default { name: "TvFill", vendor: "B", type: "", tags: ["tv","fill"], render() { return h( "svg", {"xmlns":"http://www.w3.org/2000/svg","width":"16","height":"16","fill":"currentColor","class":"v-icon","viewBox":"0 0 16 16","data-name":"b-tv-fill","innerHTML":" ...
# -*- coding: utf-8 from __future__ import unicode_literals import os import json import time import types import codecs import shutil import argparse import tempfile import unittest try: from StringIO import StringIO except ImportError: from io import StringIO from fragments import commands, __version__ from...
// Copyright 2019 Google 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 ...
import { fetchBin } from "https://js.sabae.cc/fetchBin.js"; const url = "https://www.fdma.go.jp/disaster/coronavirus/items/coronavirus_data.xlsx"; const bin = await fetchBin(url); const fn = "emergencytransport_difficult.xlsx"; await Deno.writeFile(fn, bin); console.log("downloaded " + fn);
# encoding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor from ..utils import int_or_none class AftonbladetIE(InfoExtractor): _VALID_URL = r'https?://tv\.aftonbladet\.se/abtv/articles/(?P<id>[0-9]+)' _TEST = { 'url': 'http://tv.aftonbladet.se/abtv/articles/36015', ...
import React, { useState } from "react"; // reactstrap components import { Card, CardBody, CardHeader, CardTitle, Input, Table, } from "reactstrap"; function ImpactType(props) { const [globalInfo, setGlobalInfo] = useState([]); let depth = Array.from( { length: props.maxWaterDepth / 10 }, (_, ...