content
stringlengths
10
4.9M
/** * Waits for JS side of React to be launched and then performs final launching actions. */ protected void waitForReactAndFinishLoading() { if (Constants.isStandaloneApp() && Constants.SHOW_LOADING_VIEW_IN_SHELL_APP) { ViewGroup.LayoutParams layoutParams = mContainerView.getLayoutParams(); layou...
#ifndef XSSYNCLINE_H #define XSSYNCLINE_H /*! \addtogroup enums Global enumerations @{ */ /*! \brief Synchronization line identifiers */ enum XsSyncLine { XSL_Inputs, /*!< \brief Value for checking if a line is an input, any item equal to or greater than XSL_Inputs and less than XSL_Outputs is an input */ XSL...
/* remove the last character from the vstring, or whoopsie if there is no character to remove. */ void vstring_rubout(struct vstring *vs) { if (VSTRING_LEN(*vs) == 0) error("CPP INTERNAL: vstring underflow"); if (vs->u.in.flag) --(vs->u.in.len); else --(vs->u.out.len); }
Disney’s “Zootopia” cruised to another box office victory this weekend, picking up $50 million and barreling across the $100 million mark domestically. After two weeks of release, “Zootopia,” the critically acclaimed story of a plucky rabbit policewoman, has earned $142.6 million stateside. In its second weekend, “Zoo...
/** * Format of address that includes either a simple or a detailed address * * <p>Java class for AddressType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="AddressType"&gt; * &lt;complexContent&gt; * &l...
import {IpcService} from "./IpcService"; const ipc = new IpcService(); document.getElementById('request-os-info').addEventListener('click', async () => { const t = await ipc.send<{ kernel: string }>('system-info'); document.getElementById('os-info').innerHTML = t.kernel; });
import React, {useEffect, useState} from 'react'; import axios from 'axios'; import toastr from 'toastr'; import {Guild} from "./types"; const AdminSettings: React.FC = () => { const [server, setServer] = useState<string>(''); const [key, setKey] = useState<string>(''); const [value, setValue] = useState<...
import { Service, PlatformAccessory, CharacteristicValue } from 'homebridge'; import { EspHomeDoorbellPlatform, IEsphomePlatformDevice } from './platform'; import { EspHomeWebApi, EspHomeStateEventData } from './esphome_webapi'; import fetch from 'node-fetch'; import { CameraSource } from './cameraSource'; export inte...
// var emptyTM machine.Machine // var allTM machine.Machine // var addMarkersTM machine.Machine // var moveTM machine.Machine // var addBlankTM machine.Machine // var starSymTM machine.Machine // var brokenSymTM machine.Machine // var starStateTM machine.Machine // var doNothingTM machine.Machine func TestNewTuringMach...
SHORT-TERM DEBT OF THE CORPORATE SECTOR AND ITS IMPACT ON THE STABILITY OF THE FINANCIAL SYSTEM OF UKRAINE The article deals with the economic essence of accounts payable. It is determined that in the process of deformations in the structure of business capital, it acquires the characteristics of a surrogate source of...
import itertools import numpy as np N, M, X = map(int, input().split()) lis_all = [list(map(int, input().split())) for _ in range(N)] lis_C = np.array(list(map(lambda x: x[0], lis_all))) lis_A = np.array(list(map(lambda x: x[1:], lis_all))) row_idx = [] bools = [True,False] for boollis in itertools.product(bools, re...
/** * Rename an environment across all integrations. */ @PUT @Path("environments/{env}") @Consumes(MediaType.APPLICATION_JSON) public void renameEnvironment(@NotNull @PathParam("env") @Parameter(required = true) String environment, @NotNull @Parameter(required = true) String newEnvironment...
<gh_stars>0 package DataStructures; public class BinarySearchTree { private BSTNode root; public Boolean containNode(int value) { return containRecursiveNode(root, value); } public void add(int value) { setRoot(addRecursive(getRoot(), value)); } public void delete(int value) { root = deleteRecursive...
/** * Commit and rollback commands invokes this method and they are blocked here if the state is PREPARING * * @param commit true if it is a commit command, false otherwise * @return true if the command needs to be processed, false otherwise * @throws InterruptedException when it is interrupted whil...
Increased c-Fos expression in nodose ganglion in rats with electrical vagus nerve stimulation. BACKGROUND Central nervous system receives information from the gut and modifies food intake mainly by vagus nerves. Some our data show that long-term electrical vagus nerve stimulation (VNS), which "mimics" satiety signal f...
import { Component, Input } from '@angular/core'; import { DimensionsType } from './../utils/types'; @Component({ selector: 'app-chart', templateUrl: './chart.component.html', styleUrls: ['./chart.component.css'] }) export class ChartComponent { // We want to pass our chart a dimensions object so it can shift ...
def pop(self, key: Key) -> AnyNode: node = self.find(key) if node is not NIL: self.remove(node) return node
/** * Small utilities for testing */ @UtilityClass public class TestingUtils { public static void printTime(Runnable runnable) { val sw = System.nanoTime(); runnable.run(); final double elapsedTime = (System.nanoTime() - sw) / (1e6); val e = Thread.currentThread().getStackTrace()[2...
def compute_output_order(self): ndim = self.ndim strides = self.strides output_order = [] output_order_remaining = [[i] for i in range(ndim)] for d in reversed(range(ndim)): if strides[0][d] == "one": output_order.extend(output_order_remaining[d]) ...
Pessary cervical and prevention preterm birth based on literature review Preterm birth is the leading individual cause of global perinatal morbidity and mortality and the leading cause of death and disability in children up to 5 years old in the developed world.1 Cervical insufficiency is one of its causes. Its defini...
/// Consumes the expected byte, gives the given error if it is something else. pub fn expect<E: Eoi>(&mut self, expected: u8, err: E) -> Result<(), Error<E>> { let pos = self.position(); if self.next()? == expected { Ok(()) } else { self.fail_at_position(err, pos) ...
<reponame>SamanKhamesian/ACM-ICPC-Problems #include <iostream> #include <algorithm> #include <cstring> #include <cmath> using namespace std; int n, ans[20]; bool isPrime(int number) { for (int i = 2; i * i <= number; i++) { if (number % i == 0) { return false; } } return true; } ...
<filename>pkg/lib/oauth/oidc/id_token.go package oidc import ( "time" "github.com/lestrrat-go/jwx/jwa" "github.com/lestrrat-go/jwx/jwk" "github.com/lestrrat-go/jwx/jwt" "github.com/authgear/authgear-server/pkg/api/model" "github.com/authgear/authgear-server/pkg/lib/authn" "github.com/authgear/authgear-server/...
from collections import deque N = int(input()) ans = 0 A = "357" Q = deque(["3","5","7"]) while Q: q = Q.pop() x = int(q) if x>N:continue if len(set(q))==3:ans+=1 for a in A: Q.append(q+a) print(ans)
def start_service(self, service_name, scale=1): LOGGER.info("Starting service %s (scale: %d)", service_name, scale) start_service_options = copy.deepcopy(self.options) start_service_options[OPT_SERVICE] = [service_name] start_service_options[OPT_SCALE] = ["%s=%d" % (service_name, scale)]...
<filename>src/main/java/com/netuitive/iris/client/event/NetuitiveIngestEventRestClient.java package com.netuitive.iris.client.event; import com.netuitive.iris.client.APIKeyRestClient; import com.netuitive.iris.client.request.GenericRequest; import com.netuitive.iris.client.utils.HttpMethod; import com.netuitive.iris.e...
Square Enix Supply Sale On GOG Square Enix is having a sale on GOG with some games up to 75% off. The sale will last only for the weekend of April 4 through April 7. Games included in the sale are the classic Thief series, Legacy of Kain series, the first two Hitman games before the series was canceled, and many more....
// Status returns the status of segment. func (s *segment) status() Status { s.lock.RLock() defer s.lock.RUnlock() return *s.Status }
YOU COULD mount a case for about half a dozen different Greater Western Sydney players as their best player, but Dylan Shiel ticks some significant boxes. The powerful, hard-running 24-year-old midfielder would seem to be in the prime of his career and is now one of the most reliable performers in the AFL. Voted by h...
package de.skyrising.replay.world; import com.mojang.authlib.GameProfile; import net.minecraft.client.MinecraftClient; import net.minecraft.client.gui.screen.Screen; import net.minecraft.client.network.ClientPlayNetworkHandler; import net.minecraft.network.ClientConnection; public class ReplayNetworkHandler extends C...
def _get_pretrained_state_dict( cls, model_name: str, weights_path: Optional[Union[str, PathLike]] = None, relevant_module: Optional[Union[str, List[str]]] = None, ignore: Optional[List[str]] = None, ) -> StateDictType: if weights_path is None: from transf...
/** A custom editor for the titlePosition property of the ChartBean. The editor lets the user choose between Left, Center, and Right */ public class TitlePositionEditor extends PropertyEditorSupport { public String[] getTags() { return options; } private String[] options = { "Left", "Center", "Righ...
def alignWith(self, other): return Quat(self._rtval.alignWith('Quat', ks.rtVal('Quat', other)))
/** * Ensures new param (NOT keyword argument) is set into appropriate place */ public void testAddParam() { final PyExpression classParameter = myGenerator.createParameter("SuperClass"); final PyExpression functionParameter = myGenerator.createParameter("new_param"); doTest(classParameter, functionPa...
import pytest tables = pytest.importorskip('tables') from blaze.utils import tmpfile from blaze import symbol, discover, compute, pre_compute import pandas as pd from datetime import datetime from odo import Chunks, odo @pytest.fixture def df(): return pd.DataFrame([['a', 1, 10., datetime(2000, 1, 1)], ...
<gh_stars>10-100 #ifndef _FREERTOS_DRIVERS_PIC32MX_BUILTINS_H_ #define _FREERTOS_DRIVERS_PIC32MX_BUILTINS_H_ #define __builtin_mfc0(reg, sel) \ __extension__ ({ \ register unsigned long __r; \ __asm__ __volatile__ ("mfc0 %0,$%1,%2" \ : "=d" (__r) \ : "JK" (reg), "JK...
<reponame>jonico/st2contrib #!/usr/bin/python from lib import sensu import argparse parser = argparse.ArgumentParser(description='Sensu Event Actions') parser.add_argument('--client', nargs='?', dest="client") parser.add_argument('--check', nargs='?', default=False) parser.add_argument('--delete', nargs='?', default...
package org.bds.compile; import java.lang.reflect.Field; import java.lang.reflect.Modifier; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Set; import java.util.stream.Stream; import jav...
Ethanol leaf extract of Jatropha tanjorensis ameliorates hepatorenal toxicity of Plasmodium berghi-berghi infected mice treated with Hippocratea africana root bark extract The effect of ethanol leaf extract of Jatropha tanjorensis on hepatorenal function of Plasmodium berghiberghi infected mice treated with root bark ...
Recently, veganism has enjoyed something of a modernization in the West. Having long been associated with sprawling, armpit-hair-clad, animal-rights warrior types, the animal-product-free lifestyle is now more closely aligned with ripped, mildly hipster-ish gym bunnies such as bolshy bloggers Vegan Bros. These days, tw...
#ifndef XR_SHADERCOMPONENT_HPP #define XR_SHADERCOMPONENT_HPP //============================================================================== // // XRhodes // // copyright (c) <NAME>. All rights reserved. // // License: https://github.com/zyndor/xrhodes#License-bsd-2-clause // //=======================================...
Former New England Patriots Tight End Aaron Hernandez is set to face a double murder trial this week, with opening statements expected to begin Wednesday. The star NFL player with a bright future and freshly signed $40 million contract will almost certainly never get to play football again after he was sentenced to lif...
/** * Checks that ADB is installed * Search for an environment variable ANDROID_HOME / ANDROID_SDK_ROOT * If found, use the adb inside that directory * Else, try to run ADB directly * @throws ConfigurationException when ADB is not found * @return */ private void checkInstallation() { try { che...
// Maximum sum subarray and updates. #include<bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; struct segtree { struct node { ll sum = 0; ll add = 0; ll pref = 0; ll suf = 0; ll ans = 0; void apply(int l, int r, const ll &v) ...
<filename>db/signed_pre_key_storage_test.go<gh_stars>1-10 package db import ( "crypto/rand" "encoding/hex" "testing" x3dh "github.com/Bit-Nation/x3dh" require "github.com/stretchr/testify/require" ) func TestBoltSignedPreKeyStorage_Put(t *testing.T) { // setup db := createStorm() km := createKeyManager() c...
// NewStore returns a new Observation store instance that uses the given dimension ID cache and db connection. func NewStore(dimensionIDCache DimensionIDCache, db graph.Observation, errorReporter reporter.ErrorReporter, getGraphDimensionID bool) *Store { return &Store{ dimensionIDCache: dimensionIDCache, graph:...
## T. V. Sairam ### Home Remedies Volume Four A Handbook of Herbal Cures for Common Ailments Illustrations by Arun Pottirayil PENGUIN BOOKS ## Contents _About the Author_ _Praise for Home Remedies_ _Preface_ _Introduction_ 1. Acacia catechu (Catechu) 2. Alternanthera sessilis (Ponnanganni) 3. Annona squam...
Free Will and Cheating In 2008, a paper in Psychological Science found that people were more likely to cheat on a test after they had read an essay arguing that behavior was predetermined by environmental factors. The authors suggested from their findings that belief in free will had societal implications. The redone...
n= int(input()) s = input() ans = 10**9 alth = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" w = "ACTG" for i in range(3,n): num = 0 for j in range(4): num += min(26 - abs(alth.find(s[i-j]) - alth.find(w[3-j])),abs(alth.find(s[i-j]) - alth.find(w[3-j]))) ans = min(ans,num) print(ans)
export * from './general/breadcrumb/breadcrumb'; export * from './general/card/card'; export * from './general/acordion/acordion'; export * from './general/informative-input/informativeInput'; export * from './specific/main/main'; export * from './specific/nav-bar/navBar'; export * from './specific/footer/footer'; exp...
Controllably mobile infrastructure for low energy embedded networks We discuss the use of mobility to enhance network performance for a certain class of applications in sensor networks. A major performance bottleneck in sensor networks is energy since it is impractical to replace the batteries in embedded sensor nodes...
/** * Returns an array of colours the length of numColours */ public static Color[] generateColours(int numColours) { Color[] kellyColors = new Color[]{ new Color(255, 179, 0), new Color(128, 62, 117), new Color(255, 104, 0), new Color(166, 189, 215), new Color(193, 0, 32), new Color(206, 162...
A follow-up of 130 patients with acromegaly in a single centre. OBJECTIVES Acromegaly is a rare disease with increased mortality rate. The aim was to present our centre experience in the diagnosis and treatment of a series of patients suffering from acromegaly. METHODS 130 patients (55 men, 75 women) aged 19-84 year...
With the NSA already tracking and recording every form of communication and electronic data exchange, it would hardly come as a surprise that the final piece of the puzzle was also actively being intercepted and collected by General Keith Alexander's superspy army: money, or rather tracking the global flow thereof. Wh...
// BuildImages builds passed images setting passed repository and version func BuildImages(w io.Writer, repository, version string, names []string) ([]string, error) { var created []string for _, name := range names { image, ok := Images[name] if !ok { return nil, fmt.Errorf("cannot find image %s", name) } ...
import { pipe } from "fp-ts/lib/function"; import { expectType } from "tsd"; import test from "ava"; import { MakeADT, makeMatchers } from "../src/MakeADT"; type These<A, B> = MakeADT<'_tag', { this: { this: A }; that: { that: B }; both: { this: A; that: B }; }>; const thiss = <A>(a: A): These<A, never> => ({ _...
<gh_stars>0 import React from "react"; import AuthPageLayout from "./AuthPageLayout"; import AuthPageContent from "./AuthPageContent"; const AuthPage: React.FC = () => { return ( <AuthPageLayout> <AuthPageContent /> </AuthPageLayout> ); }; export default AuthPage;
package plugins import ( "reflect" ) type ( // Notifier must be implemented by plugins capable of delivering // notifications. Notifier interface { Notify(text string) error } // NotifierDescription describes a notifier. NotifierDescription struct { Name string `json:"name"` Argument...
from __future__ import absolute_import, division, print_function from distutils.version import LooseVersion import numpy as np if LooseVersion(np.__version__) >= LooseVersion('1.12'): as_strided = np.lib.stride_tricks.as_strided else: def as_strided(x, shape=None, strides=None, subok=False, writeable=True): ...
President Bill Clinton stopped by Omaha to stump for his wife Hillary Clinton Friday. The visit comes one day before Nebraska's Democratic caucuses. Clinton picked a hip spot to appeal to Omaha’s Democratic crowd: The Waiting Room, a concert venue in Benson, a neighborhood that draws loads of young people to its bars ...
/// Receive a successful key claim response and create new Olm sessions with /// the claimed keys. /// /// # Arguments /// /// * `response` - The response containing the claimed one-time keys. pub async fn receive_keys_claim_response(&self, response: &KeysClaimResponse) -> OlmResult<()> { // TODO log the failur...
//! //! \brief Free State Heaps (including MHW interfaces) //! \details Free State Heap resources allocated by RenderHal //! \param PRENDERHAL_INTERFACE pRenderHal //! [in] Pointer to Render Hal Interface //! \return MOS_STATUS //! MOS_STATUS RenderHal_DSH_FreeStateHeaps(PRENDERHAL_INTERFACE pRenderH...
The video will start in 8 Cancel Get the biggest West Brom FC stories by email Subscribe Thank you for subscribing We have more newsletters Show me See our privacy notice Could not subscribe, try again later Invalid Email Kurt Zouma will hold talks with West Bromwich Albion and Stoke City tomorrow ahead of a potentia...
// End of variables declaration//GEN-END:variables private void actualiserParties() { try { Couple<Integer, String>[] liste = diabolik.getParties(); if(liste.length == 0) { partiesListe.setListData(new String[]{msg_aucune_partie}); listeVide = true; } else { partiesListe.setListData(liste); ...
For some 15 years, airport security has become steadily more invasive. There are ever more checkpoints, ever more requests for documents as you make your way from the airport entrance to the airplane. Passengers adapt to the new changes as they come. But my latest flight to Mexico, originating in Atlanta, presented all...
// Add adds each RGB component of a color with another color component func (fc *FloatColor) Add(b FloatColor) FloatColor { fc.R += b.R fc.G += b.G fc.B += b.B return *fc }
// TestTrustDomainAliasSecureNaming scope: // The client side mTLS connection should validate the trust domain alias during secure naming validation. // // Setup: // 1. Setup Istio with custom CA cert. This is because we need to use that root cert to sign customized // certificate for server workloads to give them d...
<reponame>skuzzle/stringz /** * Contains interfaces to customize the way in which * {@link de.skuzzle.stringz.Stringz Stringz} looks up * {@link java.util.ResourceBundle ResourceBundles} and how it maps fields to resources. * Except for the {@link de.skuzzle.stringz.strategy.BundleFamilyLocator BundleFamilyLocator}...
/// Sim start: /// - Hard-coded engine init /// - Sim-level init of step packages (context, state, output) /// - Run init packages (e.g. init.js) /// - init.js can depend on globals, which vary between sim runs, so it has to be executed /// at the start of a sim run, not at the start of the experiment ru...
// SetChanOut is a simple setter. func (m *Manager) SetChanOut(out faces.IChan) faces.IManager { m.out = out return m }
/** * Load JAR files, initialize the dependency graph, and perform the * dependency analysis. * * @throws IOException if an error occurs constructing the class loader * or reading any of the JAR files. * @throws IllegalArgumentException in the following cases: * <ul> ...
def read_spectra(self, mzml_file, scan_list): t0 = timeit.default_timer() stats = { "n_spectra": 0, "n_ms1_spectra": 0, "n_ms2_spectra": 0, "n_HCD_spectra": 0, "n_IT_spectra": 0, "n_ETD_spectra": 0, "high_accuracy_precur...
use crate::credential::request::HttpClient; use crate::credential::{ parse_credentials_from_aws_service, AwsCredentials, CredentialsError, ProvideAwsCredentials, }; use async_trait::async_trait; use hyper::Uri; use std::time::Duration; const AWS_CREDENTIALS_PROVIDER_IP: &str = "169.254.169.254"; const AWS_CREDENT...
#ifndef __VGPU_IOCTL_H__ #define __VGPU_IOCTL_H__ #ifdef __KERNEL__ #include <linux/ioctl.h> #include <linux/types.h> #else #include <sys/ioctl.h> #include <stdio.h> #include <stdint.h> #endif #include <linux/kvm.h> /* To guestdrv */ #define IOCTL_GET_VM_ID _IO(VGPU_DRIVER_MAJOR, 0x17) #define IOCTL_REQUEST_SHM _...
package app.creatures; import app.Treasure; public class Villager extends Creature { //CONSTRUCTORS public Villager(){ super("Villager"); } public Villager(String name){ super(name); } public Villager(String name, int health){ super(name, health); } public...
#include "tcl++/core/List.h" #include "tcl++/core/Interp.h" #include "tcl++/core/String.h" #include <catch2/catch.hpp> SCENARIO("List base operations", "[list]") { GIVEN("An initial Tcl list") { tcl::Interp interp; tcl::List l; REQUIRE(l.size() == 0); WHEN("iterated over") { REQUIRE(std::dis...
import { Component, Inject } from '@angular/core'; import { FormBuilder, Validators } from '@angular/forms'; import { MAT_DIALOG_DATA, MatDialogRef, MatSnackBar } from '@angular/material'; import { GamingCurrencyRateService } from './gaming-currency-rate.service'; @Component({ selector: 'fury-gaming-currency-rate-di...
// createPlanForLookupJoin creates a distributed plan for a lookupJoinNode. // Note that this is a separate code path from the experimental path which // converts joins to lookup joins. func (dsp *DistSQLPlanner) createPlanForLookupJoin( planCtx *PlanningCtx, n *lookupJoinNode, ) (PhysicalPlan, error) { plan, err := ...
/** * constructs a DBObject with statistics for the file that was loaded. * NOTE: This method can only be called once a VCF file is uploaded into the TEMPDIR (e.g. /tmp) with the error file next to it in * the same directory * @param workspace */ public DBObject constructStatsObject(String work...
package modules import ( "github.com/graphql-go/graphql" ) var PersonType = graphql.NewObject(graphql.ObjectConfig{ Name: "Person", Fields: graphql.Fields{ "id": &graphql.Field{ Type: graphql.NewNonNull(graphql.ID), Resolve: func(p graphql.ResolveParams) (interface{}, error) { if person, ok := p.Source...
<gh_stars>10-100 #include "blowfish_cbc.h" int encrypt_string_cbc (const char *key, const char *str, char *dest, int len) { BF_KEY bf_key; unsigned char ivec[BF_BLOCK] = {0}; BIO *l_mem = NULL, *l_b64 = NULL; int ret = -1; if (!key || !key[0]) return 0; BF_set_key (&bf_key, strlen...
def run_notebook(owner: str, slug: str, executor_name: str, output_dir_path: str, docker_image_url: Optional[str] = None, timeout: Optional[int] = None, **executor_kwargs): if executor_name not in get_available_executors(): raise ValueError(f"Executor {exec...
// StartContainer starts a container. func (r *runtimeVM) StartContainer(ctx context.Context, c *Container) error { log.Debugf(ctx, "RuntimeVM.StartContainer() start") defer log.Debugf(ctx, "RuntimeVM.StartContainer() end") c.opLock.Lock() defer c.opLock.Unlock() if err := r.start(c.ID(), ""); err != nil { retur...
# 累積計算 from itertools import product if __name__ == "__main__": while True: try: col = 0 n = int(input()) #print(n) if n > 36: print(0) else: for a, b, c, d in product(range(0, 10), repeat=4): i...
The modern courtship ritual is a delicate machine with billions of interworking parts, each requiring a precise application of force and motion. Push when you should pull, rotate when you should flip, jiggle when you should slide, and the entire elaborate mechanism explodes like the end of Chicken Run. You cannot rely ...
Keyword research happens to be one of the most imperative tasks in SEO. Of course, you cannot leave link building and copywriting behind but it would be a mistake to put keyword research at the last of your priorities. In fact, some experts believe that this should come first. When creating affiliate sites, you might f...
/* * CTxtPtr::GetPch(&cchValid) * * @mfunc * return a character pointer to the text at this text pointer * * @rdesc * a pointer to an array of characters. May be NULL. If non-null, * then cchValid is guaranteed to be at least 1 */ const TCHAR * CTxtPtr::GetPch( LONG & cchValid) const { TRACE...
<filename>identity-iota/src/tangle/receipt.rs<gh_stars>0 // Copyright 2020-2021 <NAME> // SPDX-License-Identifier: Apache-2.0 use serde; use serde::Deserialize; use serde::Serialize; use crate::tangle::Message; use crate::tangle::MessageId; use crate::tangle::Network; #[derive(Clone, Debug, PartialEq, Deserialize, S...
/** * Temporarily disables auto-restarting of the plugin's webserver when certificate changes are detected. * * @param pause The duration for which certificate changes are ignored. */ public synchronized void pauseAutoRestartEnabled(final Duration pause) { setAutoRestartEnabled(false); ...
import { classScopingMode } from './classScopingMode'; const hasTransformable = /\b(?=[A-Z])/g; const noConflictCache: any = {}; const legacyCache: any = {}; function prefixSingle(scopedStyle: string): string { const { noConflict } = classScopingMode; const cache = noConflict ? noConflictCache : legacyCache; if ...
def create_hanger(self): halfEdge = np.array([0.15, 0.8, 0.15]) center = np.array([0., 0., 0.]) quat = np.array([1., 0., 0., 0.]) pyflex.add_box(halfEdge, center, quat) pyflex.add_box(halfEdge, center, quat)
/* * Copyright (C) 2019 Alexei Bezborodov * * This file is subject to the terms and conditions of the GNU Lesser * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ /** * @ingroup cpu_stm32 * @{ * @file * @brief Low-level RTC driver implementation f...
<filename>src/main/java/frc/robot/RobotContainer.java<gh_stars>0 // Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. package frc.robot; import edu.wpi.first.wpilibj.Generi...
This slightly confuses me from Paul Krugman. OK, he's a much brighter guy than I am so he can confuse me pretty easily. But he's looking at what Putin is doing and calling it macroeconomic populism, or rather macroeconomic cronyism. And sure, that's what it looks like to me too. But Krugman's also thinking that this is...
/********************************************************************************************************* ** Function name: init ** Descriptions: init all pins *********************************************************************************************************/ void motor_4wd::begin() { motorSpeed1 = 0; ...
<filename>src/leetcode/set1000/set1000/set1200/set1270/p1272/solution.go<gh_stars>1-10 package p1272 func removeInterval(intervals [][]int, toBeRemoved []int) [][]int { var res [][]int x, y := toBeRemoved[0], toBeRemoved[1] var i int for i < len(intervals) && intervals[i][1] <= x { res = append(res, intervals...
<gh_stars>0 import { check } from 'express-validator'; export const registrationValid = [ check('formData.firstName', 'Field cannot be empty').notEmpty(), check('formData.lastName', 'Field cannot be empty').notEmpty(), check('formData.phone', 'Field cannot be empty').notEmpty().isNumeric().withMessage('Inv...
/** * (SAX) Invoked at the start of any document parse * * @exception SAXException */ public void startDocument() throws SAXException { current = vocab; outputXML.setLength( 0 ); outputXML.append( "\t" ); rewriteXML = false; currentHeader = ""; currentFooter = "\n"; startSavingXML = false; uiG...
/** * @todo should we get rid of this ConvertValidate object somehow? It's * used in the formRenderer. */ private ConvertValidate _getNewConvertValidate( String clientId ) { ConvertValidate convertValidateInfo = new ConvertValidate(); Map<String, List<ConvertValidate>> map = get...
We all know that the American media has gone all in on the story of the royal wedding (which starts on Friday and, while we're on the subject, why not follow The Huffington Post's coverage?) But a new study from Nielsen shows that the coverage of the wedding by the U.S. press has surpassed even that of the British medi...