content
stringlengths
10
4.9M
<reponame>davran-siv/exchange-front<filename>src/app/containers/createAdSteps/secondStep/SecondStep.tsx import { Button, FormControlLabel, Radio } from '@material-ui/core' import { CustomTextField, RadioGroupCustom, SimpleFileUpload } from 'app/components/common/formInput' import { AdType } from 'app/constants' import ...
#include <stdlib.h> #include "player.h" #include <math.h> #define PUBLIC #define SPEED 2 #define ANIMATIONSPEED 8 //lower = faster #define HEALTH 100 #define ROTATION_UPDATE_SPEED 5 #define SNAP_DISTANCE 10 #define PLAYER_CENTER_OFFSET_X 20 #define PLAYER_CENTER_OFFSET_Y 32 #define PLAYER_RADIUS 20 stru...
<gh_stars>1-10 /** * @file * @author __AUTHOR_NAME__ <<EMAIL>> * @copyright 2021 __COMPANY_LTD__ * @license <a href="https://opensource.org/licenses/MIT">MIT License</a> */ #ifndef ZEN_RENDERER_PIPELINES_POSTFX_HPP #define ZEN_RENDERER_PIPELINES_POSTFX_HPP #include "../pipeline.hpp" #include "../../display/col...
import { makeAssociativeBoth } from "../_abstract/AssociativeBoth" import * as L from "../_system/Layer" export const LayerURI = "Layer" export type LayerURI = typeof LayerURI declare module "../_abstract/HKT" { interface URItoKind< Fix0, Fix1, Fix2, Fix3, K, NK extends string, SI, S...
/** * @author Zahra Afsharinia */ @Controller("adminNewsController") @Scope("view") public class AdminNewsController implements Serializable { private News news = new News(); @Resource private NewsDao newsDao; public News getNews() { return news; } public void setNews(News news) { ...
/** * many characters in a cell. * @throws Exception if failed */ @Test public void many_characters() throws Exception { StringBuilder buf = new StringBuilder(); final int characters = 100000; for (int i = 0; i < characters; i++) { buf.append('a'); } ...
//===-- OpDescriptor.cpp --------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
<filename>api/src/SAM_Tcsdish.cpp #include <string> #include <utility> #include <vector> #include <memory> #include <iostream> #include <ssc/sscapi.h> #include "SAM_api.h" #include "ErrorHandler.h" #include "SAM_Tcsdish.h" SAM_EXPORT SAM_Tcsdish SAM_Tcsdish_construct(const char* def, SAM_error* err){ SAM_Tcsdish re...
<filename>runs_wldblend/example/config_wl.py<gh_stars>0 CONFIG = { 'gal_type': 'wldeblend', 'psf_type': 'wldeblend', 'shear_scene': True, 'n_coadd': 1, 'n_coadd_psf': 1, 'dim':300, 'scale': 0.2, 'g1': 0.02, 'g2': 0.0, 'g1ex': 0.02, 'g2ex': 0.0, 'gal_kws':{'survey_name': '...
/** * <p> * {@link SesameTransactionObject} holds the transaction state which consists of: * </p> * <p/> * <ul> * <li>{@link RepositoryConnection}</li> * <li>Name</li> * <li>Transaction re-use marker</li> * <li>Rollback marker</li> * <li>Timeout marker</li> * <li>Isolation level marker</li> * <li>Propagatio...
Rachel Maddow ran a segment fact-checking the “untrue things” that Donald Trump said during Monday night’s presidential debate. “The fact-checking, certainly, could be done,” Maddow argued. “I mean most people could do it off the top of their heads.” Unfortunately, Maddow appears not to be one of those people. Let’s...
EP671 Genital warts in pregnancy-diagnosis and treatement the most common cause of laryngeal paillomatosis in children under 10 years old Introduction/Background HPV infection is an epidemic of modern age with the highest number of infected girls between 18 and 30 years of age. Due to the alerted immune status during ...
{-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE LambdaCase #-} module Jikka.Core.Language.Value where import Data.Char (toLower) import Data.List (intercalate) import qualified Data.Map as M import Data.Maybe (fromMaybe) import qualified Data.Vector as V import Jikka.Common.Error import Jikka.Common.IOFormat import Ji...
<reponame>mWater/ui-builder<gh_stars>1-10 import * as React from 'react'; import { BlockDef, RenderDesignProps, RenderInstanceProps, ContextVar, ChildBlock } from '../blocks'; import CompoundBlock from '../CompoundBlock'; import { LocalizedString } from 'mwater-expressions'; /** Table of contents with nested items each...
// Parse returns the primitive representation of the provided gender. func Parse(input string) Gender { switch input { case "♂": return Male case "♀": return Female } return None }
Multinational Study on the Clinical and Genetic Features of the ERCC6L2-Disease Biallelic mutations in ERCC6L2 were first reported to cause bone marrow failure (BMF). Additionally, we recently described a strong predisposition to erythroid lineage-restricted acute myeloid leukemia (AML-M6). Today, 31 ERCC6L2-mutat...
// New returns an initialized Datastore instance. func New(osAddr string, redisConn RedisConn, requiredUsers map[string]func(json.RawMessage) (map[int]bool, string, error), projectorSlides map[string]projector.Callable, closed <-chan struct{}) (*Datastore, error) { fd, max, min, err := redisConn.FullData() if err != ...
/* * Free any memory in @free but not in @dont. */ static void kvm_free_physmem_slot(struct kvm_memory_slot *free, struct kvm_memory_slot *dont) { int i; if (!dont || free->phys_mem != dont->phys_mem) if (free->phys_mem) { for (i = 0; i < free->npages; ++i) if (free->phys_mem[i]) __free_page(fre...
def del_elem(self, id_zone): self._zones.del_element(id_zone)
Different Influence of Negative and Positive Spillover between Work and Life on Depression in a Longitudinal Study Background This study investigated the longitudinal associations between the degrees of positive and negative spillover in work–life balance (WLB) at baseline and reports of depressive mood at a 2-year fo...
def next_curriculum(request): if user_check(request): return HttpResponseRedirect('/academic-procedures/') if request.method == 'POST': programme = request.POST['programme'] now = datetime.datetime.now() year = int(now.year) batch = year-1 curriculum = Curriculum....
<reponame>mkorman9/ts-express import { FC, createContext, useContext, useState, useEffect, PropsWithChildren } from 'react'; import { toast } from 'react-toastify'; import { useTranslation } from 'react-i18next'; import { UnauthorizedError } from '../common/API'; import { usePrevious } from '../common/Utils'; import {...
Seems very conjectural, frankly. A couple ticked at having a Latina server in a Virginia diner wrote a racist zero-dollar tip that is now all over the internet. The duo ate at Jess’ Lunch in Harrisonburg on Monday and left server Sadie Elledge a note on their $26.11 bill that read “We only tip citizens.” Clearly not r...
/** * Generates a result of a unit attacking. * Takes care to only call the pseudo-random source *once*. * * @param random A pseudo-random number source. * @param attacker The attacker. * @param defender The defender. * @return The results of the combat. */ @Override public L...
def previous_block_id(self): return self.header.previous_block_id
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1 begin_package DECL|package|org.jabref.logic.importer package|package name|org operator|. name|jabref operator|. name|logic operator|. name|importer package|; end_package begin_import import|import name|java operator|. name|io operator|. name|IOException impo...
/* * Primary routine used to startup/initialize the sensors in the system. */ iOpResult_e TWB_Sensors_Init(void) { assert_succeed(TWB_SE_ReadU8(SENSOR_CFG_EEPROM_OFFSET, &SensorConfig->ControlLoopUpdateRateHz)); __initSensorData(); Sensor_t *snsr = SensorsList; while(snsr != NULL){ snsr->SensorFault = snsr->Ini...
<reponame>CBIIT/HPC_DME_APIs<gh_stars>1-10 /** * HpcNotificationServiceImpl.java * * <p> * Copyright SVG, Inc. Copyright Leidos Biomedical Research, Inc * * <p> * Distributed under the OSI-approved BSD 3-Clause License. See * http://ncip.github.com/HPC/LICENSE.txt for details. */ package gov.nih.nci.hpc.servic...
<gh_stars>0 #pragma once // // Matroska element IDs and values // http://matroska.org/technical/specs/index.html // #define MKV_EBML 0x1A45DFA3 #define MKV_DocType 0x4282 #define MKV_Segment 0x18538067 #define MKV_Info 0x1549A966 #define MKV_TimecodeScale 0x2AD7B1 #define MKV_Durat...
Lee A. Saunders, the new president of the AFSCME, has made it clear the union representing 1.6 million public service workers will support President Barack Obama in 2012. “We must work our hearts out to re-elect President Obama,” he said during AFSCME’s 40th International Convention in Los Angeles this week. Saunders...
/** * Unit tests for {@link Signal}. */ @RunWith(AndroidJUnit4.class) @Config(sdk = {VERSION_CODES.P}, manifest = Config.NONE) public class SignalTest { @Test public void testFromList() { // Assign Signal<Integer> sig = Signal.from(Arrays.asList(1,2,3,4)); CollectAll<Integer> c = new CollectAll<>(); ...
export default (node: any, target: { replaceWith: (arg0: any) => void }) => { target.replaceWith(node) return node }
/** * Creates a stream from the URL possibly referencing KML/KMZ. If this is * a KMZ, it will be interrogated for the enclosed KML, than that KML will be * reopened. * @param xPath XPath * @param url KML/KMZ url * @return KML stream or <code>null</code> server provides response code indicating error ...
Time-integrated CP-violation in beauty at LHCb Precision measurements of time-integrated CP violation in beauty decays permit a better understanding of the different mechanisms underlying CP violation. They allow to better constrain the Standard Model and probe for new physics. A selection of recent LHCb results that ...
async def echo(self, remote: DcmNode) -> bool: loop = asyncio.get_event_loop() try: assoc = await self._associate(remote, VerificationPresentationContexts) except FailedAssociationError: log.warn("Failed to associae for 'echo'") return False try: ...
// FracInWords returns 'frac' expressed in 'fraction's in russian words. // If result is 0 and 'showZero' is false, empty string is returned. func FracInWords(frac float64, fraction Fraction, showZero bool) string { if fraction == NoFraction { return IntInWords(int64(frac), showZero, Masculine) } absFrac := math.A...
/* * Tencent is pleased to support the open source community by making Blueking Container Service available. * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * Licensed under the MIT License (the "License"); you may not use this file except * in compliance with the License. You may obta...
package main import ( "fmt" "sync" ) // You can think of a waitgroup like a concurrent safe counter. It calls increment the counter by the integer passed in, // and calls to Done decrement the counter by one // Calls to wait block until the counter is zero // It's customary to couple calls to Add as closely as poss...
def _get_lui(self, citekey) -> str: lui = citekey.accession if self.namespace.get("namespaceEmbeddedInLui", False): lui = f"{self.namespace['curiePrefix']}:{lui}" return lui
class GraphTools: """Initializes the graph with nodes corresponding to the number of ROIS Parameters ---------- rois : ndarray ROIs as array tracks : list Streamlines for analysis affine : ndarray a 2-D array with ones on the diagonal and zeros elsewhere (DOESN'T APPEAR ...
class TextRank: """ Python impl of TextRank by Milhacea, et al., as a spaCy extension, used to extract the top-ranked phrases from a text document """ _EDGE_WEIGHT = 1 _POS_KEPT = ["ADJ", "NOUN", "PROPN", "VERB"] # _POS_KEPT = [ "NOUN", "ADJ","PROPN"] _TOKEN_LOOKBACK = 3 # : 79.61 ...
Reply to "A Critical Review of Proximal Fibular Osteotomy for Knee Osteoarthritis". Proximal fibular osteotomy is a surgical procedure that has evoked significant interest and controversy in the recent past. Vaishya et al have made a significant effort in compiling the available evidence on the topic. However, we woul...
def send_email(min_data): message = emails.html(subject=T(email_subject), html=T(email_contents), mail_from=(config.email["from"]["name"], config.email["from"]["email"])) message.attach(filename='temps_plot.png', data=open('temps_plot.png', ...
// Accept implements the NetworkListener interface. func (ln *inmemListener) Accept() (net.Conn, error) { deadline := ln.deadline if !deadline.IsZero() { select { case conn := <-ln.pendingConns: return conn, nil case <-time.After(time.Until(deadline)): return nil, deadlineError("deadline") case <-ln.sto...
Toward a Moral Hyperrealism This chapter discusses what it calls the “moral hyperrealism” of advertising and the ways in which advertising affects our ethical sensibility as well as the transformation of our moral universe within which our happiness and moral perfection are determined by our relationship to things and...
package com.foxinmy.weixin4j.server.mp.payment.v2; import java.util.HashMap; import java.util.Map; import com.alibaba.fastjson.JSON; import com.foxinmy.weixin4j.exception.PayException; import com.foxinmy.weixin4j.model.WeixinPayAccount; import com.foxinmy.weixin4j.type.SignType; import com.foxinmy.weixin4j.util.Weixi...
<reponame>gyohuangxin/cluster-ingress-operator /* Copyright 2019 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 requi...
40 of the Best Street Photos of India by Indian Photographers Halla_photo_contests Blocked Unblock Follow Following Oct 23, 2017 Indian streets are perfect for street photography. On the street you can see colorful and unique life of India. So, we asked photographers to submit 1 real, instant image that capture momen...
If any NBA players want to follow in Colin Kaepernick's footsteps and kneel during the national anthem this season, they could be subject to discipline from the league. Citing the league's rule stating players must stand for the anthem, NBA commissioner Adam Silver recently said, "My expectation is that our players wi...
def ClockAngle(h,m): hAngle = 0.5 * ( 60 * h + m ) mAngle = 6 * m print ('angle between Hour and Minute clock for ' , h , ' hour ', m ,' minute = ' , hAngle - mAngle) ClockAngle(5,24) <EMAIL>@blr-<EMAIL>:[~/Downloads/FromEarlierMac/amund/Downloads/Scripts/Python]$ python ClockAngle.py ('angle between Hour and M...
Ottawa bystanders render attempt to render first aid to shooting victim President Obama says he's "shaken" by this week's violent attacks on three soldiers in Ottawa by an Islamic jihadist. He immediately phoned Canadian Prime Minister Stephen Harper to offer support and "solidarity." He vowed to "remain vigilant." T...
package com.ac.reserve.web.api.service.impl; import com.ac.reserve.web.api.po.Bill; import com.ac.reserve.web.api.mapper.BillMapper; import com.ac.reserve.web.api.service.BillService; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import org.springframework.stereotype.Service; import org.springfra...
<gh_stars>0 import unittest from collections import deque from .convert_sorted_array_to_binary_search_tree import Solution, TreeNode class Test(unittest.TestCase): @classmethod def setUpClass(cls) -> None: cls.sol = Solution() def get_list(self, root: TreeNode): stack, val = deque([root])...
import { getVShapes } from './getVShapes'; function normalizeSpid(spid: string): string { const [, , id] = spid.split('_'); return id; } export function getVShapeSpid(document: Document, element: Element): string | null { if (element.tagName === 'IMG') { const vShapeId = element.getAttribute('v:sh...
def remove_stop_words(self, text : str) -> List[str]: stop_words = stopwords.words('english') stop_words += ['zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten', 'hundred', 'thousand', 'and'] stop_words += ['network', 'install', 'run', 'file', 'use', 'result', 'paper', 'python', ...
/* * Copyright 2018 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
In dozens of towns across Ohio, rival sides have set up phone banks and door-knocking efforts. Unions and their allies have created We Are Ohio, a group that is leading the repeal effort, which has 10,000 volunteers and hopes a victory will discourage Republicans in other states from adopting anti-union legislation. Mr...
// helper function: clone the data attached to this string bool wxStringBase::AllocCopy(wxString& dest, int nCopyLen, int nCopyIndex) const { if ( nCopyLen == 0 ) { dest.Init(); } else { if ( !dest.AllocBuffer(nCopyLen) ) { return false; } memcpy(dest.m_pchData, m_pchData + nCopyIndex, nCopy...
/** * This util for generating record field with given schema properties. */ public static List<Node> addRecordFields(List<String> required, Set<Map.Entry<String, Schema>> fields) throws BallerinaOpenApiException { List<Node> recordFieldList = new ArrayList<>(); for (Map.Entry<Stri...
<gh_stars>1-10 import { httpError } from '@midwayjs/core'; export class MultipartInvalidFilenameError extends httpError.BadRequestError { constructor(filename: string) { super(`Invalid update file name ${filename}, please check it`); } }
<gh_stars>1000+ // Copyright 2019-present Facebook Inc. All rights reserved. // This source code is licensed under the Apache 2.0 license found // in the LICENSE file in the root directory of this source tree. package schema import ( "bytes" "database/sql/driver" "encoding/gob" "fmt" "math/big" "net" "net/http...
def eval(self, data_key: Tuple[str] or str = 'img', accumulate_grad_in_iter=None, accumulate_grad=None, target_key: Tuple[str] or str = 'target', cast_target=None): accumulate_grad_in_iter = None accumulate_grad = None data_key = wrap_tuple(data_key) target_key = wrap_tuple(...
use std::error::Error; use futures_util::{future, TryStreamExt}; use kucoin::{client::SClient, spot::*}; use tokio::time; #[tokio::main] async fn main() -> Result<(), Box<dyn Error>> { let client = SClient::new(); let ws_conn = client.ws().connect().await?; let topic = TopicKlines::new("BTC-USDT".parse()...
{-# LANGUAGE QuasiQuotes, PackageImports #-} module Plugin.DaumDic (plugin) where import CmdUtil (Util(Util, rawBody), Plugin(Plugin)) import Control.Monad import Data.Maybe (isJust) import "wreq" Network.Wreq (getWith, responseBody, defaults, param) import "aeson" Data.Aeson (decode, FromJSON(..), Value(Object), (....
Copper (II) Acylhydrazinates. Their Synthesis and Characterization Acylhydrazine derived furanyl and thienyl Schiff bases and their Cu(II) complexes have been prepared and characterized on the basis of their physical, spectral and analytical data. The preferred enolic form of the Schiff base function as a tetradentate...
// Distributed under the MIT License (See // accompanying file "LICENSE" or the website // http://www.opensource.org/licenses/mit-license.php) #include "LightUniforms.h" #include "StandardLightScene.h" #include "StandardLightOperators.h" #include "../../Math/Transformations.h" namespace RenderCore { namespace Lightin...
It’s been 6 months since we released the revamped trigger policy. On the whole things have gone well, since the fundamentals – if you miss triggers they may not happen, your opponents don’t have to point them out – have proved to be popular. We avoided making any changes to the rules in July, so as to give us a bunch ...
/** * @brief Decode a imu_calibration_params message into a struct * * @param msg The message to decode * @param imu_calibration_params C-struct to decode the message contents into */ static inline void mavlink_msg_imu_calibration_params_decode(const mavlink_message_t* msg, mavlink_imu_calibration_params_t* imu_ca...
// GetSlice returns a DataSlice of data from the GeoTIFF file func (g *GeoTIFF) GetSlice(offset uint, size uint) (*DataSlice, error) { buffer := make([]byte, size) _, err := g.source.ReadAt(buffer, int64(offset)) if err != nil { return nil, fmt.Errorf("cannot read data from file due to %v", err) } dataSlice := N...
/** * Notify provider when the temp form was cast to normal form. * * @param formId, The Id of the form to update. * @param callerToken, Caller ability token. * @return none. */ int MockFormProviderClient::NotifyFormCastTempForm(const int64_t formId, const Want &want, const sptr<IRemoteObject> &callerToken) ...
def activate_ddp(self, rank: int): self._unroll_performer = (DDP( _UnrollPerformer(self), device_ids=[rank]), )
/** * Compiles user interface profile for a particular user. The profile contains essential information needed to efficiently render * user interface pages for specified user. * * This methods in this component may be quite costly to invoke. Therefore it should NOT be invoked for every request. * The methods ar...
<reponame>ascr-ecx/eth<gh_stars>1-10 #! /bin/env vtkpython import sys, os from vtk import * dset = sys.argv[1] num = int(sys.argv[2]) base = dset.rsplit('.', 1)[0] ext = dset.rsplit('.', 1)[1] if ext == 'nc': r = vtkMPASReader() r.SetFileName(dset) r.SetLayerThickness(1) r.SetCenterLon(0) r.SetProjectLatLon(T...
<filename>day2/day2.go<gh_stars>0 package day2 import ( "bufio" "fmt" "io" "os" "strconv" "strings" ) type Entry struct { policy Policy pass string } type Policy struct { char byte lo int hi int } func Day2() { input, err := parseInput() if err != nil { panic(err) } fmt.Printf("Day 2 part 1 a...
package service; /** * @Author: lsg * @Date: 2019/12/27 10:45 * @Description: */ public class Test { public static void main(String[] args) { ThreadService threadService = new ThreadService(); for (int i = 0; i < 10; i++) { threadService.schedule(new CallbacksHandler() { ...
def interpretLossAngles(coat): if 'lossBhighn' in coat and 'lossShighn' in coat: if 'lossBhighn_slope' in coat: def lossBhighn(f): return coat.lossBhighn * (f / 100)**coat.lossBhighn_slope else: def lossBhighn(f): return coat.lossBhighn if 'lossShighn_...
def move_coords(self, mask_coords, direction, stride=1): batch_size = len(mask_coords) new_coords = np.copy(mask_coords) for b in range(batch_size): new_coords[b] = self.move_coords_single(mask_coords[b], direction, stride) return new_coords
n = int(input()) s = input() count = {0: 0, 1: 0} r = [] for c in s: if c == '(': binn = min(count.items(), key=lambda p: p[1]) count[binn[0]] += 1 r.append(binn[0]) else: binn = max(count.items(), key=lambda p: p[1]) count[binn[0]] -= 1 r.append(binn[0]) print...
#include <cstdio> #include <cstdlib> #include <iostream> #include <algorithm> using namespace std; int main() { /* * n = int(raw_input()) g_sum = 0 a_sum = 0 rez = "" for i in range(n): a,g = map(int,raw_input().split(" ")) if g_sum == a_sum: if a < g: rez += "A" a_sum += a els...
#include "graphic/renderer/renderer_manager.h" #include "graphic/renderer/dx12/dx12_renderer.h" namespace BriskEngine { #ifdef GRAPHIC_API_TYPE_DX12 DX12Renderer g_Renderer; #elif defined GRAPHIC_API_TYPE_NA NARenderer g_Renderer; #endif BaseRenderer* g_pRenderer = &g_Renderer; }
def check_version(self, version: str) -> bool: current = AwesomeVersion(self.software_version) required = AwesomeVersion(version) return current >= required
Enlarge By Michael Chow for USA TODAY Louis Hudgin of Gilbert, Ariz., squeezes as much mpg as he can get from his 2000 Honda Insight. JOIN THE DISCUSSION JOIN THE DISCUSSION The average price of a gallon of regular gasoline is rising fast. How has the price affected you? Join the discussion at USA TODAY's Fuel Forum to...
<reponame>indivisibleatom/toppra from .solverwrapper import SolverWrapper import logging import numpy as np from ..constraint import ConstraintType logger = logging.getLogger(__name__) try: import cvxpy FOUND_CVXPY = True except ImportError: logger.info("CVXPY installation not found.") FOUND_CVXPY = Fa...
<reponame>mackenbaron/mp42mkv #ifndef __AKA_MATROSKA_IO_CALLBACK_H #define __AKA_MATROSKA_IO_CALLBACK_H #include <cstdio> #include <cstdint> namespace AkaMatroska { namespace Core { struct IOCallback { virtual unsigned Read(void* buf, unsigned size) { return 0; } virtual unsigned Write(const void* buf, unsign...
#include <Scheduler.h> #include <Process.h> #include <liballoc.h> #include <asmlib.h> #include <stdbool.h> #include <Mutex.h> #include <trylock.h> #define NULL 0 typedef struct ProcessNode ProcessNode; typedef struct SleepNode SleepNode; struct ProcessNode { Process * p; uint8_t * descr; uint8_t skip; SleepNode *...
def angle_names(zma): return tuple(itertools.chain(central_angle_names(zma), dihedral_angle_names(zma)))
// Copyright 2017 <NAME>. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "http_connection.h" namespace vbench { HttpConnection::HttpConnection(CryptoEngine &crypto, const ServerSpec &s) : _server(s), _socket(crypto, s.host, s.port), _lastUsed(-1000.0) { ...
<reponame>PaaS-TA/PAAS-TA-API-GATEWAY-SERVICE-BROKER package org.paasta.servicebroker.apigateway.service.impl; import lombok.extern.slf4j.Slf4j; import org.openpaas.servicebroker.exception.ServiceBrokerException; import org.openpaas.servicebroker.model.CreateServiceInstanceBindingRequest; import org.openpaas.servicebr...
// InsertOne inserts a document into the database func InsertOne(ts *TokenStore, collectionName string, doc *bson.D) (err error) { _, verr := ts.client.Database(ts.dbName).Collection(collectionName).InsertOne(context.Background(), doc) if verr != nil { log.Fatal(verr) err = verr return } return }
<gh_stars>0 #ifndef INTERSECTION_H #define INTERSECTION_H #include "math/real.h" #include "math/vec.h" class Intersection { public: real distance; vec hitpoint; vec normal; Intersection() : distance(0) {} }; #endif
package dane import ( "bufio" "crypto/tls" "fmt" "os" "strconv" "strings" ) const bufsize = 2048 // // DoXMPP connects to an XNPP server, issue a STARTTLS command, negotiates // TLS and returns a TLS connection. See RFC 6120, Section 5.4.2 for details. // func DoXMPP(tlsconfig *tls.Config, daneconfig *Config) ...
For a long time I have been saying (along with a lot of other people), that Hugo Chavez was running his country into the ground. He diverted investment funds from PDVSA, Venezuela's state-run oil company, into social programs. As long as the price of oil kept rising, he could do that. Unfortunately, Venezuela's sour, h...
def _translate_type(key: str) -> type: type_map: Dict[str, type] = {"str": str} return type_map[key]
Uniformly Best Biased Estimators in Non-Bayesian Parameter Estimation In this paper, a new structured approach for obtaining uniformly best non-Bayesian biased estimators, which attain minimum-mean-square-error performance at any point in the parameter space, is established. We show that if a uniformly best biased (UB...
import java.util.*; public class Main { // inner classes static class Icicle implements Comparable<Icicle> { int t, i; Icicle(int t, int i) { this.t = t; this.i = i; } public int compareTo(Icicle ic) { return this.t - ic.t; } } // main public static final void main(S...
print(sum([100 if s == 'o' else 0 for s in input().strip()]) + 700)
const unsigned char font5x7 [] PROGMEM = { // Font Matrix B00000000, // Space (Char 0x20) B00000000, B00000000, B00000000, B00000000, B00000000, B00000000, 3, B01000000, // ! B01000000, B01000000, B01000000, B01000000, B00000000, B01000000, 2, B10100000, // " B10100000, B10100000...
p551 Fullo Unsigned article on pp551‑553 of FULLO (κναφεύς, γναφεύς), also NACCA (Festus, s.v.; Apul. Met. IX p206, Bipont), a fuller, a washer or scourer of cloth and linen. The fullones not only received the cloth as it came from the loom in order to scour and smooth it, but also washed and cleansed garments which ...
import * as React from 'react'; import { useState } from 'react'; import { View } from 'react-native'; import { UILabel, UISwitcher, UISwitcherVariant, } from '@tonlabs/uikit.hydrogen'; import { ExampleSection } from '../components/ExampleSection'; import { ExampleScreen } from '../components/ExampleScreen...
def add_member(self, potential_member): for member in self.chat_members: if member.are_friends(potential_member): self.chat_members.append(potential_member) return True return False