content
stringlengths
10
4.9M
/** * Assign values to this frame. * @param values the values * @return this frame */ public Frame assign(Object... values) { if (stack != null && values != null && values.length > 0) { Object[] copy = stack.clone(); int ncopy = Math.min(co...
def add_regions_to_axis(axis, table_regions): row_labels = [] row_texts = [] row_colors = [] trend_colors = [] regions = list(table_regions.loc[:, 'region'].tolist()) regions[0] = {'Bangkok Metropolitan Region': 'Bangkok', 'Northeastern': 'Northeast'}.get(regions[0], regions[0]) current_regi...
<gh_stars>1-10 package redis import ( "go.opencensus.io/trace" ) // TraceOption allows for managing redigo configuration using functional options. // Copy from https://github.com/opencensus-integrations/ocsql/blob/master/options.go type TraceOption func(o *TraceOptions) type TraceOptions struct { // DefaultAttribu...
def pkg_manager_init( self, package_names, interactive=None, overwrite=False, merge=False, **kw): if interactive is None: interactive = self.interactive interactive = interactive & check_interactive() original_json = {} pkgdef_json = self.p...
Congratulations to David Baird for finding and photographing the De’il’s Well, which is probably the traditional site where the Glenluce Devil is alleged to have threatened to cast in a weaver’s daughter called Janet Campbell in 1655. Campbell’s Croft, Photograph © Copyright David Baird and reproduced by his kind perm...
/** * A sparse grid index that contains lists of objects. * Be advised that the {@link #get(int, int)} method may return null if no objects * are queued at that particular spot. * @param <T> the value type. * @author Matthew Tropiano */ public class SparseQueueGridIndex<T> extends SparseGridIndex<Deque<T>> { /**...
How the budget will affect the Centers for Disease Control and Prevention is less clear. The blueprint asks to reform the CDC through a $500 million block-grant program, that will allow each state to decide how best to use the money. Notably, perhaps, given that epidemics are international in nature, it does not mentio...
<filename>bundle/deepracer_simulation_environment/lib/python2.7/dist-packages/mp4_saving/f1_image_editing.py<gh_stars>1-10 """Image editing class for head to head where there are multiple agents """ import datetime from collections import OrderedDict import threading import logging import rospy import cv2 import numpy ...
<reponame>VictorGMBraga/clowdr import type { ChakraColors, ComponentMap } from "./Types"; export function applyComponentColorTheme( chakraColors: ChakraColors, componentColors: Partial<ComponentMap> ): ChakraColors { const result: ChakraColors = {}; for (const key in chakraColors) { if (key in...
import * as core from '@aws-cdk/core'; import * as lambda from '@aws-cdk/aws-lambda'; import * as ssm from '@aws-cdk/aws-ssm'; import * as iam from '@aws-cdk/aws-iam'; export class LambdaStack extends core.Stack { private functionName: string; constructor(parent: core.Construct, id: string, distDir: string, prop...
12.30 Any Lib Dem members who are interested in arranging for the party to adopt a stance in favour of Basic Incomemight be interested in a meeting during the York conference next Saturday (12th March).This, it's to discuss the process of getting something into party policy.The meeting will be at the Waggon and Horses...
# -*- coding: utf-8 -*- """ *************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public Licens...
<filename>src/tools/codeeditor/projectsearch.cpp #include "projectsearch.hpp" #include <eepp/system/filesystem.hpp> #include <eepp/system/luapattern.hpp> static int countNewLines( const std::string& text, const size_t& start, const size_t& end ) { const char* startPtr = text.c_str() + start; const char* endPtr = tex...
CHICAGO – Once upon a time, “reality” television was exactly that. While the genre now seems to feature as much scripted drama as actual reality, UFC President Dana White said one chilling incident proves that his new series doesn’t follow those lines. “The guy was going to be a star on the show, was going to be one o...
def save_config(self, filename=None, heading='DEFAULT'): self._conf.save(filename = filename, heading = heading, tags = self.active_tags, logbooks = self.active_logbooks, username = self._auth[0], ...
// Or adds additional error types to the handled errors of the policy func (it *builder) Or(errorObj interface{}) ErrorBuilder { pred := it.handlePredicate return &builder{ handlePredicate: func(err error) bool { if reflect.TypeOf(err) == reflect.TypeOf(errorObj) { return true } return pred(err) }, ...
/** * Created by clay d */ public class ItemAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> implements ItemTouchHelperAdapter { private List<Destination> mDestinationList; OnItemClickListener mItemClickListener; private static final int TYPE_ITEM = 0; private final LayoutInflater mInfla...
// teamsForOrg queries the GitHub API for team membership within a specific organization. // // The HTTP passed client is expected to be constructed by the golang.org/x/oauth2 package, // which inserts a bearer token as part of the request. func (c *githubConnector) teamsForOrg(ctx context.Context, client *http.Client,...
Constable Shane Greville on the job in 2013. He has pleaded guilty to a charge of careless driving causing injury. A police officer who smashed into the back of another car while driving at 91kmh in a 50kmh zone said he had been showing off. Hawke's Bay constable Shane Greville was off duty and had been drinking with...
/** * Created by LiYouGui on 2017/6/6. */ public class KnowledgeInfo implements Serializable { private String title; private String keywords; private String content; private String kntype; public String getKntype() { return kntype; } public void setKntype(String kntype) { ...
a, b = input().split() a, b = int(a), int(b) m = a + b serv = {} for i in range(a): name, ip = input().split() ip = ip + ";" serv[ip] = name for i in range(b): mn, ip = input().split() print(mn, ip, "#"+serv[ip])
/** * Author :zhx * Create at 2016/12/12 * Description: */ public class MovieDetailModelImpl implements IMovieDetailModel{ private static final MovieDetailModelImpl movieModel = new MovieDetailModelImpl(); public static MovieDetailModelImpl getInstance() { return movieModel; } @Overri...
// elementTypeFor returns the type into which data with this marker should be // decoded, falling back to interface{} in the general case. func elementTypeFor(m Marker) reflect.Type { switch m { case TrueMarker, FalseMarker: return boolType case UInt8Marker: return uint8Type case Int8Marker: return int8Type ...
<filename>app/src/main/java/com/tanguy/rssfeed/service/RecyclerViewClickListener.java package com.tanguy.rssfeed.service; import android.view.View; public interface RecyclerViewClickListener { void recyclerViewListClicked(View v, int position); }
PADUCAH, KY—Throughout his life, 22-year-old Matthew Leske has been a devout Christian, attending services three times a week at Holy Christ Almighty Lutheran Church in his hometown of Paducah, regularly participating in Bible-study devotionals with his mother and four sisters, and faithfully adhering to the dictums of...
/// Creates a *reference hash* for an event. /// /// Returns the hash as a Base64-encoded string, using the standard character set, without padding. /// /// The reference hash of an event covers the essential fields of an event, including content /// hashes. It is used to generate event identifiers and is described in ...
/** The context exposed for executing {@link com.facebook.buck.step.Step}s */ @BuckStyleValueWithBuilder @SuppressWarnings( "immutables:from") // Suppress warning for event bus being different type in superclass public abstract class StepExecutionContext extends IsolatedExecutionContext { /** * Creates {@link...
/* Return route type string for VTY output. */ const char * route_type_str (u_char type) { switch (type) { case ZEBRA_ROUTE_SYSTEM: return "system"; case ZEBRA_ROUTE_KERNEL: return "kernel"; case ZEBRA_ROUTE_CONNECT: return "connected"; case ZEBRA_ROUTE_STATIC: return "sta...
class Preprocessor: """Dummy-encode categoricals, standardize reals.""" def __init__(self, interactions=False): self.interactions = interactions self.design_info_ = None def fit(self, df): dmat = self.do_encoding(df) self.design_info_ = dmat.design_info return self...
//: See if we can find the format from an example // Returns false if fail. bool DPFileSequenceBaseBodyC::ProbeExample(FilenameC rootFn) { ONDEBUG(cerr << "DPFileSequenceBaseBodyC::ProbeExample('" << rootFn << "') \n"); if(forLoad) { if(!rootFn.Exists()) return false; } int i; bool digits_se...
<filename>src/Recursion_Level_1/Get_Keypad_Combinations.java // Here, in this question, we're given a keypad code and its reference and // we've to return all the keypad combinations that are possible // using the given keypad code in an arraylist. package Recursion_Level_1; import java.util.*; public class Get_Keyp...
// GeneticAlgorithmSimulation.cpp - This is a program that demonstrates genetic algorithms using simulated robots // <NAME> - 12/11/2017 // CISP 400 #include <algorithm> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <string> #include <list> #include <vector> //#pragma...
def rays(year, teams): if year >= 2008: teams.append('TBR') elif year >= 1998: teams.append('TBD')
from sys import stdin import math n = int(stdin.readline().rstrip()) li = [list(stdin.readline().rstrip().split()) for _ in range(n)] s = stdin.readline().rstrip() time = 0 flag = 0 for i in li: if s == i[0]: flag = 1 continue if flag == 1: time += int(i[1]) print(time) ...
/** * * This method ignores the provided id field * in the parameter. Instead using only the class' * internal static counter to generate ids at the DB level * * @param newURL * @return */ @Override public Optional<Integer> add(ShortURL newURL) { String url = newUR...
Top Google Glass Apps of 2014 Usually at the end of every month I gather up the best apps released during that month. But, since it’s about to be 2015, this time I’m making a small list of the best apps released in 2014. Down below you will find some of the most unique, helpful, and interesting apps that came to Goog...
Verizon is pushing out an update to the Galaxy Note 4 today, with the update available through only Kies at the moment. According to users who are getting update, the build is still Android 5.0.1 (build number N910VVRU2BOF1) and there don’t seem to be any notable changes. The Kies version of the update is 2GB in size –...
<gh_stars>0 package com.greyturtle.silencer.service; import com.greyturtle.silencer.di.Service; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; import lombok.extern.slf4j.Slf4j; import org.zeroturnaround....
#include<bits/stdc++.h> using namespace std; #define max_n 200008 #define oo 1000000000 #define in insert #define eps 1e-11 #define l_b lower_bound #define fr(i,n) for(int i=0;i<n;i++) #define LSOne(S) (S & (-S)) typedef vector<int >vi; typedef long long ll; typedef unsigned long long ull; typedef pair<int,...
use barrel::types; use expect_test::expect; use indoc::indoc; use introspection_engine_tests::test_api::*; use quaint::prelude::Queryable; use test_macros::test_connector; #[test_connector(tags(Postgres), exclude(CockroachDb))] async fn kanjis(api: &TestApi) -> TestResult { let migration = indoc! {r#" CREA...
Dentin tubule occluding ability of dentin desensitizers. PURPOSE To compare the dentin tubule-occluding ability of fluoroaluminocalciumsilicate-based (Nanoseal), calcium phosphate-based (Teethmate Desensitizer), resin-containing oxalate (MS Coat ONE) and diamine silver fluoride (Saforide) dentin desensitizers using ar...
pub trait PartialEquivalenceRelation<A: ?Sized> { fn equal(&self, &A, &A) -> bool; #[inline] fn inequal(&self, x: &A, y: &A) -> bool { !self.equal(x, y) } } pub trait EquivalenceRelation<A: ?Sized> : PartialEquivalenceRelation<A> {} impl<A: ?Sized + PartialEq> PartialEquivalenceRelation<A> for ::Core { ...
#include <assert.h> #include <limits.h> struct TestS { long x, y, q, r; }; static struct TestS test_s[] = { { 4, 2, 2, 0 }, /* normal cases */ { 9, 7, 1, 2 }, { 0, 0, -1, 0 }, /* div by zero cases */ { 9, 0, -1, 9 }, { LONG_MIN, -1, LONG_MIN, 0 }, /* overflow ca...
//! Module level comment describing the example ... //! //! Delete the comments below from final versions. //! //! Please ensure that concepts which a previous example have not introduced are //! well commented inline. Have a look at other examples to get a feeling for what we mean here. //! //! The goal is that someon...
<filename>helospark-core-ui/src/app/login-form/login-form.component.ts<gh_stars>0 import { AuthenticationStoreService } from './../common/authentication-store/authentication-store.service'; import { LoginService } from './../common/login/login.service'; import { LoginData } from './../common/login-dialog/login-data'; i...
#include <bits/stdc++.h> using namespace std; void Solve(){ long long n; string s; cin>>n>>s; string pre = "", suf = ""; int i = 0; while(i < s.size()){ while(i < s.size() && s[i] != '.'){ pre += s[i]; i++; } i++; while(i < s.size()...
<reponame>BurgosNY/nutrinews from flask import Flask, render_template, flash, redirect, url_for, request from flask_pymongo import PyMongo from pymongo import DESCENDING, ASCENDING from link_analysis import link_check import settings from flask_wtf import FlaskForm # Initialize app: app = Flask(__name__) app.config["...
// Host provides the net.IP of the Internet Host. func (a *Address) Host() net.IP { switch a.Network() { case "tcp", "tcp4", "tcp6": addr, _ := net.ResolveTCPAddr(a.Network(), a.String()) return addr.IP case "udp", "udp4", "udp6": addr, _ := net.ResolveUDPAddr(a.Network(), a.String()) return addr.IP case "i...
/// Returns the number of rows that are available in the buffers defined for the query. If no /// rows are currently available in the buffers, an internal fetch takes place in order to /// populate them, if rows are available. If the statement does not refer to a query an error /// is returned. All columns that have no...
import {FunctionalComponent, h} from "preact"; import {ComponentViewProps} from "./ComponentsConfig"; import {Transform2D_Data} from "@highduck/core"; import {Vec2Field} from "../fields/Vec2Field"; import {NumberField} from "../fields/NumberField"; import {RectField} from "../fields/RectField"; import {Color4Field} fro...
import imp import inspect import os import sys import uuid from conans.client.generators import _save_generator from conans.errors import ConanException, NotFoundException from conans.model.conan_file import ConanFile from conans.model.conan_generator import Generator from conans.util.config_parser import ConfigParser...
<reponame>amit212316/master # yomamabot/fb_yomamabot/urls.py from django.conf.urls import include, url from .views import YoMamaBotView urlpatterns = [ url(r'^66d2b8f4a09cd35cb23076a1da5d51529136a3373fd570b122/?$', YoMamaBotView.as_view()) ]
// convert the database tablespace query result to internal structure func NewTablespaces(tuples TablespaceTuples) Tablespaces { clusterTablespaceMap := make(Tablespaces) for _, t := range tuples { tablespaceInfo := TablespaceInfo{Location: t.Location, UserDefined: t.UserDefined} if segTablespaceMap, ok := cluste...
#include <stdio.h> #define MAX 100 struct longnumber { char dig[MAX]; }; typedef struct longnumber longnumber; longnumber add(longnumber a, longnumber b) { longnumber c; int i=0, f=0; for(i=0; i<MAX; i++) { int z=a.dig[i]+b.dig[i]+f; c.dig[i]=z % 10; f = z/10; } return c; } longnumber mul(longnu...
// computeValidationMetricsCompleted updates the internal state of the sequencer to account for a // completed COMPUTE_VALIDATION_METRICS worklaod. func (s *trialWorkloadSequencer) computeValidationMetricsCompleted( msg workload.CompletedMessage, isBestValFunc func() bool, ) (op *searcher.ValidateAfter, err error) { ...
Comparative Analyses of Universal Extraction Buffers for Assay of Stress Related Biochemical and Physiological Parameters Comparative efficiency of three extraction solutions, including the universal sodium phosphate buffer (USPB), the Tris-HCl buffer (UTHB), and the specific buffers, were compared for assays of solub...
/** * Utility pojo which will be used to examining the */ public class SchemaReferenceInfo { @JsonDeserialize(as = SchemaReferenceImpl.class) private SchemaReference schema; /** * Return the schema reference. * * @return Schema reference */ public SchemaReference getSchema() { return schema; } /**...
HONG KONG (Reuters) - Simon Murray, adventurer and outspoken chairman of commodity trader Glencore (GLEN.L), is back in the spotlight, this time over his role as a director of Sino-Forest TRE.TO, whose shares have been hit by accusations of fraud. Simon Murray is seen at Alliance Airport in Fort Worth, Texas, in this ...
#include "FWCore/Framework/interface/global/EDProducer.h" #include "FWCore/Framework/interface/Event.h" #include "FWCore/Framework/interface/MakerMacros.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "DataFormats/SiStripCluster/interface/SiStripClusterTools.h" #include "DataFormats/TrackerRecHit2...
Developmental Immaturity of Siglec Receptor Expression on Neonatal Alveolar Macrophages Predisposes to Severe Group B Streptococcal Infection Summary Streptococcus agalactiae (Group B Streptococcus, GBS) is the most common neonatal pathogen. However, the cellular and molecular mechanisms for neonatal susceptibility to...
import { HttpClient } from '@angular/common/http'; import { EventEmitter, Injectable } from '@angular/core'; import { MatTableDataSource } from '@angular/material/table'; import { Observable } from 'rxjs'; import { AdminInterno } from 'src/app/shared/model/adminInterno'; import { CustomFilter } from 'src/app/shared/mod...
/*---------------------------------------------------------------------* * Tinyusb FatFs module reads image file data *--------------------------------------------------------------------- */ bool file_system_mount(uint8_t dev_addr) { char *filename; char logic_drv_num[10] = {0}; uint8_t phy_disk = dev_a...
/** * Checks if a given CC specifier file can be used to produce an instance of CC. Returns * <code>true</code>, if a CC can be instantiated, <code>false</code> otherwise. * * @param specifier * the resource specifier * @param resource_manager * a new resource_manager * @param...
/** * Check if a given number is a prime number. * This means that for a number {@code n}, * there does not exist a number {@code a} such that * {@code a < n} and {@code n % a = 0}, except for {@code a = 1}. * * @name Is Prime * @type CONDITION * @pattern %numbers% (is|are)[ not|n't] [a] prime [number[s]] * @s...
package internal import ( "context" "crypto/ecdsa" "errors" "fmt" "math/big" "net" "os" "os/signal" "runtime" "strings" "syscall" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/ethclient" "github.com/prestonvanloon/go-recaptcha" fauce...
#pragma once #include "D3D9VTable.h" #include "CUpscaler.h" #include "Win32Ex.h" #define SIMULATE_LOST_DEVICE 0 #define LOST_DEVICE_TEST 0 #define NO_DEVICE_HOOK 0 extern CRITICAL_SECTION d3d9CriticalSection; class CriticalSectionLock { LPCRITICAL_SECTION criticalSection; public: CriticalSectionLock(LPCRITICAL_SE...
Desperate messages are being shared on social media claiming that some fathers in Eastern Aleppo are asking religious scholars whether it is permissible to kill their daughters before they are captured and raped by Assad regime forces, Hezbollah, or Iranian militias. Syrian regime forces and sectarian militias carried...
// Log sends log messages to elasticsearch func (e *Elasticsearch) Log(ctx context.Context, index, tzpe string, msg interface{}) error { if _, err := e.Client.Index().Index(index).Type(tzpe).BodyJson(msg).Do(); err != nil { return err } return nil }
<reponame>polinwei/jwt<gh_stars>0 package com.spring.jwt.db.maria.model.authentication; // Generated Jul 12, 2018 3:28:17 PM by Hibernate Tools 5.2.11.Final import javax.persistence.Column; import javax.persistence.Embeddable; /** * UserAuthorityId generated by hbm2java */ @Embeddable public class UserAut...
<gh_stars>0 import { IOperation } from './interface' import * as inquirer from 'inquirer' import RootStore from '../store' import { setScaleDeployment } from '../api/k8s/resources' import { selector } from '../helpers/prompts' const Scaler: IOperation = { execute: async () => { const deployments = (await selecto...
/** * Modifies the given DependencyCollection so that it is identical to the * cached copy based on a previous call to putIntoCache() and returns * {@code true}. * If the cache is disabled or there is no existing cache for the given * resource, returns {@code false}. */ private boolean pop...
def sliding_window2d_backend(x, kernel_size, padding, stride): padded_x = np.pad(x, [[0, 0], [int(np.floor(padding[0] / 2)), int(np.ceil(padding[0] / 2))], [int(np.floor(padding[1] / 2)), int(np.ceil(padding[1] / 2))], [0, 0]], mode='constant', constant_values=(0.0,)) return np.ndarra...
<reponame>chaixiaoxue/dlink import React, {useEffect, useState} from 'react'; import {Form, Button, Input, Modal, Select,Divider,Space,Switch} from 'antd'; import { MinusCircleOutlined, PlusOutlined } from '@ant-design/icons'; import {ClusterConfigurationTableListItem} from "@/pages/ClusterConfiguration/data"; import {...
package com.simonstuck.vignelli.refactoring.step.impl; import com.intellij.openapi.application.Application; import com.intellij.openapi.project.Project; import com.intellij.psi.PsiAssignmentExpression; import com.intellij.psi.PsiClass; import com.intellij.psi.PsiElement; import com.intellij.psi.PsiExpression; import c...
package gst /* #include <gst/gst.h> */ import "C" import "github.com/s-urbaniak/glib" type Device struct { GstObj } func (d *Device) g() *C.GstDevice { return (*C.GstDevice)(d.GetPtr()) } func (d *Device) GetCaps() *Caps { return (*Caps)(C.gst_device_get_caps(d.g())) } func (d *Device) GetDisplayName() string {...
/* TODO: Measure::getAverage() This function calculates the average/mean value for all the values. @return The average value for all the years, or 0 if it cannot be calculated */ double Measure::getAverage() const{ double sum = 0; int size = this->values.size(); for(auto it = this->values.begin(...
/** * Creates a new time slice which stores the information specified. This essentially stores * the bike's left/right wheel positions and their rotation at `currentTime + msPassed` * moment of time. */ public void createSlice(float msPassed, VectorF leftWheelPos, VectorF rightWheelPos, ...
#pragma once #include "poolstd.hpp" using namespace std; namespace pool { class POOL_PUBLIC Natives { public: virtual bool add(const string &name, const shared_ptr<Object> &value) = 0; virtual bool addFun(const string &name, const vector<Function::Param> &parameters, const NativeFunction::method_t &code) = 0;...
def check_integrity(self): if self.left and self.right: return self.left.check_integrity() and \ self.right.check_integrity() and \ self.hash_value == hash_string(self.left.hash_value + self.right.hash_value) else: assert self.left is None an...
// TestValidateGroupName tests for an invalid group name func TestAppProject_ValidateGroupName(t *testing.T) { p := newTestProject() err := p.ValidateProject() assert.NoError(t, err) p.Spec.Roles[0].Groups = []string{"mygroup"} err = p.ValidateProject() assert.NoError(t, err) badGroupNames := []string{ "", "...
Former chief minister BS Yeddyurappa, who has been appointed the head of the BJP in Karnataka, did not even fire his first salvo, and the Congress in the state is already facing factionalism with three groups formed within the Karnataka Pradesh Congress Committee (KPCC). The Congress is aware of Yeddyurappa's clout an...
<filename>tests/test_configuration.py<gh_stars>1-10 #pylint: skip-file import mock import re from util import VigilanceTestCase class ConfigurationParserTest(VigilanceTestCase): def setUp(self): super(ConfigurationParserTest, self).setUp() global ConfigurationParsingError from vigilance.er...
/** * Represents the WAF logging stack outputs. */ public class WafLoggingOutputs { private String kinesisFirehoseDeliveryStreamARN; private String kinesisFirehoseDeliveryStreamName; public String getKinesisFirehoseDeliveryStreamName() { return kinesisFirehoseDeliveryStreamName; } publi...
////////////////////////////////////////////////////////////////////////////// // // Class: // COAConcurrentGroup // // Method: // COAConcurrentGroup constructor // // Description: // Constructor. // // Input: // CMetricsDevice * device - parent metrics device // const char * name ...
/** Clears the value of the 'split' field */ public StartupConfiguration.Builder clearSplit() { split = null; fieldSetFlags()[0] = false; return this; }
/** * Attempts to redeem this kit, saving it beforehand. * * @param uuid The {@link UUID} of the player to redeem the kit for * @return The result */ default KitRedeemResult redeem(final UUID uuid) { this.save(); final NucleusKitService kitService = NucleusAPI.getKitService().or...
/**************************************************************** * Licensed to the Apache Software Foundation (ASF) under one * * or more contributor license agreements. See the NOTICE file * * distributed with this work for additional information * * regarding copyright ownership. The ASF licenses this...
<reponame>wolfv6/keybrd #include "Code_Sc.h" void Code_Sc::press() { Keyboard.press(scancode); } void Code_Sc::release() { Keyboard.release(scancode); }
<reponame>VineethReddy02/timescale-prometheus package pgmodel import ( "fmt" "math" "sort" "github.com/jackc/pgtype" "github.com/jackc/pgx/v4" "github.com/prometheus/prometheus/pkg/labels" "github.com/prometheus/prometheus/storage" "github.com/prometheus/prometheus/tsdb/chunkenc" ) const ( // Postgres time ...
<filename>beaconing/index.d.ts import { IonicNativePlugin } from '@ionic-native/core'; export declare class BeaconingOriginal extends IonicNativePlugin { /** * Your plugin plugin functions go here. * Function names should match the ones in your .swift & .js files. * Otherwise you won't be able to exe...
# Copyright 2009-2017 <NAME>. # This program is distributed under the MIT license. '''Defines various tools related to temporary files.''' from __future__ import generator_stop import tempfile import shutil import pathlib from python_toolbox import context_management @context_management.ContextManagerType def cre...
by Brett Stevens on July 27, 2013 Symbolism occurs when a small part of some thing comes to represent the whole. We see a flag, and we think of a nation, even though the nation despite containing many flags does not resemble a flag, nor is solely made of flags. When we are an undifferentiated mass like the commercial...
package main import ( "flag" "fmt" "net/http" "os" "github.com/Nextdoor/conductor/core" "github.com/Nextdoor/conductor/shared/datadog" ) func main() { flag.Parse() core.Preload() endpoints := core.Endpoints() server := core.NewServer(endpoints) address := ":8400" datadog.Info("Starting the Conductor s...
#import sys #import numpy as np #import math #import itertools #from fractions import Fraction #import itertools from collections import deque #import heapq #from fractions import gcd #input=sys.stdin.readline a,b=map(int,input().split()) if a==b: print(a) exit() if a==0: i=0 resb=0 while True: if i==0: ...
<gh_stars>1-10 # -*- coding:utf8 -*- from fabric.api import task, local, run, sudo, env from oozappa.config import get_config, procure_common_functions _settings = get_config() procure_common_functions() # your own task below @task def set_env_app_type_a(): u'''eg. search app server type a instance via api or ha...
ES Lifestyle Newsletter Enter your email address Please enter an email address Email address is invalid Fill out this field Email address is invalid You already have an account. Please log in or register with your social account The average British woman’s body in 1957 looked quite different to the average woman’s bod...
package raylib /* #include "../lib/raylib/src/rglfw.c" #cgo darwin LDFLAGS: -framework OpenGL -framework Cocoa -framework IOKit -framework CoreVideo #cgo darwin CFLAGS: -x objective-c -mmacosx-version-min=10.9 -I../lib/raylib/src/external/glfw/include -DPLATFORM_DESKTOP #cgo linux LDFLAGS: -lGL -lm -pthread -ldl -lr...
def _get_router_info_list_for_tenant(self, routers, tenant_id): router_ids = [ router['id'] for router in routers if router['tenant_id'] == tenant_id] router_info_list = [] for rid in router_ids: if rid not in self.router_info: cont...
class TokenActions: """ Collection of token actions. .. note:: This is just a class rather than an enum because enums cannot be extended at runtime which would limit the number of token actions to the ones implemented by FlaskBB itself and block extension of tokens by plugin...
#include <bits/stdc++.h> using namespace std; #define long long long #define FOR(i, a, b) for(int i = a; i <= b; ++i) #define REP(i, n) for(int i = 0; i < n; ++i) const int MAX = 200100; vector<int> g[MAX]; long n, a[MAX], xorsum[MAX], ans, CS[22][2], AS[22][2], curRoot; namespace centroid { // empty mom[] befor...