content
stringlengths
10
4.9M
import { OptionSetValueMock} from "../../../src/xrm-mock/optionsetvalue/optionsetvalue.mock"; describe("Xrm.OptionSetValue Mock", () => { beforeEach(() => { this.optionSetValue = new OptionSetValueMock("statecode", 0); }); it("should instantiate", () => { expect(this.optionSetValue).toBeDe...
def compat(prev_version: "Version") -> None: if prev_version == "-1.-1": return elif prev_version < "2.0": print("Review Hotmouse: Running v1_compat()") v1_compat()
Electronic Cigarettes: a report commissioned by Public Health England by Professor John Britton and Dr Ilze Bogdanovica (University of Nottingham) takes a broad look at the issues relating to e-cigarettes including their role in tobacco harm reduction, potential hazards, potential benefits and regulation. E-cigarette ...
Last night when I made the Strawberry Rhubarb Jam, I decided I couldn’t wait to enjoy it. So I took some of the jam and made these simple and sweet little hand pies. As the name implies, it uses traditional pie dough. We used large cookie cutters to create the shape, created vents on the top (beware if you skip this s...
def register(self, device): if not device: LOG.error("Called with an invalid device: %r", device) return LOG.info("Subscribing to events from %r", device) self.devices[device.host] = device with self._event_thread_cond: subscriptions = self._subscripti...
/** * Called when an item is removed from the RecyclerView. Implementors can choose * whether and how to animate that change, but must always call * {@link #dispatchRemoveFinished(android.support.v7.widget.RecyclerView.ViewHolder)} when done, either * immediately (if no animation will occur) or afte...
/** * Removes the option with the specified name (if it has been set) from the set * of execution options. If the option is not currently set, this method will * do nothing. * * @param optionName the name of the option to remove * @return a reference to this object * * @throws IllegalArgumentExceptio...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. import * as PQP from "@microsoft/powerquery-parser"; import { Ast, Type } from "@microsoft/powerquery-parser/lib/powerquery-parser/language"; import { TXorNode } from "@microsoft/powerquery-parser/lib/powerquery-parser/parser"; import { Autoc...
import Test.Hspec.Megaparsec import Test.Hspec import Parser.Lex.Lexer import Parser.Lex.Stream import Language.Tokens import Data.Text ( pack ) import Text.Megaparsec hiding ( Tokens ) testLexer :: String -> Either Erro...
India’s goods and services tax collections fell to Rs 83,346 crore in October, from more than Rs 90,000 crore in each of the first three months after the new tax regime was rolled out on July 1. finance ministry statement attributed the lower collections to the release of state and central GST out of integrated GST (IG...
import warnings from django.apps import AppConfig class DashboardConfig(AppConfig): name = 'dashboard' def ready(self): # Remove warnings of the bunq sdk module warnings.filterwarnings(action='ignore', module='bunq')
def _exponent_handler_factory(ion_type, exp_chars, parse_func, first_char=None): def transition(prev, c, ctx, trans): if c in _SIGN and prev in exp_chars: ctx.value.append(c) else: _illegal_character(c, ctx) return trans illegal = exp_chars + _SIGN return _num...
<gh_stars>0 import { Box, Heading, ResponsiveContext } from "grommet" import { lighten } from "polished" import { ReactNode } from "react" import { BaseSectionProps } from "./BaseSectionProps" import { purple } from "./colors" import SectionContainer from "./SectionContainer" export type InfoBlock = { title?: string...
def wheelCoronalScroll(self, event): direction = np.sign(event.angleDelta().y()) if event.modifiers() == Qt.ShiftModifier: if direction > 0: self.canvas.coronalIndex = ( max(0, self.canvas.coronalIndex-1)) else: self.canvas.coro...
<reponame>PBarde/IBoatPIE<gh_stars>1-10 #!/usr/bin/env python3 # -*- coding: utf-8 -*- """ :Autors: <NAME> & <NAME> Module encapsulating all the classes required to manipulate weather forecasts. """ import netCDF4 import pickle import numpy as np import math import matplotlib import matplotlib.pyplot as plt from ma...
Sunday on CNN, veteran journalist Carl Bernstein reacted to the report that Democratic presidential nominee Hillary Clinton is canceling her trip to California after being diagnosed with pneumonia, saying Clinton needs to spend an hour in front of press with her doctor discussing her medical history. “I think we can h...
A number of leading browser vendors and other tech companies, including Microsoft, Google, Apple, Adobe, Facebook, HP, Nokia, Mozilla, Opera and the W3C, just announced the launch of the Web Platform Docs project at WebPlatform.org. The project aims to create “a new, authoritative open web standards documentation site,...
Evaluation of the FVTD technique for electromagnetic field problems containing highly inhomogeneous structures In this paper, the cut-off frequency of the dominant mode of a finned waveguide is computed using the Symmetric Condensed Node Transmission Line Matrix (SCN-TLM) and Finite Volume Time Domain (FVTD) methods. ...
<filename>ecs/StartInstance.go package ecs import ( "fmt" "net/http" "github.com/qiniu/stack-go/components/client" ) // StartInstanceParams 主机开机参数 type StartInstanceParams struct { RegionID string `json:"region_id"` InstanceID string `json:"instance_id"` // 适用于实例规格族d1、i1或者i2等包含本地盘的实例。当d1、i1或者i2的本地盘出现故障时,可通过...
Molecular dynamics simulation of anticancer drug delivery from carbon nanotube using metal nanowires In this study, we have investigated delivery of cisplatin as the anticancer drug molecules in different carbon nanotubes (CNTs) in the gas phase using molecular dynamics simulation. We examined the shape and compositio...
/** * Sleep for some number of seconds. * * @param seconds The number of seconds to sleep. * @see <a href="https://stackoverflow.com/questions/24104313/how-do-i-make-a-delay-in-java">make a delay in java</a> */ public static void sleep(int seconds){ try{ Thread.sleep(1000); } catch(InterruptedExc...
A narrow path in the wilderness off the Temple Road in Mcleodganj leads to Jampling Elders’ Home run by the Central Tibetan Administration. Here, flipping through the pages of a national daily, sits 66-year old Bhuchung Tsering. As a news item commemorating the 1965 war heroes catches his eye, his mind immediately trai...
<reponame>DLMdevelopments/Hologram-pyramid #!/usr/bin/env python import rospy import curses import socket import time import sys import yaml from avatar_msg.msg import AUlist from avatar_msg.msg import expresion def handle_exp(req): # call the gestures dictionary from yaml file global pub st...
// String will print the book info in a string (for fmt) func (book Book) String() string { return fmt.Sprintf( "%s\n Title: %s\n Authors: %s\n Year: %s\n Price: %s", book.Category, book.Title, strings.Join(book.Authors, ", "), book.Year, book.Price, ) }
/** * * Linea de un vehiculo * */ @Entity @Table(name = "LINEA") public class Linea { @Id @GeneratedValue (generator = "SEQ") @Column(name = "ID_LINEA") private Long idLinea; @Column(name = "NOMBRE") private String nombre; @Column(name = "CILINDRAJE") private int cilindraje; @ManyToOne(fetch = FetchTyp...
/** read a stated CSV file from disk */ vector<string> utilCSV::readCSV(string iFileN) { vector<string> theCSV; string inFileLine; string inFileName = fromCSVFile; ifstream infile(fromCSVFile.c_str(), ios::in); if (!infile) { cout << "Could not open file." << endl; ...
/** * \brief - set default values for element in tm DB. * This function is not called during init since the current default is 0. * In a case the default should be changed to be different from 0, call this function from dnx_algo_port_init() */ static shr_error_e dnx_algo_port_db_tm_init( int u...
/////////////////////////////////////////////////////////////////////////////// /** Present the current frame by swapping the back buffer, then move to the next back buffer and also signal the fence for the current queue slot entry. */ void D3D12Sample::Present () { swapChain_->Present (1, 0); const auto fenceVal...
/** * 0010 Add the EmbeddedProcess and TransientEmbeddedProcess entities */ private void update0215MoreProcessTypes() { this.archiveBuilder.addEntityDef(addEmbeddedProcessEntity()); this.archiveBuilder.addEntityDef(addTransientEmbeddedProcessEntity()); }
Inside the world's first transistor I love prototype technology. There's a magic in seeing what the original working model looked like, which makes so many systems instantly more-understandable to a lay person. Strip away the perfection and packaging, and you can see what's really going on. In this video, Bill Hammac...
from collections import defaultdict, deque, Counter from heapq import heappush, heappop, heapify import math from bisect import bisect_left, bisect_right import random from itertools import permutations, accumulate, combinations import sys import string from copy import deepcopy INF = float('inf') def LI(): return l...
package org.lejos.example; import lejos.nxt.Button; /** * Example leJOS Project with an ant build file * */ public class HelloWorld { public static void main(String[] args) { System.out.println("Hello World"); Button.waitForAnyPress(); } }
// Copyright 2016 Amazon.com, Inc. or its affiliates. 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. A copy of the // License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "license" fil...
package com.github.nosrick.crockpot.config; import com.github.nosrick.crockpot.CrockPotMod; import com.github.nosrick.crockpot.compat.cloth.ClothConfigManager; import com.github.nosrick.crockpot.compat.cloth.CrockPotConfig; public class ConfigManager { protected static boolean clothPresent = false; protecte...
The psychosis risk timeline: can we improve our preventive strategies? Part 2: adolescence and adulthood SUMMARY Current understanding of psychosis development is relevant to patients' clinical outcomes in mental health services as a whole, given that psychotic symptoms can be a feature of many different diagnoses at ...
def gen_route(positions, connections): G = nx.Graph() for n, p in positions.iteritems(): G.add_node(n, pos=p) for connection in connections: G.add_edge(*connection) return G
// NewHelmRepoRepository will return errors if canQuery is false func NewHelmRepoRepository(canQuery bool) repository.HelmRepoRepository { return &HelmRepoRepository{ canQuery, []*models.HelmRepo{}, } }
//just caches across a call of exec (note that this makes Algorithms nonreentrant!) @Override public final void exec(State state, ExecutionContext ctx) throws DecisionException, ContradictionException, ThreadStackEmptyException, ClasspathException, CannotManageStateException, FailureException, I...
/* ** Copyright (C) 1999-2011 <NAME> <<EMAIL>> ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU Lesser General Public License as published by ** the Free Software Foundation; either version 2.1 of the License, or ** (at your option) any later version. ** ** Thi...
/** * * @author David Salter <david@developinjava.com> */ public class VariableFormatters { /** * @param args the command line arguments */ public static void main(String[] args) { ComplexNumber number = new ComplexNumber(1.0d, 2.0d); System.out.println(number); } }
Sporting KC Academy defender Jaylin Lindsey appeared in three matches for the U.S U-17 national team at the recent Vaclav Jezek Tournament in the Czech Republic. The United States finished third overall as they continue preparation for the 2017 FIFA U-17 World Cup in India. Lindsey played all three matches in the grou...
/** Each key except the last must find another KeyTable object */ Php::Value KeyTable::path(Php::Parameters& param) { bool check = param.size() >= 1; if (check) { Php::Value& v = param[0]; if (v.isString()) { std::string target((const char*) v, v.size()); StringList k...
import AuthCheck from "../../components/AuthCheck"; import PostList from "../../components/PostList"; import CreateNewPost from "../../components/CreateNewPost"; export default function AdminPage({}) { return ( <main> <AuthCheck> <PostList /> <CreateNewPost /> </AuthCheck> </main> ); }
n = int(raw_input().split()[0]) grid = [] for i in range(n): grid.append(['.']*n) if n < 6: for i in range(n): if i%2 == 0: grid[i][0] = '>' grid[i][n-1] = 'v' else: grid[i][0] = 'v' grid[i][n-1] = '<' else: for i in range(100): grid.append(['.']*100) for j in range(25): ...
package org.sadtech.bot.vcs.bitbucketbot.local.service; import lombok.NonNull; import lombok.RequiredArgsConstructor; import org.sadtech.bot.vcs.bitbucketbot.local.config.property.BitbucketUserProperty; import org.sadtech.bot.vsc.bitbucketbot.context.domain.entity.NotifySetting; import org.sadtech.bot.vsc.bitbucketbot...
/** * Handle the trajectory and return true if we go to a location, false else. * @private */ bool handleNextMoveActionOrAction(GameStrategyContext* gameStrategyContext) { if (isLoggerTraceEnabled()) { appendStringLN(getTraceOutputStreamLogger(), "handleNextMoveActionOrAction"); } GameTarget* cur...
def quantities(self, quantities): self._quantities = quantities
Contribution of spicules to solar coronal emission Recent high-resolution imaging and spectroscopic observations have generated renewed interest in spicules' role in explaining the hot corona. Some studies suggest that some spicules, often classified as type II, may provide significant mass and energy to the corona. H...
/*------------------------------------------------------------------------------- lightSphere Adds a circle of light to the lightmap at x and y with the supplied radius and intensity; casts no shadows intensity can be from -255 to 255 -----------------------------------------------------------------------------...
#include <cstdio> #include <cstdlib> #include <cassert> #include <vector> #include "all-procedures.cpp" class Test { std::vector<int32_t> input; size_t max_size; bool ok; public: Test(size_t size_) : max_size(size_) , ok(true) { fill_ascending(); } bool all_ok() c...
{-# LANGUAGE DataKinds #-} {-# LANGUAGE NamedFieldPuns #-} {-# LANGUAGE TypeOperators #-} module Main where import Network.Wai.Handler.Warp (run) import Network.Wai.Middleware.RequestLogger (logStdout) import Reviews import Reviews.Types.Common main :: IO () main = do ctx <- createContext "./config.dhall" putStr...
import caffe2.python.hypothesis_test_util as hu import hypothesis.strategies as st import numpy as np import numpy.testing as npt from caffe2.python import core, workspace from hypothesis import given class TestEnsureClipped(hu.HypothesisTestCase): @given( X=hu.arrays(dims=[5, 10], elements=hu.floats(mi...
/* Copyright 2017 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 required by applicable law or agreed to in writing, ...
package main import ( "fmt" ) func main() { var n, k int fmt.Scanf("%d %d", &n, &k) a := make([]int, n) for i := 0; i < n; i++ { fmt.Scanf("%d", &a[i]) a[i]-- } answer := finalTown(n, k, a) + 1 fmt.Println(answer) } func finalTown(n, k int, a []int) int { beforeLoop := 1 loopStart := 0 loopLength := 1...
/* Function called from the ARP keventd tasklet in response to * a data message from the net driver * * NOTE: the current implementation discards data when it * cannot get a lock. As the mechanism is for protocols that * do not guarantee data delivery this is considered acceptible. */ int efab_handle_ipp_pkt_ta...
<gh_stars>1000+ #pythran export solve(int) #runas solve(3) def solve(digit): ''' A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 x 99. Find the largest palindrome made from the product of two 3-digit numbers. ''' n...
NPS Then what about the case? In a huge relief to National Public School students in Karnataka, CBSE has reportedly restored affiliation to six schools of the NPS group that were accused of forging and producing fake minority certificates. CBSE had withdrawn affiliation of the six schools belonging to the NPS group ...
def __logEntities(self, entities, force=False): for entity in entities: self.__logEntity(entity, force)
/* * Copyright (c) 2007 Oracle. All rights reserved. * * This software is available to you under a choice of one of two * licenses. You may choose to be licensed under the terms of the GNU * General Public License (GPL) Version 2, available from the file * COPYING in the main directory of this source tree, or t...
/** * Patches Groovy's method dispatch table so that they point to {@link CpsDefaultGroovyMethods} instead of * {@link DefaultGroovyMethods}. * * <p> * To be able to correctly execute code like {@code list.each ...} in CPS, we need to tweak Groovy * so that it dispatches methods like 'each' to {@link CpsDefaultGr...
/** * State of the domain; to be subclassed and filled by respective domains. * * @author Jimmy */ public abstract class PDDLState implements ICloneable { @Override public abstract PDDLState clone(); public void dump() { dump(false); } public void dump(boolean includeStatic) { dump(includeStatic, fa...
#include <stdio.h> #include <stdlib.h> #define max(A,B) ((A)>(B)?(A):(B)) int main() { int passager,x,i,n,entre,sortie; scanf("%d",&n); x=0; passager=0; for (i=1;i<=n;i++) { scanf("%d %d",&sortie,&entre); passager+=entre-sortie; x=max(x,passager); } ...
/** * * common base class that contains code to track the * source for * this instance (USER|GLOBAL) * . * * @version $Revision$ $Date$ */ @SuppressWarnings( "all" ) public class TrackableBase implements java.io.Serializable, java.lang.Cloneable { //-----------/ ...
<filename>internal/databases/mysql/binlog_fetch_handler.go package mysql import ( "os" "path" "path/filepath" "strings" "time" "github.com/wal-g/storages/storage" "github.com/wal-g/tracelog" "github.com/wal-g/wal-g/internal" "github.com/wal-g/wal-g/utility" ) type BinlogFetchSettings struct { startTs tim...
Recently, troubled teenagers in residential treatment programs throughout America have been brutally marched to death, sexually abused, raped, electrocuted over 30 times a day (warning: upsetting video), restrained until nearly dead, and more. However, the gory details of several cases aren’t the worst part. The worst ...
<reponame>joostoudeman/external-resources<gh_stars>0 package org.onehippo.forge.externalresource.reports.plugins.statistics; import java.util.ArrayList; import java.util.List; import java.util.Map; import nl.uva.mediamosa.model.StatsPopularcollectionsType; /** * @version $Id$ */ public class MMPopularCollectionsSt...
def weighted_wheel_selection(weights): cumulative_sum = np.cumsum(weights) prob = r.generate_uniform_random_number() * cumulative_sum[-1] for i, c_sum in enumerate(cumulative_sum): if c_sum > prob: return i return None
<reponame>TioComeGfas/Bitarray package cl.tiocomegfas.bitarray; /** * Grupo de investigación ALBA, * Proyecto 2030 ... * * @author <NAME>, <NAME> y <NAME> * Basado en * BitSecuenceRG de libcds Autor <NAME> * https://github.com/fclaude/libcds/blob/master/src/static/bitsequence/BitSequenceRG.cpp */ public class...
async def urls(self): url_tuple = namedtuple("WikiURLs", ["view", "edit"]) urls = await self.wiki.http.get_urls(self.title) return url_tuple(urls[0], urls[1])
/** * Executor for tests. * @author Roman Mazur - Stanfy (http://stanfy.com) */ final class ControlledExecutor implements Executor { ArrayList<Runnable> commands = new ArrayList<>(); @Override public void execute(Runnable command) { commands.add(command); } void runAllAndClean() { for (Runnable ...
/** * <code>required .RBLMessage.Condition condition = 2;</code> */ public Builder mergeCondition(protobuf.RblProto.RBLMessage.Condition value) { if (conditionBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && condition_ != protobuf.RblProto.RBLM...
package com.trkj.framework.vo; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import io.swagger.annotations.ApiModelProperty; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; import java.util...
def region_code(self, tidx: TileIdx_xy) -> str: x, y = tidx return self.region_code_format.format(x=x, y=y)
Minimally invasive strabismus surgery for horizontal rectus muscle reoperations Aims: To study if minimally invasive strabismus surgery (MISS) is suitable for rectus muscle reoperations. Methods: The study presents a series of consecutive patients operated on by the same surgeon at Kantonsspital St Gallen, Switzerland...
<gh_stars>0 from __future__ import division import iotbx.cif from libtbx import easy_pickle, smart_open from libtbx.str_utils import show_string import sys, os op = os.path def run(args): for f in args: try: file_object = smart_open.for_reading(file_name=f) miller_arrays = iotbx.cif.reader(file_objec...
#ifndef WSPECTRUM_H #define WSPECTRUM_H #include <QtWidgets> #include "SimpleFft.h" #include "DataTypes.h" #include <QImage> #include <QMutex> // the purpose of this class is to draw the nice spectrum // and waterfall diagram people are used to from other SDR // software packages. #define WATERFALLWIDTH 32768 #define...
After Josh Hadley, a film-maker and journalist, referred to shooting the president on Twitter, he lost a job amid reported Secret Service scrutiny Crackdown on man who trolled Trump went too far, free speech experts say Donald Trump may be this country’s Twitter-troll-in-chief, but those tempted to troll him back, be...
Funimation announced on Wednesday that it will provide English broadcast dubs for the D.Gray-man Hallow , Servamp , Tales of Zestiria the X , Danganronpa 3: The End of Hope's Peak High School: Future Arc , Danganronpa 3: The End of Hope's Peak High School: Despair Arc , The Heroic Legend of Arslan: Dust Storm Dance , L...
package org.apache.batik.svggen.font.table; import java.io.IOException; import java.io.RandomAccessFile; public class Lookup { public static final int IGNORE_BASE_GLYPHS = 2; public static final int IGNORE_BASE_LIGATURES = 4; public static final int IGNORE_BASE_MARKS = 8; public static final int MARK_ATTA...
<filename>Topics/2014_12_21/dini.cpp #include <iostream> using namespace std; int main () { int dni, posadeni[15], kg, pari, n, den, kakvo_pravim, kolko; cin >> n; pari = 0; kolko = 0; for (den=1; den<=n; den=den+1){ cin >> kakvo_pravim; if (kakvo_pravim == 1) { posadeni[kol...
The bucks. They are the not-so-secret key to success at this and other top dog shows held every year. On Monday, when Madison Square Garden in Manhattan hosts the 2010 Westminster Dog Show, the most prestigious event on the thoroughbred canine calendar, money will quietly play a role in determining the winner, just as ...
def start(task_id: int, duration: int = typer.Option(None, '--duration', '-d', help='Duration in minutes')): with Session(engine) as session: try: session.exec(select(Timer).where(Timer.end == None)).one() typer.secho('\nThe Timer ...
Management of incision failure during small incision lenticule extraction because of conjunctivochalasis Purpose We report a case of incision failure during small incision lenticule extraction (SMILE) and its management. Observations The incision could not be made using the femtosecond laser because of a redundant con...
<filename>include/cxxdasp/filter/tsvf/general_tsvf_core_operator.hpp<gh_stars>10-100 // // Copyright (C) 2014 <NAME> // // 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 // // ...
def skipline(self): position = self.tell() prefix = self._fix() self.seek(prefix, 1) suffix = self._fix() if prefix != suffix: raise IOError(_FIX_ERROR) return position, prefix
<gh_stars>10-100 /* * Copyright 2016,2017 falcon Author. All rights reserved. * Use of this source code is governed by a BSD-style * license that can be found in the LICENSE file. */ package service import ( "net" "time" "github.com/golang/glog" "github.com/yubo/falcon/lib/core" "golang.org/x/net/context" "...
/* Initialization for X buffer operations on GPU. */ void nbnxn_gpu_init_x_to_nbat_x(const Nbnxm::GridSet& gridSet, NbnxmGpu* gpu_nbv) { const DeviceStream& localStream = *gpu_nbv->deviceStreams[InteractionLocality::Local]; const bool bDoTime = gpu_nbv->bDoTime; const int maxNumCo...
def CountBouts(self): i = 0 for e in self.entries: i += e.CountBouts() return i
The Cubs have signed left-hander Tsuyoshi Wada to a one-year, Major League contract, the team announced. The deal is worth $4MM, and another $2MM available in incentives, MLB.com’s Carrie Muskat reports (Twitter link). The new contract overrides a $5MM team option the Cubs held on Wada’s services for the 2015 season. W...
/** * Class to generate ingredient objects for recipes and other */ public class Ingredient { /** * ID of the ingredient */ private Integer ingredientID; /** * Name of the ingredient */ private String name; /** * Boolean if the ingredient is vegan */ private bo...
/** * Solution to the challenge #002 of Project Euler series on HackerRank: * https://www.hackerrank.com/contests/projecteuler/challenges/euler002 * Created on: 18-08-2018 * Last Modified: 18-08-2018 * Author: <NAME> (<EMAIL>) * License: MIT */ #include <iostream> #include <cstdint> #include <vector> std::vect...
<filename>jsonquery/numeric_comparison.go package jsonquery import ( "fmt" "strconv" "time" "github.com/araddon/dateparse" ) type numericComparison struct { Arity // TODO: SWAP ORDER comparisonFloat func(rValues []float64, lValue float64) bool comparisonTime func(rValues []time.Time, lvalue time...
import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Observable } from 'rxjs'; import { catchError } from 'rxjs/operators'; import { Flights } from '../model/flights'; @Injectable({ providedIn: 'root' }) export class FlightsService { private flightUrl: string = 'h...
By Tom Mangold Radio 4, Crossing Continents Curtis Flowers, a 39-year-old African-American is to stand trial for an unprecedented sixth time for the murder of four people in Mississippi in 1996. So far, two of his trials have resulted in mistrials and three in convictions that were later overturned. James Bibbs, also...
/* * Write each image (represented as an encoded byte array) to the * HDFS using the hash of the byte array to generate a unique * filename. */ @Override public void map(HipiImageHeader header, ByteImage image, Context context) throws IOException, InterruptedException { if (header == null...
Sometimes online games just...die, but Demon's Souls will live on. Atlus sends word that they've decided to extend online server support for this game into 2012. "While it comes at significant cost to us and although it has been over two years since the game revolutionized the notion of multiplayer and online function...
import { ShapeSet } from '../types/ShapeSet'; import { polygonContains } from 'd3-polygon'; const isAllContained = async (activeSet: ShapeSet, path: number[][][]) => { return activeSet.nodes.reduce((prev, curr) => { return path.reduce( (prev2, curr2) => prev2 && polygonContains(curr2 as [nu...
Two weeks after the much-maligned CNBC Republican debate, where we learned that the 2016 GOP hopefuls opposed raising the minimum wage, would cut taxes to practically nothing and abolish the IRS, would repeal Obamacare, destroy ISIS with their steely gazes, not to mention spending billions more on the military, and, of...
/// TODO: Figure out State engine for Negotiation fn receive_negotiation(&mut self, action: Action, option: TelnetOption) { use self::{State::*, Action::*}; // https://mudcoders.fandom.com/wiki/Telnet_Option_Negotiation_-_Q_Method // @formatter:off #[rustfmt::skip] match (self.op...
2 years ago Hey guys, So, it turns out we've been playing around with the expanded Day 5 universe... And we've got a few bonus tales to tell alongside Jake and company. The first short, Number 27, debuts this Sunday, July 10th, at 4pm and stars a familiar face you might've spotted in Episode 2... Speaking of famil...