text
stringlengths
3
1.05M
/*! Built with http://stenciljs.com */ const{h:e}=window.App;import{a as t}from"./chunk-ef98bfe2.js";import"./chunk-d4e5ef20.js";import"./chunk-6a7807b8.js";class a{render(){return[e("ion-item",{lines:"full",href:`/exchanges/${this.exchange.id}`},e("ion-label",null,this.exchange.id),e("ion-badge",{color:"light","item-e...
#@ String input_path #@ String output_path #@ int threads #@ String tracker_settings import sys import math import json from java.io import BufferedReader, FileReader from ij import IJ from ij.measure import ResultsTable from fiji.plugin.trackmate import Model from fiji.plugin.trackmate import Settings from fiji.pl...
# File: awsec2_consts.py # # Copyright (c) 2019-2022 Splunk 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 appl...
# encoding=utf-8 import unittest import numpy as np from src.feature.wangdq import word_vector_similarity_train from src.feature.wangdq import word_vector_similarity_test from util.util import tokenizer class TestFeature(unittest.TestCase): def test_wv_similarity(self): corpus = [ 'This is th...
from flask_restful import Resource, reqparse from models import db, ApiKeys from requests import get import datetime import secrets import config from decorators import restricted_api, admin_api import errors class ApiKey(Resource): @restricted_api def get(self): """ Retrieve API key of the use...
const functions = require("firebase-functions"); const axios = require("axios"); exports.catalogScan = functions.https.onCall(data => { const hash = data.hash; return axios .get(`https://nook.lol/${hash}/json?locale=ja-jp`) .then(res => { return { status: 200, data: res.data };...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); exports.__esModule = true; exports.initJobsMessagingInMainProcess = initJobsMessagingInMainProcess; exports.initJobsMessagingInWorker = initJobsMessagingInWorker; exports.maybeSendJobToMainProcess = maybeSendJobToMainP...
import React from 'react' import useCanvas from './useCanvas' const Canvas = props => { const draw = (ctx, frameCount) =>{ ctx.clearRect(0, 0, ctx.canvas.width, ctx.canvas.height) ctx.fillStyle = '#000000' ctx.beginPath() ctx.arc(50, 100, 20*Math.sin(frameCount*0.05)**2, 0, 2*Math.PI) ctx.fill(...
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __a...
import React, { PureComponent } from 'react' import p from 'prop-types' import { graphql2Client } from '../apollo' import gql from 'graphql-tag' import { Mutation } from 'react-apollo' import { fieldErrors, nonFieldErrors } from '../util/errutil' import Query from '../util/Query' import FormDialog from '../dialogs/Form...
const fs = require('fs'); const mdn = require('mdn-browser-compat-data'); const path = require('path'); const filename = path.resolve(`${__dirname}/../src/browser-compat-data.ts`); /** * Determine if a given support statement qualifies as "always supported" by * the specified browser. * * @param {string} browserNa...
N = len(a)/4 a1 = a[:10] a2 = a[10:20] b1 = a[20:40] b2 = a[30:40] perturbation = 0.25 normalization1 = sum(a1) if abs(normalization1) < 1e-10: normalization1 = 1 normalization2 = sum(a2) if abs(normalization2) < 1e-10: normalization2 = 1 perturbation_upper = perturbation*sum([a1[i]*cos(2*pi*(i+1)*(x+b1[i])) for i...
import { synth, explicit1, explicit2 } from './reexport.js'; assert.strictEqual(synth, 1); assert.strictEqual(explicit1, 2); assert.strictEqual(explicit2, 4);
/*global define*/ define([ '../ThirdParty/when', './Cartesian2', './Cartesian3', './Cartesian4', './Cartographic', './defaultValue', './defined', './DeveloperError', './EarthOrientationParameters', './EarthOrientationParametersSample', ...
# -*- coding: utf-8 -*- # Copyright 2020 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...
import { Dropbox } from 'dropbox'; import fetch from 'node-fetch'; const dbx = new Dropbox({ refreshToken: global.process.env.DROPBOX_REFRESH_TOKEN, clientId: global.process.env.DROPBOX_APP_KEY, clientSecret: global.process.env.DROPBOX_APP_SECRET, }); const dpfPrototipe = { readFile() {}, }; class dbfs { st...
import expect from '../expect'; import { createModdle } from '../helper'; describe('bpmn-moddle', function() { var moddle = createModdle(); describe('parsing', function() { it('should publish type', function() { // when var type = moddle.getType('bpmn:Process'); // then expect...
import React, { useState } from 'react' const Search = props => { const [query, setQuery] = useState('') const onChange = e => { setQuery(e.target.value) } const onSubmit = e => { e.preventDefault() props.onSubmit && props.onSubmit(query) } return ( <form clas...
/** * @license Apache-2.0 * * Copyright (c) 2018 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...
{ tags: ['binary tree',], language: 'python', question: 'deserialize a binary tree', answer: `# class Node(object): # def __init__(self, x=None): # self.val = x # self.left = None # self.right = None def deserialize(values): """Generate binary try from an array of values. The inpu...
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'settings.settings') try: from django.core.management import execute_from_command_line except Imp...
#!/usr/bin/env node require('../cli/build')().catch(require('../src/error-exit'))
import Self from "../../../src"; module.exports = { entry: "./index.js", module: { rules: [ { test: /\.css$/, use: [ { loader: Self.loader, options: { publicPath: "static", }, }, "css-loader", ], ...
'use strict'; angular.module('md.data.table').directive('mdHead', mdHead); function mdHead($compile) { function compile(tElement) { tElement.addClass('md-head'); return postLink; } // empty controller to be bind scope properties to function Controller() { } function postLink(scope, ele...
import React from 'react' import enhanceWithClickOutside from 'react-click-outside' import WindowPointer from './WindowPointer' import { COLORS } from '../lib/constants' import { toggle } from '../lib/util' export const managePopout = WrappedComponent => { class PopoutManager extends React.Component { state = {...
/** * @license * Copyright (c) 2018, General Electric * * 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...
/** * @fileoverview JavaScript for the Phaser Blocks. * * @license Copyright 2017 The Coding with Chrome 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.apa...
import numpy as np lst = [ [1, 2, 3], [4, 5, 6], [7, 8, 9] ] arr = np.array(lst) # 슬라이스 a = arr[0:2, 0:2] print(a) # 출력: # [[1 2] # [4 5]] a = arr[1:, 1:] print(a) # 출력: # [[5 6] # [8 9]] # 정수 슬라이싱 lst = [ [1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12] ] a = np.array(lst) # 정수 인덱싱 s = a[[...
import Ember from "ember"; const { RSVP: { Promise } } = Ember; /*eslint camelcase: 0 */ export default Ember.Route.extend({ setupController(controller, model) { this._super(controller, model); this.controllerFor('model-types').set('selected', model); }, model(params) { return new Promise(resolve => ...
#Programa que Lê um ângulo e exibe o seno, cosseno e tangente desse ângulo. from math import sin, cos, tan, radians angulo = float(input('Digite um ângulo: º')) rad = radians(angulo) #Necessário converter para radianos, pois as funções sin(), cos() e tan() funcionam com radianos. print('O ângulo {}, em radianos é {} ...
describe('check title', function() { before(function() { cy.visit("/"); cy.get('select[id="cName"]').children().should('contain', 'mpg'); }); it('contains "iGÖGGO" in the title', function() { cy.title().should('contain', 'iGÖGGO'); }); }); describe('tabs', function() { describe('change tab wit...
import React from 'react'; import ReactTestUtils from 'react-dom/test-utils'; import { getDOMNode, getInstance } from '@test/testUtils'; import RadioGroup from '../RadioGroup'; import Radio from '..'; describe.skip('RadioGroup', () => { it('Should render a radio group', () => { const instance = getDOMNode(...
import pytest import numpy as np import syft as sy from syft import dependency_check if dependency_check.tfe_available: # pragma: no cover import tensorflow as tf import tf_encrypted as tfe @pytest.mark.skipif(not dependency_check.tfe_available, reason="tf_encrypted not installed") def test_instantiate_tfe...
import '../../../scss/styles.scss'; import React from 'react'; import { AuthProvider } from '../../components/AuthProvider/AuthProvider'; import { MemoryRouter } from 'react-router'; import { User } from './User'; /** * Example Component: User */ export default { title: 'Example/User', component: User, }; con...
/** * First we will load all of this project's JavaScript dependencies which * includes Vue and other libraries. It is a great starting point when * building robust, powerful web applications using Vue and Laravel. */ require('./bootstrap'); window.Vue = require('vue'); import VueRouter from 'vue-router'; wind...
/* Copyright 2012 - $Date $ by PeopleWare n.v. 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,...
!function(b){"use strict";function h(o){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var e=r.concat(t);return o.apply(null,e)}}function v(t,n){var e={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&n.indexOf(o)<0&&(e[...
// This file was procedurally generated from the following sources: // - src/dstr-binding-for-await/obj-init-null.case // - src/dstr-binding-for-await/error/for-await-of-async-gen-var.template /*--- description: Value specifed for object binding pattern must be object coercible (null) (for-await-of statement) esid: sec...
from django import forms from password_policies.forms.validators import validate_common_sequences from password_policies.forms.validators import validate_consecutive_count from password_policies.forms.validators import validate_cracklib from password_policies.forms.validators import validate_dictionary_words from pass...
const _ = require('lodash'); const Promise = require('bluebird'); const path = require('path'); const { createFilePath } = require('gatsby-source-filesystem'); const { supportedLanguages } = require('./i18n'); exports.createPages = ({ graphql, actions }) => { const { createPage, createRedirect } = actions; return...
$(function(){ // Menu Mobile $('.mobile-menu').click(function(){ $('.mobile1').slideToggle() }) // Slide var valorInicial = 0; var valorMaximo = $('.sobre-autor').length; var delay = 3000 function fade(){ // Adicionar spans dinamicamente /*for(var i = 0; i <...
macDetailCallback("f8cab8000000/24",[{"d":"2015-09-10","t":"add","a":"One Dell way\nRound Rock 78682\n\n","c":"US","o":"Dell Inc."},{"d":"2015-10-10","t":"change","a":"One Dell way\nRound Rock null 78682\n\n","c":"US","o":"Dell Inc."},{"d":"2015-10-17","t":"change","a":"One Dell Way Round Rock TX US 78682","c":"US...
from flask import render_template, session, request, redirect, url_for, current_app, jsonify, abort from . import country import datetime, json from app.classes import stringFunctions from app.classes.bashcolors import colors from app.classes.errorHandler import ApiErrorBaseClass, ResourceDoesNotExist, ResourceD...
'use strict'; /* * This is the default configuration for iTranswarp.js. * * DO NOT change it. Instead, replace value by env. e.g.: * * export DOMAIN='www.domain.com' * * and the config.domain will be set as $DOMAIN. */ module.exports = { // server domain name: domain: 'www.itranswarp.com', // be...
'use strict'; /** * @typedef {object} NormalizedDataModelEvent * @property {string} type - Event string. */ /** * @module decorators */ var hooks = require('./hooks'); var fallbacks = require('./fallbacks'); var polyfills = require('./polyfills'); var warned = {}; /** * Injects missing utility functions i...
// (c) ammap.com | SVG (in JSON format) map of Bolivia - Low // areas: {id:"BO-B"},{id:"BO-C"},{id:"BO-H"},{id:"BO-L"},{id:"BO-N"},{id:"BO-O"},{id:"BO-P"},{id:"BO-S"},{id:"BO-T"} AmCharts.maps.boliviaLow={ "svg": { "defs": { "amcharts:ammap": { "projection":"mercator", "leftLongitude":"-69.657430"...
$(document).ready(function() { // find <code> and <strong> elements and insert invisible whitespace // after every non-word character, so the browser can break the line // almost everywhere $("table code,table strong").each(function(i, e) { e.innerHTML = e.innerHTML.replace(/\W/g, '$&&#8203;'); }); });
#!/usr/bin/env python # -*- coding: utf-8 -*- """Functions to deal with cutout pictures.""" import random import itertools import numpy as np import astropy.units as u from astropy.coordinates import SkyCoord import matplotlib as mpl import matplotlib.pyplot as plt from mpl_toolkits.axes_grid1.inset_locator import ...
export const LOGIN_REQUEST = 'LOGIN_REQUEST' export const LOGIN_SUCCEEDED = 'LOGIN_SUCCEEDED' export const LOGIN_FAILED = 'LOGIN_FAILED' export const FETCH_PROFILE_REQUEST = 'FETCH_PROFILE_REQUEST' export const FETCH_PROFILE_SUCCEEDED = 'FETCH_PROFILE_SUCCEEDED' export const FETCH_PROFILE_FAILED = 'FETCH_PROFILE_FAILE...
#!/usr/bin/env python3 # Copyright (c) 2015-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test block processing. This reimplements tests from the bitcoinj/FullBlockTestGenerator used by the pu...
import React, { Component } from "react"; import { Appear, CodePane, Code, Deck, Heading, Image, ListItem, List, Slide, Spectacle, Text } from "spectacle"; import preloader from "spectacle/lib/utils/preloader"; import createTheme from "spectacle/lib/themes/default"; import CodeSlide from 'spectacl...
'use strict'; describe('CloudIDocValidationDemo IdentityDemo controller', function() { var $rootScope; var $scope; var $httpBackend; var requestI18n_es; var requestI18n_en; var baseUrl; var envConfig; var fakePromiseValue; var fakeOperationManager; var fakeFieldsManager; var EnvConfigProviderObj...
var url = '/stats/' + (location.search ? 'user/' + location.search.substr(1) : 'me'); clicker._authXHR(url, clicker.user.token, function(answers, xhr) { if (xhr.status != 200) throw new Error(xhr.status + " " + answers.code + ": " + answers.message); var time = timeline(answers); var div = $('#click...
export { default } from './UserRoles';
import os from demisto_sdk.commands.common.tools import (get_from_version, get_yaml, print_error, print_warning) from demisto_sdk.commands.common.update_id_set import get_depends_on from demisto_sdk.commands.create_id_set.create_id_set import IDSetCreator from demisto_sdk...
macDetailCallback("e4f004000000/24",[{"d":"2017-04-22","t":"add","a":"One Dell Way Round Rock TX US 78682","c":"US","o":"Dell Inc."}]);
"use strict"; //FYI: https://github.com/Tencent/puerts/blob/master/doc/unity/manual.md Object.defineProperty(exports, "__esModule", { value: true }); exports.onDestroy = exports.onPublish = void 0; const GenCode_CSharp_1 = require("./GenCode_CSharp"); function onPublish(handler) { if (!handler.genCode) retu...
import comonProperties from 'shared/comonProperties'; import prioritySortingCriteria from 'app/utils/prioritySortingCriteria'; function getOptions(property, thesauris) { const matchingTHesauri = thesauris.find(thesauri => thesauri._id === property.content); return matchingTHesauri ? matchingTHesauri.values : null;...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
goog.module('os.ogc.registry'); goog.module.declareLegacyNamespace(); const Registry = goog.require('os.data.Registry'); const Menu = goog.requireType('os.ui.menu.Menu'); const MenuItemOptions = goog.requireType('os.ui.menu.MenuItemOptions'); const OGCService = goog.requireType('os.ogc.OGCService'); const Feature = g...
"use strict"; var obj = { firstName: "John", lastName: "Dow", today: new Date(), re: /(\w+)\s(\w+)/, getFullName: function () { return this.firstName + " " + this.lastName; }, getFullNameArrow: () => this.firstName + " " + this.lastName, greetLambda: function (param) {...
// 8-bit Palette Classes for use in HTML5 Canvas // Ported from a C++ library written by Joseph Huckaby // BlendShift Technology conceived, designed and coded by Joseph Huckaby // Copyright (c) 2001-2002, 2010 Joseph Huckaby. // Released under the LGPL v3.0: http://www.opensource.org/licenses/lgpl-3.0.html Class.creat...
/* jshint indent: 2 */ module.exports = function(sequelize, DataTypes) { return sequelize.define('shop_payment', { id: { type: DataTypes.INTEGER(11), allowNull: false, primaryKey: true, autoIncrement: true }, billNo: { type: DataTypes.STRING(45), allowNull: false }...
""" """ import pygame import sys pygame.init() width = 400 height = 400 surface = pygame.display.set_mode((width, height)) pygame.display.set_caption("Colisión") white = (255, 255, 255) black = (0, 0, 0) red = (255, 0, 0) blue = (0, 255, 0) font = pygame.font.Font(None, 40) rect1 = pygame.Rect(0, 0, 100, 80) rec...
#!/usr/bin/python # -*- coding: utf-8 -*- ''' phue by Nathanaël Lécaudé - A Philips Hue Python library Contributions by Marshall Perrin, Justin Lintz https://github.com/studioimaginaire/phue Original protocol hacking by rsmck : http://rsmck.co.uk/hue Published under the MIT license - See LICENSE file for more details...
const lookup = require('./lookup'); const MetaLoader = require('../helpers/metaLoader'); const attachment = require('../helpers/attachment.js'); const sfConnection = require('../helpers/sfConnection.js'); /** * This function will return a metamodel description for a particular object * * @param configuration */ mo...
import django.utils.timezone from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ("auth", "0011_update_proxy_permissions") ] operations = [ migrations.CreateModel( name="User", fields=[ ...
# Copyright (C) 2010-2015 Cuckoo Foundation. # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org # This signature was contributed by RedSocks - http://redsocks.nl # See the file 'docs/LICENSE' for copying permission. from lib.cuckoo.common.abstracts import Signature class InceptionAPT(Signature): ...
import pprint from pathlib import Path def is_file_suffix(filename, suffixes, check_exist=True): """ is_file + check for suffix :param filename: pathlike object :param suffixes: tuple of possible suffixes :param check_exist: whether to check the file's existence :return: bool """ if ch...
/*! * # Semantic UI 1.11.4 - Visibility * http://github.com/semantic-org/semantic-ui/ * * * Copyright 2014 Contributors * Released under the MIT license * http://opensource.org/licenses/MIT * */ ;(function ( $, window, document, undefined ) { "use strict"; $.fn.visibility = function(parameters) { var ...
import { createGlobalStyle } from 'styled-components'; import DoveBoxBackground from '../../assets/images/categories-background.png' const DoveCategoriesStyles = createGlobalStyle` .dove-categories-section { margin: 50px auto; .h2-div { width: 330px; margin: 0 auto 30px; position: rel...
// The history object is the list of sites the browser has visited in this window var a = history.length; // History length Property - Get the number of URLs in the history list
var dir_5fa33f8003795877cb1f01f6a58738a8 = [ [ "TheConnectedMCU_Labs", "dir_1efb3892975a146cd8375ac8a2d108c7.html", "dir_1efb3892975a146cd8375ac8a2d108c7" ] ];
import { LightningElement, api } from "lwc"; /** * @typedef {{label: string, value: string}} PicklistOption */ /** * @typedef {CustomEvent<PicklistOption>} CustomPicklistChangeEvent */ export default class CustomPicklist extends LightningElement { @api label; @api value; /** * @type {PicklistOp...
import { Image, ImageBackground} from 'react-native' import { KeyboardAwareScrollView } from 'react-native-keyboard-aware-scroll-view' import Axios from 'axios' import ContentContainer from '../components/ContentContainer' import InputText from '../components/TextInput' import React from 'react' import styled from 'sty...
/** @jsx jsx */ import { Transforms } from '@mccarthyfinch/slate' import { jsx } from '../../..' export const run = editor => { Transforms.insertFragment( editor, <fragment> <inline>fragment</inline> </fragment> ) } export const input = ( <editor> <block> <cursor /> <inline>wo...
/* eslint-env node, mocha */ /* global $pg_database */ import expect from 'unexpected'; import { User, Post, Group, dbAdapter, Comment } from '../../../app/models'; import cleanDB from '../../dbCleaner'; describe('EventService', () => { describe('Backlinks', () => { before(() => cleanDB($pg_database)); // ...
from . import news
g_db.quests[13760]={id:13760,name:"Unveiled Truth",type:0,trigger_policy:3,on_give_up_parent_fail:1,on_success_parent_success:0,can_give_up:0,can_retake:0,can_retake_after_failure:1,on_fail_parent_fail:0,fail_on_death:0,simultaneous_player_limit:0,ai_trigger:0,ai_trigger_enable:0,auto_trigger:0,trigger_on_death:0,remov...
const SimpleStorage = artifacts.require('SimpleStorage'); contract('測試SimpleStorage合約', async (accounts) => { let simpleStorate; beforeEach(async () => { // 部署SimpleStorage合約 simpleStorage = await SimpleStorage.new({from: accounts[0]}); }); it('應成功設定資料', async function () { ...
var searchData= [ ['enabletraypauseresume_2172',['EnableTrayPauseResume',['../d0/d66/class_y_t_music_uploader_1_1_main_form.html#a23ba31a7718e8a9b5b6dd6ff82b11fc1',1,'YTMusicUploader::MainForm']]], ['escape_2173',['Escape',['../dc/d9e/class_y_t_music_uploader_1_1_providers_1_1_playlist_1_1_utils.html#ad6ccf5acd5ede...
var isWin;/*@cc_on @if (@_win32) isWin = true; @else @*/isWin=false;/*@end @*/isWin=/*@cc_on!*/!1;var recognizesCondComm=true;//@cc_on/* recognizesCondComm=false;//@cc_on*/
import { Octokit } from "@octokit/rest"; import { throttling } from "@octokit/plugin-throttling"; import { retry } from "@octokit/plugin-retry"; import * as fs from "fs"; import * as path from "path"; Octokit.plugin(throttling); Octokit.plugin(retry); const octokit = new Octokit({ auth: process.env.GITHUB_TOKEN, u...
const fs = require('fs'); const vg = require('vega'); const vegaLite = require('vega-lite'); const Open = require('./Open'); const path = require('path'); const mkdirp = require('mkdirp'); const { EXTENSION: { SVG, PNG } } = require('../utils/constants'); const checkAndCreateDir = (dir, cb) => { if (!fs.existsSync...
/** * @module ol/format/GML32 */ import GML3 from './GML3.js'; import GMLBase from './GMLBase.js'; import {makeArrayPusher, makeChildAppender, makeReplacer} from '../xml.js'; import {writeStringTextNode} from '../format/xsd.js'; /** * @classdesc Feature format for reading and writing data in the GML format * ...
describe('CustomBorders', () => { const id = 'testContainer'; beforeEach(function() { this.$container = $(`<div id="${id}"></div>`).appendTo('body'); const wrapper = $('<div></div>').css({ width: 400, height: 200, overflow: 'scroll' }); this.$wrapper = this.$container.wrap(wrappe...
/* * The MIT License (MIT) * * Copyright (c) 2017 Karl STEIN * * 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, c...
module.exports = { env: { NODE_ENV: '"production"', }, terser: { enable: true, config: { // 配置项同 https://github.com/terser/terser#minify-options }, }, csso: { enable: true, config: { // 配置项同 https://github.com/css/csso#minifysource-options }, }, defineConstants: {},...
module.exports = { base_blocks : [ // use "blocks : [ " in normally situation but this need to override base block from esp-idf platforms { name : 'Display', color : '230', icon : '/static/icons/icons8_picture_96px_1.png', blocks : [ /*{...
class IntersectionObserverLoader { async load() { if( window.IntersectionObserver ) return true; if ( this.loaded ) return true; if ( this.loading ) { await this.loading; return this.loaded; } this.loading = new Promise(async (resolve, reject) => { await import(/* webpackChunk...
const path = require("path"); const { CleanWebpackPlugin } = require("clean-webpack-plugin"); const { merge } = require("webpack-merge"); const FriendlyErrorsWebpackPlugin = require("friendly-errors-webpack-plugin"); const WebpackBar = require("webpackbar"); // console.log("DIRNAME", __dirname); // глобальная переменн...
/* global __DEV__, localStorage */ if (typeof Buffer === 'undefined') global.Buffer = require('buffer').Buffer; if (typeof __dirname === 'undefined') global.__dirname = '/'; if (typeof __filename === 'undefined') global.__filename = ''; if (typeof process === 'undefined') { global.process = require('process'); } else...
import React, { useState, useEffect } from "react"; import { makeStyles } from "@material-ui/core/styles"; import AppBar from "@material-ui/core/AppBar"; import Toolbar from "@material-ui/core/Toolbar"; import Typography from "@material-ui/core/Typography"; import Dropdown from "react-bootstrap/Dropdown"; import Dropdo...
import { isPresent } from 'angular2/src/facade/lang'; export function parseAndAssignParamString(splitToken, paramString, keyValueMap) { var first = paramString[0]; if (first == '?' || first == ';') { paramString = paramString.substring(1); } paramString.split(splitToken) .forEach((entry)...
"""Utility script to delete a flowpath from the database and on-disk""" import sys import os from pyiem.util import get_dbconn def do_delete(huc12, fpath, scenario): """Delete a flowpath from the database and on disk Args: huc12 (str): The HUC12 that contains the flowpath fpath (str): The flowpa...
$(function(){ var timer=setInterval(picMove,900); var pictimer=setInterval(proMove,1000); var $leftNum=0; var leftNum=0; var $proNum=0; /*海报无缝滚动*/ function picMove(){ // alert(typeof($leftNum)); $leftNum=parseInt($('#listnum').css('left')); $('#listnu...
const Home = () => import('~/pages/home').then(m => m.default || m) const Welcome = () => import('~/pages/welcome').then(m => m.default || m) const Login = () => import('~/pages/auth/login').then(m => m.default || m) const Register = () => import('~/pages/auth/register').then(m => m.default || m) const PasswordReset =...
// server.js // This is a minimal HTTP server written in Node's native http module // this is Node.js native modules const http = require('http') // handles http connection const url = require('url') // used to parse url strings const path = require('path') // used to inspect & create filepath const fs = require('fs...
// @flow export type CardParameters = { number: string, cvv: string, expirationDate: string, cardholderName: string, firstName: string, lastName: string, company: string, countryName: string, countryCodeAlpha2: string, countryCodeAlpha3: string, countryCodeNumeric: string, locality: string, p...
from typing import List class Solution: def isOneBitCharacter(self, bits: List[int]) -> bool: i, N = 0, len(bits) while i < N-1: i += 1 + bits[i] return i == N-1