text
stringlengths
3
1.05M
from copy import deepcopy from pprint import pprint import uuid DEFAULT_MAJOR = { "id": "13", "imgUrl": "#", "type": "major", "name": "Sex Slavery", "name2": "bondage, masochism, submission", "prerequisites": "414 420", "description": "You will become a sex slave who derives pleasure from...
import React from 'react' function Test({ title }) { return <span>{title}</span> } export default Test
import React from 'react'; import Container from './styled-components/Container'; import NickDiv from './styled-components/NickDiv'; import Avatar from './styled-components/Avatar'; import kuc1 from '../../../../../assets/icons/kuc1.svg'; import Nick from './styled-components/Nick'; import FlexGapContainer from '...
#!/usr/bin/python """A more advanced Mapper, using Python iterators and generators.""" import sys from collections import Counter def read_input(file): for line in file: # split the line into words yield line.split() def read_word(word): c = Counter(word) for k,v in c.items(): yi...
"""Custom shna errors.""" class ShnaError(Exception): """Custom shna exception class.""" pass
'use strict'; function create(value) { return /* Indices */{ _0: value }; } function value(indices) { return indices._0; } function getCount(indices) { return indices._0.length; } exports.create = create; exports.value = value; exports.getCount = getCount; /* No side effect */
/** * Controla las acciones que se deben ejecutar en la página de Lista de Modelos * @class Session_List * @constructor * @module Public */ Session_List = function () { var self = this; var modelsTable, sessionsTable; /** * Ejecuta las acciones de configuración necesarias * @method init ...
define(["require", "exports", "../Libs/protos"], function (require, exports, protos_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class ProtoCreator { static Init() { if (this._init) { return; } this._init = true...
(function(a){function f(a){document.location.href=a}function g(){return a(".mnav").length?!0:!1}function h(b){var c=!0;b.each(function(){if(!a(this).is("ul")&&!a(this).is("ol")){c=!1;}});return c}function i(){return a(window).width()<b.switchWidth}function j(b){return a.trim(b.clone().children("ul, ol").remove().end()....
__version_info__ = (1, 1, 3) __version__ = ".".join("{0}".format(x) for x in __version_info__)
# ------------------------------------------------------------------------------------------ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. # -------------------------------------------------------------------...
import React, { Component } from 'react'; import { Redirect } from 'react-router-dom'; import requester from '../../../api/utilities/requester'; import observer from '../../../api/utilities/observer'; export default class Logout extends Component { logout = () => { requester.post('user', '_logout', 'kinve...
# -*- coding: utf-8 -*- from six.moves import http_cookiejar as cookielib import time import os import requests from requests import exceptions as excps from smart_qq_bot.config import ( SMART_QQ_REFER, COOKIE_FILE, SSL_VERIFY, ) from smart_qq_bot.logger import logger def _get_cookiejar(cookie_file): ...
/* This is a file for sample data used during development. */ const recipes = [ { name: "Chana Masala", categories: [ "Lunch", "Dinner", "Meal Prep", "Easy to Cook" ], nutrition: { calories: 500, protien: 25, carbs: 50, fat: 22 }, servings: 4, description: "Chana masala, also kn...
"""Climate data pre-processing""" # Built ins import logging from distutils.version import LooseVersion from datetime import datetime # External libs import numpy as np import netCDF4 import xarray as xr # Locals from oggm import cfg from oggm import utils from oggm import entity_task from oggm.exceptions import Inva...
'use strict'; /* eslint-disable no-mixed-operators */ module.exports = (red, green, blue, alpha) => { const isPercent = (red + (alpha || '')).toString().includes('%'); if (typeof red === 'string') { const res = red.match(/(0?\.?\d{1,3})%?\b/g).map(Number); // TODO: use destructuring when targeting Node.js 6 re...
from tqdm import tqdm from . import limits from . import delay def unfollow(self, user_id): user_id = self.convert_to_user_id(user_id) if self.check_user(user_id): return True # whitelisted user if limits.check_if_bot_can_unfollow(self): delay.unfollow_delay(self) if super(self._...
from setuptools import setup, find_packages from codecs import open from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( name='orders', version='0.0.1', description='Orders microservice', ...
frappe.ui.form.on("System Settings", "refresh", function(frm) { frappe.call({ method: "frappe.core.doctype.system_settings.system_settings.load", callback: function(data) { frappe.all_timezones = data.message.timezones; frm.set_df_property("time_zone", "options", frappe.all_timezones); $.each(data.messag...
'use strict'; const Command = require('../../../../../../'); class TestCommand extends Command { constructor(rawArgv) { super(rawArgv); this.yargs.usage('test command'); this.yargs.options({ a: { type: 'string', description: 'test argv: a description', }, }); } asyn...
from setuptools import setup with open('README.md', 'r') as f_desc: long_description = f_desc.read() setup( name='exheader', version='0.0.1', description='Library for handling 3ds exheader files', long_description=long_description, long_description_content_type='text/markdown', py_modules=...
/* * Copyright (c) 2006-2021, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2018-11-5 SummerGift first version */ #ifndef __DRV_SPI_H__ #define __DRV_SPI_H__ #include <rtthread.h> #include "rtdevice.h" #include <rthw.h> #includ...
import React from 'react' import { Link } from 'gatsby' import logo from '../img/logo.png' const Navbar = class extends React.Component { constructor(props) { super(props) this.state = { active: false, navBarActiveClass: '', } } toggleHamburger = () => { // toggle the active boolean ...
""" This file is part of the web2py Web Framework Copyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu> License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html) """ from storage import Storage global_settings = Storage() settings = global_settings # legacy compatibility
$(function () { $(".exclusion_answer").click(function () { if ($(this).prop('checked') == true){ $(this).parent().parent().parent().find('input').prop('disabled', true); $(this).parent().parent().parent().find('input').prop('checked', false); $(this).prop('disabled', fals...
// // AFOMediaView.h // AFOPlayer // // Created by xueguang xian on 2017/12/28. // Copyright © 2017年 AFO. All rights reserved. // #import <UIKit/UIKit.h> @protocol AFOMediaViewDelegate @optional - (void)buttonTouchActionDelegate:(BOOL)isSuspended; @end @interface AFOMediaView : UIView - (instancetype)initWithFra...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b)...
// Copyright (c) 2012 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 COMPONENTS_CAPTIVE_PORTAL_CONTENT_CAPTIVE_PORTAL_LOGIN_DETECTOR_H_ #define COMPONENTS_CAPTIVE_PORTAL_CONTENT_CAPTIVE_PORTAL_LOGIN_DETECTOR_H_ ...
import unittest from .context import mlog_extended ExtendedCompiler = mlog_extended.ExtendedCompiler CompilationError = mlog_extended.CompilationError class ControlTestSuite(unittest.TestCase): """Test xcontrol instructions.""" def test_control_actions(self): compiler = ExtendedCompiler() src...
# encoding: utf-8 import os import re from datetime import datetime from typing import Tuple import requests from responses import Response from tqdm import tqdm from . import session from ..util import copyfileobj __data_endpoint__ = "data" base_url = f"{session.params.get('api_base_url')}/{__data_endpoint__}" ...
from torchvision import models from torchvision import transforms from PIL import Image import argparse import torch import torchvision import torch.nn as nn import numpy as np # Device configuration device = torch.device('cuda' if torch.cuda.is_available() else 'cpu') def load_image(image_path, transform=None, max_...
from .decision_tree_classifier import DecisionTreeClassifier from .decision_tree_regressor import DecisionTreeRegressor __all__ = [ 'DecisionTreeClassifier', 'DecisionTreeRegressor', ]
from django.contrib.auth.models import User from django.core import mail from django.http import HttpResponseRedirect from django.test import override_settings, RequestFactory, TestCase from django.urls import reverse import json from tests.utils import assert_urls_equivalent from uniauth.models import Institution, Ins...
import logging import numpy from ..functions import get_subspace, parse_indices from . import abstract logger = logging.getLogger(__name__) class RaggedIndexedSubarray(abstract.CompressedSubarray): """An underlying indexed ragged sub-array.""" def __getitem__(self, indices): """x.__getitem__(indic...
# -*- coding: utf-8 -*- """ Created on Thu Apr 6 12:20:16 2017 @author: tyler """ def get_tibet_24x24_param(): print('inside get_tibet_24x24_param') output_dict = dict() output_dict['ftp_filename'] = '24km' output_dict['no_snow_planet_name'] = 'dry_planet_24km.asc' output_dict['lat_grid_filename...
const fetch = require('node-fetch'); class HTTPCHallenge{ constructor(name, guests, menu){ this.name = name; this.guests = guests this.menu = menu this.id = "" this.url = "https://http-challenge.multiverse-coaches.io/apprentices"; } async sendResponse(url, method, ...
########################################################## # BASIC CLASSIFICATION FUNCTIONS # ########################################################## # rcATT is a tool to prediction tactics and techniques # from the ATT&CK framework, using multilabel text # classification and post proce...
# Copyright (c) 2012 ARM Limited # All rights reserved. # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implementation of the functionality ...
#include <emote.h> EMOTE( "~Name ~verblisten attentively.", "~Name ~verblisten carefully to ~targ." )
//{{NO_DEPENDENCIES}} // Microsoft Visual C++ で生成されたインクルード ファイルです。 // 次で使用: SolutionDefineTestCPP.rc #define IDS_APP_TITLE 103 #define IDR_MAINFRAME 128 #define IDD_SOLUTIONDEFINETESTCPP_DIALOG 102 #define IDD_ABOUTBOX 103 #define IDM_ABOUT 104 #define IDM_EXIT 105 #define IDI_SOLUTIONDEFINETESTCPP 107...
// // AAPLAppDelegate.h // APPLAdvancedCollection // // Created by Danil Zvyagintsev on 08/21/2015. // Copyright (c) 2015 Danil Zvyagintsev. All rights reserved. // @import UIKit; @interface AAPLAppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
/* FreeRTOS V8.0.1 - Copyright (C) 2014 Real Time Engineers Ltd. All rights reserved VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION. *************************************************************************** * ...
#include "radix_tree.h" #include <stdlib.h> #include <stdio.h> #define RT_BRANCH_FACTOR_BIT (6) #define RT_BRANCH_FACTOR (1 << RT_BRANCH_FACTOR_BIT) #define RT_BRANCH_FACTOR_MASK (RT_BRANCH_FACTOR - 1) #define RT_MAX_HEIGHT (11) // div_round_up (64, 6) int initialized = 0; int max_height; static unsigned long...
// ============================================================================ // Copyright (c) 2013, FORTH-ICS / CARV // (Foundation for Research & Technology -- Hellas, // Institute of Computer Science, // Computer Architecture & VLSI Systems Laboratory)...
import React from "react"; import { PhoneFilled } from "@ant-design/icons"; import * as Styled from "./style"; const Contact = () => ( <Styled.Container> <Styled.Title> Fale comigo <PhoneFilled /> </Styled.Title> <h3>dianaregina22@outlook.com.br</h3> <h3>(11) 954660546</h3> </Styled.Container...
'use strict'; // Enforce use of strict verion of JavaScript /* @Doc Config.js is a Module used to create and export configuration variables, and allow users to use variables read from the envrionmental variables. */ // See if any additional acceptable environmental variables injected, Overwrite existing defaults if...
/* Copyright 2018, 2019 New Vector Ltd Copyright 2019, 2020 The Matrix.org Foundation C.I.C. 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 r...
import traceback import math from discord.ext import commands import discord.errors async def handle_error(ctx, err): can_send = ctx.channel.permissions_for(ctx.me).send_messages if not can_send: await react_or_false(ctx, ("\U0001f507",)) if isinstance(err, commands.errors.CommandOnCooldown): ...
// Copyright (c) 2018 The WINCASHCOIN developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef WINCASHCOIN_DETERMINISTICMINT_H #define WINCASHCOIN_DETERMINISTICMINT_H #include <libzerocoin/Denominations.h> #include <u...
// // CFDanmaku.h // 31- CFDanmakuDemo // // Created by 于 传峰 on 15/7/9. // Copyright (c) 2015年 于 传峰. All rights reserved. // #import <UIKit/UIKit.h> typedef enum : NSInteger { CFDanmakuPositionNone = 0, CFDanmakuPositionCenterTop, CFDanmakuPositionCenterBottom } CFDanmakuPosition; @interface CFDanmak...
#ifndef MSCKF_MONO_SENSOR_TYPES_H_ #define MSCKF_MONO_SENSOR_TYPES_H_ #include <Eigen/Dense> #include <Eigen/Geometry> #include <vector> namespace msckf_mono { template <typename _Scalar> using Quaternion = Eigen::Quaternion<_Scalar>; template <typename _Scalar> using Matrix3 = Eigen::Matrix<_Scalar, 3, ...
# -*- coding=utf-8 -*- # library: jionlp # author: dongrixinyu # license: Apache License 2.0 # Email: dongrixinyu.89@163.com # github: https://github.com/dongrixinyu/JioNLP # description: Preprocessing tool for Chinese NLP """ 给定一篇中文文本,确定其归属地。主要应用在新闻领域,确定新闻的发生地 注意事项: 1、该方法主要应用于舆情分析与统计 2、该方法采用了北大分词器 pkuseg,采用词...
#!/usr/bin/env python3 import sys import json from cvra_bootloader import utils def parse_commandline_args(): """ Parses the program commandline arguments. Args must be an array containing all arguments. """ epilog = ''' The configuration file must contained a JSON-encoded map. Example: "{"n...
""" Django settings for main project. Generated by 'django-admin startproject' using Django 3.1.7. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ import os from ...
""" Author: Thomas G. Close (tclose@oist.jp) Copyright: 2012-2014 Thomas G. Close. License: This file is part of the "NineLine" package, which is released under the MIT Licence, see LICENSE for details. """ # from pype9.utils.mpi import mpi_comm import os.path import nineml import ninemlcatalog from ar...
import React, { Component } from "react"; import "../../../node_modules/bootstrap/dist/css/bootstrap.min.css"; import "../../css/frameworks/normalize.css"; // Things to consider // - use classNameName instead of className // - self closing tag must be closed with a slash // - example: <img /> // - this is not ...
import pandas import matplotlib.pyplot as plt def config_plot(): plt.rcParams['figure.figsize'] = [12, 8] plt.rcParams['figure.dpi'] = 100 def load_covid() -> pandas.DataFrame: df = load_covid_raw() fixed_df = df.drop(labels=["Province/State", "Lat", "Long"], axis=1) return fixed_df....
#ifndef __SOUNDBANK_H__ #define __SOUNDBANK_H__ #include <string> #include <vector> class AudioEvent; class SoundBank { public: std::vector<AudioEvent*> events; std::string name; std::string path; unsigned int id = 0; }; #endif //__SOUNDBANK_H__
import { cloneMock, mockCollection } from '../mocks/entities' import sinon from 'sinon' import { expect } from 'chai' export function entityWrappedTest(setup, { wrapperMethod }) { const { makeRequest, entityMock } = setup() const entity = wrapperMethod(makeRequest, entityMock) expect(entity.toPlainObject()).eql(...
from unittest import TestCase import numpy as np import pandas as pd from copulas.multivariate.tree import Tree, TreeTypes from copulas.univariate.kde import KDEUnivariate class TestCenterTree(TestCase): def setUp(self): self.data = pd.read_csv('data/iris.data.csv') self.tau_mat = self.data.corr...
/* @flow */ import config from '../config' import Watcher from '../observer/watcher' import { mark, measure } from '../util/perf' import { createEmptyVNode } from '../vdom/vnode' import { updateComponentListeners } from './events' import { resolveSlots } from './render-helpers/resolve-slots' import { toggleObserving }...
/** * * GigListItem.js * * This container renders our gig list items, displaying the company icon, * gig type, description, promo code and links to review websites and the * sign up website */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import ListItem ...
import yaml import netaddr import os import log as logging LOG = logging.getLogger("net-init-opencontrail") config_path = os.path.join(os.path.dirname(__file__), "network.cfg") def setup_bondings(bond_mappings): print bond_mappings def add_vlan_link(interface, ifname, vlan_id): LOG.info("add_vlan_link enter"...
import time from opcua import Client from colorama.ansi import Fore from uteis import * # ip local do cliente url = 'opc.tcp://localhost:4840' client = Client(url) client.connect() print(Fore.GREEN, 'cliente conectado') print(' client connected ', Fore.RESET) dadoslista = [] dadosLinhas =[] while True: Dados...
#!/usr/bin/env python3 import os import argparse import re import io import pysam def parse_args(): parser = argparse.ArgumentParser() parser.add_argument('--vcf-in', '-i', dest='input', type=str) parser.add_argument('--out-pattern', '-o', dest='output', type=str) parser.add_argument('--chromosomes',...
"""Trainer Class @author: vasudevgupta """ import tensorflow as tf from pathlib import Path import logging from tf_lightning.trainer.training_loop import TrainingLoop from tf_lightning.trainer.trainer_config import TrainerConfig logger = logging.getLogger(__name__) class Trainer(TrainerConfig, TrainingLoop): ...
from functools import partial from hashlib import sha1 from os import environ, path from distutils import version from subprocess import DEVNULL, PIPE, CalledProcessError, check_output, check_call, run import platform import warnings import sys import time import numpy.ctypeslib as npct from codepy.jit import compile_...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.Create...
var searchData= [ ['click_5fsound_593',['click_sound',['../_resource_identifiers_8h.html#a0992169b8996152a51256ea9fa44cda1af2f0ac6b95c75a652e8b1e12772248fa',1,'ResourceIdentifiers.h']]], ['clock_5ftick_5fsound_594',['clock_tick_sound',['../_resource_identifiers_8h.html#a0992169b8996152a51256ea9fa44cda1aba1d47ae1226...
########################################################################## # Copyright (c) 2013, ETH Zurich. # All rights reserved. # # This file is distributed under the terms in the attached LICENSE file. # If you do not find this file, copies can be found by writing to: # ETH Zurich D-INFK, CAB F.78, Universitaetstr...
# -*- coding: utf-8 -*- # Copyright 2018 IBM. # # 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 agre...
# -------------------------------------------------------- # Faster R-CNN # Copyright (c) 2015 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by Ross Girshick and Sean Bell # -------------------------------------------------------- import caffe import yaml import numpy as np import nump...
/* buoyant.js Buoyant force Sparisoma Viridi | dudung@gmail.com 20180602 Create this library from previous force.js library. 20190630 2000 Add dir for non-horizontal fluid surface. 20190531 0630 Fix sliding on water surface plane. 20200618 2143 Integrate to abm-x manually, comment the last part. 2143 Co...
/* * Copyright (c) 1999 * Boris Fomitchev * * This material is provided "as is", with absolutely no warranty expressed * or implied. Any use is at your own risk. * * Permission to use or copy this software for any purpose is hereby granted * without fee, provided the above notices are retained on all ...
import _ from 'lodash'; import React from 'react'; import { Sparklines, SparklinesLine, SparklinesReferenceLine } from 'react-sparklines'; export default (props) => { function average(data){ return _.round(_.sum(data)/data.length); } return( <div> <Sparklines height={100} width={180} data={props.data}> ...
#!/usr/bin/python3 import getopt import subprocess import requests import urllib3 import os import sys urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) CLUSTER_API = "cluster/api/v1.0" snapdata_path = os.environ.get('SNAP_DATA') snap_path = os.environ.get('SNAP') callback_tokens_file = "{}/credenti...
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
import yaml class Yaml_Helper(): def __init__(self, config_fname): self.config = self.load_config(config_fname) or {} @staticmethod def load_config(config_fname): """ Loads the configuration file config_file given by command line or config.DEFAULT_CONFIG when none is specif...
############################################################################### # Copyright (c) 2017, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory # Written by Francesco Di Natale, dinatale3@llnl.gov. # # LLNL-CODE-734340 # All rights reserved. # This file is part ...
function generate(inputArray){ var beam = inputArray['beam']; var shade = inputArray['shade']; var weight = inputArray['weight']; var count = parseInt(inputArray['count']); var countArray = Array.from(new Array(count), (x,i) => i); var angleInterval = 90/count; var output = ` <svg xmlns='http://www.w3....
import React from 'react'; import { Link } from 'react-router-dom'; import { Sidebar, UncontrolledTooltip } from './../../../components'; import { VersionSelector } from '../VersionSelector'; const SidebarTopB = () => ( <React.Fragment> { /* START Sidebar TOP: B */ } { /* START DESKTO...
/** * ---------------------------------------------------------------------------------------------------- * Update LDAP Mapping for a User [Run] * * @description - Update ldap mapping for a user using the Github API * * @author Buildable Technologies Inc. * @access open * @license MIT * @docs htt...
############################################################################### # WaterTAP Copyright (c) 2021, The Regents of the University of California, # through Lawrence Berkeley National Laboratory, Oak Ridge National # Laboratory, National Renewable Energy Laboratory, and National Energy # Technology Laboratory ...
"use strict"; var mongoose = require("mongoose"), Schema = mongoose.Schema, ObjectId = Schema.ObjectId; var favourite = { name: "Favourite", schema: new Schema({ userId: { type: ObjectId }, twitterId: { type: String }, created: { type: Date, default: Date.now }, term: { type: String } }) }; ...
import { expect, request, use } from 'chai' import chaiHttp from 'chai-http' import app from '../src/app' import 'dotenv/config'; use(chaiHttp) describe("ARTICLE END-POINT TESTING", () => { it("Should retrieve the articles", async () => { const res = await request(app).get("/api/v1/articles/") exp...
module.exports = { presets: [['react-app', { flow: false, typescript: true }], '@linaria'], plugins: [ ['@babel/plugin-proposal-private-methods', { loose: true }], ['@babel/plugin-proposal-class-properties', { loose: true }], [ 'module-resolver', { root: ['./src'], alias: { ...
[{"Owner":"royibernthal","Date":"2017-12-04T15:24:44Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tI_t_d like to display GUI on box faces.\n_lt_/p_gt_\n\n_lt_p_gt_\n\tFor that purpose_co_ I_t_m creating an AdvancedDynamicTexture with 6 objects_co_ place horizontally one after the other. Sort of ...
# Conquer def Parition(list, left, right): pivot = list[left] index = right for j in range(right, left - 1, -1): if list[j] > pivot: list[index], list[j] = list[j], list[index] index -= 1 list[index], list[left] = list[left], list[index] return index # Divide list ...
/** * @fileoverview added by tsickle * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ import { Component, ElementRef, forwardRef } from '@angular/core'; import { base } from './base'; export class searchfieldMetaData { } searchfieldMetaData.XTYPE = 'searchfield';...
import collections import logging import numpy as np from ray.rllib.policy.sample_batch import SampleBatch, MultiAgentBatch from ray.rllib.utils.annotations import PublicAPI, DeveloperAPI from ray.rllib.utils.debug import log_once, summarize logger = logging.getLogger(__name__) def to_float_array(v): arr = np.a...
"""Meshtastic smoke tests with a single device via USB""" import re import subprocess import time import platform import os # Do not like using hard coded sleeps, but it probably makes # sense to pause for the radio at apprpriate times import pytest from ..util import findPorts # seconds to pause after running a mes...
// THIS FILE IS AUTO GENERATED import { GenIcon } from '../lib'; export function GiBranchArrow (props) { return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"d":"M95.053 18.096l.002.004v-.004h-.002zm.002.004L88.43 75.234l64.943 69.444c22.73-80.96-33.616-62.34-58.318-126.578zM76...
/* Copyright 2006 Google */ var tn_=true,tn_a=null,tn_b=false;function tn_aa(a){if(a in tn_ba)return tn_ba[a];return tn_ba[a]=navigator.userAgent.toLowerCase().indexOf(a)!=-1}var tn_ba={},tn_ca={ua:function(a){return a.document.body.scrollTop},va:function(a){return a.document.documentElement.scrollTop},W:function(a){re...
import Ember from 'ember'; export default Ember.Component.extend({ heading: Ember.computed('review.author', 'review.rating', function() { return this.get('review.author') + '-' + this.get('review.rating'); }), actions: { delete(review) { if(confirm('Are you sure you want to del...
const mysql = require
#ifndef BLOCK_H #define BLOCK_H #include "blockindex.h" #include "blockreject.h" #include "globals.h" #include "outpoint.h" #include "transaction.h" #include "txindex.h" #include "uint256.h" #include <unordered_map> #include <vector> class CBlockIndex; class CTxDB; class CWallet; /** Nodes collect new transactions i...
from decimal import Decimal from typing import List from typing import Optional from pydantic import BaseModel from pydantic import FilePath from pydantic import Field from pydantic_yaml import VersionedYamlModel from ._common import ALL_MODULES from ._typing import Modules class Statement(BaseModel): file: Fil...
const awyhttp = require('awyhttp'); const weicall = require('./weixinToken.js'); weicall.getToken().then((ret)=>{ if(!ret.status){ throw ret.data; } var getcount_api = `https://api.weixin.qq.com/cgi-bin/material/get_materialcount?access_token=${ret.data}`; awyhttp.get(getcount_api).then(data=>{ console.log(d...
""" Test twin sac against various environments. """ from gym.envs.mujoco import ( HalfCheetahEnv, AntEnv, Walker2dEnv, InvertedDoublePendulumEnv, HopperEnv, HumanoidEnv, SwimmerEnv, ) from gym.envs.classic_control import PendulumEnv from railrl.data_management.env_replay_buffer import EnvRe...
const { expect } = require('chai'); const { bsv, buildContractClass, signTx, toHex, getPreimage, num2bin, PubKey, SigHashPreimage, Sig } = require('scryptlib'); const { inputIndex, inputSatoshis, compileContract, DataLen, dummyTxId } = require('../../helper'); const outputAmount = 22222 describe('Test sCrypt contrac...