text
stringlengths
3
1.05M
import datetime import importlib import json import os import pandas as pd import pytz import time PERIODS = { "1d": 1, "1h": 24, "4h": 6, "6h": 4, "8h": 3 } DATE_FORMAT="%Y-%m-%dT%H:00:00.000Z" def required_months(month, window_size, period): days = window_size / PERIODS[period] months ...
var searchData= [ ['traverse_106',['traverse',['../a05373.html#a4096ce5b5f39c70a978dd0857467e47a',1,'List::dLinkList::traverse()'],['../a05389.html#a69a3ac0477a4f393839bfa406b4d8b20',1,'List::List::traverse()'],['../a05401.html#affba23822064046e5f5dddc1d8eae1e0',1,'List::seqList::traverse()'],['../a05413.html#ad6261c...
'use strict'; module.exports = app => { const response = app.buildRichResponse(); let format = app.getArgument('ImageDisplay'); if (format === null) { format == 'DEFAULT'; } console.warn(format); response.addSimpleResponse(format); response.addBasicCard( app .buildBasicCard(format) ....
import demo.cards2 # target=//demo/cards2:cards2 import demo.cards2_test # target=//demo/cards2_test:cards2_test import demo.cards2_test # target=//demo/cards2_test:cards2_test ########## End Imports ########## class PileTest(demo.cards2_test.TestCase): """Auto-generated test class for demo.cards2.Pile""" __...
"use strict"; /* Generated from: * ap-northeast-1 (https://d33vqc0rt9ld30.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 2.5.0, * ap-northeast-2 (https://d1ane3fvebulky.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 2.5.0, * ap-northeast-3 (https://d2zq80...
module.exports={D:{"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0.030635,"26":0,"27":0.006127,"28":0,"29":0,"30":0,"31":0.079651,"32":0.006127,"33":0.018381,"34":0.024508,"35":0,"36":0.012254,"37":0,"38":0.012254,"39":0...
const generatePageNotion = (data, { notionKey, databaseId }) => { const page = { notionkey: notionKey, data: { parent: { database_id: databaseId, }, icon: { type: 'external', external: { url: data.image, }, }, properties: { Status...
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const NullDependency = require("./NullDependency"); const webpackMissingModule = require("./WebpackMissingModule").module; class UnsupportedDependency extends NullDependency { constructor(request, range) ...
import baseConfig from './default' import config from './bsc-testnet' import moment from 'moment-with-locales-es6' export default { env: 'development', entry: 'testnet', local: 'online', binance: true, base: `http://${baseConfig.http.host}:${baseConfig.http.port}/`, publicPath: `http://${baseConfig.http....
"use strict"; /* Generated from: * ap-northeast-1 (https://d33vqc0rt9ld30.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 39.2.0, * eu-west-1 (https://d3teyb21fexa9r.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json), version 39.2.0, * us-east-1 (https://d1uauaxba7bl26...
var searchData= [ ['next',['next',['../classsf_1_1_utf_3_018_01_4.html#a0365a0b38700baa161843563d083edf6',1,'sf::Utf< 8 >::next()'],['../classsf_1_1_utf_3_0116_01_4.html#ab899108d77ce088eb001588e84d91525',1,'sf::Utf< 16 >::next()'],['../classsf_1_1_utf_3_0132_01_4.html#a788b4ebc728dde2aaba38f3605d4867c',1...
var structorx_c_l_o_c_k___i_n_f_o = [ [ "afModifierList", "structorx_c_l_o_c_k___i_n_f_o.html#a3cbc9ce0ca215192537bf07d51191974", null ], [ "fDT", "structorx_c_l_o_c_k___i_n_f_o.html#adefcf726b9f7e39542f92ca0e5f76655", null ], [ "fTickSize", "structorx_c_l_o_c_k___i_n_f_o.html#abdaa9e19892ffab521b387be34d3e...
/* * Developed by Gleb Iakovlev on 5/3/19 9:09 PM. * Last modified 4/29/19 8:18 PM. * Copyright (c) Cognoteq Software Solutions 2019. * All rights reserved */ import Base from './base'; /** * * @submodule games * */ const INITIAL_DELAY = 2.5; let targets = []; let pressed = {}; let keys = ['y', 'g', 'v']; //...
import React from "react" import styled from "styled-components" import gif from "../images/avatar.gif" import Wave from "./Wave" const SectionGroup = styled.div` margin: 100px 0 0; background: url(${props => props.image}); background-size: cover; height: 720px; display: grid; grid-template-rows: 300px aut...
# # Copyright 2018 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 writing...
import React from 'react'; import styles from './styles'; import { withStyles } from '@material-ui/core/styles'; class ChatViewComponent extends React.Component { componentDidUpdate = () => { const container = document.getElementById('chatview-container'); if(container) container.scrol...
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
describe('Vue component that shows dialogs (modal) on a page', () => { it('Opens and closes modals', () => { // make sure we're testing on desktop since the emergency modal isn't a modal on mobile cy.viewport(1300, 750); cy.visit('/portal/BD.1.2-make-a-payment-1.html'); // clicking on the dialog ope...
/******************************************************************************** * generated by de.acegen ********************************************************************************/ import Action from "../../ace/AsynchronousAction"; import UpdateCardPriorityCommand from "../../../src/box/commands/UpdateCar...
Object.defineProperty(exports, "__esModule", { value: true }); var frame_1 = require("ui/frame"); var app = require("application"); var platform_1 = require("platform"); var color_1 = require("color"); var ActionBarUtil = (function () { function ActionBarUtil() { } ActionBarUtil.SET_TITLE = function (title)...
$(function() { alert("Alert Test"); });
(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.ethers = f()}}...
ml.module('three.core.Vector4') .requires('three.Three') .defines(function(){ /** * @author supereggbert / http://www.paulbrunt.co.uk/ * @author philogb / http://blog.thejit.org/ * @author mikael emtinger / http://gomo.se/ * @author egraether / http://egraether.com/ * @author WestLangley / http://github.com/WestL...
const fs = require('fs'); const path = require('path'); const xcode = require('xcode'); const chalk = require('chalk'); const utilities = require('../lib/utilities'); /** * This is used as the display text for the build phase block in XCode as well as the * inline comments inside of the .pbxproj file for the build s...
const User = require('../models/User'); const { hash, compare } = require('bcrypt'); //TODO add all fields required by the exam async function register(email, password, gender) { const existing = await getUserByEmail(email); if (existing) { throw new Error('Email is taken') } const hashedPass...
// Themes begin am4core.useTheme(am4themes_animated); // Themes end // Create chart instance var chart = am4core.create("chartdiv", am4charts.RadarChart); var data = [ { category: "No poverty", value: 260 }, { ...
/*********************************************************************** Write a function named `spreadItOut(array1, array2)` that accepts two arrays and uses *spread operator* syntax to return a single array. Examples: spreadItOut([3,5,6], [1,2,3]); // => [3,5,6,1,2,3]; spreadItOut([], [1,2,3]); // => 14; spreadIt...
var boolbase = { trueFunc: function trueFunc(){ return true; }, falseFunc: function falseFunc(){ return false; } }; export default boolbase;
import { resolve } from 'rsvp'; import { module } from 'qunit'; import startApp from '../helpers/start-app'; import destroyApp from '../helpers/destroy-app'; import { setResolverRegistry } from './resolver'; import QUnitTestAdapter from './qunit-test-adapter'; import Ember from 'ember'; export default function(name, o...
import React from 'react' import styled from 'styled-components' import { Formik, Form } from 'formik' import Layout from 'components/layout/layout' import { localize, WithIntl } from 'components/localization' import { Container, SEO } from 'components/containers' import { Header, Text } from 'components/elements' impo...
'use strict'; export const TAB_ID_KEY = 'tabId'; export const TIMESTAMP_KEY = 'timestamp'; export const MESSAGE_TYPE_KEY = 'messageType'; export const MESSAGE_TYPE_POPUP_TO_BACKGROUND = 'popup2background'; export const MESSAGE_TYPE_BING_TO_BACKGROUND = 'bing2background'; export const MESSAGE_TYPE_CONTENT_SCRI...
var list; var input; var mean; var median; var mode; var k; // Mean function arithmeticMean(array){ const sumList = array.reduce( function (valorAcumulado = 0, nuevoElemento) { return valorAcumulado + nuevoElemento; } ); const average = sumList / array.length; return average; } // Median functio...
'use strict'; var DataNodeBase = require('./DataNodeBase'); /** * @constructor * @extends DataNodeBase */ var DataNodeLeaf = DataNodeBase.extend('DataNodeLeaf', { /** * @memberOf DataNodeLeaf# * @param {string} key */ initialize: function(key) { this.hasChildren = false; }, ...
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Tests for L{twisted.python.monkey}. """ from __future__ import division, absolute_import from twisted.trial import unittest from twisted.python.monkey import MonkeyPatcher class TestObj: def __init__(self): self.foo = 'foo valu...
#!/usr/bin/env python # -*- coding: utf-8 -*- import simplejson as json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipaySecurityProdFacepayVerifyModel import AlipaySecurityProdFacepayVerifyModel class AlipaySecurityProdFacepayVerify...
#!/usr/bin/env python """ FCKeditor - The text editor for Internet - http://www.fckeditor.net Copyright (C) 2003-2009 Frederico Caldeira Knabben == BEGIN LICENSE == Licensed under the terms of any of the following licenses at your choice: - GNU General Public License Version 2 or later (the "GPL") http://www.gnu.or...
$(document).on('change','select[name="campusAppSelect"], select[name="idiomaAppSelect"]',function(){ var results = $(this).attr('results'); var route = $(this).attr('url'); var thisName = $(this).attr('name'); var inputData = {}; var token = $('#'+thisName).find('input[name="_token"]').val(); var smallBox...
'use strict'; // 获取全局应用程序实例对象 // const app = getApp() var tcity = require('../../utils/city'); // 创建页面实例对象 Page({ /** * 页面的初始数据 */ data: { title: 'businessCooperation', // 地区选择相关 provinces: [], province: '', citys: [], city: '', countys: [], ...
macDetailCallback("c4ffbc200000/28",[{"a":"85, Sec.4, Chung-Ching Rd., Ta-Ya District Taichung TW 428","o":"Mobiletron Electronics Co., Ltd","d":"2017-10-22","t":"add","s":"ieee","c":"TW"}]);
import entries from 'object.entries'; import slug from 'slugg'; import ref from '@mapbox/mapbox-gl-style-spec/reference/latest'; import { layerTypes, groupedExpressions } from './types'; /* This object powers the sidebar navigation for the Style Specification page. IMPORTANT: Match the heading (h2, h3) and <Property> ...
from tests.package.test_python import TestPythonPackageBase class TestPythonPy2Subprocess32(TestPythonPackageBase): __test__ = True config = TestPythonPackageBase.config + \ """ BR2_PACKAGE_PYTHON=y BR2_PACKAGE_PYTHON_SUBPROCESS32=y """ sample_scripts = ["tests/package/samp...
/** * ************************************ * * @module store.js * @author * @date * @description Redux 'single source of truth' * * ************************************ */ import { createStore, applyMiddleware } from 'redux'; import { composeWithDevTools } from 'redux-devtools-extension'; import thunk from '...
""" Ensure that we can use pathlib.Path objects in all relevant IO functions. """ import sys from pathlib import Path import numpy as np import scipy.io import scipy.io.wavfile from scipy._lib._tmpdirs import tempdir import scipy.sparse class TestPaths: data = np.arange(5).astype(np.int64) def test_savemat...
from jinfo.tables import DNA_VOCAB, AA_VOCAB class BaseAlignment: """ Iterator which holds sequence alignments and the respective sequence labels """ def __init__( self, aligned_sequences: list, labels: list = None, vocab: set = None ) -> None: self.seqs = aligned_sequences ...
/* * @name Video Pixels * @frame 320,240 * @description <p>Load a video, manipulate its pixels and draw to canvas. * <p><em><span class="small"> To run this example locally, you will need the * <a href="http://p5js.org/reference/#/libraries/p5.dom">p5.dom library</a> * at least one video file, and a running <a hr...
// Add _ownerId to every study var users = db.user.find({projects: {$exists: true, $ne: []}}, {"projects.id": 1}); for (var i = 0; i < users.length(); i++) { var user = users[i]; var projectIds = []; for (var j = 0; j < user.projects.length; j++) { projectIds.push(user.projects[j].id); } /...
const path = require('path') var prod = process.env.NODE_ENV === 'production' module.exports = { target: 'dist', source: 'src', wpyExt: '.wpy', eslint: true, cliLogs: !prod, web: { htmlTemplate: path.join('src', 'index.template.html'), htmlOutput: path.join('web', 'index.html'), jsOutput: path....
import requests import json from requests.auth import HTTPBasicAuth import pandas as pd from io import StringIO from urllib.parse import urljoin class ScienceServerApi: _token = None _enviroments = { "localhost": "http://localhost/dri/api/", "linea-dev": "https://scienceserver-dev.linea.gov....
from io import open import urllib2 from bs4 import BeautifulSoup import re import urlparse import time import numpy as np class Get(object): def __init__(self): self.tag = set() self.links = set() def iniPar(self, url) : # proxies = {'http':'http://10.10.10.10:8765','h...
import React from 'react' import PropTypes from 'prop-types' class Background extends React.Component { static propTypes = { backgroundState: PropTypes.string } constructor(props) { super(props) this.state = { backgroundState: this.props.backgroundState } } render() { return ( ...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri May 14 08:30:06 2021 @author: argenta """ import sympy as sp x, y, z, l, E, A, Ao, t, nu = sp.symbols('x, y, z, l, E, A, Ao, t, nu') t_w, b, t_f, b_f, h = sp.symbols('t_w, b, t_f, b_f, h') #h é a distância entre faces internas de mesas #derivadas das...
module.exports={A:{A:{"2":"O D G E A B lB"},B:{"1":"M KB N R YB T PB","2":"C I F P J K L"},C:{"2":"0 1 2 3 4 5 6 7 8 9 vB OB H Y O D G E A B C I F P J K L Z a b c d e f g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB NB GB HB IB JB Q LB FB W V U QB RB kB jB","260":"SB TB UB VB WB M KB N sB R"},D:{"1":"SB TB UB V...
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for `panw_utils` package.""" import unittest from panw_utils import panw_utils class TestPanw_utils(unittest.TestCase): """Tests for `panw_utils` package.""" def setUp(self): """Set up test fixtures, if any.""" def tearDown(self): ...
// @noflow import * as React from 'react' import {is, launch} from 'effector' import { useStore as commonUseStore, useStoreMap as commonUseStoreMap, } from './useStore' import {useList as commonUseList} from './useList' class Defer { constructor() { this.req = new Promise((rs, rj) => { this.rs = rs ...
import copy import torch.nn as nn from .base import Stem, Head, MBConv from .util import make_divisible class efficientnetv2(nn.Module): def __init__(self, cfg, num_classes=1000): super().__init__() self.cfg = copy.deepcopy(cfg) out_ch = make_divisible(self.cfg['out_ch'] * self.cfg['width...
'use strict' var assert = require('assert') //------ AWS ----------- process.env.AWS_EXECUTION_ENV = 'AWS_Lambda_nodejs6.10' process.env.LAMBDA_TASK_ROOT = '/var/task' var isServerless = require('../') assert(isServerless.result) assert.equal(isServerless.whichOne,'AWS')
import datetime import json import logging import os import secrets import time import warnings from logging import Logger from pathlib import Path from typing import Any, Dict, List, Optional from unittest import TestCase import boto3 import pytz from mypy_boto3_sqs.type_defs import MessageTypeDef from .index import...
import discord from discord.ext import commands class Errors(commands.Cog): """Error messages""" pass @commands.Cog.listener() async def on_command_error(self, ctx, error): if isinstance(error, commands.errors.MissingRequiredArgument): msg = discord.Embed() ...
import React, { Component } from 'react' import {Card,Button} from 'react-bootstrap' export class GameCard extends Component { render() { return ( <Card style={{ width: '18rem',margin:"1rem 0" }}> <Card.Img variant="top" src={this.props.item.img} /> <Card.Bod...
"""SRGAN model. Photo-Realistic Single Image Super-Resolution Using a Generative Adversarial Network https://arxiv.org/pdf/1609.04802.pdf """ from tensorflow.python.keras.layers import Add, BatchNormalization, Conv2D, Dense, Flatten, Input, LeakyReLU, PReLU, Lambda from tensorflow.python.keras.models import Model im...
module.exports = (serverSocket) => function setAnswerReviewState({ answer = [], roomID, state, username, }) { const { WS__MSG_TYPE__ANSWER_REVIEW_STATE_UPDATED } = require('../../constants'); const room = serverSocket.getRoom(roomID); const { public: { users } } = room.data; room.data.public.blackCardA...
//// [declareDottedExtend.ts] declare module A.B { export class C{ } } import ab = A.B; class D extends ab.C{ } class E extends A.B.C{ } //// [declareDottedExtend.js] var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __()...
import { nanoid } from 'nanoid'; // HEAD DATA export const headData = { title: 'John Wang | Full Stack Developer', // e.g: 'Name | Developer' lang: 'en', // e.g: en, es, fr, jp description: 'My Portfoliio', // e.g: Welcome to my website }; // HERO DATA export const heroData = { title: 'Hello my name is', na...
# ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ import abc import functools import time try: from typing import TYPE_CHECKING except ImportError: TYPE_CHECKING = False from msal import TokenCache from msal.o...
/* * Copyright (c) 2011 Yahoo! Inc. All rights reserved. */ YUI.add('RouteParamsBinderIndex', function(Y, NAME) { Y.namespace('mojito.binders')[NAME] = { /** * Binder initialization method, invoked after all binders on the page * have been constructed. */ init: function(...
import { JSONPatchOTAgent } from '../../src/json-patch-ot-agent.js'; var obj; describe("JSONPatchOTAgent features:", function(){ describe("JSONPatchOTAgent instance", function () { var noop = function(){}; describe("when sends a JSON Patch", function () { var agent; beforeEach(function () { agent =...
# Author: Mathieu Blondel <mathieu@mblondel.org> # Arnaud Joly <a.joly@ulg.ac.be> # Maheshakya Wijewardena <maheshakya.10@cse.mrt.ac.lk> # License: BSD 3 clause import warnings import numpy as np import scipy.sparse as sp from .base import BaseEstimator, ClassifierMixin, RegressorMixin from .base impo...
module.exports = class L2Table { constructor () { this.table = new Map(); } setPort (addr, port) { this.table.set(addr, port); } getPort (addr) { return this.table.get(addr); } delPort (addr) { this.table.delete(addr); } };
import React from 'react'; import clsx from 'clsx'; import PropTypes from 'prop-types'; import { makeStyles } from '@material-ui/styles'; import { Card, CardContent, Grid, Typography, Avatar } from '@material-ui/core'; import ArrowDownwardIcon from '@material-ui/icons/ArrowDownward'; import MoneyIcon from '@material-ui...
/** * This represents a basic REST implementation of a resource using Orango. * The Resource model is in "strict" mode and will filter out all undeclared. */ const orango = require('orango') const app = require('../app') const Resource = orango.model('Resource') const User = orango.model('User') /** * Create resou...
import styled from 'styled-components'; export const Container = styled.div` width: 100%; max-width: 740px; margin: 64px auto; display: flex; align-items: center; flex-direction: column; `;
import { createVue, triggerEvent, destroyVM } from '../util'; const DELAY = 10; const testDataArr = []; const toArray = function(obj) { return [].slice.call(obj); }; const getTestData = function() { return [ { id: 1, name: 'Toy Story', release: '1995-11-22', director: 'John Lasseter', runtime: 80 }, { id:...
module.exports = ['https://www.amazon.com/Best-Sellers-Amazon-Device-Adapters-Connectors/zgbs/amazon-devices/17942903011/','https://www.amazon.com/Best-Sellers-Amazon-Device-Audio-Accessories/zgbs/amazon-devices/1289283011/','https://www.amazon.com/Best-Sellers-Amazon-Device-Bases-Stands/zgbs/amazon-devices/16956974011...
import logging import multiprocessing from riptide import TimeSeries, ffa_search, find_peaks log = logging.getLogger('riptide.worker_pool') class WorkerPool(object): """ deredden_params : dict range_confs : list of dicts List of dicts from the 'ranges' section of the YAML config file loade...
/*jsl:ignore*/ /* * Globalize Culture id * * http://github.com/jquery/globalize * * Copyright Software Freedom Conservancy, Inc. * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * This file was generated by the Globalize Culture Generator * Translation: bugs found in this...
"use strict"; let fileUtils = require("././util/fileUtils"); let stringUtils = require("././util/stringUtils"); let jsonUtils = require("././util/jsonUtils"); const newLine = /\r?\n/; const defaultFieldDelimiter = ";"; class CsvToJson { formatValueByType() { this.printValueFormatByType = true; return this;...
""" Base class for a Noon line. """ from .entity import NoonEntity import asyncio from typing import Dict import logging from .const import Guid from .entity import NoonEntity from .event import NoonEvent from .exceptions import NoonInvalidJsonError _LOGGER = logging.getLogger(__name__) LINE_STATE_ON = "on" LINE_STA...
export default { 'allContent---docusaurus-debug-content-246-9aa': [() => import(/* webpackChunkName: 'allContent---docusaurus-debug-content-246-9aa' */ "~debug/default/docusaurus-debug-all-content-673.json"), "~debug/default/docusaurus-debug-all-content-673.json", require.resolveWeak("~debug/default/docusaurus-debug-...
from django.db import models import datetime as dt from django.contrib.auth.models import User from tinymce.models import HTMLField from vote.models import VoteModel from vote.managers import VotableManager # Create your models here. class Profile(models.Model): photo = models.ImageField(upload_to='images', b...
import getScaleFactor from './getScaleFactor'; describe('Utils : getScaleFactor', () => { test('Correct values', () => { expect(getScaleFactor(0.5, 10, 10, 20, 20)).toBe(1); expect(getScaleFactor(0.1, 10, 10, 20, 20)).toBe(0.2); expect(getScaleFactor(0.1, 1, 10, 20, 20)).toBe(0.2); expect(getScaleFac...
from matplotlib import cm import openmesh as om import numpy as np __all__ = ['colormap_vertex_color'] def colormap_vertex_color(fn, v0, f0, scalar_field, scalar_min=None, scalar_max=None): if scalar_min is None and scalar_max is None: field = scalar_field.copy() else: ...
var mysql = require('mysql') const jwt = require('jsonwebtoken') const {decode} = require("jsonwebtoken"); const nodemailer = require("nodemailer"); var pool = require('./mysqlConnector') let today = new Date().toISOString().slice(0, 10) const time = new Date().toISOString().slice(0, 19).replace('T', ' ') const transpo...
(function(t){function e(e){for(var r,i,s=e[0],u=e[1],c=e[2],l=0,f=[];l<s.length;l++)i=s[l],Object.prototype.hasOwnProperty.call(a,i)&&a[i]&&f.push(a[i][0]),a[i]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(t[r]=u[r]);d&&d(e);while(f.length)f.shift()();return o.push.apply(o,c||[]),n()}function n(){for(var t,...
module.exports = { pathPrefix: '/', siteMetadata: { title: `Blog`, author: { name: `zhangyangyang`, summary: `who lives and works in HangZhou building useful things.`, }, description: `A starter blog demonstrating what Gatsby can do.`, siteUrl: `https://zyycode.github.com/Note`, ...
from enum import IntEnum, IntFlag import numpy as np from ..data_blocks.compiled_file_header import InfoBlock from ...utils.byte_io_mdl import ByteIO from ...utils.thirdparty.lz4_wrapper import LZ4ChainDecoder, LZ4Wrapper def uncompress(compressed_data, _b, decompressed_size): decoder = LZ4Wrapper() return ...
macDetailCallback("0080c6000000/24",[{"d":"2000-09-08","t":"add","a":"2F, 28, INDUSTRY EAST 9TH RD.\nSCIENCE PARK, HSIN-CHU\n\n","c":"TAIWAN 30077, R.O.C.","o":"NATIONAL DATACOMM CORPORATION"},{"d":"2001-10-24","t":"change","a":"2F, 28, INDUSTRY EAST 9TH RD.\nSCIENCE PARK, HSIN-CHU\n\n","c":"TAIWAN 30077 TAIWAN 3007...
import "./notecard.css"; import React, { Component } from 'react'; import Card from './card' import DrawButton from "./nextbutton"; export default class NoteCards extends Component { constructor() { super(); this.state = { cards: [ { question: '4...
tinyMCE.addI18n('ja.advanced', { "nos_clipboard_msg":"\u30b3\u30d4\u30fc\/\u5207\u308a\u53d6\u308a\/\u8cbc\u308a\u4ed8\u3051\u306fMozilla\u3068Firefox\u3067\u306f\u4f7f\u7528\u3067\u304d\u307e\u305b\u3093\u3002\n\u3053\u306e\u554f\u984c\u306e\u8a73\u7d30\u3092\u77e5\u308a\u305f\u3044\u3067\u3059\u304b?", "media_title":...
const shell = require('shelljs'); const os = require('os'); const path = require('path'); function prebuild(opt){ return new Promise((resolve,reject)=>{ let plat = os.platform(); let arch = os.arch(); if(plat == opt.platform && arch == opt.arch){ console.log(`TARGET: ${opt.name...
import {ContentIndexService} from '/gen/third_party/blink/public/mojom/content_index/content_index.mojom.m.js'; // Returns a promise if the chromium based browser fetches icons for // content-index. export async function fetchesIcons() { const remote = ContentIndexService.getRemote(); const {iconSizes} = await rem...
import numpy as np import matplotlib.pyplot as plt import os my_path = os.path.dirname(__file__) output = os.path.abspath(os.path.join(os.path.dirname( __file__ ), '..', 'output')) data = np.load(os.path.join(my_path, 'bm-R1.npz')) ticks = [str(tuple(size)) for size in data["SIZES"]] algo = ["Path-Alg", "P-PDS", ...
E = int(input()) English = set(input().split()) F = int(input()) French = set(input().split()) print (len(English & French))
import logging import psycopg2 import yaml from amg_cursor import AmgCursor class DbConnection(object): """Wrapper class for holding a Redshift database connection. """ # TODO: move the logic to the AmgCursor class and have DbConnection call # the cursor code. This will allow the caller to customize...
FullCalendar.globalLocales.push(function () { 'use strict'; var ka = { code: 'ka', week: { dow: 1, doy: 7, }, buttonText: { prev: 'წინა', next: 'შემდეგი', today: 'დღეს', month: 'თვე', week: 'კვირა', day: 'დღე', list: 'დღის წესრიგი', }, w...
/* global intended_exception */ global.mode = 'job'; global.DP_NODE_JOB_UNCAUGHT_FATAL_EXCEPTION_CODE = 0; require('../app')(() => { console.log(intended_exception); });
module.exports = { testPathIgnorePatterns: [ "<rootDir>/.next/", "<rootDir>/node_modules/", "<rootDir>/lib/", "<rootDir>/coverage/", "<rootDir>/server.js", "<rootDir>/jest.setup.js" ] };
import { h } from 'vue' export default { name: "ArrowsInLineVerticalLight", vendor: "Ph", type: "", tags: ["arrows","in","line","vertical","light"], render() { return h( "svg", {"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 256 256","class":"v-icon","fill":"currentColor","data-name":"ph-...
webpackJsonp([7],{1034:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.setupMode=function(e){var n=new r.a(e),t=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.getLanguageServiceWorker.apply(n,e)},o=e.languageId;monaco.languages.registerCompletionItemProvide...
from sqlalchemy import Boolean, Column, ForeignKey, Integer, String from sqlalchemy.orm import relationship from open_needs_server.database import Base class ProjectModel(Base): __tablename__ = "projects" def __repr__(self) -> str: return self.title id = Column(Integer, primary_key=True, index=...
'use strict'; import React from 'react'; const Welcome=React.createClass({ render: function() { return( <div className="welcome"> <div className="section"> <b>SciApps</b> is a cloud-based platform for building, executing, & sharing scientific applications (Apps) and workflows, powered by CyVerse Data S...