content stringlengths 10 4.9M |
|---|
News > Originals
Atal Bihari Vajpayee as Prime Minister of India almost personified his own brand of coolness. And I can reveal that the brief presence of our current Minister of Youth Affairs and Sports, Vijay Goel, in the Prime Minister’s Office got his goat.
He had plaintively demanded why Goel deserved to be in t... |
import {Framework} from '@roots/bud-framework'
import type Webpack from 'webpack'
declare module '@roots/bud-framework' {
interface Framework {
/**
* ## splitChunks [💁 Fluent]
*
* Useful for bundling vendor modules separately from application code.
*
* ### Usage
*
* ```js
... |
// KeyValuesToMap converts the set of values of the form "foo=abc" into a map
func KeyValuesToMap(values []string) map[string]string {
answer := map[string]string{}
for _, kv := range values {
tokens := strings.SplitN(kv, "=", 2)
if len(tokens) > 1 {
k := tokens[0]
v := tokens[1]
answer[k] = v
}
}
re... |
// outputDirectorySummariesForGroup sorts the directories for this group and
// does the actual output of all the summary information.
func outputDirectorySummariesForGroup(output *os.File, username, groupname string, dStore dirStore) error {
dirs, summaries := dStore.sort()
for i, s := range summaries {
_, errw :=... |
/**
* Test whether sub-resource interceptors are called.
*
* @throws Exception on any exception
*/
@Test
public void subResourceInterceptionTest() throws Exception {
String rawData = "countryName=SriLanka&type=Batsman";
Player player = doPostAndGetResponseObject(microServiceBaseU... |
<filename>clean_txt.py
import re
with open("wordcloud.txt", encoding='utf-8') as f:
with open("clean_full.txt", 'w', encoding='utf-8') as clean_file:
x = f.readlines()
s = []
for i in x:
i = i.replace(","," ")
i = i.replace('.', " ")
i = i.replac... |
def to(self, unit):
return self.__amount * Length.convert[unit] |
// print a string on the polled uart, can be used with interrupts disabled
// ... but the elapsed time waiting for the uart will slow things down a lot
void kputs (const char* msg) {
auto& polled = (decltype(console)::base&) console;
while (*msg)
polled.putc(*msg++);
} |
Short‐Term Adaptation of the VOR: Non‐Retinal‐Slip Error Signals and Saccade Substitution
We studied short‐term (30 min) adaptation of the vestibulo‐ocular reflex (VOR) in five normal humans using a “position error” stimulus without retinal image motion. Both before and after adaptation a velocity gain (peak slow‐phas... |
Media playback is not supported on this device Bradford 0-5 Swansea: Swans celebrate League Cup final victory
Swansea City secured the first major trophy in their 101-year history as League Two Bradford City were thrashed in the Capital One Cup final at Wembley.
The Bantams had beaten Premier League trio Wigan Athlet... |
The year began with a work slowdown by patrol officers, after the fatal shooting of two of their colleagues last December, during which the numbers of arrests and summonses plummeted for several weeks. Police activity never fully returned to its pre-slowdown levels, a development that Mr. Bratton referred to as a “peac... |
# -*- coding: utf-8 -*-
# License: See LICENSE file.
import random
import math
try:
import png
except ImportError:
png = False
import pygtk
pygtk.require('2.0')
import gtk
import gtk.gtkgl
import gtk.gtkgl.apputils
from OpenGL.GL import *
from OpenGL.GLU import *
import openglutils
class MatrixWidget(gtk.D... |
/** Removes the mapping of the specified value key if this map contains a mapping for the key */
func (this *MyHashMap) Remove(key int) {
i, ok := this.findEntryIndex(key)
if !ok {
return
}
items := this.getEntries(key)
this.entries[this.storeKey(key)] = append(items[:i], items[(i+1):]...)
} |
<filename>frontend/src/app/prescricao-medica/prescricao-medica.module.ts
import { PrescricaoMedicaDietaModule } from './dieta/prescricao-medica-dieta.module';
import { ProcedimentoEspecialModule } from './procedimento-especial/procedimento-especial.module';
import { HttpClientModule } from '@angular/common/http';
impo... |
def make_raster(
colors: dict[int, Color],
resolution: tuple[int, int],
get_point: Callable[[], Vec],
ifs: IteratedFunctionSystem,
padding: float,
quiet=False,
) -> np.ndarray:
window = Window.empty()
points = set()
@use_bar(" Computing points:", POINTS)
def compute_points():
... |
/**
* Performs the fft to get a frequency-referenced signal and sets everything to zero where no audio signal should be in the message.
* Executes the complex inverse to get a time-referenced signal again.
* @param fftSize size for fft
* @param inputSignal the signal to be transformed
* @return... |
/**
* servlet for REST calls, calls the operationsImpl
*
* @author gsp@dtv.dk
* @version
*/
public class RESTImpl extends HttpServlet {
private static final long serialVersionUID = 1L;
private static final Logger logger =
LoggerFactory.getLogger(RESTImpl.class);
private Confi... |
import { SoapFaultInfo } from '../../../src/web-client/soap-fault-info';
describe('soap fault info', () => {
test('data transfer object', () => {
const code = 'x-code';
const message = 'x-message';
const fault = new SoapFaultInfo(code, message);
expect(fault.getCode()).toBe(code);
... |
def main():
test_form = {
"version": "alpha",
"payment": "regular",
"firstname": "Hannah",
"lastname": "Acker",
"email": "h.acker@exmaple.com",
"pgp": "0x1111111111111111",
"addr1": "Hauptstraße 1",
"addr2": "12345 Entenhausen",
"addr3": "c/o F... |
<gh_stars>0
//
// Copyright Coinbase, Inc. All Rights Reserved.
//
// SPDX-License-Identifier: Apache-2.0
//
package sharing
import (
"bytes"
crand "crypto/rand"
"encoding/json"
"testing"
"github.com/dB2510/kryptology/pkg/core/curves"
"github.com/stretchr/testify/require"
)
func TestShamirSplitInvalidArgs(t ... |
'use strict';
import { AfterViewInit, Directive, ElementRef, Input, OnDestroy, Renderer2 } from '@angular/core';
import { computedStyle } from '@ngui/utils';
@Directive({
selector: '[ngui-sticky]'
})
export class NguiStickyDirective implements AfterViewInit, OnDestroy {
@Input('sticky-after') public stickyAfter: ... |
/* ----------------------------------------------------------------------
perform and time the 1d FFTs required for N timesteps
------------------------------------------------------------------------- */
int PPPMDipole::timing_1d(int n, double &time1d)
{
double time1,time2;
for (int i = 0; i < 2*nfft_both; i++)... |
import React from "react";
import ReactDOM from "react-dom";
import "bulma/css/bulma.css";
interface IModalProps {
component?: React.ReactNode;
render?: () => React.ReactNode;
maskClose?: boolean;
}
class Modal {
static open({ component, render, maskClose }: IModalProps) {
const container = document.crea... |
package com.inventory.utils;
import java.util.ArrayList;
import java.util.LinkedList;
import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger;
import org.mule.api.MuleEvent;
import org.mule.api.MuleException;
import org.mule.api.MuleMessage;
import org.mule.api.processor.MessageProcessor;
import o... |
<gh_stars>0
/* Lists/Weather
*
* This demo shows a few of the rarer features of GtkListView and
* how they can be used to display weather information.
*
* The hourly weather info uses a horizontal listview. This is easy
* to achieve because GtkListView implements the GtkOrientable interface.
* To make the items ... |
/**
* Formats a log event in accordance with RFC 5424.
*/
@Plugin(name = "RFC5424Layout", type = "Core", elementType = "layout", printObject = true)
public final class RFC5424Layout extends AbstractStringLayout {
/**
* Not a very good default - it is the Apache Software Foundation's enterprise number.
... |
package tests
//go:generate msgp
type ChatMsg_Login struct {
Name string `msg:"name"`
}
type ChatMsg_Send struct {
Reciever string `msg:"recv"`
Content string `msg:"msg"`
}
|
def template_mgr(self):
if not self._template_mgr:
self._template_mgr = self.create_template_manager(builder=self)
return self._template_mgr |
module Main where
import Output
import Parser
import FromID
import System.Environment
import Control.Applicative
import Data.Time
main :: IO ()
main = do
d <- localDay . zonedTimeToLocalTime <$> getZonedTime
args <- getArgs
let (_, "--" : fps) = span (/= "--") args
items <- mapM (fmap parse . readFile) fps
putSt... |
/**
* @author Peter Abeles
*/
public class TestHistogramTwoPeaks {
/**
* Give it two clearly defined peaks with a few local minimums
*/
@Test
public void simpleTest() {
IntensityHistogram hist = new IntensityHistogram(100,200);
hist.histogram[1] = 2;
hist.histogram[2] = 5;
hist.histogram[3] = 12;
h... |
/**
* Perform final transformations on entire scroll.
* (From md-combined.xsl)
*/
private org.w3c.dom.Document transformEntireScroll() {
final String xsltLocation = "/edu/odu/cs/cowem/templates/";
final InputStream formatConversionSheet =
MarkdownDocument.class.getResour... |
Synthesis of a Formyl Group-Containing Reactive Novolac
We report the preparation of a new novolac having formyl groups by the addition-condensation of 2,4,6-trimethoxybenzaldehyde (1) and 1,3,5-trimethoxybenzene (2) with formaldehyde. In the case of the polymerization of 1 and formaldehyde, polymerization did not occ... |
As cities expand, it’s not just humans who are becoming increasingly urbanized. Concrete jungles and actual jungles are no longer realms apart, and as natural and human-created environments bleed into each other and intertwine, animals that walk on four legs, six or eight legs, fly or slither are calling cities home mo... |
package net.simplyadvanced.utils;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import android.util.Log;
/** Static helper methods for using reflection. This was inspired from:
* https://code.google.com/p/csipsimple/source/browse/trunk/ActionBarSherlock/src/com/actionbarsherlo... |
/* ZSTD_initDStream_usingDDict() :
* ddict will just be referenced, and must outlive decompression session
* this function cannot fail */
size_t ZSTD_initDStream_usingDDict(ZSTD_DStream* dctx, const ZSTD_DDict* ddict)
{
size_t const initResult = ZSTD_initDStream(dctx);
dctx->ddict = ddict;
return initResu... |
#pragma once
#include "ofMain.h"
#include "flUIBase.h"
#include "flColorPickerEvent.h"
namespace fl2d {
class flCircleColorPicker : public flUIBase {
public:
protected:
private:
float _uiWidth;
float _uiHeight;
ofImage* _pixelCaptureImag... |
<filename>src/bot/bot.go
package bot
import (
"fmt"
"math/rand"
"time"
"github.com/bwmarrin/discordgo"
"github.com/pkg/errors"
"github.com/thecodeah/taco-bot/src/commands"
"github.com/thecodeah/taco-bot/src/storage"
)
// Configuration contains settings loaded in from environment
// variable (.env) files.
type... |
The death of a man in the infield of Texas Motor Speedway on Saturday night during the Sprint Cup Series NRA 500 has been ruled a suicide from a gunshot to the head, according to the Tarrant County Medical Examiner's office.
The incident happened late in the race when Kirk Franklin, 42, of Saginaw, Texas, apparently g... |
/**
* Packs incoming records to be inserted into buckets (1 bucket = 1 RDD partition).
*/
public class SparkBucketIndexPartitioner<T extends HoodieRecordPayload<T>> extends
SparkHoodiePartitioner<T> {
private final int numBuckets;
private final String indexKeyField;
private final int totalPartitionPaths;
... |
Origin and status of the Great Lakes wolf
An extensive debate concerning the origin and taxonomic status of wolf‐like canids in the North American Great Lakes region and the consequences for conservation politics regarding these enigmatic predators is ongoing. Using maternally, paternally and biparentally inherited mo... |
Nick Hundley is very likely a bang-up guy—good to people, generous, and deservedly well liked. His teammates speak highly of him. He’s likely a pillar of society and a citizen to be admired. Nick Hundley is probably a fine human being.
I think I’m a good person, too. I’m generous; I’m helpful; I’m kind. I try to see t... |
def join_sorted_arrays(array1, array2):
new_array = []
j = 0
n2 = len(array2)
for i, element in enumerate(array1):
while j < n2 and element > array2[j]:
new_array.append(array2[j])
j += 1
new_array.append(element)
... |
Characterization of PVDF/Graphene Nanocomposite Membranes for Water Desalination with Enhanced Antifungal Activity
: Seawater desalination is a worldwide concern for the sustainable production of drinking water. In this regard, membrane distillation (MD) has shown the potential for effective brine treatment. However, ... |
import {Behavior, BehaviorMemory} from './behavior';
import {Upgrader, UPGRADER} from './upgrader';
interface LinkUpgraderMemory extends BehaviorMemory {
controllerID: Id<StructureController>;
linkID: Id<StructureLink>;
destPos?: [number, number];
}
export const LINK_UPGRADER = 'link-upgrader';
/**
* TODO: Un... |
use crate::error::*;
use apple_bundle::plist;
use serde::{Deserialize, Serialize};
use std::{
fs::File,
path::{Path, PathBuf},
};
#[derive(Debug, Clone, Serialize, Deserialize)]
struct Xcent {
#[serde(rename(serialize = "application-identifier"))]
application_identifier: String,
#[serde(rename(seri... |
def passthrough_layer(a, b, filters, depth, size, name):
b = conv_layer(b, filters, depth, name)
b = tf.space_to_depth(b, size)
y = tf.concat([a, b], axis=3)
return y |
def recombination(self, partner):
pass |
SHOCK examines 10 films that exemplify the sub-genre of “Folk Horror”.
Although we generally associate the term Folk Horror with a strain of rural, uniquely British horror films, the sub-genres shadow is cast over international cinema and continues to affect contemporary genre filmmaking.
With the impending releas... |
def to_lendict(self) -> "SuperDict":
return self.vapply(len) |
Two-dimensionat studies of streamers fn gases
Two-dimensionat studies of streamers fn gases" (1987). We present the results of two-dimensional computer simulations of streamer initiation and propagation in atmospheric pressure N2. The simulation algorithm makes use of flux-corrected transport techniques and was used a... |
A request from bagginos ( bagginos.deviantart.com/ ) of Azula as a daughter of Aku."My brother, my uncle, and even my father...all of them were fools. Their 'bending mastery' was nothing, playing with forces that could never compare with what I've seen. Fire may burn down cities and armies, and lightning can strike dow... |
Effect of Cross-S Character
We examine the effect of the cr on the dispersion characteristics of the fun plasmon polariton (SPP) mode guided along A a wide wavelength range. It is observed that shape has a significant effect on dispersion ch metallic nanowires. The dispersion is found t the circular cross-section, and... |
def parse_date_tstamp(fname):
if os.name == 'nt':
creation_time = os.path.getctime(fname)
else:
creation_time = get_creation_time(fname)
date = time.gmtime(creation_time)
year = str(date.tm_year)
month = '{0:02d}'.format(date.tm_mon)
month += '-' + months[month]
day = '{0:0... |
Continuing what feels somewhat like a binge on Hokkaido mountain huts, I invited Hiro to come with me on a ski touring trip to Mt. Piyashiri, 3 hours drive north of Sapporo. There was no higher reason to do this trip, other than the fact that I’d seen pictures of Mt. Piyashiri’s ice-encrusted summit hut, and thought th... |
Sir Christopher Lee has died at the age of 93 after being hospitalized for respiratory problems and heart failure, says The Guardian.
The veteran actor, best known for a variety of films from Dracula to The Wicker Man through to the Lord of the Rings trilogy, passed away on Sunday morning at Chelsea and Westminster Ho... |
Monodisperse micelles composed of poly(ethylene glycol) attached surfactants: platonic nature in a macromolecular aggregate.
Among the many studies on micelles, dating back more than 100 years, we first found a series of monodisperse micelles: spherical micelles made from calix arene surfactants exhibited monodispersi... |
The simplicity of Trump’s phrasing belies the logistical and financial nightmare that traveling for an abortion has been for many women in states with restrictive laws. There’s no need to engage in hypotheticals to see how this would play out. In 2013, Texas passed tough restrictions on abortion clinics, which were str... |
/**
* Created by Marcus Becker on 25/06/2017.
*/
public class PagerAdapterArray extends FragmentStatePagerAdapter implements OnFragmentInteractionListener {
public interface DataChangeListener {
void pagerAdapterUpdate();
}
private final Fragment[] frags;
private final String[] titles;
... |
/**
* Tests that an empty array is allowed.
*/
@Test
public void testNoNullsArrayOkEmpty() {
final Object[] array = new Object[] {};
assertEquals(ArgumentChecker.noNulls(array, "name"), array);
} |
<filename>operators/reduce_test.go
package operators_test
import (
"testing"
"github.com/b97tsk/rx"
. "github.com/b97tsk/rx/internal/rxtest"
"github.com/b97tsk/rx/operators"
)
func TestReduce(t *testing.T) {
max := func(seed, val interface{}, idx int) interface{} {
if seed.(int) > val.(int) {
return seed
... |
FRIDAY MEDIA COLUMN
News and views on assorted changes planned for NFL and college football broadcasts this season:
### ESPN's college studio.
In his first season as Brent Musburger’s replacement on ABC’s lead announcing team, Chris Fowler made the job considerably more challenging by retaining his host duties on ES... |
Labour’s defeat at last year’s general election wasn’t due to a lack of good policies, says HARRY BARNES. There were plenty, but most of them hardly saw the light of day.
In the Labour Party report Learning the Lessons from Defeat by Margaret Beckett, there is an important section which states: “For all the strength o... |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N, Q;
cin >> N >> Q;
int64_t num = N-2;
num *= num;
int d, n, f, s;
f = 0;
vector<int> V(1,N), H(1,N);
for (int i = 0; i < Q; i++) {
cin >> d >> n;
if (f == 0) {
f = d;
}
if (f == 1) {
d = abs(d... |
x = int(input())
ans = 0 - -x//11
if ans*11 - 5 >= x:
ans = ans*2 - 1
else:
ans *= 2
print(ans) |
def fft(self, array, output=None):
data_in = self.set_input_data(array, copy=False)
data_out = self.set_output_data(output, copy=False)
cu_fft(
data_in,
data_out,
self.plan_forward,
scale=False
)
if output is not None:
s... |
package org.pimslims.graph.implementation;
import java.util.Collection;
import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.Set;
import org.pimslims.graph.IGraph;
import org.pimslims.metamodel.ModelObject;
import org.pimslims.model.protocol.Protocol;
import org.pimslims.model.protoco... |
Sushil Manav
Tribune News Service
Chandigarh, October 17
Haryana has witnessed a marked improvement in sex ratio at birth (SRB) in September with 922 girls against 1,000 boys.
Out of 58,604 children born in the state in September, 31,046 were boys and 27,558 girls. The SRB of the nine months starting from January h... |
/**
* Handles a change in the title text.
*
* @param chart the chart to update
* @param text the text
*/
private void updateTitleText(XYChart<?, ?> chart, String text)
{
if (myModel.getSettingsModel().showTitleProperty().get())
{
chart.setTitle(text);
... |
// Copyright (c) 2015-2016 <NAME>
//
// This file is part of GLFWM, a C++11 wrapper of GLFW with
// multi-threading management (GLFW Manager).
//
// This source code is subject to zlib/libpng License.
// This software is provided 'as-is', without any express
// or implied warranty. In no event will the authors be held
... |
The nutrition labels on your food are getting an overhaul for the first time in 20 years as the FDA plans to make them easier to read. Here's what you need to know. (The Washington Post)
The nutrition labels on your food are getting an overhaul for the first time in 20 years as the FDA plans to make them easier to rea... |
Deformation of nanostructures on polymer molds during soft UV nanoimprint lithography
Soft nanoimprint lithography (soft NIL) relies on a mechanical deformation of a resist by a patterned polymer used as a mold. Here, we report on the investigation of the nanopattern fidelity of the high pressure imprint process based... |
import RG from './rg';
import {FromJSON} from './game.fromjson';
import {GameMain} from './game';
interface Storage {
setItem: (key: string, data: string) => void;
getItem: (key: string) => string;
}
/* An object for saving the game in specified storage (local/etc..) or restoring
* the game from saved format... |
Teaching Object-Oriented Design Without Programming: A Progress Report
This project is demonstrating the feasibility of using the object‐oriented paradigm to teach students software design in a nonprogramming context. The program, developed using principles of user‐based, prototyping design, teaches students to create... |
from .a2c_acktr import A2C_ACKTR
from .a2c_acktr_noreward import A2C_ACKTR_NOREWARD
from .ppo import PPO
|
n,a,b,c,d = map(int,raw_input().split())
def check(x) :
if x>0 and x<=n : return 1
else : return 0
ans = 0
for i in range(1,n+1) :
sum = a+c+i
if check(sum-(a+b)) and check(sum-(b+d)) and check(sum-(d+c)) :
ans = ans + n
print ans |
<gh_stars>1000+
// Copyright 2018 The ksonnet 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 req... |
<reponame>tombry/virlutils
from .api import MockVIRLServer # noqa
|
# -*- coding:utf-8 -*-
def combination_formula(n, r):
"""nCrは、O(min(n-r, r))で実装する
Notes:
分子と分母がかなり大きな値になった場合、計算は遅くなるので注意
求める値がmodをとった値でいい場合、フェルマーの小定理を使った方法が速い。
"""
if r > n:
return 0
r = min(n-r, r)
bunsi, bunbo = 1, 1
for i in range(r):
bunsi = bunsi*(n-i)
... |
/**
* @author <a href="mailto:kabir.khan@jboss.com">Kabir Khan</a>
*/
@ApplicationScoped
public class SimpleBean {
static final List<String> RESULT = new CopyOnWriteArrayList<>();
@Broadcast(2)
@Outgoing("source")
public PublisherBuilder<String> source() {
return ReactiveStreams.of("hello", ... |
package console
import (
"fmt"
"time"
"github.com/veandco/go-sdl2/gfx"
"github.com/veandco/go-sdl2/sdl"
)
type mode struct {
pixelBuffer
}
type pixelBuffer struct {
textCursor pos // note print pos in char/line pos not pixel pos
fgColor Color
bgColor Color
palette *palette
charCols in... |
def parse_intervals(intervals, stconf):
stconf["intervals"] = {}
for entry in Trivial.split_csv_line(intervals):
split = Trivial.split_csv_line(entry, sep=":")
if len(split) != 2:
raise Error(f"bad intervals entry '{entry}', should be 'stname:interval', where "
... |
/* TAD: <NAME> */
typedef struct treeNode tNode;
struct treeNode {
char* morseCode;
int ascii;
int factor;
tNode* left;
tNode* right;
};
tNode* BST_create();
tNode* BST_delete(tNode* root);
char* BST_search(tNode* root, int key, int* search_count);
int BST_height(tNode *a);
tNode* BST_insert(tNode* root, int ... |
// ValidateOption validates if values matches spec.
func ValidateOption(values []string, spec OptionSpec) error {
if len(values) > 1 && !spec.Type.IsSliceType() {
return ErrOptionAllowedOnce
}
if spec.Required && len(values) == 0 {
return ErrOptionRequired
}
for _, v := range values {
if spec.Required && v =... |
/*
** GPTLget_threadwork: For a timer, across threads compute max work and imbalance
**
** Input arguments:
** name: timer name
**
** Output arguments:
** maxwork: maximum work across threads
** imbal: imbalance vs. perfectly distributed workload
**
** Return value: 0 (success) or -1 (failure)
*/
int GPTLget_th... |
// 2014-2019, ETH Zurich, Integrated Systems Laboratory
// Authors: <NAME>
#include "test_cell_assign.h"
#include "ll_testTools.h"
#include "aux_io.h"
#include <iostream>
using namespace ll__;
using namespace ll__::test;
using namespace aux;
void test_cell_assign::test_swap() {
auto tCell1 = genRandom();
auto tCel... |
def validate_repo(self, repository_name):
repository_name = repository_name.strip()
repo_temp = repository_name.split("/")
if len(repo_temp) != 2:
self.logger.error(
"Plugin: GitHub DLP - "
f"Invalid Repository '{repository_name}'."
)
... |
/**
* Counts the number of occurrences of a character in a string.
* <p/>
* Does not count chars enclosed in single or double quotes
*
* @param str the string to check
* @param chr the character to count
* @return the number of matching characters in the string
*/
public static i... |
/**
* Internal-only constants for Hadoop MapReduce jobs. These constants are propagated across different segment creation
* jobs. They are not meant to be set externally.
*/
public class InternalConfigConstants {
public static final String TIME_COLUMN_CONFIG = "time.column";
public static final String TIME_COLUM... |
/**
* Query how much current the compressor is drawing
* @return The current through the compressor, in amps
*/
float Compressor::GetCompressorCurrent() const {
int32_t status = 0;
float value;
value = getCompressorCurrent(m_pcm_pointer, &status);
if (status) {
wpi_setWPIError(Timeout);
}
return valu... |
/**
* Returns information about the execution affinity support of the device.
*
* <p>Returns in {@code *pi} whether execution affinity type {@code type} is supported by device {@code dev}. The supported types are:</p>
*
* <ul>
* <li>{@link #CU_EXEC_AFFINITY_TYPE_SM_COUNT EXEC_AFFINITY_TY... |
def dummy_vserver_create(self, zfield5, zfield4, zfield6, zfield3, zfield2, return_record=None):
return self.request( "dummy-vserver-create", {
'return_record': [ return_record, 'return-record', [ bool, 'None' ], False ],
'zfield5': [ zfield5, 'zfield5', [ basestring, 'None' ], False ],
... |
Rendering and Interacting With Volume Models in Immersive Environments
The recent advances in VR headsets, such as the Oculus Rift or HTC Vive, at affordable prices offering a high resolution display, has empowered the development of immersive VR applications. Unfortunately, the rendering engine and the interaction de... |
Madrid, Spain (CNN) -- An American college student has not been seen since early last Saturday after a night out with friends in the Spanish capital. His father, who has since rushed from San Diego, California, to Madrid, is hopeful the police will find him.
San Diego State University student Austin Taylor Bice, 22, a... |
// REQUIRES: x86-registered-target
//
// RUN: %clang_cc1 -o %t -flto=thin -fthin-link-bitcode=%t.nodebug -triple x86_64-unknown-linux-gnu -emit-llvm-bc -debug-info-kind=limited %s
// RUN: llvm-bcanalyzer -dump %t | FileCheck %s
// RUN: llvm-bcanalyzer -dump %t.nodebug | FileCheck %s --check-prefix=NO_DEBUG
// RUN: %cla... |
import string
import pandas as pd
import numpy as np
MODEL_RUN_SCRIPT_PREFIX='''
from System import Array
import TIME.DataTypes.TimeStep as TimeStep
import TIME.DataTypes.TimeSeries as TimeSeries
import System.DateTime as DateTime
import ${namespace}.${klass} as ${klass}
import TIME.Tools.ModelRunner as ModelRunner
mo... |
<reponame>admariner/beneath
package organization
import (
"context"
"github.com/go-pg/pg"
uuid "github.com/satori/go.uuid"
"github.com/beneath-hq/beneath/bus"
"github.com/beneath-hq/beneath/infra/db"
"github.com/beneath-hq/beneath/models"
)
// Service encapsulates behavior for dealing with organizations
type ... |
Maladie: de la phénomenologie a la thérapie
Abstract We would like to conduct a phenomenological analysis of illness beyond the characteristics which define it scientifically, in order to consider the suffering experience of the sick person which, in reality, constitute its authentic truth. Following Michel Henry’s ph... |
/**
* Removes a Trigger.
* - triggerHandle is provided by the caller and is a unique identifier of
* a previously added Trigger.
* <p>
* @param triggerHandle
*/
@Override
public void removeTrigger(TriggerHandle triggerHandle)
{
triggerHandleToTrigger.remove(triggerHandle);... |
<gh_stars>0
import configparser
import time
import keyboard # 监听键盘
import pynput
import pyperclip as clip
from PIL import ImageGrab # 截图、读取图片、保存图片
from aip import AipOcr
def get_config(name):
return config.get('common', name)
def back_text():
client = AipOcr(**baidu_config)
with open('current_ocr.png... |
<filename>channel/epoll/abstract_channel.go<gh_stars>1-10
package epoll
import "radish/channel/util"
type AbstractChannel interface {
doReadMessages(links *util.ArrayList)
write(msg interface{}) (int, error)
bind(address string)
close()
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.