content
stringlengths
10
4.9M
Estimation of the phosphorus sorption capacity of acidic soils in Ireland The test for the degree of phosphorus (P) saturation (DPS) of soils is used in northwest Europe to estimate the potential of P loss from soil to water. It expresses the historic sorption of P by soil as a percentage of the soil's P sorption capa...
<reponame>nphkh/fluid-framework<gh_stars>1-10 // // Generated by the J2ObjC translator. DO NOT EDIT! // source: src-delomboked/com/sponberg/fluid/layout/ModalView.java // #ifndef _FFTModalView_H_ #define _FFTModalView_H_ @class JavaUtilArrayList; @protocol FFTModalView_ModalActionListener; #import "JreEmulation.h...
// MakeResource creates a wrapper for a resource. func MakeResource(name corev1.ResourceName) *ResourceWrapper { return &ResourceWrapper{kueue.Resource{ Name: name, }} }
<reponame>Xaviervu/typicodeNoLibs package ru.vegax.xavier.a3test.data_loader; public interface LoaderCallback { void notifyDataLoaded(); void notifyError(String e); }
def degree(self): degs = {sum(spx.dimension for spx in k) for k in self.keys()} if len(degs) != 1: return None return degs.pop()
package org.openmrs.module.nemrapps.fragment; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.openmrs.ui.framework.fragment.FragmentRequest; import org.openmrs.ui.framework.fragment.FragmentRequestMapper; import org.springframework.stereotype.Component; @Component publi...
/** * @author David Insley */ public class HerbloreAction extends Action<Player> { private final HerbloreRecipe recipe; private final int amount; private boolean started; private int count; public HerbloreAction(Player player, HerbloreRecipe recipe, int amount) { super(player, recipe.ge...
package three; public class AccountTest { public static void main(String[] args) { Account account = new Account(); account.deposit(10000); try { account.withdraw(30000); } catch(BalanceException e) { e.printStackTrace(); } } }
/** * @author Mamadou Lamine NIANG **/ @Component @ConditionalOnBean(ObjectMapper.class) public class JsonMapper { private final ObjectMapper objectMapper; public JsonMapper(ObjectMapper objectMapper) { this.objectMapper = objectMapper; } public <T> T getObject(JsonNode node, Class<T> tClas...
def fapi(self, f): @wraps(f) def decorated_function(*args, **kwargs): if FAPI_SESSION_KEY in session: flask.g.fapi = self.get_fapi_session() return flask.make_response(f(*args, **kwargs)) else: session[REDIRECT_AFTER_LOGIN_KEY] = re...
/** * Adds the specified columns which will not be serialized. * * @param columns the columns */ public ResultMetadata addNonSerializedColumns(Collection<? extends ColumnSpecification> columns) { names.addAll(columns); return this; }
def translate_path(basedir, uripath): assert os.path.isabs(basedir) path, trailing_slash, _ = url_collapse_path(uripath) words = ( w for w in path.split('/') if w and not os.path.dirname(w) and w not in (os.curdir, os.pardir) ) path = os.path.join(basedir, *words)...
import { assert } from "chai"; import { canToggleState } from "../../../src/common/entity/can_toggle_state"; describe("canToggleState", () => { const hass: any = { services: { light: { turn_on: null, // Service keys only need to be present for test turn_off: null, }, }, }; i...
Expectant parents' emotions evoked by pregnancy: A longitudinal dyadic analysis of couples in the Swedish Pregnancy Panel. RATIONALE Holistic antenatal care requires knowledge of individuals' emotional response to pregnancy. Little is known about how a pregnant woman and her partner influence each other emotionally du...
<reponame>openharmony-gitee-mirror/ace_ace_engine /* * Copyright (c) 2021 Huawei Device Co., Ltd. * 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/licen...
n,p,w,d=input().split() n=eval(n) p=eval(p) w=eval(w) d=eval(d) u=0 for y in range(100000): if y*d>p: break if (p-y*d)%w==0: x=(p-y*d)/w if x+y<=n: u=1 print("%d %d %d" % (x,y,n-x-y)) break if u==0: print("-1")
import threading import numpy as np import pandas as pd from time_series_transform.stock_transform.base import * from time_series_transform.stock_transform.stock_engine._investing import investing from time_series_transform.stock_transform.stock_engine._yahoo_stock import yahoo_stock from datetime import date, timedelt...
/* Copyright 2017-2019 Google Inc. All Rights Reserved. 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 required by applicable law or agreed t...
Switching terahertz wave with grating-coupled Kretschmann configuration. We present a terahertz wave switch utilizing Kretschmann configuration which consists of high-refractive-index prism-liquid crystal-periodically grooved metal grating. The switching mechanism of the terahertz switch is based on spoof surface plas...
// storeList would store the list in the cache. func (r *rebuild) storeList(list *List) bool { key := string(list.key) if _, ok := r.cache[key]; ok { return false } r.cache[key] = list return true }
<reponame>DebbieElabonga/Quote-app import { Component, OnInit } from '@angular/core'; import { Quote } from '../quote'; @Component({ selector: 'app-quote', templateUrl: './quote.component.html', styleUrls: ['./quote.component.css'] }) export class QuoteComponent implements OnInit { quote: Quote[] = [ new...
<gh_stars>0 from common import game_functions as game """Main file for executing the program""" def main() -> None: player_list = [] print("WELCOME TO PIG\n") print("-------------------\n") print("HOW MANY PLAYERS ARE PLAYING?\n") num_of_players = input(">> ") if num_of_players < 2: pl...
The Making of Modern Belize: Politics, Society and British Colonialism in Central America . By C. H. Grant. (London: Cambridge University Press, Cambridge Commonwealth Series, 1976. pp. xvi, 400. Notes, Biblio., Index, Tables, Illus.) In the final section of this piece, Ulloa studies how the order modified its stand o...
#include <iostream> #include <vector> #include <algorithm> #include <map> #include <queue> using namespace std; #define fr(i,n) for(int i = 0; i < n; i++) #define tr(c, i) for(auto i = c.begin(); i != c.end(); i++) #define vi vector< int > #define vii vector< vi > int n; int dist[100000]; vi con[10000]; int color(i...
package main import ( "fmt" "github.com/alexpfx/go_menus/fzf" ) func main() { testFzfBuilder() testFzfBuilder2() } func testFzfBuilder() { const input1 = "1 janeiro sexta true\n2 fevereiro quarta true\n2 março terça false" m := fzf.New("Selecione", false, "", "") run, err := m.Run(input1) if err != nil { ...
<reponame>coderling/astc_preview #include "decode_wrap.h" #ifdef DEBUG_PRINT_DIAGNOSTICS #include <stdio.h> #endif //for test use int Add(int a, int b) { return MIN(a, b); } unsigned char* GetUnsignedCharArr() { unsigned char* output = new unsigned char[10]; for (size_t i = 0; i < 10; i++) { ...
Joides Resolution research vessel drilled to find seabed sediment holding climate records up to 5m years old but discovered some dated to 50m years ago Knowledge of Australia’s climate history has been expanded to the past 50m years, up from the past 500,000 years, via a major international scientific voyage from Frem...
Pauline Hanson rejects claim she is chief of staff's James Ashby's puppet Posted One Nation senator Pauline Hanson has hit back at fresh criticism about the influence of her chief of staff, James Ashby, from a candidate dumped over a controversial website post. Peter Rogers, who was axed as the party's candidate for...
<reponame>TeamSPoon/logicmoo_nlu /* * Copyright 2007-2009 TIM/ETI University of Geneva. * All Rights Reserved. Use is subject to license terms. * * File: SocketObserver.hpp * Author: <NAME> <<EMAIL>> * * See the file "license.terms" for information on usage and * redistribution of this file, and for a DISCLAIM...
//=============================================================== // //! TRF79xxA_readContinuous - Read multiple TRF79xxA registers //! //! \param pui8Payload is the address of the first register as //! well as the pointer for buffer where the results will be //! \param ui8Length is the number of registers to read //! ...
package io.thebitspud.astroenvoys.levels; import com.badlogic.gdx.Gdx; import io.thebitspud.astroenvoys.AstroEnvoys; import io.thebitspud.astroenvoys.entities.EntityID; public class Level_Test extends Level { public Level_Test(AstroEnvoys app) { super(app); } @Override public String id() { return "Test"; } ...
<filename>src/app/modules/campaign/campaign-landing/campaign-list-routing.module.ts<gh_stars>0 import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { CampaignLandingComponent } from './campaign-landing.component'; import { AllCampaignsComponent } from './tabs/all-camp...
Ethics in Accounting and Finance Ethics forms the cornerstone of business and commerce today. It is the lifeblood of every institution be it private or public enterprise. Organisations have to develop and implement a properly structured policy on ethics outlaying proper governance within the institution. Accounting an...
def run(self, use_cache=True) -> int: super().run(use_cache) notebook = self.notebook path = Path(notebook) output_nb_dir = self.output_nb_dir / path.parent output_nb_dir.mkdir(parents=True, exist_ok=True) reference_nb_dir = self.reference_nb_dir / path.parent ref...
/* ** Append the contents of SrcList p2 to SrcList p1 and return the resulting ** SrcList. Or, if an error occurs, return NULL. In all cases, p1 and p2 ** are deleted by this function. */ SrcList *sqlite3SrcListAppendList(Parse *pParse, SrcList *p1, SrcList *p2){ assert( p1 && p1->nSrc==1 ); if( p2 ){ SrcList *...
<gh_stars>0 use std; use std::sync::Arc; use failure::{Error, ResultExt}; use remoteprocess::{ProcessMemory, Pid, Process}; use serde_derive::Serialize; use crate::python_interpreters::{InterpreterState, ThreadState, FrameObject, CodeObject, TupleObject}; use crate::python_data_access::{copy_string, copy_bytes}; use...
// note: item width entails getfunc return and suffix. Excludes prefix // note: set width to 0 for variadic width baritem items[] = { /* function prefix phrase item width suffix phrase */ { getsong, "♫[ ", 0, "] " }, { getvolm, "🔈[", 3, "%] " }, { getvmst, "VM [", 8, "] "}, { getbatlvl, "🔋[",...
<filename>spring-creed-example/spring-creed-batch/src/main/java/com/creed/handler/ArchiveTasklet.java package com.creed.handler; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.springframework.batch.core.StepContribution; import org.springframework.batch.core.scope.context.Chu...
def execute_onnx(model, input_dict): model = si.infer_shapes(model) graph = model.graph execution_context = dict() for vi in graph.input: new_tensor = valueinfo_to_tensor(vi) execution_context[vi.name] = new_tensor for vi in graph.output: new_tensor = valueinfo_to_tensor(vi) ...
//***************************************************************************** // // GetStringDescriptor() // // hHubDevice - Handle of the hub device containing the port from which the // String Descriptor will be requested. // // ConnectionIndex - Identifies the port on the hub to which a device is // attach...
<commit_msg>Add some mandatory and semi-mandatory dependencies <commit_before>from setuptools import setup, find_packages setup( name='couchforms', version='0.0.4', description='Dimagi Couch Forms for Django', author='Dimagi', author_email='information@dimagi.com', url='http://www.dimagi.com/'...
/** * Performs call with given request specifications. * * @param request any valid {@link MS_HttpRequest}. * @return response object. * @throws IOException if the request could not be executed due to cancellation, * a connectivity problem or timeout. Because networks c...
use serde::{Deserialize}; use crate::utils::{err, ok, Result}; use crate::messages::*; #[derive(Deserialize, Debug, Clone)] pub struct GUIBundle { pub url: String, pub name: String, pub params: Vec<Value>, pub width: i32, pub height: i32, } #[derive(Deserialize, Debug, Clone)] pub struct Info { ...
<reponame>Martynas-P/pydht<gh_stars>0 import logging import unittest from unittest.mock import MagicMock, patch from pydht import PyDhtApp, IncomingConnectionHandler, RoutingTable logging.disable(logging.CRITICAL) class TestPyDhtApp(unittest.TestCase): def setUp(self): self.app = PyDhtApp() sel...
//! Returns a list of all files that make up an asset which cannot be automatically regenerated. //! This list includes, for example, the meta-data (cryasset) file, source file, and all data files. //! The list does not include thumbnails. //! The list of independent files is used when moving an asset from a temporary ...
//package com.ankushgrover.problems; import javafx.util.Pair; import java.util.*; /** * Created by Ankush Grover(ankush.dev2@gmail.com) on 16/09/19 * <p> * http://codeforces.com/problemset/problem/431/B */ public class P117CFDiv2BShowerLine { public static void main(String[] args) { P117CFDiv2BShowe...
Role of coherent nuclear motion in the ultrafast intersystem crossing of ruthenium complexes. Ultrafast intersystem crossing (ISC) in transition metal complexes leads to a long-lived active state with a high yield, which leads to efficient light energy conversion. The detailed mechanism of ISC may lead to a rational m...
n,l=map(int,raw_input().split()) arr=map(float,raw_input().split()) arr.sort() arr2=[] arr2.append(-arr[0]) arr2.extend(arr) arr2.append(l+(l-arr[-1])) arr=arr2 radius=0.0 for i in range(1,len(arr)-1): radius=max(radius,max((arr[i]-arr[i-1])/2.0,(arr[i+1]-arr[i])/2.0)) print radius
// Copyright (C) 2019 Orange // // This software is distributed under the terms and conditions of the 'Apache License 2.0' // license which can be found in the file 'License.txt' in this package distribution // or at 'http://www.apache.org/licenses/LICENSE-2.0'. package v1 import ( "context" "errors" "fmt" grp...
import { api } from './index' export default api('Security', { SecItemCopyMatching: ['pointer', ['pointer', 'pointer']], SecItemDelete: ['pointer', ['pointer']], SecAccessControlGetConstraints: ['pointer', ['pointer']], })
module minerva { export interface IBrush { isTransparent(): boolean; setupBrush(ctx: CanvasRenderingContext2D, region: Rect); toHtml5Object(): any; } /* function isBrushTransparent (brush: IBrush) { if (!brush) return true; if (brush instanceof Media.S...
Right Paraduodenal Hernia: A Rare Cause of Small Bowel Strangulation Internal hernias are a rare cause of intestinal obstruction. Among the internal hernias, left paraduodenal hernia is the most typical type followed by the right paraduodenal hernia. It is impossible to make a clinical diagnosis of internal hernia, as...
/** * Reveal any emplacement in the masked word matching the letter. * * @param c the letter * * @return the number of match */ public int matches(char c) { int matches = 0; for (int i = 0; i < word.length; i++) { if (word[i] == c) { mask[i] = c; matches++; } } return matches; }
def parameters(*keys): def wrapper(url): query = parse_qs(urlsplit(url).query) return '-'.join(s for key in keys for value in query[key] for s in [key, value]) return wrapper
<gh_stars>0 import {EventEmitter} from 'events'; import * as net from 'net'; import {Socket} from 'net'; import {EmitEvent} from "./constants"; import {Protocol} from "./protocol"; export class Transport extends EventEmitter { private socket: Socket; private readonly port: number; constructor(port: number...
This week our statistician provides a statistical review of Arsenal's year. Arsenal won 35 of their 54 games in 2013, recording their highest win average for a calendar year since 2002. In fact the win rate of 64.8 per cent was the second highest for any calendar year in Arsenal history, beating the 1971 and 1998 dou...
module Main where import Test.Hspec import Types import Parser import Lib import qualified Data.Map as Map import Data.Ratio import TestSets import Util successful (Right x) = x successful (Left err) = error $ show err parse = successful . parseEquation spec :: Spec spec = do describe "inequality parser" $ do ...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package br.com.cinema.model; import java.io.Serializable; import java.util.Date; import java.util.List; import javax.persistence.Basi...
import { github } from "../services"; import { Token } from "../entity/Token"; import { injectedServices } from "../server"; export default { github: (req, res, next) => { res.clearCookie('redirect'); res.setCookie('redirect', req.header('Referer').split("?")[0]), res.redirect({ ...
i= 1 while i<=3: print("Guess:", i) i=i+1 print("sorry you failed")
SIDN sounds the alarm on DNSSEC security status of Dutch domain names Dutch domain names don't have adequate DNSSEC security. That's the conclusion of a report presented today by SIDN, the company that runs the .nl domain. The DNSSEC Inventory 2017 (only in Dutch at this moment) describes the DNSSEC security status of ...
// Verify comparison of fringe float values TEST_F(RowContainerTest, compareFloat) { testCompareFloats<float>(REAL(), true); testCompareFloats<float>(REAL(), false); }
/* strbuf_append_fmt() should only be used when an upper bound * is known for the output string. */ void strbuf_append_fmt(strbuf_t *s, int len, const char *fmt, ...) { va_list arg; int fmt_len; strbuf_ensure_empty_length(s, len); va_start(arg, fmt); fmt_len = vsnprintf(s->buf + s->length, len, fmt...
/******************************************************************************/ /** * This function responds to the SET_INTERFACE command. * * @param InstancePtr is a pointer to the XUsb instance of the controller. * * @return None. * * @note None. * **************************************************************...
// NOTE: this export is new to IE5, so it can move to browseui // along with the rest of this proxy desktop code BOOL SHOnCWMCommandLine(LPARAM lParam) { HNFBLOCK hnf = (HNFBLOCK)lParam; IETHREADPARAM *piei = ConvertHNFBLOCKtoNFI(hnf); if (piei) return SHOpenFolderWindow(piei); return FALSE; }
<gh_stars>0 import { Box, Button, Divider, Link, Stack, useToast } from '@chakra-ui/react' import { AssetNamespace, AssetReference, caip19 } from '@shapeshiftoss/caip' import { ChainTypes, NetworkTypes, SwapperType } from '@shapeshiftoss/types' import { useState } from 'react' import { useFormContext } from 'react-hook...
<reponame>freedomshare/NFT-RPG-Game export const getShieldNameFromSeed = (seed: number, stars: number) => { if(seed === -1 && stars === -1) // TEMP anti lint return 'Templars will'; return 'Templars will'; };
/** * Add owl:imports from the T-Box ontology to SKOS and to the A-Box ontology. */ private void addImports () { OWLImportsDeclaration importsAxiom; AddImport imp; importsAxiom = odf.getOWLImportsDeclaration( ontA.getOntologyID().getOntologyIRI() ); imp = new AddImport( ont...
import TelegramCommandBase from "./command-base"; import doorCommand from "./door-command"; import helloCommand from "./hello-command"; import usersCommand from "./users-command"; import startCommand from "./start-command"; const commands: TelegramCommandBase[] = [ doorCommand, helloCommand, usersCommand, ...
/** * Maps a fixture from the one returned from the FPL JSON API to one exposed by this library. * * @author James Amoore */ class FixtureMapper { private static final DateTimeFormatter FORMATTER = DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss'Z'"); protected FPLFixture mapFixture(final JsonFixture jsonFi...
///Turns the content into a byte vector. Slices are copied. pub fn into_bytes(self) -> Vec<u8> { match self { Data::Bytes(bytes) => bytes.into_owned(), Data::String(string) => string.into_owned().into_bytes() } }
import * as openrazer from 'openrazer'; const wait = (millis: number) => new Promise(resolve => setTimeout(resolve, millis)); (async () => { const kbds = await openrazer.getKeyboards(); if (kbds.length === 0) return; const kbd = kbds[0]; console.log('serial:', await kbd.getSerialNumber()); console.log('fi...
import { createLogger } from '@stoplight/prism-core'; import { IHttpOperation } from '@stoplight/types'; import * as fastify from 'fastify'; import { createServer } from '../'; import { IPrismHttpServer } from '../types'; const logger = createLogger('TEST', { enabled: false }); function instantiatePrism2(operations: ...
SD to Enforce Anti-Abortion Law A federal judge ruled on Wednesday that starting July 1, South Dakota can enforce part of a stringent anti-abortion law which will require a doctor, before performing an abortion, to determine if a woman has been coerced into the abortion or if she is at risk of psychological disorders. ...
// Copyright (C) 2013 The Android Open Source Project // // 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 required by applicable ...
<reponame>ysyun/angular-stub-proxy-environment import { Component, OnInit, OnDestroy } from '@angular/core'; import { #NAME#Service } from './#FILE_NAME#.service'; @Component({ moduleId: module.id, selector: '#FILE_NAME#', templateUrl: '#FILE_NAME#.component.html', styleUrls: ['#FILE_NAME#.component.cs...
/** * Provides a default implementation of <tt>FrameRateControl</tt>. * * @author Lyubomir Marinov */ public class FrameRateControlAdapter implements FrameRateControl { /** * Gets the UI <tt>Component</tt> associated with this <tt>Control</tt> object. * <tt>FrameRateControlAdapter</tt> always returns <tt>null<...
The collagen of the gingiva and of its blood vessels. The collagen of the gingiva and that of its blood vessels of several animal species and of man were studied with the scanning electron microscope following corrosion with pancreatin at 0.3%. The gingival collagen forms fundamental cells or fasciculi that are distri...
#!/usr/bin/env python #encoding: utf8 import rospy from pimouse_search_wifi.msg import WiFiStatus if __name__ == '__main__': status_file = '/proc/net/wireless' rospy.init_node('scan_wifi') pub = rospy.Publisher('wifi_status', WiFiStatus, queue_size=5) rate = rospy.Rate(30) while not rospy.is_shu...
/** * Read a value from the buffered array. * * @param adress The adress of the calue to read * @param size The size of the value to read in bits * @return The value. */ public synchronized int read( int adress, int size ) { if( registers != null ) { if((adress >= offset ) && ( adress <= ( offs...
// Last30DaysAverageScore returns the average score for all surveys submitted in the last 30 days. func (s *surveyResponses) Last30DaysAverageScore(ctx context.Context) (float64, error) { q := sqlf.Sprintf("SELECT AVG(score) FROM survey_responses WHERE created_at>%s", thirtyDaysAgo()) var avg sql.NullFloat64 err := ...
// Test that we can startup and cleaning shutdown the ACPICA library. TEST(X86DeviceTest, BasicAcpica) { std::unique_ptr<X86> dev; ASSERT_OK(X86::Create(nullptr, driver_unit_test::GetParent(), &dev)); ASSERT_OK(dev->EarlyAcpiInit()); }
Effect of heterologous antimacrophage serum on growth of Rous virus-induced sarcoma in the allogeneic and syngeneic system. The effect of heterologous antimacrophage serum (AMS) and normal rabbit serum (NRS) on the immune reaction against Rous virus-induced sarcoma (RSL) was studied in rats. The growth of RSL sarcoma ...
/** * Splits a list into non-view sublists of length size */ public static <T> List<List<T>> split(List<T> list, final int size) { if(list == null || list.isEmpty()) return Immutable.list(); final List<List<T>> parts = new ArrayList<>(); final int N = list.size(); for (int i = 0; i < N; i += size)...
#ifndef __RFC_7234_HPP_INCLUDED__ #define __RFC_7234_HPP_INCLUDED__ /* https://tools.ietf.org/html/rfc7234 */ namespace xtd { namespace Grammars { namespace RFC7234 { #pragma region("forward declerations") #pragma endregion #pragma region("strings") #pragma endregion #pragma region("imports") #pragma endregion ...
/** * Class responsible for keeping convesation State of the objects are maintain in EntityManager */ public abstract class ConversationContext { public enum STATE {CURRENT, SUSPENDED} @Setter @Getter private STATE state = STATE.CURRENT; @Setter @Getter private Object contextOwner; ...
Deformation and Basin Formation Along Strike-Slip Faults Significant advances during the decade 1975 to 1985 in understanding the geology of basins along strike-slip faults include the following: (I) paleomagnetic and other evidence for very large magnitude strike slip in some orogenic belts; (2) abundant paleomagneti...
/** * Type-level natural numbers. */ public abstract static class HNat<A extends HNat<A>> { public abstract Show<A> show(); public abstract Integer toInteger(); public static HZero hZero() { return new HZero(); } public static <N extends HNat<N>> HSucc<N> hSucc(final N n) { retu...
import { Component, OnInit, OnDestroy } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { switchMap } from 'rxjs/operators'; import { Subscription } from 'rxjs'; @Component({ selector: 'app-result', templateUrl: './result.component.html', styleUrls: ['./result.component.scss'] }) e...
package org.firstinspires.ftc.teamcode; import com.qualcomm.hardware.adafruit.BNO055IMU; import com.qualcomm.hardware.adafruit.JustLoggingAccelerationIntegrator; import com.qualcomm.robotcore.hardware.DcMotor; import com.qualcomm.robotcore.hardware.DcMotorController; import com.qualcomm.robotcore.hardware.DcMotorSimpl...
<filename>generate_sitemap.py import os BASE_URL = "https://www.nicholasjunge.com" CONTENT_EXTS = [".md"] def generate_sitemap(): url_loc_bracket = "\n\t<url>\n\t\t<loc>{0}</loc>\n\t</url>\n" with open("public/sitemap.xml", mode="w", encoding="utf-8") as sitemap: sitemap.write("<?xml version=\"1.0\" encoding...
// Some parameters may be fixed class GaussianFunctionFixed implements RegressionFunction{ public double[] param = new double[3]; public boolean[] fixed = new boolean[3]; public double function(double[] p, double[] x){ int ii = 0; for(int i=0; i<3; i++){ if(!fixed[i]){ ...
Story highlights Clinton collected $52.8 million in just the first 19 days of October Trump, meanwhile, has just $16 million in reserves Washington (CNN) Donald Trump is still refusing to donate significantly more money to his campaign, putting him at an overwhelming cash disadvantage to Hillary Clinton with less tha...
Coupling Ontology Driven Semantic Representation with Multilingual Natural Language Generation for Tuning International Terminologies OBJECTIVES The importance of clinical communication between providers, consumers and others, as well as the requisite for computer interoperability, strengthens the need for sharing com...
import * as React from "react"; export interface SceneLayoutProps { title: string; menu?: React.ReactNode; top: React.ReactNode; left: React.ReactNode; right: React.ReactNode; footer: React.ReactNode; children?: React.ReactNode; } export declare const SceneLayout: React.FunctionComponent<Sce...
#ifndef _Cores_hh_ #define _Cores_hh_ #include <unistd.h> #include <vector> using namespace std; /** * get the list of cores available on the system * * if physicalView is true, "list" will contain the id of existing * cores in increasing order (from 0 to n-1). * * if physicalView is false, "list" will contain...
/** * Called when a {@link BoxListItem} is bound to a ViewHolder. Customizations of UI elements * should be done by overriding this method. If extending from a {@link BoxBrowseActivity} * a custom BoxBrowseFolder fragment can be returned in * {@link BoxBrowseActivity#createBrowseFolderFragment(BoxIt...
A 17-year-old German skier involved in a serious crash at Lake Louise Ski Resort on Tuesday has died. Alpine Canada confirmed Max Burkhart died in hospital on Wednesday. READ MORE: 17-year-old skier seriously injured at Lake Louise The skier was taken to the Foothills Hospital in Calgary by STARS air ambulance after...
#include <iostream> #include <typeinfo> #include <stdexcept> #include <algorithm> #include <vector> #include <cassert> #include <memory> #include "mdarraygen.hh" #include "fakearray.hh" using namespace std; int main() { using D1234 = MDArrayGen<double,1,2,3,4>; cout << "extent count for array dim 1,2,3,4: " << D...
// CloseEngine closes backend engine by uuid. func (local *local) CloseEngine(ctx context.Context, cfg *backend.EngineConfig, engineUUID uuid.UUID) error { engineI, ok := local.engines.Load(engineUUID) if !ok { db, err := local.openEngineDB(engineUUID, true) if err != nil { return err } engine := &Engine{ ...