text
stringlengths
3
1.05M
const { Router } = require('express') const { version } = require('../package.json') const authenticate = require('./middlewares/authenticate') const auth = require('./controllers/auth') const users = require('./controllers/users') module.exports = ({ config, repositories }) => { const app = new Router() app.get(...
import { assign } from './assign.js'; export function a_assign(arg_a) { return assign(arg_a[0], ...arg_a.slice(1)); } export { a_assign as a1_assign, a_assign as assign__a1, }; //# sourceMappingURL=a_assign.js.map
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
/* * ssd1351.c * * Created on: 2016-10-20 * Author: Jack Chen <redchenjs@live.com> * Fixed on : 2018-05-25 11:14 * Author: art-j <jjw903427521@gmail.com> * * --------SSD1351-------- * PORT TYPE PIN * RES OUT P3.6 * DC OUT P3.7 * CS OUT P1.4 * SCK OUT P1.5(SPI) * MOSI OUT P1.7(SPI)...
// Copyright 2016 The Closure Library 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 requ...
/** @file Load/boot UEFI Linux. Copyright (c) 2011 - 2013, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #ifndef __LOAD_LINUX_LIB__ #define __LOAD_LINUX_LIB__ /** Verifies that the kernel setup image is valid and supported. The kernel setup image...
import Vue from 'vue' import Vuetify from 'vuetify' import 'vuetify/dist/vuetify.min.css' import '@mdi/font/css/materialdesignicons.css' Vue.use(Vuetify) export default new Vuetify({ theme: { dark: (window.localStorage.getItem('darkMode') == null) ? false : true }, icons: { iconfont: 'mdi', }, })...
/* l_37_7.c: Translation limits larger than C99 / 7. */ /* 37.7L: Characters in a string (after concatenation). */ /* 8191 bytes long. */ char *string8189 = "123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\ 1123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\ 2123456789ab...
/* * Copyright 2016 Amadeus s.a.s. * 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...
//----------------------------------------------------------------------------// //| //| MachOKit - A Lightweight Mach-O Parsing Library //! @file MKNodeFieldTypeBoolean.h //! //! @author D.V. //! @copyright Copyright (c) 2014-2015 D.V. All rights reserved. //| //| Permission is hereby granted, f...
/* * compute the normals using the faces * by R. Falque * 16/01/2020 */ #ifndef PORCESS_FOLDER_H #define PORCESS_FOLDER_H #include <iostream> #include <stdio.h> #include <dirent.h> #include <string> #include <sys/stat.h> #include <sys/types.h> inline bool empty_folder(std::string folder_path) { // These...
""" WSGI config for monkey_pdns project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_...
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["treasure"],{"769c":function(m,a,e){"use strict";e.r(a);var g=function(){var m=this,a=m.$createElement,e=m._self._c||a;return e("div",[e("select",{directives:[{name:"model",rawName:"v-model",value:m.challenge,expression:"challenge"}],on:{change:function(a){var ...
import React from 'react'; import PropTypes from 'prop-types'; import { Heading, Box, Button, Card, CardHeader, CardBody, CardFooter, Text, Paragraph, } from 'grommet'; import { Twitter, Language, GooglePlay, Apple } from 'grommet-icons'; import ReactTooltip from 'react-tooltip'...
#!/usr/bin/env python3 import codecs import hashlib import hmac import logging import os import sys import time from pathlib import Path import click import requests from dotenv import load_dotenv from clusternutanix import nc2_cluster_status from clusternutanixvm import pcvm_status logging.basicConfig(stream=sys.st...
# coding: utf-8 __all__ = [ "toGRAY", "toRED", "toGREEN", "toYELLOW", "toBLUE", "toPURPLE", "toCYAN", "toWHITE", "toRETURN", "toACCENT", "toFLASH", "toRED_FLASH", ] def make_2COLOR_funcs(color="BLUE"): code = { "GRAY": "\033[30m", "RED": "\033[31m",...
// This file is required by the index.html file and will // be executed in the renderer process for that window. // All of the Node.js APIs are available in this process. const Peer = require('peerjs') require('dotenv').config() let stream let peer navigator.getUserMedia = navigator.getUserMedia || navigator.webkitG...
/** * PreviewBlocks component. * * Site Kit by Google, Copyright 2019 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 ...
App = { web3Provider: null, contracts: {}, account: '0x0', init: function () { return App.initWeb3(); }, initWeb3: function () { if (typeof web3 !== 'undefined') { App.web3Provider = web3.currentProvider; console.warn("Meata"); } else { ...
/**************************************************************************** * Ralink Tech Inc. * 4F, No. 2 Technology 5th Rd. * Science-based Industrial Park * Hsin-chu, Taiwan, R.O.C. * (c) Copyright 2002, Ralink Technology, Inc. * * All rights reserved. Ralink's source code is an unpublished work and the * ...
require('dotenv/config'); const { ApolloServer } = require('apollo-server'); const schema = require('./schema'); const server = new ApolloServer({ schema, playground: process.env.NODE_ENV === "development", }); module.exports = server;
/** * 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...
/*! * Materialize v0.97.3 (http://materializecss.com) * Copyright 2014-2015 Materialize * MIT License (https://raw.githubusercontent.com/Dogfalo/materialize/master/LICENSE) */ jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuer...
// mock the user api export default async () => { // sleep 500 await new Promise(res => setTimeout(res, 500)); if (document.cookie.includes("swr-test-token=swr")) { // authorized return { name: "Shu", avatar: "https://github.com/shuding.png" }; } // not author...
"""An implementation of a simple event system""" import logging class Event: """Simple event class""" def __init__(self): self._handlers = [] def add(self, handler): """Add a handler to the event.""" if not handler in self._handlers: self._handlers.append(handler) ...
#!/usr/bin/python # -*- coding: UTF-8 -*- # sudo pip install python-myqldb import MySQLdb class mysqldb(): def __init__(self): self.conn = MySQLdb.connect(host='localhost', user='root', passwd='passwd') self.cursor = self.conn.cursor() def createdb(self): self.cursor.execute("""create...
""" Aravind's janky attempt """ import numpy as np from robosuite.models.grippers.gripper_model import GripperModel from robosuite.utils.mjcf_utils import xml_path_completion class XarmGripper(GripperModel): """""" def __init__(self, idn=0): super().__init__(xml_path_completion("grippers/xarm_grippe...
#!/usr/bin/env python import unittest from grr.lib import flags from grr.server.grr_response_server import db_test_mixin from grr.server.grr_response_server.databases import mem from grr.test_lib import test_lib FLAGS = flags.FLAGS class MemoryDBTest(db_test_mixin.DatabaseTestMixin, unittest.TestCase): def Create...
import matplotlib.pyplot as plt import pandas as pd import pytask import seaborn as sns from src.config import BLD from src.config import PLOT_END_DATE from src.config import PLOT_SIZE from src.config import PLOT_START_DATE from src.config import SRC from src.plotting.plotting import style_plot from src.simulation.sea...
# -*- coding: utf-8 -*- # BSD 3-Clause License # # Copyright (c) 2019, Elasticsearch BV # 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 ...
function solve(input) { let dashboard = [ [false, false, false], [false, false, false], [false, false, false], ]; let hasFreeFields = (matrix) => matrix.some((arr) => arr.some((value) => value === false)); let win = false; let player = "X"; for (let i = 0; i < in...
import sys import os sys.path.append(os.path.dirname(__file__)) sys.path.append(os.path.join(os.path.dirname(__file__), 'thirdparty'))
import axios from 'axios'; export const getVenues = () => axios('api/venues').then(res => res.data); export const getScores = () => axios('/api/scores').then(res => res.data); export const getUser = () => axios('/api/user'); export const getPoints = () => axios('/api/points').then(res => res.data); export const update...
from django.shortcuts import render from django.utils import timezone from django.views.generic.list import ListView from django.views.generic.detail import DetailView from django.shortcuts import get_object_or_404 from django.db.models import Q from project_msit.settings import base from species.models import Species...
const dates = { January: "Janeiro", February: "Fevereiro", March: "Março", April: "Abril", May: "Maio", June: "Junho", July: "Julho", August: "Agosto", September: "Setembro", October: "Outubro", November: "Novembro", December: "Dezembro", } const getBrDate = (date) => { if (!date) return; ...
const crypto = require('crypto'); const { debugLog } = require('./utilities'); /** * memHandler - In memory upload handler * @param {Object} options * @param {String} fieldname * @param {String} filename * @returns {Object} */ module.exports = (options, fieldname, filename) => { const buffers = []; const has...
import graphene from ....product import AttributeInputType from ....product.error_codes import ProductErrorCode from ..utils import ( validate_attributes_input_for_product, validate_attributes_input_for_variant, ) def test_validate_attributes_input_for_product(weight_attribute, color_attribute): # given ...
import os import tempfile from unittest import mock from django.contrib.staticfiles.testing import StaticLiveServerTestCase from django.test import TestCase, override_settings from izi.apps.catalogue.abstract_models import MissingProductImage from izi.test import factories class TestProductImages(TestCase): de...
"""Translator module.""" import os from ibm_watson import LanguageTranslatorV3 from ibm_cloud_sdk_core.authenticators import IAMAuthenticator from dotenv import load_dotenv load_dotenv() apikey = os.environ['apikey'] url = os.environ['url'] authenticator = IAMAuthenticator('yopxMdteFYOjhmR78ImmpqgtMH9I3ySo95BzG-EJRA...
import React from 'react' import PropTypes from 'prop-types' import Helmet from 'react-helmet' import { StaticQuery, graphql } from 'gatsby' const detailsQuery = graphql` query DefaultSEOQuery { site { siteMetadata { title description } } } ` function SEO({ description, lang, m...
// // Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Jun 10 2020 10:03:13). // // Copyright (C) 1997-2019 Steve Nygard. // #import "NSObject-Protocol.h" @class NSString, SFAutoUnlockDevice; @protocol SFUnlockClientProtocol; @protocol SFUnlockProtocol <NSObject> @opti...
#!/usr/bin/env pytest ############################################################################### # $Id$ # # Project: GDAL/OGR Test Suite # Purpose: Test read/write functionality for ADRG driver. # Author: Frank Warmerdam <warmerdam@pobox.com> # ##################################################################...
#!/usr/bin/python "Create a 64-node tree network, and test connectivity using ping." from mininet.log import setLogLevel, info from mininet.node import UserSwitch, OVSKernelSwitch # , KernelSwitch from mininet.topolib import TreeNet def treePing64(): "Run ping test on 64-node tree networks." results = {} ...
""" Sorted Merge: You are given two sorted arrays, A and B, where A has a large enough buffer at the end to hold B. Write a method to merge B into A in sorted order. In - left: List[int], right: List[int] Out - None [ , , , ,1,4,6,7] [2,3,4,5] [1] O(n) time complexity where n is the sum of both array sizes O(1) s...
'use strict'; const body = { task_working_hourId: { id: { type: 'number', required: true, description: 'id' }, }, task_working_hourBodyReq: { description: { type: 'string', required: false, min: 1, max: 255, trim: true, example: '工作进展', description: '工作进展', }...
from localization import L from xlib import qt as qtx from .widgets.QBackendPanel import QBackendPanel from .widgets.QCheckBoxCSWFlag import QCheckBoxCSWFlag from .widgets.QComboBoxCSWDynamicSingleSwitch import \ QComboBoxCSWDynamicSingleSwitch from .widgets.QLabelPopupInfo import QLabelPopupInfo from .widgets.QSl...
import { pizzaPrice, orderPrice } from './example' class PizzaOrder { /** * * @param {Pizza} pizza * @param {Extra[]} extras */ constructor(pizza, ...extras) { this.pizza = pizza this.extras = Object.freeze(extras) Object.freeze(this) } } describe('recursion', () => { describe('Price...
import React from 'react'; import ReduxToastr from 'react-redux-toastr'; import { Navbar } from './components'; import Routes from './routes'; const App = () => { return ( <div> <Navbar /> <Routes /> <ReduxToastr timeOut={4000} newestOnTop={false} preventDuplicates ...
const BYTE8 font[] = { 90,126,90,24,24,90,126,90,66,126,90,24,24,90,126,66,129,66,36,36,36,36,66,129,129,66,60,0,0,60,66,129,0,0,0,36,153,90,255,0,128,0,0,192,192,252,254,252,1,1,1,3,199,255,255,127,128,128,128,192,227,255,255,254,1,0,0,3,3,63,127,63,0,0,254,32,32,248,224,0,0,0,24,254,7,31,31,0,0,0,24,127,224,248,248,0...
from datetime import datetime from typing import Any, NoReturn, TypeVar, Union _T = TypeVar("_T") def noop(*args: Any, **kw: Any) -> None: """No operation. Returns nothing""" def identity(x: _T) -> _T: """Returns argument x""" return x def default_now() -> datetime: return datetime.utcnow() def...
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1.18.20 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six f...
class Solution(object): @staticmethod def isPalindrome(x): if x < 0: return False temp = str(x) return temp == temp[::-1] # Press the green button in the gutter to run the script. if __name__ == '__main__': print(Solution.isPalindrome(121)) print(Solution.isPalindro...
""" influx -precision rfc3339 CREATE DATABASE "diematic" GRANT ALL ON "diematic" TO "diematic" CREATE RETENTION POLICY "one_day" ON "diematic" DURATION 24h REPLICATION 1 DEFAULT CREATE RETENTION POLICY "five_weeks" ON "diematic" DURATION 5w REPLICATION 1 CREATE RETENTION POLICY "five_years" ON "diematic" DURATION 260...
'use strict'; var AdmZip = require('adm-zip'); var fs = require('fs'); var helper = require('./lib/chromedriver'); var http = require('http'); var https = require('https'); var kew = require('kew'); var npmconf = require('npmconf'); var mkdirp = require('mkdirp'); var path = require('path'); var rimraf = require('rimr...
/* FAUXMO ESP Copyright (C) 2016-2020 by Xose Pérez <xose dot perez at gmail dot com> The MIT License (MIT) 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 withou...
# Copyright 2015 Google Inc. 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 applicable law or a...
# encoding: utf8 from unittest import TestCase from decode import decode_resp class TestDecode(TestCase): def setUp(self): pass def tearDown(self): pass def test_simple_str(self): assert decode_resp("+OK\r\n") == "OK" assert decode_resp("+Test\r\n") == "Test" def test_error(self): assert decode_re...
// Copyright (c) 2016 CloudMakers, s. r. o. // All rights reserved. // // You can use this software under the terms of 'INDIGO Astronomy // open-source license' (see LICENSE.md). // // THIS SOFTWARE IS PROVIDED BY THE AUTHORS 'AS IS' AND ANY EXPRESS // OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED /...
// Costum CSS sheets for IE11 and lower function msieversion() { var ua = window.navigator.userAgent; var msie = ua.indexOf("MSIE "); if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./)) // If Internet Explorer, return version number { // Remove none IE CSS var elements = document.querySe...
import React from "react" import { Link } from "gatsby" export default ({ data }) => { const { title, tags, cover_image, publish_date, desc, read_time, url, slug } = data return ( <div style={{ margin: 10 }}> <Link to={`posts/${url}/`}> <h1 style = {{ color: "black" }...
"use strict"; var Analyzer = require("scss-analyzer").Analyzer, FileHandler = require("./FileHandler"); var globalContext = {}, REQUEST_BUDGET = 10000; //Will not analyze more than these many files in one go. function update(file, budget) { var createNewAnalyzer = false, shouldUpdateContext = fal...
/*! * Bootstrap v3.2.0 (http://getbootstrap.com) * Copyright 2011-2014 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ var __js = {"affix.js":"/* ========================================================================\n * Bootstrap: affix.js v3.2.0\n * http://getbootst...
// Copyright (c) 2018 RISC Software GmbH // // This file was generated by CPACSGen from CPACS XML Schema (c) German Aerospace Center (DLR/SC). // Do not edit, all changes are lost when files are re-generated. // // Licensed under the Apache License, Version 2.0 (the "License") // you may not use this file except in com...
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
#!/usr/bin/env python # -*- coding: utf-8 -*- # Instituto Superior Técnico 2010/2011 # Operating and Distributed Systems # # Code written by: # Filipe Funenga filipe.funenga@ist.utl.pt (57977) # Martim Camacho martim.camacho@ist.utl.pt (56755) # Pedro Silva pedro.silva@ist.utl.pt (58035) # # Credits: #...
import nc from 'next-connect'; import auth from '../../middleware'; import passport from '../../middleware/passeport'; const loginHandler = nc(); loginHandler.use(auth).post((req, res, next) => { const authCallback = (err, user, info) => { if (err) return next(err); if (!user) return res.status(401).json(i...
function initializetempSegHdr1() { boxRefSegHdr1 = new kony.ui.Box({ "focusSkin": "hBoxSegHdr", "id": "boxRefSegHdr1", "isVisible": true, "orientation": constants.BOX_LAYOUT_HORIZONTAL, "position": constants.BOX_POSITION_AS_NORMAL, "skin": "hBoxSegHdr1" },...
'use strict'; var app = angular.module('certApp'); app .controller('popoverCtrl', MyModalController) .directive('modalTrigger',modalTriggerDirective) .factory('$myModal', myModalFactory); function MyModalController($scope, $uibModalInstance, title) { $scope.title = title; $scope.confirm = $uibModalInstance.close...
import os import sys import threading import time import periphery from .test import ptest, pokay, passert, AssertRaises if sys.version_info[0] == 3: raw_input = input import queue else: import Queue as queue line_input = None line_output = None def test_arguments(): ptest() # Invalid open ty...
//@ defaultNoEagerRun "use strict"; function opaqueKitString() { return "Kit"; } noInline(opaqueKitString); let someObject = new Object; let validInputTestCases = [ "undefined", "Symbol(\"WebKit\")", "null", "true", "false", "0", "{ valueOf: () => { return Math.E; } }", "-0", "...
# -*- coding: utf-8 -*- """ File name: simulation_interface.py Description: a set of functions for recording and training/testing neural networks Author: Roman Pogodin Python version: 3.6 """ IS_REPRODUCIBLE = True from warnings import warn import numpy as np # For reproducibility in Keras # https:/...
import React from 'react' import styled from '@emotion/styled' import { Link } from 'gatsby' const NavWrapper = styled('nav')` display: flex; justify-content: space-between; ` const List = styled('ul')` display: flex; justify-content: flex-end; list-style: none; padding: 0; margin: 0; ` const NavItem =...
import request from '@/utils/request' /** * 登录,返回验证信息 * @param {Object} data 行号密码 */ export function login(data) { return request({ url: '/user/login', method: 'post', data }) } /** * 获取用户信息 * @param {Object} token 验证信息 */ export function getInfo(token) { const data = { 'token': token } retu...
#coding: utf-8 import requests from datetime import datetime from pyramid.view import view_config from dogpile.cache import make_region from citedby.custom_query import journal_titles from scielojcr import jcrindicators from analytics.control_manager import base_data_manager cache_region = make_region(name='views_we...
const path = require('path') const resolve = dir => { return path.join(__dirname, dir) } // 项目部署基础 // 默认情况下,我们假设你的应用将被部署在域的根目录下, // 例如:https://www.my-app.com/ // 默认:'/' // 如果您的应用程序部署在子路径中,则需要在这指定子路径 // 例如:https://www.foobar.com/my-app/ // 需要将它改为'/my-app/' // iview-admin线上演示打包路径: https://file.iviewui.com/admin-dist/ c...
import { html, css, LitElement } from 'lit-element'; export class PandoraStatusBar extends LitElement { static get styles() { return css` .container { width: 80%; height: 80%; margin: auto; text-align: center; } .bar { border: 2px solid black; ba...
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/diy/components/swiperBg"],{"1c3b":function(t,i,n){"use strict";(function(t){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n={name:"swiperBg",props:{dataConfig:{type:Object,default:function(){}},isSortType:{type:String|Number...
module.exports = /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId])...
export default function line() { this.chart.lineGenerator = d3 .line() .x(d => this.chart.x.scale(d3.timeParse(this.settings.x.format)(d[this.settings.x.field]))) .y(d => this.chart.y.scale(d[this.settings.y.field])) .curve(d3.curveLinear); this.chart.linePath = this.chart.canvas...
class Cannon { constructor(x, y, width, height, angle) { this.x = x; this.y = y; this.width = width; this.height = height; this.angle = angle; this.cannon_image = loadImage("assets/canon.png"); this.cannon_base = loadImage("assets/cannonBase.png"); } display() { if(keyIsDown(RIGHT_...
// Copyright (c) 2009-2015 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef PYTHONBIT_WALLET_CRYPTER_H #define PYTHONBIT_WALLET_CRYPTER_H #include "keystore.h" #include "serialize.h" #include ...
const hash = require("hash-sum"); let db = require("./../config/db"); module.exports = async (req, res, next) => { if (typeof(req.headers.admin_fname) !== "string") return res.status(400).redirect("/"); db = db.connection ? db.connection : await db.connect(); const fname = req.headers.admin_fname; const ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator")); var _core = require("../../../../core"); var yup = _interopRequireWildcard(require("yup")); var _permissions = require("../../pe...
(function() { function config($locationProvider, $stateProvider) { $locationProvider .html5Mode({ enabled: true, requireBase: false }); $stateProvider .state('home', { url: '/', controller: 'HomeCtrl as home', templateUrl: '/templates/home.html' ...
#ifndef INCLUDE_CCAPI_CPP_SERVICE_CCAPI_FIX_SERVICE_FTX_H_ #define INCLUDE_CCAPI_CPP_SERVICE_CCAPI_FIX_SERVICE_FTX_H_ #ifdef CCAPI_ENABLE_SERVICE_FIX #ifdef CCAPI_ENABLE_EXCHANGE_FTX #include "ccapi_cpp/ccapi_hmac.h" #include "ccapi_cpp/service/ccapi_fix_service_ftx_base.h" namespace ccapi { class FixServiceFtx : publi...
"""This script is modified from [PARE](https://github.com/ mkocabas/PARE/tree/master/pare/models/layers). Original license please see docs/additional_licenses.md. """ import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from mmcv.runner.base_module import BaseModule from torch.nn.modul...
const { fetchAndLoad } = require("./utils"); const URLRegex = /^https?:\/\/saytruyen\.(net|com)\/truyen-.+$/; async function parseChapters($) { const rows = $(".chapter"); const chapters = []; for (let i = 0; i < rows.length; i++) { chapters.push({ name: rows[i].children[0].data, link: rows[i]....
from rolls.server.outbound_message import NodeType from rolls.types.peer_info import PeerInfo from tests.block_tools import BlockTools, create_block_tools, create_block_tools_async from rolls.util.ints import uint16 from rolls.util.keyring_wrapper import DEFAULT_PASSPHRASE_IF_NO_MASTER_PASSPHRASE from rolls.util.ws_mes...
#!/usr/bin/python # -*- coding: utf-8 -*- # Project File: Python 2.x or 3.x # DESCRIPTION """ """ __author__ = "Will Assad" __copyright__ = "Copyright 2018, Shockwave" __credits__ = ["Will Assad"] __developers__ = ["willassad"] __license__ = "GPL" __version__ = "1.0.1" __maintainer__ = "Will Assad" __email__ = "willa...
import cffi f = cffi.FFI() f.cdef(""" typedef double cpFloat; typedef struct cpVect{cpFloat x,y;} cpVect; typedef void * cpDataPointer; static const cpVect cpvzero = {0.0f,0.0f}; typedef struct cpBody cpBody; /// Rigid body velocity update function type. typedef void (*cpBodyVelocityFunc)(cpBody *body, cpVect gra...
import Observable from 'core-js-pure/full/observable'; QUnit.test('Observable.from', assert => { assert.isFunction(Observable.from); assert.arity(Observable.from, 1); });
/* Copyright (c) 2006-2009 Advanced Micro Devices, Inc. All Rights Reserved. This software is subject to the Apache v2.0 License. */ #ifndef __CBL_CBL_LN_H__ #define __CBL_CBL_LN_H__ namespace CBL_LN_TABLES { CBL_FORCEALIGN_16 static const float ln_32f_lead_tbl[129] = { 0.0000000000e+00F, 7.7...
# -*- coding: utf-8 -*- from numpy import arcsin, exp, pi, sqrt def comp_height_active(self): """Compute the height of the winding area Parameters ---------- self : SlotW28 A SlotW28 object Returns ------- Hwind: float Height of the winding area [m] """ [Z1, Z2...
#!/usr/bin/env python from setuptools import setup setup( name='mnemonic', version='0.18', author='Bitcoin TREZOR', author_email='info@trezor.io', description='Implementation of Bitcoin BIP-0039', url='https://github.com/trezor/python-mnemonic', packages=['mnemonic', ], package_data={'m...
const React = require("react"); function PencilIcon(props) { return /*#__PURE__*/React.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", "aria-hidden": "true" }, props), /*#__PURE__*/React.createElement("path", ...
import React, { Component } from 'react'; export default class Toolbar extends Component { handleZoomChange = (e) => { if (this.props.onZoomChange) { this.props.onZoomChange(e.target.value) } } render() { const zoomRadios = ['Hours', 'Days', 'Months','Quarters','Y...
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2017-04-24 20:30 from __future__ import unicode_literals import django.contrib.gis.db.models.fields from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('projects', '0037_auto_20170424_1521'), ] operation...
import React, { Component } from 'react' import { connect } from 'react-redux' import { submitNewCategory } from '../store/categories'; class CategoryForm extends Component { constructor() { super() this.state = { name: '' } this.handleSubmit = this.handleSubmit.bind(this) this.handleChange...
var searchData= [ ['throwerror',['throwError',['../classALSoundRecognition.html#a606984621bcb627de8ca08abca6ec6a6',1,'ALSoundRecognition']]] ];
// server.js // modules ================================================= var express = require('express'); var app = express(); var bodyParser = require('body-parser'); var methodOverride = require('method-override'); var mongoose = require('mongoose'); var fs = require('fs'); // con...