content
stringlengths
10
4.9M
A secret Air Force space plane launched on an Atlas V Thursday night at 7:52 p.m. EDT (2352 GMT) on a classified mission. The vehicle, the umanned X-37B Orbital Test Vehicle, looks like a mini space shuttle and has the capability to remain in orbit for 270 days. The purpose of this vehicle – for this mission and for th...
import { findFiles, ProcessFile, getSplitVersionParts } from "./AppyVersionToJSONFileFunctions"; import tl = require("vsts-task-lib/task"); import fs = require("fs"); var path = tl.getInput("Path"); var versionNumber = tl.getInput("VersionNumber"); var versionRegex = tl.getInput("VersionRegex"); v...
import sys input = sys.stdin.readline import math def print_ans(N, D): """Test Case >>> print_ans(6, 2) 2 >>> print_ans(14, 3) 2 >>> print_ans(20, 4) 3 """ print(math.ceil(N / (D * 2 + 1))) if __name__ == '__main__': N, D = map(int,input().rstrip().split()) print_ans(N,...
/* * vqec_config_parser.h - Implements parsing of VQE-C system configuration * files. * * Copyright (c) 2007-2009 by Cisco Systems, Inc. * All rights reserved. */ #include "queue_plus.h" #include "vam_types.h" /** * Enumeration of setting types. */ typedef enum vqec_config_setting_type_ { VQEC_CONFIG_SET...
<filename>CMSSiteInformation.py # Class definition: # CMSSiteInformation # This class is the prototype of a site information class inheriting from SiteInformation # Instances are generated with SiteInformationFactory via pUtil::getSiteInformation() # Implemented as a singleton class # http://stackoverflow.com...
#![feature(asm)] #![no_std] pub mod intrin; pub mod time;
def split_csv(data_frame, train_portion=0.4, validation_portion=0.2): rows = data_frame.index.values Random(RANDOM_SEED).shuffle(rows) n_rows = len(rows) n_train_data = int(n_rows * train_portion) n_validation_data = int(n_rows * validation_portion) train_data = data_frame.iloc[rows[1:n_train_data], :] validatio...
Mark Burnett, the reality show impresario, has faced mounting demands in recent days to release old video from his series “The Apprentice,” on speculation that Donald J. Trump was captured on camera making vulgar remarks during his 11 years as the show’s host. On Monday, Mr. Burnett broke his silence and issued a stat...
<reponame>heinrichreimer/thuringian-field-names import { FunctionComponent, useEffect } from "react"; import { Container, Row, Col, Alert } from "react-bootstrap"; import { useHistory, useParams } from "react-router-dom"; import { useSelector } from "react-redux"; import { selectSearchResults, selectSearchIsLoading...
/* * An inner class that inherits from the abstract class,and * overriding super class method to shows items list by Tracker instance using * @param: menuItemId() method to get the call position **/ class MenuShowAllItem extends MenuItem { public MenuShowAllItem(String name) { s...
N=int(input()) MOD=10**9+7 ans=10**N %MOD ans=ans-2*9**N %MOD ans=ans+8**N %MOD print(ans%MOD)
Simona Halep retired from her quarterfinal matchup against Ekaterina Makarova because of the heat Friday. (Geoff Burke/USA Today Sports) Top-seeded Simona Halep, the second-ranked women’s tennis player in the world, retired from her Citi Open quarterfinal match Friday afternoon because of illness brought on by the hea...
// IsDirectory returns true iff we have no error and the path points to a directory. func (g GoPath) IsDirectory() bool { if info := g.FileInfo(); info != nil { return info.IsDir() } else { return false } }
<filename>buildSrc/src/main/java/com/debughelper/tools/r8/shaking/VerticalClassMergerGraphLense.java // Copyright (c) 2018, the R8 project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. packa...
/** * @todo Many of these tests are in need of attention for a few reasons: * * - They won't execute on phoenix.dataverse.org because they some tests assume * Solr on localhost. * * - Each test should create its own user (or users) rather than relying on * global users. Once this is done the "Ignore" annotations...
/*------------------------------------------------------------------------ * EXPORTED SRXAFSCB_ProbeUuid * * Description: * Routine called by the server-side callback RPC interface to * implement ``probing'' the Cache Manager, just making sure it's * still there is still the same client it used to be. * * Argum...
<filename>vendor/github.com/Arvinderpal/matra/common/types/container.go package types // dTypes "github.com/docker/docker/api/types" type Container struct { // dTypes.ContainerJSON }
<reponame>dvdbrink/xudp package com.danielvandenbrink.xudp; public class PacketException extends RuntimeException { public PacketException(String message) { super(message); } public PacketException(Throwable cause) { super(cause); } public PacketException(String message, Throwable...
/** * return max compress * zero if end */ int reduce(int index, int cur_budget) { int red = 0; int new_budget = cur_budget; if (index >= n) { return 0; } bool merge = false; if (len[index] <= cur_budget) { new_budget -= len[index]; if ((index - 1 >= 0) && (index + 1...
<gh_stars>1-10 use crate::*; pub(crate) fn get_contract_token_id(contract_id: &AccountId, token_id: &str) -> String{ format!("{}{}{}", contract_id, DELIMETER, token_id) } pub(crate) fn is_promise_success() -> bool { require!(env::promise_results_count() == 1, "promise failed"); match env::promise_result(0) {...
The following review contains spoilers, as that is the only way to discuss how the film reflects contemporary realities. Gene Roddenberry, when he developed Star Trek, acknowledged that he created a “new world with new rules,” which he could use to examine contemporary issues in society. Director J.J Abrams and the wr...
<reponame>rju/peething package de.peerthing.scenarioeditor.model; public interface IListen extends ICommand, IScenarioObject{ /** * @author Patrik */ public void setDistribution(IDistribution distribution); /** * gets the distribution that says how long the nodes have to listen */ public ...
package util_test import ( "testing" "github.com/rs/zerolog" "github.com/stretchr/testify/assert" "go-starter-example/internal/util" ) func TestLogLevelFromString(t *testing.T) { t.Parallel() res := util.LogLevelFromString("panic") assert.Equal(t, zerolog.PanicLevel, res) res = util.LogLevelFromString("war...
import { SessionInterface as SessionInterfaceSession } from "../../../../shopify/session" import { missingScopes } from "../callback" describe("missingScopes", () => { it("should return an empty array when the scopes are the same", () => { const requiredScopes = ["read_products", "write_products"] ...
async def member_log(self, ctx: object): filename = f'{uuid.uuid1()}.png' author = ctx.message.author guild = author.guild async with ctx.typing(): joined_dates = Counter([member.joined_at.date() for member in guild.members]) start_date = min(joined_dates) ...
WASHINGTON, D.C. — From the Carolina's to Martha's Vineyard, the earthquake that shook the East Coast Tuesday rattled the nerves of many people who had never felt an earthquake. Just after noon, buildings began to shake along the Eastern seaboard. The 5.9 earthquake was the most powerful in Virginia in decades. The s...
/** * utility to make a double. If the string begins with '%' then we take a percentage of the baseValue * * @param s string * @param baseValue Used if s is a percentage * * @return double value */ private double toDouble(String s, double baseValue) { if (s.endsWith("%")) { ...
<filename>cache/src/main/java/com/nytimes/android/external/cache3/Ascii.java package com.nytimes.android.external.cache3; import javax.annotation.Nonnull; public final class Ascii { private Ascii() { } /** * Returns a copy of the input string in which all {@linkplain #isUpperCase(char) uppercase A...
Apple's iOS 8 may not look too different from the version that preceded it, but trust us: There are plenty of new bits and bobs to get familiar with once you start poking around. Now that you've had some time to dig into our full review, you can take iOS 8 for a spin yourself -- Apple has just pushed the update live, s...
<gh_stars>1-10 from functools import reduce from operator import add from itertools import accumulate import sys from typing import Generator INSTRUCTION_MAP = {'(': 1, ')': -1} def translate(instructions: str) -> Generator[int, None, None]: return (INSTRUCTION_MAP[i] for i in instructions) def final_floor(ins...
def allLegalMoves(self,BlackSide): childNodes = self._moves[self._currentNode] legalMoves = [] for cNode in childNodes: legalMoves.append((self._currentNode,cNode)) return legalMoves
CaMKIIα promoter-controlled circuit manipulations target both pyramidal cells and inhibitory interneurons in cortical networks A key assumption in studies of cortical functions is that excitatory principal neurons, but not inhibitory cells express calcium/calmodulin-dependent protein kinase II subunit α (CaMKIIα) resu...
/** * Wraps`JavaVM` pointer and provides some machinery to keep * track of JVM state. */ class java_vm_ptr { sl::support::observer_ptr<JavaVM> jvm; std::atomic<bool> init_flag; sl::concurrent::countdown_latch init_latch; std::atomic<bool> shutdown_flag; sl::concurrent::condition_latch shutdown_la...
// REQUIRES: x86-registered-target // RUN: rm -rf %t && mkdir %t && cd %t // RUN: cp %s debug-info-objname.cpp /// No output file provided, input file is relative, we emit an absolute path (MSVC behavior). // RUN: %clang_cl --target=x86_64-windows-msvc /c /Z7 -nostdinc debug-info-objname.cpp // RUN: llvm-pdbutil dump ...
Vasoactive Intestinal Peptide Downregulates Proinflammatory TLRs While Upregulating Anti-Inflammatory TLRs in the Infected Cornea TLRs recognize microbial pathogens and trigger an immune response, but their regulation by neuropeptides, such as vasoactive intestinal peptide (VIP), during Pseudomonas aeruginosa corneal ...
from django.contrib import admin from .models import Message # from .models import smsSendingSetting # Register your models here. @admin.register(Message) class MessageAdmin(admin.ModelAdmin): pass # @admin.register(smsSendingSetting) # class smsSendingSettingAdmin(admin.ModelAdmin): # pass
/// gets the current vr extended display interface (initialization is required beforehand) pub fn extended_display() -> Result<IVRExtendedDisplay, openvr_sys::HmdError> { let mut err = EVRInitError_VRInitError_None; let name = std::ffi::CString::new("FnTable:IVRExtendedDisplay_001").unwrap(); let ptr = unsa...
/** * This is not a test per say but cleans up old data in the root folder so * that there won't be any performance issue after a while. * * @throws BoxSDKServiceException */ @Category(BoxSDKTest.class) public void removeContentOlderThanADayInRootFolder() throws BoxSDKServiceException { ...
/** * Creates a copy of a static field expression * * @return The copy */ @Override public Expr copy() { return new StaticFieldExpr(owner, name, desc); }
/* * @Author: zhangyang * @Date: 2021-04-08 14:10:59 * @LastEditTime: 2021-04-08 14:13:08 * @Description: */ import { Context } from 'koa'; type RespondType = 'success' | 'fail' | 'unknown error'; export class BaseController { respond(ctx: Context, data: any, type: RespondType) { switch (type) { case...
/** * Test cases for the WebSocket Client implementation. */ public class WebSocketClientFunctionalityTestCase { private static final Logger LOG = LoggerFactory.getLogger(WebSocketClientFunctionalityTestCase.class); private DefaultHttpWsConnectorFactory httpConnectorFactory = new DefaultHttpWsConnectorFacto...
def gen_balanced_tree(height=2, branch=3, directed=False): G = nx.balanced_tree(r=branch, h=height) adj_mat = nx.adjacency_matrix(G).todense() if directed: return np.triu(adj_mat) else: return np.array(adj_mat)
#include<bits/stdc++.h> using namespace std; #define sci(n) scanf("%d",&n) #define scl(n) scanf("%lld",&n) #define scd(n) scanf("%lf",&n) #define FOR(i,n) for(ll i=1;i<=n;i++) #define LOOP(i,n) for(ll i=0;i<n;i++) #define loop(a,b) for(ll i=a;i...
/** * Executes setMode(DisplayMode d) with a new FourUp display mode */ @Override public void execute() { prevStrat = dState.getCurStrategy(); dState.setStrategy(new FourUpStrategy()); }
package models import "time" type ApplicationSettings struct { Id int ExpiryDuration int //Time in seconds after which it token will expired.. Added time.Time `orm:"auto_now_add;type(datetime)"` LastUpdated time.Time `orm:"auto_now;type(datetime)"` Application *Application `orm:"reverse(one)"` // Reverse relatio...
/** * Respond to one or more join requests to a restricted group. * * @param gid The SteamID of the group you want to manage * @param steamIDs The SteamIDs of the users you want to approve or deny membership for (or a single value) * @param approve True to put them in the group, false to ...
use error; use error::*; use simplisp::Environment as LispEnvironment; use simplisp::ExecutionTreeObject; use simplisp::Result as LispResult; use simplisp::WrapErr; use simplisp::WrapError; use std::ops::BitAnd; pub unsafe fn bitand<TEnvironment>( environment: &TEnvironment, lisp_environment: &mut LispEnvironm...
<gh_stars>100-1000 /****************************************************************************** This source file is part of the Avogadro project. Copyright (C) 2010 <NAME> This source code is released under the New BSD License, (the "License"). Unless required by applicable law or agreed to in writing, s...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package dk.nordfalk.nepalspil.kontrol; import com.jme3.renderer.RenderManager; import com.jme3.renderer.ViewPort; import com.jme3.scen...
/** * This should be called by the host Activity when its onRequestPermissionsResult method is called. The call will be forwarded * to the {@link Controller} with the instanceId passed in. * * @param instanceId The instanceId of the Controller to which this result should be forwarded * @param r...
def serving_output(output): raise NotImplementedError
<gh_stars>1-10 import React from 'react' import { Story, Meta } from '@storybook/react' import { Button, ButtonProps } from '.' import StoryContainer from '../../helpers/StoryContainer' const componentStatus = ` --- **NOTE FOR UXs**: This component is available in the following variants: - ✅ \`contained\` - ✅ \`...
<gh_stars>0 package k8s import ( "context" v1 "k8s.io/api/core/v1" "sigs.k8s.io/controller-runtime/pkg/client" "github.com/project-flotta/flotta-operator/api/v1alpha1" "github.com/project-flotta/flotta-operator/internal/common/repository/edgedevice" "github.com/project-flotta/flotta-operator/internal/common/re...
<gh_stars>100-1000 /** * @fileoverview Tests what happens when a rest args (...x) param is * instantiated in a context where it creates a zero-argument function. */ export {}; function returnsRestArgFn<A extends unknown[]>(fn: (...args: A) => void): (...args: A) => void { return fn; } const zeroRestArgument...
Image copyright AP Image caption Alphonso mangoes, shown on sale in Mumbai, are popular in the UK UK Prime Minister David Cameron says he is "looking forward" to discussing the EU ban on Indian mango imports with the country's new prime minister. Mr Cameron said the ban was a "serious issue", there were concerns abou...
# -*- coding: utf-8 -*- # Copyright 2013 Mirantis, Inc. # # 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 requi...
Problem drinking in middle age doubles risk of memory loss later in life, study finds A history of problem drinking in middle age more than doubles the risk of developing severe memory problems later in life, a new study has found. The study was carried out by researchers from the University of Exeter Medical School i...
use integer_sqrt::IntegerSquareRoot as _; use std::convert::TryInto; use types::helper_functions_types::Error; // inteface has changed pub fn xor_str(bytes_1: &str, bytes_2: &str) -> String { if bytes_1.chars().count() != 32 && bytes_2.chars().count() != 32 { panic!("One of the input arguments is too short...
def delete_network(self, context, id): LOG.debug(_("NECPluginV2.delete_network() called, id=%s ."), id) net = super(NECPluginV2, self).get_network(context, id) tenant_id = net['tenant_id'] if self.packet_filter_enabled: filters = dict(network_id=[id]) pfs = (super...
import java.io.File; import java.io.FileNotFoundException; import java.util.ArrayList; import java.util.Scanner; public class A711{ public static void main(String[] args) throws FileNotFoundException{ Scanner scan = new Scanner(System.in); int n = Integer.parseInt(scan.nextLine()); A...
def check_image_alignment(self): if self.raw_imgs is not None: print(f'Raw image shape: {self.raw_imgs.shape}') if self.raw_imgs.shape[0] < self.max_track_len: raise ValueError(f'Got images with {self.raw_imgs.shape[0]} frames but tracks with {self.max_track_len} timepoin...
/* * Copyright (c) 2020 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this fi...
/** * @author Ibrahima Diarra * */ public class CircularQueueTest { final private String[] data = new String[]{"to", "be", "or"}; final private CircularQueue<String> queue = new CircularQueue<String>(); final private Logger logger = LogManager.getLogger(CircularQueueTest.class); @Before public v...
/** * Items are kept in a list of nodes. */ public class Node { /** * Item kept by this node. */ public T value; /** * Next node in the queue. */ public AtomicReference<Node> next; /** * Create a new node. */ public Node(T value) { this.next = new AtomicReference<Node>(null); th...
min_num, max_num, mul = map(int, input().split()) numbers = set(range(min_num, max_num+1)) multiples = set([mul*i for i in range(1, 100+1)]) ans = len(numbers & multiples) print(ans)
<reponame>marirs/rocketapi use rocket::{http::Status, request::Request, serde::json::Value}; #[catch(400)] pub async fn bad_request(req: &Request<'_>) -> (Status, Value) { json_response!( 400, "request not understood", "request_uri" => req.uri().to_string() ) } #[catch(401)] pub async ...
import { request } from '@test/init' import * as Debug from 'debug' const debug = Debug('test:api:index') describe('GET /v1/users', () => { it('it should return 200', async () => { let response = await request().get('/v1/users') debug('index %j', response.body) expect(response.status).toBe(200) }) })
package com.tazine.ipaddr.controller; import com.tazine.ipaddr.entity.IPInfo; import com.tazine.ipaddr.service.IPaddrService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.web.bind.annotation.GetMapping; import org.s...
<filename>src/Main.hs {-# LANGUAGE OverloadedStrings, RankNTypes, DataKinds #-} module Main where import Config import Control.Monad import Control.Monad.Logger (runNoLoggingT) import Control.Monad.Trans import Data.HVect (HVect(..)) import Data.IORef import Data.Maybe (fromMaybe, fromJust) import Data.Monoid import D...
// This function makes sure that the apex_available property is valid func (m *ApexModuleBase) checkApexAvailableProperty(mctx BaseModuleContext) { for _, n := range m.ApexProperties.Apex_available { if n == AvailableToPlatform || n == AvailableToAnyApex || n == AvailableToGkiApex { continue } if !mctx.OtherM...
/** * Copy a host_t as sockaddr_t to the given memory location and map the port to * ICMP/ICMPv6 message type/code as the Linux kernel expects it, that is, the * type in the source and the code in the destination address. * @return the number of bytes copied */ static size_t hostcpy_icmp(void *dest, host_t *host,...
def analyze(self, binsI=50, binsQ=50, cluster_method='gmm', plot=True): if cluster_method == 'gmm': self._gaussian_mixture_clustering() x0, bounds = self._prepare_x0_bounds() fit = least_squares(self._gaussian_mixture_residual_function, x0, bounds=bounds, ...
/** * @author Trung Phan * */ public class InListExpression extends PredicateExpression { private final static Pattern PATTERN = Pattern.compile("(\\?|:[a-zA-Z0-9_]+|[a-zA-Z0-9_.() ]+?) +(not )? *in +\\(([a-zA-Z0-9:_?, ]+)\\)"); private final SelectorExpression selectorExpression; private final List<SelectorEx...
s=(raw_input("")).split(" ") n=int(s[0]) l=int(s[1]) co=(raw_input("").split(" ")) for i in range(len(co)): co[i]=int(co[i]) co=sorted(co) dif=[] if n!=1: for i in range(1,len(co)): dif.append((co[i]-co[i-1])) print max([float(max(dif))/2,float(co[0]),float(l-co[len(co)-1])]) else: ...
Traveling Wave Undulators for FELs and Synchrotron Radiation Sources We study the use of a traveling wave waveguide as an undulator for short wavelength free-electron lasers (FELs) and synchrotron radiation sources. This type of undulator -which we will call TWUcan be useful when a short electron oscillation period an...
Netflix has released its fourth-quarter 2014 financial results along with a letter to shareholders, posting both to its website. These documents show plans to increase its amount of original content, rapidly expand internationally, continue its DVD-by-mail service, and more. First, some numbers. Netflix picked up 13 m...
import emoji from "node-emoji"; import AST from "../ast"; import Decorator from "../highlight/decorator"; import Highlight from "../highlight/highlight"; import { ArgumentNodeAST, AssignmentNodeAST, ConsoleAnswers, ExplainCommandResponse, OperatorNodeAST, OptionNodeAST, PipeNodeAST, ProgramNodeAST, St...
def curify_type(self, concept_type_str): if concept_type_str.startswith('biolink:'): return concept_type_str return 'biolink:' + string.capwords(concept_type_str.replace('_', ' '), ' ').replace(' ', '')
/** * Disable/Enable voicemail. Available only if the line has fax capabilities * * REST: POST /freefax/{serviceName}/voicemail/changeRouting * @param routing [required] Activate or Desactivate voicemail on the line * @param serviceName [required] Freefax number */ public void serviceName_voicemail_changeRo...
// Parse parses the given GraphQL source into a Document. func Parse(source *token.Source, options ...ParseOption) (ast.Document, error) { var opts parseOptions for _, applyOption := range options { applyOption(&opts) } parser, err := newParser(source, &opts) if err != nil { return ast.Document{}, err } retu...
<gh_stars>1-10 import { Product } from '../../utils/cart'; export const OPEN_CART: string = 'OPEN_CART'; export const CLOSE_CART: string = 'CLOSE_CART'; export const UPDATE_CART: string = 'UPDATE_CART'; export const OPEN_MOBILE_MENU: string = 'OPEN_MOBILE_MENU'; export const CLOSE_MOBILE_MENU: string = 'CLOSE_MOBILE_M...
<reponame>prodriguezval/clean-architecture-apollo-ts import { ApolloError } from "apollo-server-fastify"; import { GetUserByIdUseCase } from "user/usecase/GetUserByIdUseCase"; import { logger } from "infrastructure/logger/loggerConfig"; export const userResolver = { Query: { user: async (root: any, params: any, ...
/* Copyright 2017 The Kubernetes 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 agreed to in writing, ...
#[macro_use] extern crate log; use std::io::Read; use std::{env, io}; use actix_web::middleware::Logger; use actix_web::{web, App, HttpServer, Responder}; use curl::easy::{Easy, List}; use dotenv::dotenv; use todoist_habit_tracker::todoist_habit_api::manager::*; async fn index() -> impl Responder { "Hello you! H...
/** * Creates a new thread for the frame processor and enables the processor. */ public CameraSource startFrameProcessor() { mProcessingThread = new Thread(mFrameProcessor); mFrameProcessor.setActive(true); mProcessingThread.start(); return this; }
16 Gb/s PAM4 UWOC system based on 488-nm LD with light injection and optoelectronic feedback techniques. A 16 Gb/s four-level pulse amplitude modulation (PAM4) underwater wireless optical communication (UWOC) system based on 488-nm laser diode (LD) with light injection and optoelectronic feedback techniques is propose...
// Copyright (c) 2015-2021, NVIDIA CORPORATION. // SPDX-License-Identifier: Apache-2.0 package main import ( "bytes" "crypto/rand" "fmt" "log" "math" "math/big" "os" "strings" "sync" "sync/atomic" "time" "github.com/NVIDIA/proxyfs/conf" ) var ( displayUpdateInterval time.Duration filePathPrefix ...
/** * This is a helper method that reads a JSON token using a JsonParser * instance, and throws an exception if the next token is not END_OBJECT. * * @param jsonParser The JsonParser instance to be used * @param parentFieldName The name of the field * @throws IOException */ public static void readE...
async def connect(self, self_mute: bool = False, self_deaf: bool = True) -> None: await self.guild.shard.voice_connect(self.guild_id, self.id, self_mute, self_deaf)
/* IsPartNested: Test whether smaller partition is nested in larger partition */ int IsPartNested (BitsLong *smaller, BitsLong *larger, int length) { int i; for (i=0; i<length; i++) if ((smaller[i] | larger[i]) != larger[i]) break; if (i == length) return YES; else re...
import { ReactElement, SVGProps } from "react"; export function TwitterShare(props: SVGProps<SVGSVGElement>): ReactElement { return ( <svg viewBox="0 0 112.197 112.197" focusable="false" aria-hidden="true" {...props} > <circle cx="56.099" cy="56.098" r="56.098" fill="#55acee"></...
/** * Writes out the text representation of an integer using base 10 to an * OutputStream in UTF-8 encoding. * <p/> * Note: division by a constant (like 10) is much faster than division by a * variable. That's one of the reasons that we don't make radix a parameter * here. * * @param out the out...
/** * Created by Andreas "denDAY" Stensig on 20-Sep-16. */ public class Lottery { private Object id; private long created; /* In Unix time. */ private double pricePerLotteryNum; private int lotteryNumLowerBound; private int lotteryNumUpperBound; private String name; private boolean ticke...
Attention! This news was published on the old version of the website. There may be some problems with news display in specific browser versions. Heavy Tank T34: Commanding Respect The Heavy Tank T34 is another tank with the designation 34, but now this title conceals not a nimble Soviet medium tank, but a real Americ...
/** * \brief Calibrate for too-slow or too-fast oscillator. * * When used, the RTC will compensate for an inaccurate oscillator. The * RTC module will add or subtract cycles from the RTC prescaler to adjust the * frequency in approximately 1 PPM steps. The provided correction value should * be between -127 and 12...
<reponame>anthonyballugjr/witty-app import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { apiUrl } from '../../data/apiURL'; @Injectable() export class SavingsProvider { apiUrl = `${apiUrl}wallets/savings`; authHeader = { headers: { 'Authorization': `T...
/** * Uniquely identifies a particular cargo. Automatically generated by the application. */ @Entity @Table(name = "TRACKINGID") public class TrackingID extends AbstractDomainObject { private static final long serialVersionUID = 1L; @Id @GeneratedValue(strategy = GenerationType.AUTO) @Column(name = "") private...
Cantillon Fou’Foune is one of the more sought after beers from the Brussels brewery, which is quite the feet if you consider that they’re one of the most sought after Lambic breweries in the world. Only 3,000 liters are brewed every year, made from 1,200 kg of apricots. To my knowledge, Fou’Foune is the only apricot La...
// SqlDb is a middlware for creating a unique session for each incomming request func SqlDb(databaseDriver string, dsn string) Middleware { return func(h http.Handler) http.Handler { return http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) { db, err := Open(databaseDriver, dsn) if err != nil { ...