content stringlengths 10 4.9M |
|---|
async def play(self, ctx: commands.Context, *, query: str):
if not ctx.voice_state.voice:
await ctx.invoke(self.join)
async with ctx.typing():
try:
lists = await YoutubeDLSource.search(query, loop=self.rinko.loop)
if lists:
sour... |
<reponame>nextapm/pythonapm
import json
import os
from pythonapm.util import current_milli_time, is_valid_rescode
from pythonapm.constants import manage_agent, delete_agent, shutdown
class Instanceinfo:
def __init__(self):
self.last_reported = None
self.status = manage_agent
self.modified... |
U.N. Official Says War Crimes Are Being Committed In Aleppo
David Greene speaks with Zeid Ra'ad Al Hussein, the U.N. high commissioner for human rights, who called what is taking place in the besieged Syrian city of Aleppo, "crimes of historic proportions."
DAVID GREENE, HOST:
You're about to hear more dire news fro... |
<filename>Canadian Computing Contest/2020/S1.cpp<gh_stars>1-10
/*
Aldew
PROB: Surmising a Sprinter's Speed
CLASSIFICATION: Implementation
*/
#include <iostream>
#include <vector>
#include <bits/stdc++.h>
#include <cmath>
#include <string>
#include <map>
#include <math.h>
#include <cstdio>
using namespace std;
int ... |
Today’s Main Feature!
Hello everyone!! Kahotan here! (@gsc_kahotan)
Today I’m going to be taking a look at…
Nendoroid Kaban!
From the popular anime series “Kemono Friends” comes a Nendoroid of Kaban-chan! She comes with three face plates including a gentle standard expression, a shouting expression to recreate the ... |
//Many thanks to Shar for creating this item :)
#include <std.h>
#include <daemons.h>
inherit ARMOUR;
#define MAXUSES 25
int uses;
string place;
void create(){
::create();
set_name("ring of refresh");
set_id(({ "ring", "ring of refresh","band","crystal band" }));
set_short("%^BOLD%^%^CY... |
// parseAmbiguousTextToEWKB parses a text as a number of different options
// that is available in the geospatial world using the first character as
// a heuristic.
// This matches the PostGIS direct cast from a string to GEOGRAPHY/GEOMETRY.
func parseAmbiguousTextToEWKB(str string, defaultSRID geopb.SRID) (geopb.EWKB,... |
//--------------------------------------------------------------------------
// CStaticWindow M O V E W I N D O W
//--------------------------------------------------------------------------
void CStaticWindow::MoveWindow( int x, int y, int nWidth, int nHeight )
{
if( fCreated )
::MoveWindow( hWnd, x... |
Organizational Architecture, Resilience, and Cyberattacks
This article develops a unique model of organizational resilience architecture with an emphasis on the ways in which organizations respond to cyberattacks. The model elucidates the dynamics and approaches through which organizations mobilize and utilize experti... |
<filename>benchmark/benchmark.go<gh_stars>1-10
package benchmark
import (
"time"
)
// Small payload, http log like structure. Size: 190 bytes
// SmallPayload contains the small payload data.
type SmallPayload struct {
St int
Sid int
Tt string
Gr int
Uuid string
Ip string
Ua string
Tz int
V ... |
// TODO(ahcorde): Replace this when this function is on ign-rendering6
/////////////////////////////////////////////////
math::Vector3d SpawnPrivate::ScreenToPlane(
const math::Vector2i &_screenPos,
const rendering::CameraPtr &_camera,
const rendering::RayQueryPtr &_rayQuery,
const float offset)
{
dou... |
import {
Component,
OnDestroy,
OnInit
} from '@angular/core';
import {Router} from '@angular/router';
import {
Attraction,
CategoryAttractionService,
Image,
ImageService
} from 'cr-lib';
import {Subscription} from 'rxjs';
import {ActiveAttractionService} from '../edit/active-attraction.service';
/**
* P... |
package api
import (
"encoding/json"
"testing"
)
func TestGraphQLError_Code(t *testing.T) {
for name, tc := range map[string]struct {
in string
want string
wantErr bool
}{
"invalid code": {
in: `{
"errors": [
{
"message": "The feature \"campaigns\" is not activated because it req... |
Electron transfer in tetrahemic cytochromes c3: spectroelectrochemical evidence for a conformational change triggered by heme IV reduction.
Electron transfer in tetrahemic cytochromes c3 from Desulfovibrio vulgaris Hildenborough (D.v.H.) and Desulfovibrio desulfuricans Norway (D.d.N.) strains has been investigated by ... |
// CreateListDelegatedServicesForAccountRequest creates a request to invoke ListDelegatedServicesForAccount API
func CreateListDelegatedServicesForAccountRequest() (request *ListDelegatedServicesForAccountRequest) {
request = &ListDelegatedServicesForAccountRequest{
RpcRequest: &requests.RpcRequest{},
}
request.In... |
import os
import LayoutFactory
from Utils import Project
from layout import ViewEnviroment
class LayoutProcessor :
totalLayouts = 0
# LayoutFactory mLayoutFactory
#
# void main( String[] args) :
# String projectFolder = "./Facebook"
# ProjectInfo projectInfo = new ProjectInfo("3", "Facebook",
# projectFol... |
// NewEventBus creates an EventBus, with optional settings.
func NewEventBus(url, appID string, options ...Option) (*EventBus, error) {
b := &EventBus{
appID: appID,
streamName: appID + "_events",
registered: map[eh.EventHandlerType]struct{}{},
errCh: make(chan eh.EventBusError, 100),
codec: &... |
<filename>src/core/validator/types.ts
export interface IRuleConfig {
default?: any
min?: number
max?: number
reg?: RegExp
}
/* export interface IIsOptional {
default: any
}
export interface IIsLength {
min: number
max?: number
}
export interface IIsInt {
min?: number
max?: number
}
export interfac... |
Holding it Straight: Sexual Orientation in the Middle Ages
Lecture by Dr Robert Mills, UCL History of Art
Given at University College London, on October 22, 2013
Historians tend to be reticent about applying the phrase ‘sexual orientation’ to periods before the nineteenth century, but should we be so quick to dismis... |
import React, { ReactElement, useEffect, useState } from 'react'
import {
Image,
StyleSheet,
TouchableOpacity,
View,
} from 'react-native'
import { StackScreenProps } from '@react-navigation/stack'
import WalletConnect from '@walletconnect/client'
import { IClientMeta } from '@walletconnect/types'
import _ from... |
// Copyright (c) 2017 <NAME>. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package templates
const groupindexSrc = `
{{ define "content" }}
<div class="btn-row">
<a class="link-btn" href="/topics/new?gid={{ .GroupID }}">New topic</a>
{... |
/*! \brief Get the number of nodes on a specified engine
*
* The function returns \p 0 on a success.
*
* \param [in] comm
* MDI communicator of the engine. If comm is set to
* MDI_NULL_COMM, the function will check for the calling engine.
* \param [out] nnodes
* ... |
<filename>datastore/delete_user.py
from gcloud import datastore
client = datastore.Client('newsai-1166')
def user_to_resources(user_id, resource):
query = client.query(kind=resource)
query.add_filter('CreatedBy', '=', user_id)
resource = list(query.fetch())
return resource
def delete_resource(resou... |
// GetAgentStatus get gse agent status
func (c *Client) GetAgentStatus(req *GetAgentStatusReq) (*GetAgentStatusResp, error) {
resp := new(GetAgentStatusResp)
req.BaseReq = c.baseReq
err := c.client.Post().
WithEndpoints([]string{c.host}).
WithBasePath("/api/c/compapi/v2/gse/").
SubPathf("get_agent_status").
... |
import re
ip = input()
single = re.findall('.', ip)
single[0] = single[0].upper()
print(''.join(single)) |
// ToPollMutableStateRequest converts thrift PollMutableStateRequest type to internal
func ToPollMutableStateRequest(t *history.PollMutableStateRequest) *types.PollMutableStateRequest {
if t == nil {
return nil
}
return &types.PollMutableStateRequest{
DomainUUID: t.GetDomainUUID(),
Execution: ... |
#### A LADYBIRD BOOK FOR GROWN–UPS
### 'How it works'
### THE BROTHER
## by J.A. Hazeley, N.S.F.W.
and J.P. Morris, O.M.G.
#### (Authors of 'Decorating With Wasps')
Publishers: Ladybird Books Ltd., Loughborough
_Printed in England. If wet, Italy._
## Contents
'How it Works': The Brother
#### THE ARTISTS
... |
// Test that small number of intermediate navigations within OAuth start and
// completion are allowed.
TEST_F(OAuthLoginDetectorTest, IntermediateNavigationsAfterOAuthStart) {
EXPECT_FALSE(oauth_login_detector_->GetSuccessfulLoginFlowSite(
GURL("https://foo.com/login.html"),
{
GURL("https://oau... |
/**
* Called once the client becomes visible.
*
* @see AutofillClient#isVisibleForAutofill()
*/
void onVisibleForAutofillLocked() {
AutofillClient client = getClientLocked();
ArraySet<AutofillId> updatedVisibleTrackedIds = null;
ArraySet<AutofillId... |
// GetAll returns all metrics that have been setup.
//
// Docs: https://docs.cachethq.io/reference#get-metrics
func (s *MetricsService) GetAll(filter *MetricQueryParams) (*MetricResponse, *Response, error) {
u := "api/v1/metrics"
v := new(MetricResponse)
u, err := addOptions(u, filter)
if err != nil {
return nil,... |
#<NAME>
#6/21/2020
#An API for Yahoo Finance
import urllib3
from bs4 import BeautifulSoup
import lxml
import html5lib
import ast
import json
from datetime import datetime, timedelta
def testFuntion():
print("test")
stocks = dict()
__debugMode = False
#general scraper to get the url
def scraper(url):
http =... |
package dbhandle
type IDBHandle interface {
// 詳細交易資訊
GetTransactiondetail(StockCode string, date string) ([]map[string]interface{}, error)
SetTransactiondetail(C, D, T, TS, TK0, TK1, TLong, CH, N, NF, Y, Z, IP, TV, A, F, B, G, EX, IT, MT, O, OA, OB, OT, OV, OZ, I, L, H, V, W, U, S, P, PS, PZ string) error
// Get... |
Structure and Asymptotic Theory for Multivariate Asymmetric Volatility: Empirical Evidence for Country Risk Ratings *
Following the rapid growth in the international debt of less developed countries in the 1970s and the increasing incidence of debt rescheduling in the early 1980s, country risk has become a topic of ma... |
Characterising inflations of monotone grid classes of permutations
We characterise those permutation classes whose simple permutations are monotone griddable. This characterisation is obtained by identifying a set of nine substructures, at least one of which must occur in any simple permutation containing a long sum o... |
/**
* Persistent_ptr base (non-template) class
*
* Implements some of the functionality of the persistent_ptr class. It defines
* all applicable conversions from and to a persistent_ptr_base.
*
* It can be used e.g. as a parameter, where persistent_ptr of any template
* type is required. It is similar to persist... |
import logging
import time
from datetime import datetime, timedelta
from time import perf_counter, sleep
from uuid import uuid4
import pytest
import celery
from celery import chain, chord, group
from celery.canvas import StampingVisitor
from celery.utils.serialization import UnpickleableExceptionWrapper
from celery.w... |
Commemorative Privilege in National Statuary Hall: Spatial Constructions of Racial Citizenship
ABSTRACT This article takes on a rhetorical investigation of the spatial and racial politics at play in the Capitol Building’s National Statuary Hall (NSH) collection. I argue that the material arrangement of the NSH collect... |
package dk.stacktrace.messagingforwarder;
import android.util.Log;
import java.io.IOException;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
class HttpPostThread implements Runnable {
private static final String TAG = HttpPostThread.class.getName();
public HttpPostThre... |
// SetPcrTotalTests sets the "pcrTotalTests" field.
func (iru *InfectedRecordUpdate) SetPcrTotalTests(i int) *InfectedRecordUpdate {
iru.mutation.ResetPcrTotalTests()
iru.mutation.SetPcrTotalTests(i)
return iru
} |
Kyle Lowry is irreplaceable for the Toronto Raptors. If you take the money out of the equation for a second it’s easier to love what Lowry means to this team.
Kyle Lowry is irreplaceable for the Toronto Raptors. If you take the money out of the equation for a second it’s easier to love what Lowry means to this team. L... |
<gh_stars>1-10
"""
gromacstopfile.py: Used for loading Gromacs top files.
This is part of the OpenMM molecular simulation toolkit originating from
Simbios, the NIH National Center for Physics-Based Simulation of
Biological Structures at Stanford, funded under the NIH Roadmap for
Medical Research, grant U54 GM072970. S... |
/**
* A {@link Mixin} for showing a progress bar.
*/
public class ProgressBarMixin implements Mixin {
private TemplateLayout mTemplateLayout;
@Nullable
private ColorStateList mColor;
/**
* @param layout The layout this mixin belongs to.
*/
public ProgressBarMixin(TemplateLayout layout... |
Antiviral Roles of Abscisic Acid in Plants
Abscisic acid (ABA) is a key hormone involved in tuning responses to several abiotic stresses and also has remarkable impacts on plant defense against various pathogens. The roles of ABA in plant defense against bacteria and fungi are multifaceted, inducing or reducing defens... |
import time
import json
import re
import tekore as tk
from termcolor import colored
from SpotifyRecommender import config_project, mpd_connector
class TagExtractor:
"""
This class calls the spotify api to get high-level descriptors for the songs of the in the config file specifed MPD Server.
These descr... |
/*
For nanoseconds, most platforms have nothing available that
(a) doesn't require bringing in a 40-kb librt.so library
(b) really has nanosecond resolution.
*/
ulonglong my_timer_nanoseconds(void) {
#if defined(HAVE_SYS_TIMES_H) && defined(HAVE_GETHRTIME)
return (ulonglong)gethrtime();
#elif defined(HAVE_CLOCK... |
<reponame>megahertz0/android_thunder
package com.xunlei.downloadprovider.download.tasklist.list.c;
import android.view.View;
import android.view.View.OnClickListener;
import com.xunlei.downloadprovider.download.util.g;
import com.xunlei.downloadprovider.download.util.n;
import org.android.spdy.SpdyProtocol;
// compil... |
pub mod prelude {
pub use super::Args;
pub use super::CliCommand;
pub use super::CliCommands;
pub use super::CliOption;
pub use super::CliOptions;
}
mod names {
pub(super) const CMD_HELP: &str = "help";
pub(super) const CMD_STATUS: &str = "status";
pub(super) const CMD_DUMP_CONFIG: &str... |
Restriction of Foamy Viruses by APOBEC Cytidine Deaminases
ABSTRACT Foamy viruses (FVs) are nonpathogenic retroviruses infecting many species of mammals, notably primates, cattle, and cats. We have examined whether members of the apolipoprotein B-editing catalytic polypeptide-like subunit (APOBEC) family of antiviral ... |
<reponame>kunpengcompute/devkit-vscode-plugin
import { Injectable, SecurityContext } from '@angular/core';
import { DomSanitizer } from '@angular/platform-browser';
@Injectable({
providedIn: 'root'
})
export class MytipService {
public a: any;
public wsTip: any;
public interval: any;
constructor(
public ... |
//-----------------------------------------------------------------------------
// Abort any pending or blocked reception.
//-----------------------------------------------------------------------------
void ts::TunerDevice::abort(bool silent)
{
_aborted = true;
if (!_reading_dvr) {
hardClose(silent ? n... |
3D beamforming trials with an active antenna array
Beamforming techniques for mobile wireless communication systems like LTE using multiple antenna arrays for transmission and reception to increase the signal-to-noise-and-interference ratio (SINR) are state of the art. The increased SINR is not only due to a larger ga... |
AN international magazine with ties to the Financial Times newspaper has named Limerick as a ‘European City of the Future’.
fDi magazine, an international news and foreign direct investment magazine published by fDi Intelligence, a specialist division of the Financial Times, named Limerick as one of the principal winn... |
Amber Hollibaugh, a long-time activist, told Laura Flaunders on Sunday that those with alternative sexualities were “nowhere near close” to being sexually liberated.
Despite the repeal on the military policy “Don’t Ask, Don’t Tell” and growing acceptance of same sex marriage, Hollibaugh said the LGBT movement still ha... |
import java.util.Scanner;
public class Main {
private static int m, n, p, q;
private static int cur, pos, sum, len;
private static int max, min, ans, res;
private static int ai, bi, ci, di;
private static int[] aix, bix;
private static long al, bl, cl, dl;
private static long[] a... |
<filename>server/src/config.rs
use anyhow::Context;
use hocon::de::wrappers::Serde;
use serde::Deserialize;
use std::env;
use std::time::Duration;
const CONFIG_PATH: &str = "/config/config.conf";
// pub type Config = Arc<AppConfig>
#[derive(Deserialize, Debug, Clone)]
pub struct Config {
pub port: u32,
pub a... |
/**
* Writes a general header of debug information iff the debug flag is set to
* true
*/
protected void writeDebugHeader() {
if (this.debug) {
System.out.println("Product location to search : " + this.currentBaselineLocation);
System.out.println("Report location : " + this.reportL... |
<reponame>concord-consortium/dq-playground
import React from "react";
import { render, screen } from "@testing-library/react";
import userEvent from "@testing-library/user-event";
import { DQNode } from "../models/dq-node";
import { Variable } from "../models/variable";
import { DQRoot } from "../models/dq-root";
impor... |
Tasked with finding the definition of a good and a bad logo seems like it would be quite easy, however once you’ve got past the clearly blatant bad logos and start looking towards the multi-million pound companies that you see daily; you begin to look really in-depth as to the quality and thought put into and some of t... |
IMPLEMENTATION OF THE GOVERNMENT'S DISCRETION IN INDONESIA, AUTHORITY, AND RESPONSIBILITY IN THE MANAGEMENT OF GOVERNMENT
The research entitled "Implementation of the Government's Discretionary Authority and Accountability in the Administration of Government" has five problem formulations. First, how is the implementa... |
<reponame>townofdon/youtube-time-reclaimer
export const PORT_NAME = '__TIME_RECLAIMER__';
|
<gh_stars>0
#include "antsCommandLineParser.h"
#include "antsUtilities.h"
#include "ReadWriteData.h"
#include "itkAffineTransform.h"
#include "itkAntiAliasBinaryImageFilter.h"
#include "itkImageFileReader.h"
#include "itkImageFileWriter.h"
#include "vtkSTLReader.h"
#include "vtkSTLWriter.h"
#include "vtkPLYReader.h"
#... |
<gh_stars>1-10
#!/usr/bin/env python
import serial
import os
class PowerMeter():
""" Newport Optical Power Meter 1830-C """
def __init__(self):
if os.name == "posix":
portbase = '/dev/ttyUSB'
else:
portbase = 'COM'
for i in xrange(10):
try:
... |
/**
* Copies one list of markers to another list of markers so that it can be used as a
* local variable so the member variable won't be altered
* @param list1 list of markers that the copy is going to be made from
* @return list of markers identical to the parameter
*/
private List<Marker> copyList(List<Mar... |
import os
import sys
def getBuildNumber(releaseVersion):
main, major, minor = releaseVersion.split(".")
buildNumber = 0x010000 * int(main) + 0x0100 * int(major) + 0x01 * int(minor)
return buildNumber
def updateBuildNumber(fileName, releaseVersion):
with open(fileName) as fp:
lines = fp.readlin... |
/**
* Rewrite the source code with resource extracted.
*
* @param tree AST tree (or subtree) to be examined.
* @param codeUnit AbstractCodeUnit instance that has all information related to a source file.
* @return source code after resource replacement.
*/
private String rewriteSource(CommonTree tr... |
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveGeneric #-}
module ExercismWizard.Execute.Overview.RawExercise
( RawExercise (..)
)
where
import Data.Aeson
import GHC.Generics
data RawExercise = RawExercise
{ status :: String
, uri :: Maybe String
, name :: String
, eId :: String
, core :: Bool
}
... |
/**
* Parses a {@code String csvFileLocation} into a {@code Path}.
* Leading and trailing whitespaces will be trimmed.
*
* @throws ParseException if the given {@code fileLocation} is invalid.
*/
public static Path parseCsv(String fileLocation) throws ParseException {
requireNonNull(file... |
// displayed as blanks
private static class NumberOrNullRenderer extends MyTCRStripedHighlight {
private NumberFormat formatter;
public NumberOrNullRenderer() { super(); }
@Override
public void setValue(final Object value) {
if (formatter == null) {
formatter... |
<reponame>sergio222-dev/nestjs-ddd-practice<gh_stars>1-10
import { Entity, PrimaryKey, Property } from "mikro-orm";
import { MikroCourseRepository } from "@libs/First-aprox-lib/Courses/Infrastructure/persistense/MikroCourseRepository";
@Entity({
tableName: 'course',
customRepository: () => MikroCourseR... |
<filename>packages/function/copyTextToClipBoard.ts
/**
* @description 复制文本到剪贴板上,由于浏览器的原因,需要在dom事件中执行该函数。
* @param {string} text 要复制到剪切板上的文本
*/
export function copyTextToClipBoard(text:string) {
const inputEle = document.createElement("input");
const inputStyle = {
opacity: "0",
zIndex: "-100000",
he... |
This article contains live links and may be accessed here:
http://www.tenthamendmentcenter.com/2009/11/29/resist-dc-a-step-by-…
29 Nov 2009
by State Rep. Matthew Shea (WA-4th)
This summer, legislators from several states met to discuss the steps needed to
restore our Constitutional Republic. The federal government... |
Kottayam: Pulsar Suni, the prime accused in the actress attack case, has revealed that a film actress was behind the February 17 actress attack case.
Suni on Sunday said the person referred to as 'madam' was an actress and he would reveal her name on Wednesday. Suni was brought to Kottayam to be produced before the ch... |
import { BeforeInsert, BeforeUpdate, Column, Entity, ManyToOne, PrimaryGeneratedColumn } from "typeorm";
import { SubstationEntity } from "./substation.entity";
import { EquipmentTypeEntity } from "./equipmentType.entity";
import { addMonths, parseISO } from "date-fns";
@Entity({name: 'equipment'})
export class Equipm... |
<reponame>GlobalNOC/wsc-python<gh_stars>0
import http.cookiejar
import logging
import requests
from lxml import etree as ET
namespaces = {
'S': 'http://schemas.xmlsoap.org/soap/envelope/',
'paos': 'urn:liberty:paos:2003-08',
'ecp': 'urn:oasis:names:tc:SAML:2.0:profiles:SSO:ecp',
'saml': 'urn:oasis:nam... |
{-# LANGUAGE LambdaCase
, ScopedTypeVariables
, OverloadedStrings
, RecordWildCards #-}
module Main (main) where
import System.Exit
import System.Directory
import System.Environment
import System.FilePath
import System.Process
import System.Console.GetOpt
import System.Consol... |
package a
// TestWithPeriodF that is multi line and has a
// period in the end.
func TestWithPeriodF() {}
|
package com.lighters.demo;
import android.graphics.Color;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import com.l... |
Home » News Samsung Galaxy Nexus no longer available from the Google Play store. Could it be because of the injunction? NewsPhones Samsung Galaxy Nexus no longer available from the Google Play store. Could it be because of the injunction?
The Samsung Galaxy Nexus is no longer available for you to purchase from the Goo... |
// trims `offset` components from the beginning of the multiaddr.
func offset(maddr ma.Multiaddr, offset int) ma.Multiaddr {
_, after := ma.SplitFunc(maddr, func(c ma.Component) bool {
if offset == 0 {
return true
}
offset--
return false
})
return after
} |
/**
* Handles actions involving authenticating
* user. Sets the logged-in session to true
* @return success or error
*/
public String authenticate()
{
logger.debug("in method authenticate");
boolean loginStatus = userService.validateUser(user.getUserID(),user.getPassword());
... |
package packages
import (
"fmt"
"os/exec"
"strings"
"github.com/strattadb/setup/internal/pkg/helpers"
)
var aptPackages = [50]string{
"apt-transport-https",
"ca-certificates",
"curl",
"software-properties-common",
"build-essential",
"cmake",
"git",
"vim",
"fish",
"nodejs",
"python3.7",
"docker-ce",
... |
import java.util.*;
import java.io.*;
import java.lang.*;
import java.math.*;
public class A {
public static void main(String[] args) throws Exception {
BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
// Scanner scan = new Scanner(System.in);
PrintWriter out = new P... |
So this is the corp deck that I took to a regionals event that I travelled for with a few good friends from my local scene. I'd been testing the deck a lot, and was confident that it would fare well against a new crowd. With a record of 4-1 with my this deck, I couldn't have asked for much more. Lets delve into how thi... |
#include <bits/stdc++.h>
#define ll long long
using namespace std;
int main(){
ll t;cin>>t;
while(t--){
ll n;cin>>n;
std::vector<ll>arr(n),dep(n),tm(n) ;
for(ll u=0;u<n;u++)cin>>arr[u]>>dep[u];
for(ll u=0;u<n;u++)cin>>tm[u];
ll current = 0,ans,treveltime,stay;
fo... |
package main
import (
"bytes"
"encoding/json"
"io/ioutil"
"net/http"
"net/http/httptest"
"testing"
"github.com/gin-gonic/gin"
"github.com/stretchr/testify/require"
"github.com/tendermint/tendermint/types"
"xa.org/xablockchain/xchain-meta/relaychain"
)
func TestProof(t *testing.T) {
// test gin context
ic... |
#pragma once
#include "component.hpp"
#include "common.hpp"
#include "texture.hpp"
namespace meov::core::components {
class SkyboxComponent : public Component {
public:
explicit SkyboxComponent(const fs::path &path);
~SkyboxComponent() override = default;
void PreDraw(Graphics &g) override;
void Dr... |
Focus on collagen: in vitro systems to study fibrogenesis and antifibrosis _ state of the art
Fibrosis represents a major global disease burden, yet a potent antifibrotic compound is still not in sight. Part of the explanation for this situation is the difficulties that both academic laboratories and research and deve... |
/**
* Old version of converting Cidr version to binary.
*
* @param ipCidr
* @return
*/
private static String convertToBinaryUsingTurnedOnBits(String ipCidr) {
String afterSlash = ipCidr.split("/")[1];
int numberOfTurnedOnBits = Integer.parseInt(afterSlash);
StringBuilder binaryConvertedOctetsBuilder = ... |
def correct_ceil(obj, fill_value=1e-7, var_name='backscatter'):
data = obj[var_name].data
data[data <= 0] = fill_value
data = np.log10(data)
obj[var_name].values = data
if 'units' in obj[var_name].attrs:
obj[var_name].attrs['units'] = 'log(' + obj[var_name].attrs['units'] + ')'
else:
... |
package banking
import (
bankingtypes "git.ooo.ua/vipcoin/chain/x/banking/types"
"git.ooo.ua/vipcoin/lib/filter"
"github.com/forbole/bdjuno/v2/database/types"
)
// SaveMsgSystemRewardTransfers - method that create transfers to the "vipcoin_chain_banking_system_reward_transfer"
func (r Repository) SaveMsgSystemRew... |
package apu
import (
"log"
"github.com/mtojek/nes-emulator/bus"
)
const cpuFrequency = 1789773
const frameCounterRate = cpuFrequency / 240.0
var lengthTable = []byte{
10, 254, 20, 2, 40, 4, 80, 6, 160, 8, 60, 10, 14, 12, 26, 14,
12, 16, 24, 18, 48, 20, 96, 22, 192, 24, 72, 26, 16, 28, 32, 30,
}
var dutyTable =... |
/* Build the RB tree corresponding to the VMA list. */
void build_mmap_rb(struct mm_struct * mm)
{
struct vm_area_struct * vma;
rb_node_t ** rb_link, * rb_parent;
mm->mm_rb = RB_ROOT;
rb_link = &mm->mm_rb.rb_node;
rb_parent = NULL;
for (vma = mm->mmap; vma; vma = vma->vm_next) {
__vma_link_rb(mm, vma, rb_link, ... |
#include<bits/stdc++.h>
#define ll long long
#define INF 0x3f3f3f3f
using namespace std;
const int MAXN=200005;
int n,m;
int dis[MAXN][55];
bool vis[MAXN][55];
struct node{
int to,w;
};
vector<node>g[MAXN];
struct pos{
int u,pre,d;
bool operator < (const pos & p) const {
return p.... |
<reponame>jayserdny/utopian-api-types
/**
* Typescript definition for utopian-api
*
* @author <NAME>
* https://github.com/jayserdny
*
*/
declare module "utopian-api" {
var utopian_api: UTOPIAN_API;
export = utopian_api;
}
declare class UTOPIAN_API {
getModerators(): Promise<Array<String>>;
} |
package execute
import (
"context"
"sync"
)
// Executor knows how to limit the execution using different kind of execution workflows
// like worker pools.
// It also has different policies of how to work, for example waiting a time before
// erroring, or directly erroring.
type Executor interface {
// Execute will... |
// min-lldb-version: 310
// compile-flags:-C debuginfo=1
// gdb-command:run
// lldb-command:run
// Nothing to do here really, just make sure it compiles. See issue #8513.
fn main() {
let _ = ||();
let _ = (1_usize..3).map(|_| 5);
}
|
<reponame>niko-bikchen/Ribenteuer
package com.scriptizergs.ribenteuer.model.Location.Monsters.CastleDungeonMonsters;
public enum CastleMonsters {
FANTOM,
SKELETON
}
|
#include "ctranslate2/layers/common.h"
#include <cmath>
#include "../device_dispatch.h"
namespace ctranslate2 {
namespace layers {
Embeddings::Embeddings(const models::Model& model, const std::string& scope)
: _embeddings(model.get_variable(scope + "/weight"))
, _qscale(model.get_variable_if_exist... |
<reponame>shanghuiyang/rpi-devices<gh_stars>10-100
package main
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestStart(t *testing.T) {
monitor := cpuMonitor{}
assert.NotNil(t, monitor)
}
func TestUsage(t *testing.T) {
cupinfo := `
top - 20:04:01 up 9 min, 2 users, load average: 0.22, 0.22... |
package apig;
public class Palindrome {
public static void main(String[] args) {
Palindrome solver = new Palindrome();
assert solver.isPalindrome("madam");
assert solver.isPalindrome("abccba");
assert !solver.isPalindrome("abcd");
}
public boolean isPalindrome(S... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.