text
stringlengths
3
1.05M
/** * 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'); /** * Next, we will create a fresh Vu...
const { dockStart } = require('@nlpjs/basic'); (async () => { const dock = await dockStart({ use: ['Basic','Nlp'], settings: {forceNER: true}}); const nlp = dock.get('nlp'); nlp.addLanguage('en'); nlp.settings.forceNER = true nlp.addNerRuleOptionTexts('en', 'smell', 'egg','egg'); nlp.addNerRuleOptio...
import pandas as pd from app import db from app.fetcher.fetcher import Fetcher from app.models import OckovaciZarizeni class HealthFacilitiesFetcher(Fetcher): """ Class for updating health facilities table. """ FACILITIES_CSV = 'https://onemocneni-aktualne.mzcr.cz/api/v2/covid-19/ockovaci-zarizeni.c...
/******************************************************************************* The content of this file includes portions of the AUDIOKINETIC Wwise Technology released in source code form as part of the SDK installer package. Commercial License Usage Licensees holding valid commercial licenses to the AUDIOKINETIC W...
(self.webpackChunkanil_custom_app_aws=self.webpackChunkanil_custom_app_aws||[]).push([[1591],{"./node_modules/@commercetools-frontend/l10n/dist/ja-9f8c4ec4.esm.js":(a,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>i});const i={"Etc/GMT+12":{name:"Etc/GMT+12",abbr:"-12",offset:"-12:00"},"Etc/GMT+11":{name:"Etc/GMT+11",ab...
/** @module ember @submodule ember-routing */ /** Finds a controller instance. @for Ember @method controllerFor @private */ export default function controllerFor(container, controllerName, lookupOptions) { return container.lookup(`controller:${controllerName}`, lookupOptions); }
# Copyright The PyTorch Lightning team. # # 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 i...
from flask import Blueprint, g, current_app, session, jsonify, redirect, request from requests_oauthlib import OAuth2Session from rowboat.models.user import User from rowboat.util.decos import authed auth = Blueprint('auth', __name__, url_prefix='/api/auth') def token_updater(token): pass def make_discord_ses...
/** * update-user-by-email.js * Vishal Kumar */ 'use strict'; const createUpdateUserByEmail = ({ sequelize }) => { const { models: { User } } = sequelize; const updateUser = async ({ email, newEmail }) => { const criteria = { where: { email } }; const dataToUpdate = { email: newEmail }; await User.update(...
# Copyright (c) Microsoft Corporation. # # 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 wri...
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file '.\UI\lista_produtos.ui' # # Created by: PyQt5 UI code generator 5.15.4 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import ...
const constants = { cli: { clear: '\u001B[2J\u001B[0;0f' } }; const storage = require('./storage'); const commands = ['put', 'get', 'update', 'save', 'clear', 'load']; const cli = require('readline').createInterface({ input: process.stdin, output: process.stdout }); cli.start = function(restar...
const fetch = require('node-fetch') let handler = async (m, { conn, args, usedPrefix, command }) => { if (!args[0]) throw `contoh:\n${usedPrefix + command} stikerinbot` let res = await fetch(global.API('zekais', '/igs', { username: args[0] })) if (!res.ok) throw eror let json = await res.json() if (json.stat...
//---------------------------------------------------------------------------- // Borland BIDS Container Library Compatibility header // Copyright (c) 1998, Yura Bidus, All Rights Reserved // //---------------------------------------------------------------------------- #include <owl/private/defs.h> #if defined(BI_HAS...
// Gumby is ready to go Gumby.ready(function() { console.log('Gumby is ready to go...', Gumby.debug()); // placeholder polyfil if(Gumby.isOldie || Gumby.$dom.find('html').hasClass('ie9')) { $('input, textarea').placeholder(); } }); // Oldie document loaded Gumby.oldie(function() { console.log("This is an oldie...
// // Created by 方泓睿 on 2020/4/3. // #ifndef EMBRYO_INCLUDE_EMBRYO_LEXER_TOKEN_H_ #define EMBRYO_INCLUDE_EMBRYO_LEXER_TOKEN_H_ #include <map> #include <string> namespace embryo::lexer { enum class Token : int16_t { kEOF, kVarArg, // ... kSepSemi, // ; kSepComma, // , kSepDot, // . kSepColon, // : kSep...
"""Plot two partial figure-8s w/ and w/o apparent mass.""" import matplotlib.pyplot as plt import numpy as np import pfh.glidersim as gsim from pfh.glidersim.extras import simulation import util def figure_8s(N_cycles=2, duration=30, mag=1): """ Scenario: multiple figure-8s. Parameters ---------- ...
#ifndef __MT6630_CUST_CFG_H__ #define __MT6630_CUST_CFG_H__ /* scan sort algorithm */ enum { FM_SCAN_SORT_NON = 0, FM_SCAN_SORT_UP, FM_SCAN_SORT_DOWN, FM_SCAN_SORT_MAX }; /*typedef struct { fm_s32 short_ana_rssi_th; fm_s32 long_ana_rssi_th; fm_s32 desene_rssi_th; fm_s32 pamd_th; fm_s32 mr_th; ...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // https://github.com/karma-runner/karma-chrome-launcher process.env.CHROME_BIN = require("puppeteer").executablePath(); require("dotenv").config(); const { jsonRecordingFilterFunction, isPlaybackMode, isSoftRecordMod...
#!/usr/bin/env python2 # -*- coding: utf-8 -*- import requests from lxml import etree from sys import argv URL = "http://dict.youdao.com/w/eng/{}/#keyfrom=dict2.index" def translate(words): """函数说明: 因为采用 get 方式 url 中要过滤掉 / 换成全角。否则引起url的解析错误。 response.text 是 bytes 数据类型 """ #headers = {'User-Agent...
from .cuda_test import get_gpu_name # type: ignore from .__cpu_count__ import get_cpu_count from .__md5sum__ import md5sum import os import time import platform import subprocess if platform.system() != 'Linux': raise Exception # this script is designed to use Linux bash commands. Please use Linux def get_hostnam...
/** * @author alteredq / http://alteredqualia.com/ * * Blend two textures */ THREE.BlendShader = { uniforms: { "tDiffuse1": { type: "t", value: null }, "tDiffuse2": { type: "t", value: null }, "mixRatio": { type: "f", value: 0.4 }, "opacity": { type: "f", value: 1.0 } }, vertexShader: [ "varyi...
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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...
var expect = require('chai').expect , core = require('rijs.core') , css = require('./') describe('CSS Type', function() { it('should create css resource', function(){ var ripple = css(core()) ripple('foo.css', '.class { prop: value }') expect(ripple('foo.css')).to.eql('.class { prop: valu...
// Copyright (c) 2011-2016 The Bitcoin Core developers // Copyright (c) 2017-2019 The Raven Core developers // Copyright (c) 2020-2021 The Hive Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef HIVE_QT_RES...
import React from 'react'; import { get } from 'lodash'; import getLevel from './get-level'; import hasChildren from './has-children'; const toggleChildren = ({ getIndex = rowData => rowData._index, // Look for index based on convention getRows, getShowingChildren, toggleShowingChildren, props, idField = '...
"""Management-Related Middleware""" import re from django.urls import reverse from django.shortcuts import redirect # pylint: disable=invalid-name password_regex = re.compile('^/manage/admin/password_change') admin_regex = re.compile('^/manage/admin') class RestrictAdminMiddleware(object): """Middleware to pre...
// Copyright 2014 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. #ifndef EXTENSIONS_BROWSER_CONTENT_VERIFIER_IO_DATA_H_ #define EXTENSIONS_BROWSER_CONTENT_VERIFIER_IO_DATA_H_ #include <map> #include <memory> #include <...
#ifndef _KEDEIRPI35_t3_font_Arial_ #define _KEDEIRPI35_t3_font_Arial_ #include "KeDeiRPI35_t3.h" #ifdef __cplusplus extern "C" { #endif extern const KEDEIRPI35_t3_font_t Arial_8; extern const KEDEIRPI35_t3_font_t Arial_9; extern const KEDEIRPI35_t3_font_t Arial_10; extern const KEDEIRPI35_t3_font_t Arial_11; extern ...
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import "flexboxgrid2"; import "normalize.css"; import * as serviceWorker from './serviceWorker'; ReactDOM.render(<App />, document.getElementById('root')); // If you want your app to work offline and load faste...
/*************************************************************************** * * Copyright 2010, 2011 BMW Car IT GmbH * Copyright (C) 2011 DENSO CORPORATION and Robert Bosch Car Multimedia Gmbh * * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with t...
//var Plan = require("../models/plan"); var Database = require("../models/index"); const Validation = require("../util/Validation"); const ConversorJson = require("../util/ConversorJson"); class AlunosService { constructor() { this.Alunos = Database["Alunos"]; // this.Funcoes = Database["Funcoes"]; } a...
#pragma once #include "il2cpp-config.h" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif #include <stdint.h> #include "mscorlib_System_Object3080106164.h" // System.Collections.Generic.IList`1<EasyAR.ImageTrackerBaseBehaviour> struct IList_1_t2648277564; #ifdef __clang...
/* * This header is generated by classdump-dyld 1.0 * on Saturday, June 1, 2019 at 6:47:05 PM Mountain Standard Time * Operating System: Version 12.1.1 (Build 16C5050a) * Image Source: /System/Library/PrivateFrameworks/MediaPlaybackCore.framework/MediaPlaybackCore * classdump-dyld is licensed under GPLv3, Copyright © 2...
#!/usr/bin/python import os import unittest from Problems_1_to_100.Problem_9.problem_9 import find_triplet class MyTestCase(unittest.TestCase): print("Running unit tests from: " + os.path.basename(__file__) + "\n") def test_basic(self): a = 3 b = 4 c = 5 num = a + b + c ...
# -*- coding: utf-8 -*- """Base exchange class""" # ----------------------------------------------------------------------------- __version__ = '1.53.65' # ----------------------------------------------------------------------------- from ccxt.base.errors import ExchangeError from ccxt.base.errors import NetworkEr...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2018 The Emircoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef EMIRCOIN_POLICY_SETTINGS_H #define EMIRCOIN_POLICY_SETTINGS_H #include ...
""" ------------------------------------------------- File Name: OneDrive云盘目录批量下载 Description : Author : baiyuetribe date: 2019/01/07 ------------------------------------------------- 使用方法: python onedrivedl.py 加上OneDrive云盘目录链接 实际案例: python onedrivedl.py https://cloud.baiyue...
import { isDefined } from '../../core/utils/type'; import { extend } from '../../core/utils/extend'; import { PdfGrid } from './pdf_grid'; function _getFullOptions(options) { const fullOptions = extend({}, options); if(!isDefined(fullOptions.topLeft)) { throw 'options.topLeft is required'; } if...
import pytest from unittest import mock from webminer.entities.arxiv_document import ArxivDocument from webminer.interface_adapters.rest_adapters import response_object as res from webminer.interface_adapters.rest_adapters import request_objects as req from webminer.interface_adapters import process_arxiv_request as u...
const { assert, skip, test, module: describe, only } = require('qunit'); const { GPU } = require('../../src'); describe('features: read color texture'); function colorSyntaxTest(mode) { const gpu = new GPU({ mode }); const createTexture = gpu.createKernel( function(value) { this.color( value[thi...
# -*- coding: utf-8 -*- """ ------------------------------------------------- File Name: Eval.py Description : 模型验证 Author : charl date: 2018/11/26 ------------------------------------------------- Change Activity: 2018/11/26: ------------------------------------------------- """ i...
import ordrAPI from "../src/client.js"; export default ordrAPI;
/* * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
// const axios = require('axios') const apiClient = { content: { get: (url) => { return axios({ url: url }) } }, admins: { getCurrentUser: () => { return axios({ url: "/auth/authenticated/" }) }, }, explorers: { get: () => { return axios({ ...
/* CF3 Copyright (c) 2015 ishiura-lab. Released under the MIT license. https://github.com/ishiura-compiler/CF3/MIT-LICENSE.md */ #include<stdio.h> #include<stdint.h> #include<stdlib.h> #include"test1.h" int8_t x3 = INT8_MIN; int16_t x5 = -20; int32_t t2 = -1416321; uint64_t x18 = UINT64_MAX; volatile int32_t x19...
import json import pathlib from tempfile import TemporaryDirectory import pytest from . import TEST_DIR INPUTS_DIR = TEST_DIR / "inputs" def test_fromcp2k_json_simple(script_runner): ret = script_runner.run("fromcp2k", str(INPUTS_DIR / "test01.inp")) assert ret.success assert ret.stderr == "" tre...
Cypress.Commands.add('getByTestId', (id) => cy.get(`[data-testid=${id}]`));
import sys import re for line in sys.stdin: index = line.split('.',1)[0] print index letter_list = re.sub(r"[^A-Za-z]+", '', line).lower() print letter_list
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. # Copyright (C) 2015 Willow IT Pty Ltd (<http://www.willowit.com.au>). { 'name': 'New Zealand - Accounting', 'version': '1.1', 'category': 'Localization', 'description': """ New Zealand Accounting Module...
"""This module installs some napari-specific types in magicgui, if present. magicgui is a package that allows users to create GUIs from python functions https://magicgui.readthedocs.io/en/latest/ It offers a function ``register_type`` that allows developers to specify how their custom classes or types should be conve...
# Write palindrome function again but use a loop that goes for every character in the input string. def check_palindrome(str_to_test): #reverse loop index_reverse = len(str_to_test) -1 index_forward = 0 index_stop = len(str_to_test) // 2 while index_reverse >= index_stop: #print(index_reverse) char_f...
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2013-2016 Damien P. George * Copyright (c) 2016 Paul Sokolovsky * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated docu...
// @flow import type { StorageProvider } from './types'; declare var __SERVER__: boolean; /** * Performs a by-word prefix match to determine if a string is a sub query * of a given query. For example: * - 'de tea' is a subquery of 'design team' because 'de' is a substring of 'design' * and 'tea' is a substring ...
# Please change the dataset directory to your actual directory data_root = '$YOUR_DATASET_PATH/VOCdevkit/' _base_ = [ './_base_/retinanet_r50_fpn.py', './_base_/voc0712.py', './_base_/default_runtime.py' ] # We use PASCAL VOC 2007+2012 trainval sets to train, so we also use them to select the informative sampl...
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2017-2018 The PIVX developers // Copyright (c) 2018-2019 The TWINS developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_QT_BITCOINGUI_H...
"""Import a alumni spreadsheet""" from django.core.management.base import BaseCommand from profiles.api import import_alumni class Command(BaseCommand): """Import a csv of bootcamp alumni""" help = "Import a csv of bootcamp alumni" def add_arguments(self, parser): """Handle arguments""" ...
import sys try: from django.conf import settings from django.test.utils import get_runner settings.configure( DEBUG=True, USE_TZ=True, DATABASES={ "default": { "ENGINE": "django.db.backends.sqlite3", } }, ROOT_URLCONF="subcomm...
macDetailCallback("0050c2821000/36",[{"a":"3401 Virginia Rd. Cleveland OH US 44122","o":"MISCO Refractometer","d":"2008-07-30","t":"add","s":"ieee","c":"US"}]);
#!/usr/bin/env python """Ninja build configurator for foundation library example program""" import sys import os sys.path.insert(0, os.path.join('build', 'ninja')) import generator project = 'example' sources = ['main.c'] libs = ['foundation'] includepaths = ['..'] # For foundation library libpaths = ['..'] # F...
import { useState, useEffect, useCallback } from 'react'; import seedRandom from 'seed-random'; import { drop, uniq } from 'lodash/fp'; import { colors } from '../portraitGenerator/portraitConstants'; export const SHUFFLE_MODES = [ { id: 'standard', name: 'Standard' }, { id: 'standard-jokers', name: 'Standard...
import React from 'react' import forbesLogo from '../../assets/images/forbesLogo.png' import vegnewsLogo from '../../assets/images/vegnewsLogo.png' const Articles = () => ( <header className="relative top-0 px-16 md:px-24 py-12 md:py-24"> <div class="flex mb-4"> <div align="center" class="w-1/3 ml-...
"""model.py - Model and module class for EfficientNet. They are built to mirror those in the official TensorFlow implementation. """ # Author: lukemelas (github username) # Github repo: https://github.com/lukemelas/EfficientNet-PyTorch # With adjustments and added comments by workingcoder (github username). import...
"""get_score for DistMult""" import torch class Namespace: """Name space init""" def __init__(self, **kwargs): self.__dict__.update(kwargs) class DistMult: """Class for DistMult with score function""" def get_score(self, head: torch.tensor, relation: torch.tensor, tail: torc...
const Engine = Matter.Engine; const World = Matter.World; const Bodies = Matter.Bodies; const Body = Matter.Body; let engine; let world; var tower; var backgroundImg; var cannon; var angle; function preload() { backgroundImg = loadImage("./assets/background.gif"); towerImage = loadImage("./assets/...
import React, { Component } from 'react' import GridList from '@material-ui/core/GridList'; import GridListTile from '@material-ui/core/GridListTile'; import GridListTileBar from '@material-ui/core/GridListTileBar'; import Dialog from './dialog'; export class main extends Component { constructor(props) { su...
// 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...
# Copyright 2013-2022 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.package import * class RBiocmanager(RPackage): """Access the Bioconductor Project Package Repository. ...
/* * * Copyright 2015 gRPC 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 applicable law or agree...
from joblib import load from sklearn.pipeline import Pipeline from pydantic import BaseModel from pandas import DataFrame import os from io import BytesIO def get_model() -> Pipeline: model_path = os.environ.get('MODEL_PATH', 'model/model.pkl') with open(model_path, 'rb') as model_file: #Rb means read bytes ...
from __future__ import print_function import sys sys.path.insert(1,"../../../") from tests import pyunit_utils import h2o from h2o.utils.typechecks import assert_is_type import random def h2o_H2OFrame_get_frame_data(): """ Python API test: h2o.frame.H2OFrame.get_frame_data() """ h2o_iris = h2o.import_f...
/** * * App * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) */ import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import { Switch, Route, withRouter } from 'react...
# See file COPYING distributed with xnatrest for copyright and license. class XNATRESTError(Exception): """base class for xnatrest exceptions""" class CircularReferenceError(XNATRESTError): def __init__(self, url): self.url = url return def __str__(self): return 'circular refere...
// variables for js routes in file system const express = require('express'); const html = require('./routes/html') const api = require('./routes/notes') // start app and create port const app = express(); const PORT = process.env.PORT || 3001; // Sets up the Express app to handle data parsing app.use(express.json()...
# Copyright (c) 2018 Weile Wei # # Distributed under the Boost Software License, Version 1.0. (See accompanying # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) from phylanx.ast import * import numpy as np @Phylanx() def zero_dim_array(input_para): return input_para a = np.array(123456) ...
(function() { var ERROR_ID, EventEmitter, create_callsite, current_trace_error, filename, format_location, format_method, in_prepare, limit_frames, prepareStackTrace, source_map, wrap_callback, __nextDomainTick, _addListener, _listeners, _nextTick, _on, _once, _ref, _setImmediate, _setInterval, _setTimeout; EventE...
from cms import admin from .. import versionables def get_queryset(func): def inner(self, request): urls = ("cms_pagecontent_get_tree",) queryset = func(self, request) if request.resolver_match.url_name in urls: versionable = versionables.for_content(queryset.model) ...
/* * HyUpdaterTM.h * * Created on: 11 янв. 2016 г. * Author: aleksandr */ #ifndef HYUPDATERTM_H_ #define HYUPDATERTM_H_ #include <thrust/device_vector.h> #include <thrust/functional.h> typedef thrust::device_ptr<float> d_ptr; class HyUpdaterTM { public: __host__ __device__ HyUpdaterTM(d_ptr _Ez, d_ptr ...
import * as t from "https://deno.land/std/testing/asserts.ts"; import { MP4 } from "./MP4.js"; Deno.test("decodeSize", async () => { const bin = Deno.readFileSync('screenshot.mp4'); const size = await MP4.decodeSize(bin); t.assertEquals(size, { width: 1000, height: 1326 }); });
// // SVGStyleParser.h // SVGPad // // Created by Kevin Stich on 2/2/12. // Copyright (c) 2012 __MyCompanyName__. All rights reserved. // #import <Foundation/Foundation.h> #import "SVGKParser.h" @interface SVGKParserStyles : NSObject <SVGKParserExtension> { @private // NSSet *_tags, *_namespaces; } @end
import React, { Component } from 'react' const { Link } = require('react-router-dom'); class Page3 extends Component { render() { return ( <div style={{ height:'100%', bachgroundColor: 'blue', }}> <header className="p-hd">Page3</header> <Link to="/" >back to page1</Lin...
# Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Mathieu Blondel <mathieu@mblondel.org> # Olivier Grisel <olivier.grisel@ensta.org> # Andreas Mueller <amueller@ais.uni-bonn.de> # Eric Martin <eric@ericmart.in> # Giorgio Patrini <giorgio.patrini@anu.edu.au> # ...
/* * Copyright (c) 2013-2014, Roland Bock * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, this * list of co...
import sys, wx sys.path.append('../../') from scipy.ndimage import gaussian_filter from skimage.draw import line from sciwx.canvas import CanvasFrame # from sciwx.event import ImgEvent, Tool, DefaultTool from sciapp.action import ImgAction, Tool, DefaultTool class Gaussian(ImgAction): title = 'Gaussian' note = ...
#include "syscall.h" #include "task.h" #include "isr.h" #include "heap.h" #include "../drivers/screen.h" #include "../drivers/keyboard.h" #include "../drivers/ext2.h" #include "../drivers/serial.h" #include "memory.h" void initialise_syscalls() { ; } void handle_syscall(registers_t *regs) { int a; switch ...
/* @flow */ import mapToZero from './mapToZero'; import stripStyle from './stripStyle'; import stepper from './stepper'; import mergeDiff from './mergeDiff'; import defaultNow from 'performance-now'; import defaultRaf from 'raf'; import shouldStopAnimation from './shouldStopAnimation'; import React from 'react'; import...
''' Created by auto_sdk on 2020.07.29 ''' from dingtalk.api.base import RestApi class OapiBlackboardCreateRequest(RestApi): def __init__(self,url=None): RestApi.__init__(self,url) self.create_request = None def getHttpMethod(self): return 'POST' def getapiname(self): return 'dingtalk.oapi.blackboard.create...
import React, { useEffect, useRef } from "react"; import { gsap } from "gsap"; import landingVideo from "assets/images/ARW Landing.mp4"; import AniLink from "gatsby-plugin-transition-link/AniLink"; const Hero = () => { let contentRef = useRef([]); contentRef.current = []; const addToRefs = (el) => { if (el &...
const { MessageEmbed } = require("discord.js"); const db = require("quick.db"); const ms = require("parse-ms"); module.exports = { name: "beg", aliases: ['get'], run: async (bot, message, args) => { let user = message.author; let timeout = 120000; let amount = 20; let beg ...
"""Test utilities for GTF files.""" import pybedtools as pbt class GtfTestCaseMixin: """Mixin for manipulation of GTF files in tests.""" def create_gtf_attrs(self, **kwargs): """Create 9th column in GTF file - attributes.""" attrs = "" for name, value in kwargs.items(): at...
""" Basically I'm trying to cover 4 options, one of each: (Previously featured state?, Use previous positions?) --------------------------------------------------------- (no, no) = get_initial_featuring (yes, no) = get_particle_featuring (yes, yes) = translate_featuring (no, yes) = f...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_MAIN_H #define BITCOIN_MAIN_H #include "bignum.h" #include "sync.h...
/* * This header is generated by classdump-dyld 1.0 * on Sunday, September 27, 2020 at 11:54:48 AM Mountain Standard Time * Operating System: Version 14.0 (Build 18A373) * Image Source: /System/Library/PrivateFrameworks/NanoPassKit.framework/NanoPassKit * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by...
"""Wrappers around Jinja2 templates in the templates subdirectory. This is a not-yet-fully-complete experiment in improving typing and code safety for rendering Jinja2 templates. The goal is for every template page to have a corresponding wrapper class defined here, and for all handlers to interact with the template ...
import {getRectAbs} from "./helpers.js"; let dragging; const dragAndDropParameters = { startX: null, startY: null, endX: null, endY: null, curX: null, curY: null, deltaX: null, deltaY: null, draggableEl: null, draggableX: null, draggableY: null, draggableNewX: null, draggableNewY: null, draggableType:...
import { createApp } from './app' export default context => { const { app } = createApp() return app }
import { FaFacebook, FaInstagram, FaYoutube, FaTwitter, FaLinkedin } from 'react-icons/fa' const iconStyle = (Icon) => <Icon /> export const footerSocialData = [ { name: 'Facebook', icon: iconStyle(FaFacebook), }, { name: 'Instagram', icon: iconStyle(FaInstagram), }, { name: 'YouTube', icon: iconStyl...
# Company: MetaMorph, Inc. # Author(s): Joseph Coombe # Email: jcoombe@metamorphsoftware.com # Create Date: 6/5/2017 # Edit Date: 6/5/2017 # Conversion of Airbus A^3's vahanaTradeStudy>reserveMission.mat code # (located here: https://github.com/VahanaOpenSource/vahanaTradeStudy ) # to Python 2.7 for use in the MetaMo...
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
(function (root, factory) {if (typeof define === 'function' && define.amd) {define(['exports', 'echarts'], factory);} else if (typeof exports === 'object' && typeof exports.nodeName !== 'string') {factory(exports, require('echarts'));} else {factory({}, root.echarts);}}(this, function (exports, echarts) {var log = func...