text
stringlengths
3
1.05M
/** * Converts an iterable into an Observable sequence * * @example * var res = Rx.Observable.fromIterable(new Map()); * var res = Rx.Observable.fromIterable(new Set(), Rx.Scheduler.timeout); * @param {Scheduler} [scheduler] Scheduler to run the enumeration of the input sequence on. * @retur...
/* StackBlur - a fast almost Gaussian Blur For Canvas Version: 0.5 Author: Mario Klingemann Contact: mario@quasimondo.com Website: http://www.quasimondo.com/StackBlurForCanvas Twitter: @quasimondo In case you find this class useful - especially in commercial projects - I am not totally unhappy for a small donatio...
!function ($) { $.ender({ guid: Guid.raw }); }(ender);
import matplotlib.pyplot as plt import numpy as np from collections import Counter # list_100_000 = np.random.randint(6, 37, size=100_000).tolist() list_100_000 = sum([np.random.randint(1, 7, size=100_000) for _ in range(10)]) # print(Counter(list_100_000).most_common()) # print(sorted(Counter(list_100_000).items())) ...
angular.module('App').controller( 'PrivateDatabaseUsersGrantsCtrl', class PrivateDatabaseUsersGrantsCtrl { constructor(Alerter, PrivateDatabase, $scope, $stateParams, $translate) { this.alerter = Alerter; this.privateDatabaseService = PrivateDatabase; this.$scope = $scope; this.$statePar...
const stylePrefix = "file-area-"; export const EMPTY_VALUE = { id: -1, title: "Default" }; export const TREE_DATA = [{}]; export const STYLES = { ROOT: `${stylePrefix}root`, TITLE: `${stylePrefix}title`, DROP_AREA: `${stylePrefix}drop-area`, CLOSE: `${stylePrefix}close`, CLOSE_DISABLED: `${stylePr...
import React from "react" import PropTypes from "prop-types" import Image from "gatsby-image" import { FaGithubSquare, FaShareSquare } from "react-icons/fa" const Project = ({ index, title, description, technologies, image, github, url, }) => { return ( <article className="project"> {image && ...
function update(e,t){var n=1==e?t:$("#amount").val(),i=2==e?t:$("#duration").val();$total=.05*n,$totals=.03*n,$earnings=n-$totals-$total,$("#amount").val(n),$("#amount-label").text(n),$("#duration").val(i),$("#duration-label").text(i),$("#total").val($total),$("#total-label").text($total),$("#slider").html('<a><label><...
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('d3-selection')) : typeof define === 'function' && define.amd ? define(['exports', 'd3-selection'], factory) : (factory((global.d3 = global.d3 || {}),global.d3)); }(this, function (exports,d...
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Sharect=t():e.Sharect=t()}(window,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};ret...
# -*- encoding: utf-8 -*- from __future__ import unicode_literals import unittest from django.conf import settings from django.core.checks import Error from django.db import connections, models from django.test import SimpleTestCase from django.test.utils import isolate_apps, override_settings def get_max_column_na...
let uniqid = 0; function populateSets(destination, data, emptyString, type) { if ('error' in data || !('count' in data && 'sets' in data)) { $(destination).html("<i>Data loading error. Please try again.</i>"); return; } if (data.count === 0) { $(destination).html("<i>" + emptyString...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var batch_1 = require("./batch"); exports.BatchType = batch_1.BatchType; var base_1 = require("./base"); exports.Base = base_1.Base; exports.property = base_1.property; var subCollection_1 = require("./subCollection"); exports.SubCollection = ...
let tableColumnIdSeed = 1 function parseProp(target) { let config = { fixed: false, fixedSide: '', width: 50, minxWidth: 50, sortable: '', prop: '', value: undefined, hidden: false, label: '', textAlign: 'center' } console.log...
/* eslint-env jasmine, jest */ import I18nManager from '..'; const getDocumentDir = () => document.documentElement.getAttribute('dir'); const setDocumentDir = dir => document.documentElement.setAttribute('dir', dir); describe('apis/I18nManager', () => { describe('detect preferred language direction from document.d...
define([ "qscript/lang/Class", "qfacex/windows/controlss/shape/Shape" ],function(Class,Shape) { var Circle = Class.declare(Shape,{ getBoundingBox: function(){ // summary: // returns the bounding box if(!this.bbox){ var shape = this.shape; this.bbox = {x: shape.cx - shape.r, y: shape.cy - shape.r...
var express = require('express'); var Twitter = require('twitter'); var Tea = require('./xxtea.js'); var nonce = require('nonce')(); var ipaddress = process.env.OPENSHIFT_NODEJS_IP || process.env.OPENSHIFT_INTERNAL_IP || "127.0.0.1"; var port = process.env.OPENSHIFT_NODEJS_PORT || process.env.OPENSHIFT_INTERNAL_PORT |...
/** * @fileoverview added by tsickle * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ /*! * @license * Copyright 2019 Alfresco Software, Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file exce...
function descendingOrder(n) { return Number( n .toString() .split("") .map((item) => Number(item)) .sort(function (a, b) { return b - a; }) .join("") ); } module.exports.descendingOrder = descendingOrder;
def parse_inputs(): with open("day2.txt") as in_file: return in_file.read().split("\n") def get_edges(): return [(0, 1), (1, 0), (2, -1), (3, 0), (4, 1), (-1, 2), (5, 2), (0, 3), (4, 3), (1, 4), (3, 4), (2, 5)] def is_valid(keypad): return (keypad["x"], keypad["y"]) not in get_edges()...
module.exports = { siteMetadata: { title: `Emily's Writings`, author: { name: `Emily Huyett`, summary: `of Winchester, VA.`, }, pathPrefix: `/ems-blog`, description: `A starter blog demonstrating what Gatsby can do.`, siteUrl: `https://gatsby-starter-blog-demo.netlify.app/`, so...
var Token = require('./tokenizer').Token; var Tokenizer = require('./tokenizer').Tokenizer; var TokenType = require('./tokenizer').TokenType; var Str = require('./helper.js').String; var Obj = require('./helper.js').Object; function Parser(opts, argv, errorHandler) { this.config = opts; this.argv = argv; ...
/* Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'find', 'da', { find: 'Søg', findOptions: 'Find muligheder', findWhat: 'Søg efter:', matchCase: 'Forskel på store og små bogstaver', matchCyclic:...
var forEach = require('jpf').forEach; var appendChild = require('jpf').appendChild; var renderViews = require('jpf').renderViews; var CollectionView = require('../collection-view'); var TrackModelView = require('../track-model-view'); var TrackCollectionView = CollectionView.extend({ ModelViewClass: TrackModelView, ...
export const I18N = { importFile: { es: '/importar-archivo', en: '/import-file' }, searchBeneficiary: { es: '/buscar-beneficiario', en: '/search-beneficiary' }, reportToBanks: { es: '/reporte-a-bancos', en: '/report-to-banks' }, detailsBenefic...
from . import Cl layout, blades = Cl(5, 3) locals().update(blades) n1 = e3 + e6 n2 = e4 + e7 n3 = e5 + e8 n1b = 0.5*(e6 - e3) n2b = 0.5*(e7 - e4) n3b = 0.5*(e8 - e5) def up(x): a = x[e1] b = x[e2] return a*e1 + b*e2 + 0.5*a**2*n1 + n1b + 0.5*b**2*n2 + n2b + a*b*n3 def down(x): return (x|e1)[0]*e1 ...
# Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # Optional list of dependencies required by the package dependencies = ['torch', 'torchvision'] from torch.hub import load...
import connect from 'connect' import postChatwork from 'conncet-post-chatwork-message' import objectKind from './filter/objectKind' import DoubleTransmission from './filter/DoubleTransmission' import Suppress from './filter/Suppress' import debugRequest from './filter/debugRequest' import ignoreResponse from './provide...
import sys sys.path.append('../') import matplotlib import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec import numpy as np import seaborn as sns from mpl_toolkits.axes_grid1 import make_axes_locatable plt.rcParams["figure.figsize"] = [16, 9] sns.set(font_scale=3.0) sns.set_style(style='white') from...
import json from unittest.mock import ANY, patch from uuid import uuid4 import graphene import pytest from django.utils.text import slugify from measurement.measures import Weight from prices import Money, TaxedMoney from ....attribute import AttributeInputType from ....attribute.models import AttributeValue from ......
/** * * ExerciseFeed * */ import React from 'react'; // import PropTypes from 'prop-types'; import styled from 'styled-components'; import { FormattedMessage } from 'react-intl'; import messages from './messages'; import { useQuery, gql } from '@apollo/client'; import RoutineListItem from '../RoutineListItem'; //...
import React, {Component} from 'react' const pageTitle = () => { return( <nav> <div className="nav-wrapper teal lighten-3"> <a href="#" className="brand-logo">GeoTalk</a> <ul id="nav-mobile" className="right hide-on-med-and-down"> <li><a href='/auth/goog...
const buttons = document.querySelectorAll(".park-bike"); const modal = document.querySelector(".modal"); const title = modal.children[0]; const msg = modal.children[1]; const yes = document.querySelector(".modal-yes"); const no = document.querySelector(".modal-no"); const spin = document.querySelector(".spinner"); cons...
!function(e){const t=e.fa=e.fa||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"0% از 1%","Align cell text to the bottom":"","Align cell text to the center":"","Align cell text to the left":"","Align cell text to the middle":"","Align cell text to the right":"","Align cell text to the top":"","Align table t...
import { stringify } from 'querystring'; import { history } from 'umi'; import { fakeAccountLogin } from '@/services/login'; import { setAuthority } from '@/utils/authority'; import { getPageQuery } from '@/utils/utils'; const Model = { namespace: 'login', state: { status: undefined, }, effects: { *log...
import Lottie from '../../../libraries/Lottie' export default () => { return ( <div style={{ position: 'absolute', top: 0, width: '100%', height: '100%', zIndex: 999 }} > <div style={{ width: '100%', height: '100%', ...
/// Copyright (c) 2012 Ecma International. All rights reserved. /// Ecma International makes this code available under the terms and conditions set /// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the /// "Use Terms"). Any redistribution of this code must retain the above /// copyright an...
define({ "timeout": "Timeout", "highlightLocation": "Destacar local", "useTracking": "Prestar atenção a mudanças de local", "warning": "Entrada incorreta", "zoomScale": "Escala de zoom", "useCompass": "Exibir bússola de orientação", "useAccCircle": "Exibir precisão da localização" });
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker"],{ /***/ 1593: /*!*************************************************************************************************!*\ !*** C:/code/uniApp/uni_modules/uni-file-picker/components/uni...
const taiko = require('taiko'); const assert = require('assert'); const { click, link, text, scrollTo } = require('taiko'); const getSelectors = require('./constant') beforeSpec(async () => { selectors = await getSelectors(taiko) }); step('Validate Translation Initiative content', async function () { assert.ok(...
# coding=utf-8 # Copyright 2022 The Google Research 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 applicab...
const eslintConfig = require('@monorepo/eslint-config'); module.exports = eslintConfig;
module.exports = { env: { es6: true, node: true }, extends: [ "eslint:recommended", "plugin:react/recommended", "prettier" ], parser: "babel-eslint", parserOptions: { sourceType: "module", ecmaFeatures: { jsx: true } }, plugins: ["prettier"], rules: { "prettie...
#!/usr/bin/env python # ---------------------------------------------------------------------------- # Copyright (c) 2016--, Biota Technology. # www.biota.com # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. # ---------------------...
#! /usr/bin/env python # Copyright 2020 Lynn Root import codecs import os import re from setuptools import find_packages from setuptools import setup HERE = os.path.abspath(os.path.dirname(__file__)) ##### # Helper functions ##### def read(*filenames, **kwargs): """ Build an absolute path from ``*filename...
# Copyright 2020 Huawei Technologies Co., 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...
from precisely import assert_that, equal_to import pytest import graphlayer.core as g def test_resolver_is_dispatched_using_type_of_query(): @g.resolver("one") def resolve_one(graph, query): return 1 @g.resolver("two") def resolve_two(graph, query): return 2 resolvers = [resolve...
import Vue from 'vue' function urlParams (payload) { if (Object.prototype.toString.call(payload) !== '[object Object]') return '' let result = '' Object.keys(payload).forEach(v => { let res = `${v}=${payload[v]}` result += `&${res}` }) return result } var u = navigator.userAgent, app = navigator.a...
def salario(): #Definir variables y otros #Datos de entrada e1=int(input("Ingrese su salario inicial:")) #proceso e2=e1*0.10+e1 e3=e2*0.10+e2 e4=e3*0.10+e3 e5=e4*0.10+e4 e6=e5*0.10+e5 #Datos de salida print("sueldo del segundo año es:" , e2) print("sueldo del tercer año es:" , e3) print("su...
describe("Menu", function() { // beforeEach(function() { // menu = new Menu(); // }); it("Should list dishes with prices", function(){ menu = new Menu(); menu.print(dishes); var dishes = {chicken:3.99, veg:1.99, souffle:2.99}; var printedMenu = {chicken:3.99, veg:1.99, souffle:2.99}; exp...
const FILES_TO_CACHE = [ '/', '/db.js', '/index.js', '/index.html', '/manifest.webmanifest', '/styles.css', '/icons/icon-192x192.png', '/icons/icon-512x512.png' ]; const CACHE_NAME = "static-cache-v2"; const DATA_CACHE_NAME = "data-cache-v1"; // install self.addEventListener("install", function (evt) ...
"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 = R...
/// Copyright (c) 2009 Microsoft Corporation /// /// 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 above copyright notice, this list of conditions and ///...
import React, {Component} from 'react'; import styles from '../style/Footer.css'; class Footer extends Component { render() { return ( <footer className='navbar-fixed-bottom'><p>all created by <a href='http://www.linkedin.com/in/sil-k/' target='_blank'><i className='icon-giraffe'></i>SILK</a>|&cop...
import json from pyscf import gto,scf,mcscf, fci, lo, ci, cc from pyscf.scf import ROHF, UHF,ROKS import numpy as np import pandas as pd # THIS IS WERE IT STARTS ==================================== df=json.load(open("../../../trail.json")) spins={'Sc':1, 'Ti':2, 'V':3, 'Cr':6, 'Mn':5, 'Fe':4, 'Cu':1} nd={'Sc':(1,0...
class PlayerArrow { constructor(x, y, width, height, archerAngle) { var options = { isStatic: true, density: 0.1 }; this.width = width; this.height = height; this.body = Bodies.rectangle(x, y, this.width, this.height, options); this.image = loadImage("./assets/arrow.png"); this...
import API_URL from '../API_URL' import 'cross-fetch/polyfill' class UserService { get = () => fetch(`${API_URL}/users/5c7c1a3cadd7a477390c13bd`).then(res => res.json()) login = credentials => fetch(`${API_URL}/auth`, { 'method': 'POST', 'Content-Type': 'application/json', 'body': JSO...
# class IchingWriter(object): def __init__(self): self.name = 'ann.iching_writer.IchingWriter' def add_scalar(self, tag: str, scalar_value: 'Any', global_step: int, walltime: float=0.0) -> None: print('add_scalar: {0}={1} {2};'.format(tag, scalar_value, global_step)) def add_scalars(self,...
import Faction from './classes/Faction'; const restEndpoint = 'http://127.0.0.1:30600/getData'; const apiCall = async () => { const response = await fetch(restEndpoint); let jsonResponse = await response.json(); let allFactions = []; let theaters = []; for(var i = 0; i < jsonResponse.lengt...
#!/usr/bin/env python # input a list of TF, output the specificity score from http://www.ncbi.nlm.nih.gov/pmc/articles/PMC2836267/#SD6 # widespread tissue expression (TSPS < 1) and a second smaller population at higher tissue specificity (TSPS >= 1) import sys import pandas as pd import numpy as np import os tf_fh = ...
'use strict'; var fs = require('fs'); var noop = require('../testHelper').noop; var getBrowserifyPath = require('../testHelper').getBrowserifyPath; var mockPostMessage = require('../testHelper').mockPostMessage; var framePostMessage = require('../testHelper').framePostMessage; var VPAIDHTML5Client = require('../../js/...
import os from datetime import datetime, timedelta from typing import Optional from fastapi.security import OAuth2PasswordBearer from jose import jwt from passlib.context import CryptContext from dotenv import load_dotenv load_dotenv() SECRET_KEY = os.getenv('SECRET_KEY') ALGORITHM = "HS256" ACCESS_TOKEN_EXPIRE_...
//you will need an API key from https://developer.voicesignin.com var https = require('https'); exports.handler = (event, context, callback) => { console.log(JSON.stringify(event)); //you can only check the status of requests made by your API key //the request_id and hashed_vname can be passed to the clie...
''' Constants For Modbus Server/Client ---------------------------------- This is the single location for storing default values for the servers and clients. ''' from pymodbus.interfaces import Singleton class Defaults(Singleton): ''' A collection of modbus default values .. attribute:: Port The def...
// ==UserScript== // @name Stream Grabber // @author daedelus // @namespace https://github.com/ngsoft // @version 1.5b2.7.9 // @description Helps to download streams (videojs, jwvideo based sites) // @grant none // @run-at document-body // @compatible firefox+greasemonkey(3.17) // @compati...
import initTilt from "./js/tilt"; import initSr from "./js/sr"; import aboutTabs from "./js/about-tab"; import makeItRain from "./js/raindrops"; import "./style/main.scss"; $('a[href^="#"]').on("click", function (event) { var target = $(this.getAttribute("href")); if (target.length) { event.preventDefault(); ...
import sqlite3 import code import utils import json class Comments: """ A very simple global comment application. Does not do any sort of authentication or validation. """ @staticmethod def getComments(page_id): """ Returns the current value of the global counter. """ return json.dumps(utils.query("SELE...
import numpy as np def custom_image_generator(generator, directory, class_names, batch_size=16, target_size=(512, 512), color_mode="grayscale", class_mode="binary", mean=None, std=None, cam=False, verbose=0): """ In paper chap 3.1: we downscale the images to 1024x1024 and normal...
/* */ "format global"; 'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "AM", "PM" ], "DAY": [ ...
# Copyright (c) OpenMMLab. All rights reserved. import argparse import copy import os import os.path as osp import time import mmcv import torch from mmcv.runner import init_dist from mmcv.utils import Config, DictAction, get_git_hash from depth import __version__ from depth.apis import set_random_seed, train_depther...
const mongoose = require('mongoose'); const passportLocalMongoose = require('passport-local-mongoose'); const Schema = mongoose.Schema; const Response = require('./response'); const sgMail = require('@sendgrid/mail'); sgMail.setApiKey(process.env.SENDGRID_API_KEY); const crypto = require('crypto'); const ejs = require(...
import mixins from '../../../../mixins' export default { mixins: [mixins], data() { return { form: { data: { 'code': '', 'nik': '', 'full_name': '', 'birth_place': '', 'birth_...
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdPartyMode(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M40 10c2.21 0 4 1.79 4 4v24c0 2.21-1.79 4-4 4H8c-2.21 0-4-1.79-4-4V14c0-2.21 1.79-4 4-4h6.34L18 6h12l3.66 4H40zm-16 6c-5.52 0-10 4.48-10 10 0 .69.0...
/** * Custom error handler * @see https://expressjs.com/en/guide/error-handling.html */ // eslint-disable-next-line module.exports = (err, req, res, next) => { if (!(err instanceof Error)) { return res.status(500).json({ name: 'Error', message: 'Unknown error', }); } // HTTP status code fr...
module.exports = { content: ["./src/**/*.{js,jsx,ts,tsx}"], theme: { extend: { fontFamily: { Inter: ["Inter", "sans-serif"], }, colors: { "primary-color": "#404493", "secondary-color": "#DEDDFD", }, }, }, plugins: [], };
import temporaryGlobals from "../temporary-globals/temporary-globals"; import addHtmlToPage from "./add-html-to-page"; import getModalTemplateString from "../modal/get-modal-template-string"; import getBottomBarTemplateString from "../bottom-bar/get-bottom-bar-template-string"; import initElemGlobals from "./init-elem-...
const chai = require('chai'), expect = chai.expect, { NetworkManager } = require('../index'), request = new NetworkManager('Account'); describe('# Network Manager', () => { describe('Create a request for Account server', () => { it('should returns a NetworkManager Entity with no endpoint', () => { ...
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).i18next=t()}(this,function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return ...
// Copyright 2017 Cristian Mattarei // // Licensed under the modified BSD (3-clause BSD) License. // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // ...
import React from 'react' import clsx from 'clsx' import useBaseUrl from '@docusaurus/useBaseUrl' import styles from './feature.module.css' const Feature = ({ imageUrl, title, description }) => { const imgUrl = useBaseUrl(imageUrl) return ( <div className={clsx('col col--4')}> {imgUrl && ( ...
import * as React from 'react'; import { acceleratedRaycast, computeBoundsTree, disposeBoundsTree } from 'three-mesh-bvh'; function useBVH(mesh, options) { React.useEffect(() => { if (mesh.current) { mesh.current.raycast = acceleratedRaycast; const geometry = mesh.current.geometry; geometry.com...
/* eslint-disable no-restricted-syntax */ const messages = require('../../../../Config/messages'); const inventory = require('../../../../Components/inventory'); const utils = require('../../../../Utils'); const chatMessage = require('../../../../Components/message'); const makeOffer = require('../../../../Components/o...
import socket import sys # creating socket for server def create_socket(): try: global host global port global sockfd host = "" # the IP address is going to be itself because the server file will be in our host only (localhost/local computer) port = 9999 # port at which...
const users = [ { caption: "Facebook", image: "img/logos/facebook.svg", infoLink: "https://www.facebook.com", }, { caption: "Messenger", image: "img/logos/messenger.svg", infoLink: "https://messenger.com", }, { caption: "Reason Association", image: "img/logos/reason-association...
import Head from 'next/head' import SiteLayout from '../components/site-layout' export default function Support() { return ( <SiteLayout> <Head> <title>Support - Varlet</title> </Head> </SiteLayout> ) }
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'chrome://welcome/set_as_default/nux_set_as_default.js'; import {webUIListenerCallback} from 'chrome://resources/js/cr.m.js'; import {NuxSetAsDefa...
'use strict'; (function(module,require){var exports=module.exports={}; require('../../modules/es6.object.assign.js'); module.exports = require('../../modules/_core.js').Object.assign; })(module,require);
const Adapter = require('enzyme-adapter-react-16') const Enzyme = require('enzyme') const fetchMock = require('jest-fetch-mock') Enzyme.configure({ adapter: new Adapter() }) global.fetch = fetchMock const mockStorage = (() => { let store = {} return { getItem: key => { return store[key] }, setIt...
(function(b){b(document).ready(function(a){b(".da-circular-stat").daCircularStat();b("#_cantidad").spinner({prefix:"¢ ",min:0,max:9999999,places:0,step:1});b("#form-add-gasto select").change(function(){addInputChosen(this)});b("#_datepicker").datetimepicker({showOtherMonths:true,showWeek:true,dateFormat:"yy-mm-dd",show...
const path = require('path'); const TerserPlugin = require('terser-webpack-plugin'); const CopyWebpackPlugin = require('copy-webpack-plugin'); module.exports = { mode: 'production', output: { filename: 'bundle.min.js' }, devtool: 'eval-source-map', performance: { maxEntrypointSize: 900000, maxAss...
'use strict'; class CactbotLanguageJa extends CactbotLanguage { constructor(playerName) { super('ja', playerName); } InitStrings(playerName) { this.kEffect = Object.freeze({ BluntResistDown: '打属性耐性低下', // 0x23d, 0x335, 0x3a3 VerstoneReady: 'ヴァルストーン効果アップ', // 0x4d3 VerfireRea...
import cv2 import numpy as np import tensorflow as tf from tensorflow.keras.models import Model from tensorflow.keras.layers import Dense, GlobalAveragePooling2D, Dropout from tensorflow.keras import backend as K from attentionlayer.gwap_cbam import ChannelAttentionModule, SpatialAttentionModule from attentionlayer.d...
# Copyright 2013 Metacloud, Inc. # Copyright 2012 OpenStack Foundation # # 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 ...
import React from 'react'; import {Link} from 'react-router-dom'; import ItemService from './ItemService'; class TableRow extends React.Component { constructor(props) { super(props); this.addItemService = new ItemService(); this.handleSubmit = this.handleSubmit.bind(this); } hand...
/* Digit fifth powers Surprisingly there are only three numbers that can be written as the sum of fourth powers of their digits: 1634 = 1^4 + 6^4 + 3^4 + 4^4 8208 = 8^4 + 2^4 + 0^4 + 8^4 9474 = 9^4 + 4^4 + 7^4 + 4^4 As 1 = 1^4 is not a sum it is not included. The sum of these numbers is 1634 + 8208 + 9474 = 19316. ...
# Copyright (c) 2012 OpenStack Foundation # 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 ...
"""Arcam component.""" import asyncio from contextlib import suppress import logging from arcam.fmj import ConnectionFailed from arcam.fmj.client import Client import async_timeout from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_HOST, CONF_PORT, EVENT_HOMEASSISTANT_STOP from ...
// // 条件付き○○用ベース ver1.07 // // ------------------------------------------------------ // Copyright (c) 2016 Yana // Released under the MIT license // http://opensource.org/licenses/mit-license.php // ------------------------------------------------------ // // author Yana // var Imported = Imported || {}; Imported['C...
//============================================================================= // FloatVariables.js // ---------------------------------------------------------------------------- // (C)2016 Triacontane // This software is released under the MIT License. // http://opensource.org/licenses/mit-license.php // -----------...
const repository = require('src/infra/repositories/shop') const { Shop } = require('src/domain/shop') const create = ({ id, body }) => { return new Promise(async (resolve, reject) => { try { const domain = Shop(body) await repository.createShop(domain, id) resolve(domain) } catch (error) { ...