text
stringlengths
3
1.05M
#ifndef _cGameObject_HG_ #define _cGameObject_HG_ #include <glm/vec3.hpp> #include <glm/vec4.hpp> #include <string> #define GLM_ENABLE_EXPERIMENTAL #include <glm/gtx/quaternion.hpp> #include <queue> #include "iDebugRenderer.h" #include "Physics/cPhysicalProperties.h" #include "Physics/iPhysicalObject.h" // For the ...
const date = new Date; let ecriture = new TypeIt('#line-1', { speed: 30, startDelay: 900 }) .type(date.toLocaleString()) .pause(500) .break() .break() .type("Après quelques jours, les parents de Paul ont remarqué que son comportement avait changé. Après qu'ils lui eurent tiré les vers du nez, il...
const path = require(`path`) const _ = require(`lodash`) const { createFilePath } = require(`gatsby-source-filesystem`) const createPaginatedPages = require('gatsby-paginate') exports.createPages = ({ graphql, actions }) => { const { createPage } = actions return new Promise((resolve, reject) => { const blogP...
""" Demo/test program for the MQTT utilities. See https://github.com/sensemakersamsterdam/astroplant_explorer """ # # (c) Sensemakersams.org and others. See https://github.com/sensemakersamsterdam/astroplant_explorer # Author: Gijs Mos # ## # H O W T O U S E # # Edit configuration.json and pick a nice 'ae_id' for ...
/* Created RJudd December 30, 1997 */ /* SPAWARSYSCEN D881 */ /********************************************************************** // For TASP VSIPL Documentation and Code neither the United States / // Government, the United States Navy, nor any of their employees, / // makes any warranty, express or implied,...
/* * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved. * * Copyright (c) 2011, 2012, Intel Corporation. * * This file is part of Portals * http://sourceforge.net/projects/sandiaportals/ * * Portals is free software; you can redistribute it and/or * modify it under the terms o...
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{507:function(module,exports,__webpack_require__){__webpack_require__(508),__webpack_require__(895),__webpack_require__(905),__webpack_require__(906),__webpack_require__(901),__webpack_require__(899),__webpack_require__(898),__webpack_require__(897),__webpack_requ...
#ifndef __NEOOBD2SIM_H_ #define __NEOOBD2SIM_H_ #ifdef __cplusplus #include "icsneo/device/device.h" #include "icsneo/device/devicetype.h" #include "icsneo/platform/cdcacm.h" namespace icsneo { class NeoOBD2SIM : public Device { public: // Serial numbers are OS**** static constexpr DeviceType::Enum DEVICE_TYPE = ...
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Nov 11 2015 18:36:30). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard. // #pragma once #import <Foundation/NSObject.h> #import <net/if.h> extern char g_if_name[IF_NAMESIZE]; struct Apple80211; typedef struc...
/* * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: 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 without limitation the * ri...
angular .module('addressBook') .factory('Person', function($http, API_URL) { return { getOne(id, cb) { //ES6 enhanced obj literal. Old version - getOne: function(id, cb) { $http .get(`${API_URL}/people/${id}.json`) //returning an obj with a prop of getOne .success(cb)...
# Copyright 2017 The Bazel 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 applicable la...
var Collection, TaskCollection, _, extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var React = _interopRequireWildcar...
# -*- coding: utf-8 -*- # This file is part of the Ingram Micro Cloud Blue Connect connect-cli. # Copyright (c) 2021 Ingram Micro. All Rights Reserved. from connect.cli.plugins.play.context import Context from connect.cli.plugins.play.script import Script class Save(Script): def do(self, filename=Context.context...
def validate_BST_helper(node, min, max): if node is None: return True if node.val < min or node.val > max: return False return validate_BST_helper(node.left, min, node.val) and validate_BST_helper(node.right, node.val, max) def validate_BST(node): return validate_BST_helper(node, -1*fl...
# -*- coding: utf-8 -*- __version__ = "0.2.5"
/* eslint-disable */ var icon = require('vue-svgicon'); icon.register({ maximize: { width: 32, height: 32, viewBox: '0 0 24 24', data: '<path pid="0" d="M8 3H5a2 2 0 00-2 2v3m18 0V5a2 2 0 00-2-2h-3m0 18h3a2 2 0 002-2v-3M3 16v3a2 2 0 002 2h3"/>', }, });
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import argparse import codecs import json import logging import os import sys import time logger = logging.getLogger(__name__) class Nefnir(object): """ A rule-based lemmatizer """ def __init__(self): """ Initialize an instance of the Nef...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = getTSType; var _astTypes = require("ast-types"); var _getPropertyName = _interopRequireDefault(require("./getPropertyName")); var _p...
import React from 'react' import {Alert} from 'react-bootstrap' const Message = ({variant , children}) => { return ( <Alert variant={variant}> {children} </Alert> ) } Message.defaultProps = { variant:'info' } export default Message
# 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, software # distributed under t...
/* $OpenBSD: signal.h,v 1.7 2011/03/23 16:54:37 pirofti Exp $ */ /* $NetBSD: signal.h,v 1.4 1995/01/10 19:01:52 jtc Exp $ */ /* * Copyright (c) 1982, 1986, 1989, 1991 Regents of the University of California. * All rights reserved. * * Redistribution and use in source and binary forms, with or without...
import torch import numpy as np import imageio import cv2 from time import time def timereps(reps, func): start = time() for i in range(0, reps): func() end = time() return (end - start) / reps path_to_video = '/media/toby/Blade/Users/tobyc/Documents/Voice2Face/data/GRID/s2/swwc5p.mpg' n_iter ...
/*! * Bootstrap-select v1.14.0-beta2 (https://developer.snapappointments.com/bootstrap-select) * * Copyright 2012-2021 SnapAppointments, LLC * Licensed under MIT (https://github.com/snapappointments/bootstrap-select/blob/master/LICENSE) */ (function (root, factory) { if (root === undefined && window !==...
import { fromJS } from 'immutable'; import * as constants from '../constants'; import createReducer from '../utils/createReducer'; const initialState = { error: null, loading: false, requesting: false, user: null }; export const userDelete = createReducer(fromJS(initialState), { // eslint-disable-line import...
/* global cy */ import { editorVisible } from '../support' // usually we can visit the page before each test // but these tests use the url, which means wasted page load // so instead visit the desired url in each test describe('localStorage', () => { const themeDropdown = () => cy.get('.toolbar .dropdown-container...
/************************************************************* * * MathJax/localization/uk/TeX.js * * Copyright (c) 2009-2016 The MathJax Consortium * * 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...
from tkinter import Tk,font, StringVar, RAISED, BOTH, RIGHT from tkinter.ttk import Frame, Button, Style, Label from functions import functions import cv2 from PIL import ImageGrab from configparser import ConfigParser #loads the configuration file and reads it config = ConfigParser() config.read('config.ini') click1...
module.exports={A:{A:{"1":"E A B","2":"I D F nB"},B:{"1":"C O H P J K L Z MB M N S T U V W"},C:{"1":"0 1 2 3 4 5 6 7 8 9 G a I D F E A B C O H P J K L b c d e f g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB SB IB JB KB LB R NB OB PB QB HB Y XB TB UB VB WB RB Z MB M lB N S T U V","2":"mB cB uB xB"},D:{"1"...
(window.webpackJsonp=window.webpackJsonp||[]).push([[35],{"76GY":function(t,a,n){"use strict";n.d(a,"a",(function(){return v}));var e=n("ykax"),o=n("fXoL"),c=n("ofXK"),i=n("vYAO"),s=n("iCsr"),r=n("sYmb"),l=n("j7f2"),p=n("6ako"),b=n("QUb3");function u(t,a){if(1&t&&(o.Zb(0,"os-icon-container",9),o.Sc(1),o.mc(2,"translate...
from conans import ConanFile, CMake, tools import os class TestPackageConan(ConanFile): settings = "os", "compiler", "build_type", "arch" generators = "cmake", "cmake_find_package_multi" def build(self): cmake = CMake(self) cmake.configure() cmake.build() def test(self): ...
from unittest.mock import patch from sqlmodel import create_engine from ...conftest import get_testing_print_function def test_tutorial(clear_sqlmodel): from docs_src.tutorial.one import tutorial001 as mod mod.sqlite_url = "sqlite://" mod.engine = create_engine(mod.sqlite_url) calls = [] new_p...
const { ALLOWED_IMAGE_FORMATE } = require('../constents'); const hasValidImage = (url = '') => { const extention = getImageExtention(url); return ALLOWED_IMAGE_FORMATE.includes(extention.toLocaleLowerCase()); } const getImageExtention = (url = '') => { const fragments = url.split('.'); if (fr...
# -*- coding: utf-8 -*- # # Copyright (c) 2016, The OpenThread Authors. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright # not...
/** ****************************************************************************** * @file stm32l0xx_hal_conf.h * @author MCD Application Team * @version V1.8.0 * @date 25-November-2016 * @brief HAL configuration template file. * This file should be copied to the application folde...
# -*- coding: utf-8 -*- # Copyright (C) 2012 Anaconda, Inc # SPDX-License-Identifier: BSD-3-Clause from __future__ import absolute_import, division, print_function, unicode_literals from abc import ABCMeta, abstractmethod, abstractproperty from errno import EXDEV from logging import getLogger from os.path import basen...
/*! For license information please see 111.75c17ec3.chunk.js.LICENSE.txt */ (this["webpackJsonpmy-app"]=this["webpackJsonpmy-app"]||[]).push([[111],{475:function(e,a,n){"use strict";var r,i;n.r(a),n.d(a,"S",(function(){return r})),(i=r||(r={})).green="checkCircle",i.yellow="exclamationMarkTriangle",i.red="exclamationMa...
import operator from typing import Any, Dict import sqlalchemy as sa import sqlalchemy.sql as sql import ibis import ibis.common.exceptions as com import ibis.expr.analysis as L import ibis.expr.datatypes as dt import ibis.expr.operations as ops import ibis.expr.types as ir import ibis.expr.window as W from .databas...
import pytest # import mock import qarnot from qarnot.pool import Pool from qarnot.task import Task from qarnot.bucket import Bucket from qarnot.advanced_bucket import BucketPrefixFiltering, PrefixResourcesTransformation import datetime from .mock_connection import MockConnection class TestAdvancedResourceBucketsMetho...
const Discord = require("discord.js"); /** @type {import("../../types/command").CommandFile} */ module.exports = { commandDescription: "Affiche des informations sur le serveur actuel.", async execute(message) { if (message.guild) { /** @type {Discord.GuildMember[]} */ let admins = []; // Récupération des...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Abaxis VetScan VS2 """ from datetime import datetime from bika.lims.exportimport.instruments.resultsimport import \ AnalysisResultsImporter, InstrumentCSVResultsFileParser class AbaxisVetScanCSVParser(InstrumentCSVResultsFileParser): def __init__(self, csv): ...
/******************************************************************************* * Copyright 2020 FUJITSU LIMITED * * 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.a...
import { render, createElement, useEffect } from 'rax'; import unmountComponentAtNode from 'rax-unmount-component-at-node'; function Portal(props) { useEffect(() => { // Nested render will cause error when hydrating, it should be trigger in useEffect. render(props.element, props.container, { parent: th...
# This is here to help code readability # it helps furbot find relevant tags # Thanks to \u\_PM_ME_GFUR_ for compiling the lists this bot uses # Priority goes to gender, fetish, pairing, body, act, positions and then others. tag_limit = 25 # Get the list from a text file. def get_list(list_url): if isinstance(l...
module.exports = function(obj, keys){ obj = obj || {}; if ('string' == typeof keys) keys = keys.split(/ +/); return keys.reduce(function(ret, key){ ret[key] = obj[key]; return ret; }, {}); };
// WARNING: ODEBUG bug in corrupted // https://syzkaller.appspot.com/bug?id=06d4181acaa4748544f0 // status:6 // autogenerated by syzkaller (https://github.com/google/syzkaller) #define _GNU_SOURCE #include <arpa/inet.h> #include <dirent.h> #include <endian.h> #include <errno.h> #include <fcntl.h> #include <net/if.h> ...
/* * This header is generated by classdump-dyld 1.0 * on Sunday, June 7, 2020 at 11:45:59 AM Mountain Standard Time * Operating System: Version 13.4.5 (Build 17L562) * Image Source: /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias L...
import Typography from 'typography' import theme from 'typography-theme-grand-view' theme.overrideThemeStyles = ({ rhythm }, options) => ({ 'article h1': { textAlign: 'center', }, 'article h2': { borderBottom: '.5rem solid #fff', lineHeight: rhythm(1.5), }, 'article a': { textDecoration: 'und...
module.exports={A:{A:{"2":"I D F E nB","8":"A B"},B:{"1":"Z MB M N S T U ZB W","8":"C O H P J K L"},C:{"1":"JB KB LB R NB OB PB HB Y X WB SB TB UB VB QB Z MB M mB N S T U","2":"lB cB G a I D F E A B C O H P J K L b c d e f g h i j k l uB xB","8":"0 1 2 3 4 5 m n o p q r s t u v w x y z","456":"6 7 8 9 AB BB CB DB EB","...
# coding=utf-8 # Copyright 2022 The TensorFlow Datasets 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 appl...
__author__ = 'tsungyi' from . import _mask # Interface for manipulating masks stored in RLE format. # # RLE is a simple yet efficient format for storing binary masks. RLE # first divides a vector (or vectorized image) into a series of piecewise # constant regions and then for each piece simply stores the length of # ...
# OrcaWindTurbine imports from IO import IO import AuxFunctions as aux from OrcaflexModel import OrcaflexModel # Other imports from collections import namedtuple from itertools import product import numpy as np def set_and_run_batch(orca_model: OrcaflexModel, post) -> None: # Get a string with batch type... ...
# # For licensing see accompanying LICENSE.txt file. # Copyright (C) 2020 Apple Inc. All Rights Reserved. # from pylab import * import inspect import os import time import vray import path_utils path_utils.add_path_to_sys_path("..", mode="relative_to_current_source_dir", frame=inspect.currentframe()) import _system_...
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- * vim: set ts=8 sts=2 et sw=2 tw=80: * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ ...
var path = require('path'); var webpack = require('webpack'); module.exports = { entry: [ 'react-hot-loader/patch', // activate HMR for React 'webpack-dev-server/client?http://localhost:9700', // bundle the client for webpack-dev-server // and connect to the provided endpoint 'webpack/hot/o...
#ifndef __FREEGLUT_STD_H__ #define __FREEGLUT_STD_H__ /* * freeglut_std.h * * The GLUT-compatible part of the freeglut library include file * * Copyright (c) 1999-2000 Pawel W. Olszta. All Rights Reserved. * Written by Pawel W. Olszta, <olszta@sourceforge.net> * Creation date: Thu Dec 2 1999 * * Permission ...
export class PrefetchLink { constructor() { this.prefetchedLinks = {}; } addEventListener(dom) { dom.addEventListener('mouseenter', (e) => { const target = e.currentTarget || e.target || e.delegateTarget; // disable anchor or javascript if (target.href.i...
""" Module for loading cross-correlation features. """ from __future__ import absolute_import import re import pandas as pd from . import fileutils from . import dataset channel_pattern = re.compile(r'(?:[a-zA-Z0-9]*_)*(c[0-9]*|[A-Z]*_[0-9]*)$') def convert_channel_name(name): """ Converts channel names ...
// flow-typed signature: 5cc118bf54f582e12c263a7f5411b691 // flow-typed version: <<STUB>>/make-error_v^1.0.4/flow_v0.37.0 /** * This is an autogenerated libdef stub for: * * 'make-error' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share your work with the ...
import argparse import json import os from detectron2.config import get_cfg from detectron2.data.datasets import register_coco_instances from cvat.api import CVATAPI from training.train_cvat import strip_annotation from evaluate.performance import evaluate_on_dataset def remap_annotation(coco_json, remap_map): fo...
import { combineReducers } from 'redux'; import loginReducer from './loginReducer'; import tokenReducer from './tokenReducer'; export default combineReducers({ login: loginReducer, tokens: tokenReducer });
# # This source file is part of the EdgeDB open source project. # # Copyright 2017-present MagicStack Inc. and the EdgeDB 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...
class linkedListNode: def __init__(self, value, nextNode=None): self.value = value self.nextNode = nextNode class linkedList: def __init__(self, head=None): self.head = head def printList(self): currentNode = self.head while currentNode is not None: pr...
var searchData= [ ['enabledynamicobjects',['enableDynamicObjects',['../../../../../doc/html/classchai3d_1_1c_generic_tool.html#ac7f76357b7d878293d2d610808e9df29',1,'chai3d::cGenericTool']]], ['enableforces',['enableForces',['../../../../../doc/html/classchai3d_1_1c_delta_device.html#ab07c0e2688bd5c566eac77b7c811797...
""" @generated cargo-raze generated Bazel file. DO NOT EDIT! Replaced on runs of cargo-raze """ load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository") # buildifier: disable=load load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") # buildifier: disable=load load("@bazel_tools//too...
window.onload = function(){ var game = document.getElementById('demo1'); var c = game.getContext("2d"); //load images var bird = document.createElement("img"); var Northpipe = document.createElement("img"); var Southpipe = document.createElement("img"); var bg = document.createElemen...
#input # 41 4 def f(n, k): if n == 1: return 1 return ((f(n-1, k)+k-1) % n) + 1 (n, k) = (int(x) for x in input().split()) survivor = f(n, k) print(survivor)
/* * 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, software * distributed u...
/* kakao map 연동 API */ function sample4_execDaumPostcode() { new daum.Postcode({ oncomplete: function(data) { // 팝업에서 검색결과 항목을 클릭했을때 실행할 코드를 작성하는 부분. // 도로명 주소의 노출 규칙에 따라 주소를 표시한다. // 내려오는 변수가 값이 없는 경우엔 공백('')값을 가지므로, 이를 참고하여 분기 한다. var roadAddr = data.roadAddress; // 도로명 주소 변수 var ...
import streamlit as st import pandas as pd import numpy as np from joblib import dump,load import pandas as pd import numpy as np import tensorflow as tf #import re from tensorflow.keras.layers import Activation ,Input,LSTM,GRU,Dense ,Flatten,Embedding,Dropout,Bidirectional from tensorflow.keras.utils i...
from __future__ import absolute_import from talon.quotations import register_xpath_extensions try: from talon import signature ML_ENABLED = True except ImportError: ML_ENABLED = False __version__ = "1.5.2" def init(): register_xpath_extensions() if ML_ENABLED: signature.initialize()
import tensorflow as tf class CustomLoss(): def __init__(self, class_names, class_weights): self.class_names = class_names self.class_weights = class_weights def loss_fn(self, y_true,y_pred): loss = 0 y_pred = tf.keras.activations.sigmoid(y_pred) ...
# coding: utf-8 import json import pytest from mock import Mock from boxsdk.object.legal_hold_policy import LegalHoldPolicy from boxsdk.object.legal_hold_policy_assignment import LegalHoldPolicyAssignment from boxsdk.config import API from boxsdk.network.default_network import DefaultNetworkResponse @pytest.fixture(...
// COPYRIGHT © 2021 Esri // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // This material is licensed for use under the Esri Master License // Agreement (MLA), and is bound by the terms of that agreement. // You may redistribute...
description = "a recurrent scrapper of tweets related to 'elecciones 2020 peru'" scrapingtime = "each 30 seconds" about = "you can see the main repository here https://github.com/minskylab/pe2020ru" endpoints = { "base": "https://peru2020scrapper.minsky.cc", "about": "/about", "frequency_count": "/freqs", ...
/** * @license * Copyright 2021 The FOAM Authors. All Rights Reserved. * http://www.apache.org/licenses/LICENSE-2.0 */ foam.CLASS({ package: 'foam.u2.tag', name: 'Button', extends: 'foam.u2.View', documentation: 'Basic button view. Should be extended to add functionality', requires: [ 'foam.net.HTT...
# -*- coding: utf-8 -*- # Author: Eric Larson <larson.eric.d@gmail.com> # # License: BSD (3-clause) from distutils.version import LooseVersion import gc import os import os.path as op from pathlib import Path import shutil import sys import warnings import pytest # For some unknown reason, on Travis-xenial there are s...
# solve sudoku 4 by 4 using qp-solver import numpy as np from qpsolvers import solve_qp # sudoku setup sudoku_dim = 4 box_row_n = box_col_n = 2 # sudoku table initialization with 3d-tensor # each entry of the table takes a value in between 0 and 1 tab = np.zeros((sudoku_dim, sudoku_dim, sudoku_dim)) # convert 3d to...
# Copyright 2015 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...
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Libmodbus(AutotoolsPackage): """libmodbus is a free software library to send/receive data ...
require("dotenv").config(); //const io = require('@pm2/io') const { createBluetooth } = require("./src"); var { Timer } = require("easytimer.js"); var timerInstance = new Timer(); const axios = require('axios'); const { POLAR_MAC_ADRESSE, USERS_ENDPOINT, PULSESENSORS_ENDPOINT, ID } = process.env; /*const state = io.me...
// - Import react components import React, { Component } from 'react' import _ from 'lodash' import { connect } from 'react-redux' import { Slider, ScrollView, View, Text, TextInput, Image, TouchableOpacity, KeyboardAvoidingView } from 'react-native' import { changeData, dbSignup } from './../../actions'; import { Card...
function ShowPerformPage(res) { const _movies = res.movies; const _theatres = res.theatres; var movies_opts = ""; var theatres_opts = ""; for (var key in _movies) movies_opts += `<option value=${_movies[key].uuid}>${_movies[key].title}</option>`; for (var key in _theatres) theatr...
'use strict'; const Customers = (sequelize, DataTypes) => { return sequelize.define('Customers', { name: { type: DataTypes.STRING, required: true, }, }) } module.exports = Customers;
# Copyright 2012-2017 The Meson development 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 agree...
//================================================================================================= /*! // \file blazemark/blaze/SVecDVecCross.h // \brief Header file for the Blaze sparse vector/dense vector cross product kernel // // Copyright (C) 2013 Klaus Iglberger - All Rights Reserved // // This file is part ...
#!/usr/bin/python # -*- coding: utf-8 -*- """ This module is part of the opsi PackageBuilder see: https://forum.opsi.org/viewforum.php?f=22 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 ...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var msalCommon = require('@azure/msal-common'); var axios = _interopDefault(require('axios')); var uuid = require('uuid'); va...
import os import unittest import numpy as np import adetector.train as train from adetector.config import TEST_DATA_FOLDER, N_MFCC, N_TIMEBINS from adetector.DataGenerator import DataGenerator_Sup class TestUtils(unittest.TestCase): def setUp(self): self.n_ads = 2293 # number of ad files self.n...
import numpy as np from tools import sound_freq_sweep from psychopy.sound import Sound p = dict( # Display: monitor = 'testMonitor',#'ESI_psychophys', full_screen = False, screen_number = 0, #1, refresh_rate = 60, # Hz # Sounds: correct_sound = Sound(sound_freq_sweep(2000,2000,.1)), inc...
""" Adapted from: https://github.com/dl4sits/BreizhCrops Original implementation of Transformer model: https://github.com/dl4sits/BreizhCrops/blob/master/breizhcrops/models/TransformerModel.py """ import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torch.nn...
/*Copyright (c) 2019 , saberyjs@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the foll...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const cdk = require("@aws-cdk/cdk"); const path = require("path"); const lambda = require("../lib"); const app = new cdk.App(); const stack = new cdk.Stack(app, 'aws-cdk-layer-version-1'); // Just for the example - granting to the current acco...
module.exports.Token = require('./token.model'); module.exports.User = require('./user.model'); module.exports.Thai = require('./thai.model'); module.exports.Lop = require('./lop.model'); module.exports.Sinhvien = require('./sinhvien.model'); module.exports.ApparelSize = require('./apparelSize.model'); module.exports.P...
from rest_framework import serializers from rest_framework.utils.serializer_helpers import ( ReturnDict ) from events import models class PrimarySpeakerSerializer(serializers.Serializer): thumbnail_url = serializers.CharField() name = serializers.CharField() github_profile_url = serializers.CharField...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommentV1Schema = void 0; const pip_services3_commons_node_1 = require("pip-services3-commons-node"); const pip_services3_commons_node_2 = require("pip-services3-commons-node"); const pip_services3_commons_node_3 = require("pip-service...
from typing import FrozenSet from collections import Iterable from math import log, ceil from mathsat import msat_term, msat_env from mathsat import msat_make_constant, msat_declare_function from mathsat import msat_get_integer_type, msat_get_rational_type, msat_get_bool_type from mathsat import msat_make_and, msa...
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2017-12-08 13:33 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('auth',...
const web3 = require('./config/web3setup'); var contract = require('./config/contract'); const seller_account = web3.eth.accounts.privateKeyToAccount('0xC45BEF72C39AF1E0E3DAE6D7A066D5608EAD56F19F01CDA2C94F4EAEBFC5B576'); web3.eth.accounts.wallet.add(seller_account); console.log("Seller_account_address: "+seller_accoun...