text
stringlengths
3
1.05M
/** * Flow Library definition for spl-token * * This file is manually maintained */ import BN from 'bn.js'; // eslint-disable-line import {Buffer} from 'buffer'; import {Layout} from 'buffer-layout'; import {Connection, PublicKey, TransactionInstruction} from '@solana/web3.js'; import type {Signer, Trans...
// @flow import type { DBCommunity } from 'shared/types'; import type { GraphQLContext } from '../../'; import UserError from '../../utils/UserError'; import { canAdministerCommunity } from '../../utils/permissions'; import { getMessageCount } from '../../models/message'; import { getThreads, getThreadsByCommunityI...
import {combineReducers} from "redux"; import byId, * as fromById from "./byId"; import createList, * as fromList from "./CreateList"; const listByFilter = combineReducers({ all: createList('all'), active: createList('active'), completed: createList('completed'), }); const todos = combineReducers({ by...
$.getMultiScripts(['js/shared/cf.js']).done( function () { $.cf().grant('educators', 'formEducator'); } );
(function($) { $(document).ready(function() { $('.article-body h6').each(function(index, item) { var lineHeight = $(item).css('line-height') || 0; var height = $(item).height(); var imgHeight = $(item).find('img').height() || 0 ; var imgMarginBottom ...
/** * Token 类型枚举 */ const SyntaxKind = { Unknown: 'Unknown', EndOfFileToken: 'EndOfFileToken', ConstKeyword: 'ConstKeyword', LetKeyword: 'LetKeyword', Identifier: 'Identifier', ColonToken: 'ColonToken', StringLiteral: 'StringLiteral', NumericLiteral: 'NumericLiteral', SemicolonTo...
(function (e) { "use strict"; function r(r) { var i = r.data("ps-options"); if (e("body").hasClass(i.bodyClass) || n) return; r.trigger("psBeforeOpen"), n = !0, r.addClass("ps-active-panel"), e("body").addClass(i.bodyClass).one(t, function (e) { n = !1, r.trigger("psO...
#!/bin/env python # $1 = file.bam.coverage = product of ~/bioscripts/bam.coverage.sh with -d on # $2 = No of the field with coverage, 0-based # $3 = character separator in the input file import sys import numpy cov={} levels = [0,1,10,20,30,50,100,200] for i in levels: cov[i]=0 total_bases=0 coverage_field_nu...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var React = tslib_1.__importStar(require("react")); var StyledIconBase_1 = require("../../StyledIconBase"); exports.ThermometerHalf = React.forwardRef(function (props, ref) { var attrs = { "fill": "c...
(window.webpackJsonp=window.webpackJsonp||[]).push([["admin_calendar_form"],{"2B1R":function(e,t,n){"use strict";var i=n("I+eb"),o=n("tycR").map,r=n("Hd5f"),a=n("rkAj"),l=r("map"),s=a("map");i({target:"Array",proto:!0,forced:!l||!s},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},Hd5f:funct...
import 'src/base'; import VserRouter from 'vser-router'; import Vser from 'vser'; import Entry from './_components/layout/index'; import RouterConfig from './router.config'; Vser.use(VserRouter); const router = new VserRouter({ routes: RouterConfig }); const el = document.getElementById('app'); el.innerHTML = ''; ...
const { preset, just } = require('@uifabric/build'); const { task } = just; preset(); task('build', 'build:node-lib');
import React, { Component } from 'react'; import { Form, Input, Modal, message, Row, Col } from 'antd'; import { connect } from 'dva'; import { trim } from '../../../src/utils/utils'; const { TextArea } = Input; @connect(({ coachDetail }) => ({ coachDetail, })) class AddCommunication extends Component { static de...
import description from './README_EN.md' export default { description, simpleExample: 'step navigation on the horizontal direction', simpleExampleDesc: 'a example which launching a activity, the default step navigation is the next step should be after the previous step. But you can change the `activeStep` to co...
import dash import dash_core_components as dcc import dash_html_components as html class BLE_Graph(): def __init__(self, id, datasets = [], layout = {}): self.datasets = datasets self.layout = layout self.figure = { 'data': self.datasets, 'layout': self.layout ...
'use strict'; module.exports = { lexi: [ {"word":"a l'instar","word_nosc":"a l'instar","lemma":"a l'instar","pos":"PRE"} , {"word":"afin d","word_nosc":"afin d","lemma":"afin d","pos":"PRE"} , {"word":"afin de","word_nosc":"afin de","lemma":"afin de","pos":"PRE"} , {"word":"après","word_nosc":"apres","l...
(function(a,b){function c(b,c){var e=b.nodeName.toLowerCase();if("area"===e){var f=b.parentNode,g=f.name,h;return!b.href||!g||f.nodeName.toLowerCase()!=="map"?!1:(h=a("img[usemap=#"+g+"]")[0],!!h&&d(h))}return(/input|select|textarea|button|object/.test(e)?!b.disabled:"a"==e?b.href||c:c)&&d(b)}function d(b){return!a(b)....
#!/usr/bin/env python import os, sys, csv #opcode,nmeonic,addressing mode,bytes,cycles ############################################################################ # handle command line arguments and variable setup ############################################################################ if len(sys.argv) != 2: ...
import numpy as np import os from keras.models import load_model from tqdm import tqdm import tifffile import cv2 import glob from icnet import model_icnet import argparse from copy import deepcopy #GPU="0" # default GPU GPU="-1" # no GPU NUM_CATEGORIES = 5 def sequential_to_las_labels(seq_labels): labels = deep...
export default { routes: { wires: { add: {} }, login: { 'e-mail': '电子邮件', 'password': '密码', 'sign-in': '登陆' } }, components: {} };
define({ _widgetLabel: 'Einbetten', websiteAddress: 'Websiteadresse', code: 'Code', codePlaceholder: 'Fügen Sie den HTML-Code ein, den Sie einbetten möchten.', embedBy: 'Einbetten mit', attributeHint: 'URL von einem Attribut', expressionHint: 'URL durch einen Ausdruck', autoRefresh: 'Automatisch aktuali...
/** * Map image series module */ import * as tslib_1 from "tslib"; /** * ============================================================================ * IMPORTS * ============================================================================ * @hidden */ import { MapSeries, MapSeriesDataItem } from "./MapSeries"; i...
// ==UserScript== // @name 4clojure_ctrl_enter // @namespace peter.hozak.info // @include http://www.4clojure.com/* // @version 1 // @grant none // ==/UserScript== document.onkeyup = function(e) { if (e.ctrlKey && e.keyCode == 13) { // Ctrl+Enter document.getElementById("run-button").click...
import React, { Component } from "react"; import "./AdminProduct.scss"; import HeaderAddProduct from '../HeaderAddProduct/HeaderAddProduct' import Button from '../ButtonAdminProducts/ButtonAdminProducts' class Product extends Component { constructor(props) { super(props); this.state = { ...
# -*- coding: utf-8 -*- """ Created on Thu Sep 25 15:38:00 2014 @author: Yang Xuefeng """ from __future__ import division import os import numpy as np import cPickle as cp from collections import defaultdict as dd def exist_number(w1,w2,s): n = [1 for i in s if w1 in i and w2 in i] return len(n) #import gc ...
/* * Appcelerator Titanium Mobile * Copyright (c) 2011-2012 by Appcelerator, Inc. All Rights Reserved. * Licensed under the terms of the Apache Public License * Please see the LICENSE included with this distribution for details. */ // start customization here var suites = [ {name: "ui_layout"}, {name: "ui_layou...
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyAlabaster(PythonPackage): """Alabaster is a visually (c)lean, responsive, configurable t...
/** * Copyright 2015 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...
(self["webpackChunk"] = self["webpackChunk"] || []).push([["resources_js_views_components_vuesax_cards_cards_vue"],{ /***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/views/components/vuesax/cards/cards.vue?vue&...
$(function(e){ 'use strict' /*-----echart2-----*/ var chartdata = [ { name: 'sales', type: 'bar', data: [10, 15, 9, 18, 10, 15] }, { name: 'profit', type: 'line', smooth:true, data: [8, 5, 25, 10, 10] }, { name: 'growth', type: 'bar', d...
(function ($) { 'use strict'; $(function () { /** * CONFIRM BOOKING EVENT */ $('.confirm-booking').on('click', function(){ confirm_booking( $(this) ); }); /** * CONFIRM BOOKING * * @param {object} obj */ function confirm_booking( obj ) { // Get ...
import { useEffect, useRef } from "react"; const useInterval = (callback, delay) => { const savedCallback = useRef(); useEffect(() => { savedCallback.current = callback; }, [callback]); useEffect(() => { const tick = () => { savedCallback.current(); }; if (delay !== null) { let i...
# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not...
/** * Created by govind on 7/23/16. */ const FileUpload = require('react-fileupload'); var React = require('react'); var HSFileUpload = React.createClass({ getDefaultProps: function () { return { text: 'Welcome home from props!' } }, getInitialState: function () { return { options: {...
const fs = require('fs') const path = require('path') const readline = require('readline') // 创建流对象(读取) const fileName = path.join(__dirname, '../', '../', 'logs', 'access.log') const readStream = fs.createReadStream(fileName) // 创建readline对象 const rl = readline.Interface({ input: readStream }) // 定义存放浏览器类型的变量 l...
import styled from 'styled-components/native'; export const SimpleButtonElemet = styled.TouchableOpacity` flex-direction: row; justify-content: space-between; align-items: center; `; export const ButtonElement = styled.TouchableOpacity` height: 50px; width: 48%; justify-content: center; align-items: ce...
import os import dj_database_url from .settings import * DEBUG = True TEMPLATE_DEBUG = DEBUG DATABASES = {'default': {'ENGINE': 'django.contrib.gis.db.backends.postgis', 'TEST_MIRROR': None, 'NAME': 's2988', 'TEST_CHARSET': None, 'TIME_ZONE': 'UTC', 'TEST_COLLATION': None, 'OPTIONS': {}, 'HOST': '10.180.234....
// functions releated to input (mouse, keyboard) pg.input = function () { var downKeys = []; var mouseIsDown = false; var setup = function () { setupKeyboard(); setupMouse(); }; var setupKeyboard = function () { var toolList = pg.tools.getToolList(); jQuery(docum...
import React from 'react'; import { AutocompleteArrayInput, ChipField, Edit, ReferenceArrayInput, ReferenceField, SimpleForm, TextInput, } from 'react-admin'; const EpicEdit = props => ( <Edit {...props}> <Form/> </Edit> ); const Form = props => { const redirect = `/project_settings/${encodeU...
#TODO : Add hidden features #TODO : Write errors for wrong user inputs #DONE : Write the function to complete a task #DONE : Write the delete item function #DONE : Write the add item function #DONE : Drop table from folders category in the delete folder functions #DONE : Write the add folder function #DONE : Write the...
import json import os from os.path import expanduser from typing import Dict, Union, List, Tuple import jsonschema import click from auri.aurora import Aurora from auri.effects import Effect # A serialized configuration looks like this # { "192.168.0.255": { # "name": "bananaleaf", # "token": "bananas", # ...
import numpy as np from scipy.interpolate import RectBivariateSpline from scipy.ndimage import affine_transform import cv2 def LucasKanadeAffine(It, It1): # Input: # It: template image # It1: Current image # Output: # M: the Affine warp matrix [2x3 numpy array] # put your implementation here M = np.array([[1.0...
import '../../charttoolbar/ChartToolbar.js'; import './StackedBarComponent.html'; import createData from './StackedBarComponentData.js'; Ext.require([ 'Ext.chart.interactions.PanZoom', 'Ext.chart.series.Bar', 'Ext.chart.axis.Numeric', 'Ext.chart.axis.Category' ]); export default class StackedBarCompon...
// Copyright 2018 Twitter, Inc. // Licensed under the Apache License, Version 2.0 // http://www.apache.org/licenses/LICENSE-2.0 import punycode from 'punycode'; import validAsciiDomain from '../regexp/validAsciiDomain'; const MAX_DOMAIN_LABEL_LENGTH = 63; const PUNYCODE_ENCODED_DOMAIN_PREFIX = 'xn--'; // This is an e...
def bmi_calculator(height, weight): return (weight/(height**2)) * 702 # Write 4 unit tests and check that at least 2 of them are testing edge cases # There are many different tests that could have been written for this question. # Here are a few examples. assert bmi_calculator(1, 1) == 702.0, 'Input arguments g...
// Libraries import React from "react"; import { Link, Text } from "@chakra-ui/react"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faExternalLinkAlt } from "@fortawesome/free-solid-svg-icons"; //////////////////////////////////////////////////////////////////////////////// // OutsideLink...
# Copyright (C) 2010-2011 Richard Lincoln # # 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 use, copy, modify, merge, publish...
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import torch from torch import nn from torch.autograd import Function from torch.autograd.function import once_differentiable from torch.nn.modules.utils import _pair from mrcnn import _C from apex import amp class _ROIPool(Function): @stati...
import mod from './src'; window.mod = mod;
"""Base settings to build other settings files upon.""" import environ ROOT_DIR = environ.Path(__file__) - 3 APPS_DIR = ROOT_DIR.path('hobbify') env = environ.Env() # Base DEBUG = env.bool('DJANGO_DEBUG', False) # Language and timezone TIME_ZONE = 'America/Mexico_City' LANGUAGE_CODE = 'en-us' SITE_ID = 1 USE_I18N ...
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ re...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.10/esri/copyright.txt for details. //>>built define("require exports ../../core/tsSupport/declareExtendsHelper ../../core/tsSupport/decorateHelper ../../Graphic ../../core/Collection ../../core/Handles ../../...
define(function(require, exports, module) { var Validator = require('bootstrap.validator'); require('common/validator-rules').inject(Validator); require('es-ckeditor'); exports.run = function() { require('./common').run(); // group: 'default' var editor = CKEDITOR.replace('thr...
import p4 from 'p4'; import p3 from 'p3'; import FileLoader from './FileLoader'; import Transpiler from './Transpiler'; const PROGRESS_MODES = ['automatic', 'semi-automatic', 'manual']; const INPUT_METHODS = ['http', 'file', 'websocket']; const OPERATIONS = ['aggregate', 'derive', 'match', 'visualize', 'in', 'out']; ...
/* * Author: Siwei Jiao */ /** * customer service to get chat history for a selected user * @returns {undefined} */ function getChatHistory() { var url = "CustServChat?action=getChatHistory&userName="; //get selected user's name var userName = parent.inputFrame.chatForm.msgTo.value; xhttp ...
"""Module to define functions to manage api settings.""" from .app_info import AppInfo from .health_check import HealthCheck from .management_resource import setup_blueprint
const friendlySyntaxErrorLabel = 'Syntax error:' // Some custom utilities to prettify Webpack output. // This is a little hacky. // It would be easier if webpack provided a rich error object. export function formatMessage (message) { return message // Make some common errors shorter: .replace( // Babel...
class Solution: def mincostTickets(self, days: List[int], costs: List[int]) -> int: dp = [0] * (days[-1] + 1) for i in range(len(days)): dp[days[i]] = -1 for i in range(1, days[-1] + 1): if dp[i] == 0: dp[i] = dp[i-1] else: dp[i] = min(dp[i-1] + costs[0]...
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-user_get_coupon-index"],{"32c4":function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return u})),n.d(e,"a",(function(){return i}));var o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-...
(function() { function timecode() { return function(seconds) { var seconds = Number.parseFloat(seconds); if (Number.isNaN(seconds)) { return '-:--'; } var wholeSeconds = Math.floor(seconds); var minutes = Math.f...
(function () { 'use strict'; angular .module('core') .factory('httpRequestInterceptor', httpRequestInterceptor); httpRequestInterceptor.$inject = []; function httpRequestInterceptor() { return { request: function (config) { config.headers.Authorization = localStorage.accessToken; ...
import time from slackclient import SlackClient from sretoolbox.utils import retry import utils.secret_reader as secret_reader class UsergroupNotFoundException(Exception): pass class SlackApi(object): """Wrapper around Slack API calls""" def __init__(self, workspace_name, token, sett...
import * as Build from './Build' import * as DateDefs from './Date' import * as JobStatus from './JobStatus' import * as Owner from './Owner' import * as PageInfo from './PageInfo' import * as Repository from './Repository' import * as schema from './schema' import * as Screenshot from './Screenshot' import * as Screen...
define([ 'app', 'backbone' ], function(app, Backbone) { 'use strict'; /* |-------------------------------------------------------------------------- | Extend the global Config */ var ModuleConfig = { moduleProp: 'foo' }; return _.extend(app.config || {} , ModuleConfig); });
module.exports = { extends: [ '../common/index.js', 'prettier', // our rules must be overridden by "eslint-config-prettier" to be completely conflict-free 'prettier/@typescript-eslint', ], };
import sys import pygame from pygame.locals import * class Event: def __init__(self): self.config = { 'mouse_motion_pos':[-1,-1], 'mouse_click_pos':[-1,-1], 'move':[0,0], 'zoom':0, ...
$('.button-contato').click(function(){ $('html, body').animate({ scrollTop: $($(this).attr('href')).offset().top }, 1000); return false; }); $('#go-contato').click(function(){ $('html, body').animate({ scrollTop: $($(this).attr('href')).offset().top }, 1000); return false; }); ...
import datetime # For working with dates import re from typing import List import dateutil.parser # For parsing dates lazily from .errors import * from .misc import clean, FAComment, FAFile NAME_UPLOADER_REGEX = re.compile(r'(.+) by (.+) --') CATEGORY_THEME_REGEX = re.compile(r" ?(.+) > (.+)") KEYWORDS_REGEX = re...
#!/usr/bin/env python3 import re import unicodedata from morphgnt.utils import load_yaml, sorted_items from noun_citation_form_data import NOUN_CITATION_FORMS lexemes = load_yaml("lexemes.yaml") ACUTE = u"\u0301" GRAVE = u"\u0300" CIRCUMFLEX = u"\u0342" def strip_accents(w): return "".join( unicodeda...
#!/usr/bin/python # Copyright (c) 2018 Red Hat, Inc. # 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 ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview...
countEven: int = 0 countOdd: int = 0 countPositive: int = 0 countNegative: int = 0 for i in range(6): n = int(input()) if n > 0: countPositive += 1 else: countNegative += 1 if n % 2 == 0: countEven += 1 else: countOdd += 1 else: print("{} valor(es) impar(es)".f...
function parseValue(value) { switch (typeof(value)) { case 'function': return value.toString(); case 'object': case 'array': return JSON.stringify(value, null, ' '); default: return value; } } export function tap(value, label = 'Tap:') { const tapValue = parseValue(value); con...
"use strict" let React = require('react'), TaskLogic = require('../task-logic') import { Button, Glyphicon, Modal, Col, Row, Form, FormGroup, FormControl, ProgressBar} from 'react-bootstrap' // one task let Task = React.createClass({ getInitialState: function () { return { showChildren: true...
var BCLS = (function(window, document) { var proxyURL = 'https://solutions.brightcove.com/bcls/bcls-proxy/bcls-proxy-v2.php', reportURL = 'https://analytics.api.brightcove.com/v1/timeseries/accounts/', default_account_id = '57838016001', default_video_id = '6063969160001', useMyAccount = document.getE...
/*! @preserve * bootbox.js * version: 5.3.0 * author: Nick Payne <nick@kurai.co.uk> * license: MIT * http://bootboxjs.com/ */ (function (root, factory) { 'use strict'; if (typeof define === 'function' && define.amd) { // AMD define(['jquery'], factory); } else if (typeof exports === 'object') { ...
/** * @license Apache-2.0 * * Copyright (c) 2020 The Stdlib Authors. * * 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 a...
/*! For license information please see bundle.7d1ec6255321a18b017e.js.LICENSE.txt */ (()=>{"use strict";var e={657:(e,n,t)=>{t.d(n,{Z:()=>l});var r=t(645),a=t.n(r)()((function(e){return e[1]}));a.push([e.id,".calendar_container{display:grid;grid-template-rows:50px auto;width:fit-content;height:fit-content;width:240px;h...
// Copyright (c) YugaByte, Inc. import React, { Component } from 'react'; import './UniverseStatus.scss'; import {ProgressBar} from 'react-bootstrap'; import { isNonEmptyObject, isNonEmptyArray, isDefinedNotNull } from '../../../utils/ObjectUtils'; import { YBLoadingIcon } from '../../common/indicators'; export defau...
import os import socket from flask import Flask app = Flask(__name__) @app.route('/ping', methods=["GET"]) def ping(): return socket.gethostname() if __name__ == "__main__": app.run(host='0.0.0.0')
var searchData= [ ['raycaster_0',['rayCaster',['../ray_caster_8h.html#a0386e1cc341101d88ea6680a572cd882',1,'rayCaster(char **maze, int size, int startY, int endY):&#160;rayCaster.cpp'],['../ray_caster_8cpp.html#a0386e1cc341101d88ea6680a572cd882',1,'rayCaster(char **maze, int size, int startY, int endY):&#160;rayCaste...
import { mapGetters } from 'vuex' import EventBus from '@vue-storefront/core/compatibility/plugins/event-bus' import i18n from '@vue-storefront/i18n' import Composite from '@vue-storefront/core/mixins/composite' import { Logger } from '@vue-storefront/core/lib/logger' export default { name: 'Home', mixins: [Comp...
// THIS FILE IS AUTO GENERATED import { GenIcon } from '../lib'; export function DiScrum (props) { return GenIcon({"tag":"svg","attr":{"version":"1.1","viewBox":"0 0 32 32"},"child":[{"tag":"path","attr":{"d":"M20.649 21.349c0.064 0.004 0.133 0.012 0.202 0.012 0.977 0.001 1.955-0.005 2.932 0.005 0.214 0.002 0.278-0.0...
function Albert_Einstein_IsExist() { // document.write("\"jbBasic.js\" - included to project"); console.log("."); console.log("................................................"); console.info("\"jbBasic.js\" - Loaded --> [ok]"); console.log("................................................"); re...
/*global define*/ define([ '../Core/defined', '../Core/defineProperties', '../Core/DeveloperError', '../Core/Rectangle', './QuadtreeTileLoadState' ], function( defined, defineProperties, DeveloperError, Rectangle, QuadtreeTi...
import { __decorate } from "tslib"; import { Injectable } from '@angular/core'; import { of } from 'rxjs'; import { switchMap } from 'rxjs/operators'; import { ActiveCartService } from '../../cart/facade/active-cart.service'; import { PageRobotsMeta } from '../../cms/model/page.model'; import { PageMetaResolver } from ...
// Source: https://stackoverflow.com/a/40724354/7897036 export function abbreviateNumber(number) { var SYMBOL = ["", "k", "M", "B", "T", "Q", "E"] var tier = (Math.log10(Math.abs(number)) / 3) | 0 if (tier == 0) return number var suffix = SYMBOL[tier] var scale = Math.pow(10, tier * 3) var scaled = number ...
var leapYear = function(year){ if((year % 4 === 0) && (year % 100 !==0) || (year % 400 === 0)) { return true; } else { return false; } }; $(document).ready(function(){ $("form#leap-year").submit(function(event){ event.preventDefault(); var year = parseInt($("input#year").val()); var result ...
from django.apps import apps from django.test import TestCase class IsolatedModelsTestCase(TestCase): def setUp(self): # The unmanaged models need to be removed after the test in order to # prevent bad interactions with the flush operation in other tests. self._old_models = apps.app_config...
import os, sys, time, re next = 0 # next character limit = 0 # limit of buffer sbuf = "" # string buffer ibuf = "" # input buffer def getChar(): global sbuf global next global limit # variables needed for reading global ibuf ...
var searchData= [ ['h',['h',['../classAether_1_1Element.html#a64ce2c1468aec05812f69fd73af30f6b',1,'Aether::Element']]], ['handleevent',['handleEvent',['../classAether_1_1Container.html#ae267d93e5a7984ab7efd34cabe5df7b1',1,'Aether::Container::handleEvent()'],['../classAether_1_1Element.html#a21694ebc870c2b7f7ea265c1...
webpackJsonp([10,11],{664:function(a,n){IntlPolyfill.__addLocaleData({locale:"en",date:{ca:["gregory","buddhist","chinese","coptic","dangi","ethioaa","ethiopic","generic","hebrew","indian","islamic","islamicc","japanese","persian","roc"],hourNo0:!0,hour12:!0,formats:{"short":"{1}, {0}",medium:"{1}, {0}",full:"{1} 'at' ...
import {promises as fs} from 'node:fs'; import process from 'node:process'; import path from 'node:path'; import test from 'ava'; import {omit} from 'lodash-es'; import slash from 'slash'; import createEsmUtils from 'esm-utils'; import {DEFAULT_EXTENSION, DEFAULT_IGNORES} from '../lib/constants.js'; import * as manager...
import React, { Component } from 'react' import PokemonList from '../pokemon/PokemonList'; export default class Dashboard extends Component { render() { return ( <div className="row"> <div className="col"> <PokemonList /> </div> </div> ); } }
import { render, screen } from "@testing-library/react"; import List from ".."; const data = ['html', 'css', 'js']; describe('List component', () => { test('List renders', () => { render(<List items={data} />); expect(screen.getByRole('list')).toBeInTheDocument(); expect(screen.getByText('html')).toBe...
/*! * This file is a part of Mibew Messenger. * * Copyright 2005-2017 the original author or authors. * * 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/li...
var {google} = require('googleapis'); var {OAuth2Client} = require('google-auth-library'); var util = require('util'); var SheetsHelper = function(accessToken) { var auth = new OAuth2Client(); auth.credentials = { access_token: accessToken }; this.service = google.sheets({version: 'v4', auth: auth}); }; m...
module.exports = { staging: true }
# Copyright 2018 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 ...
import Controller from '@ember/controller'; export default Controller.extend({})
from warnings import warn import numpy as np import pandas as pd from pandas import Series, DataFrame, MultiIndex from pandas.core.indexing import _NDFrameIndexer from shapely.geometry.base import BaseGeometry from shapely.geometry import box from shapely.ops import cascaded_union, unary_union import shapely.affinity...