content
stringlengths
10
4.9M
/** * Notice: This class is written with the intention to give the reader insight in how these objects * should be created. Thus, this implementation might not be suitable for some situations where * memory footprint or performance is crucial. * <p/> * * @author Andreas Nilsson */ public class GlObjectFactory { ...
""" Contains utility functions Copyright (c) 2014 <NAME> See LICENSE for details """ import numpy def round_solution(soln, decimals=4): """ Runs through a dict() and rounds the values. Arguments: soln: The values in this dict() will be rounded using numpy.round(). ...
class StatsTable: """ The stats table can construct a table of stats about the players, based on many different scoring strategies. """ def __init__(self, match_reports: Collection[MatchReport], scorers: Collection[ScorerStrategy]): self._match_reports = MatchReportCollection(match_reports) ...
// TODO NOKUBIT: header #ifndef BITCOIN_NOKUBIT_TAGBLOCK_H #define BITCOIN_NOKUBIT_TAGBLOCK_H //#include <amount.h> //#include <script/script.h> #include <script/standard.h> //#include <uint256.h> //#include <hash.h> #include <nokubit/asset.h> #include <consensus/validation.h> //#include <primitives/transaction.h> /...
<gh_stars>0 /* * Automatically Generated from Mathematica. * Thu 4 Nov 2021 16:57:06 GMT-04:00 */ #include <stdio.h> #include <stdlib.h> #include <math.h> #include "H_right_hip_pitch_src.h" #ifdef _MSC_VER #define INLINE __forceinline /* use __forceinline (VC++ specific) */ #else #define INLINE static __inline...
# -*- coding: utf-8 -*- # @Author: ZwEin # @Date: 2016-06-30 11:29:35 # @Last Modified by: ZwEin # @Last Modified time: 2016-10-02 15:12:34 from preprocessor import ZEPreprocessor from extractor import ZEExtractor from normalizer import ZENormalizer from unit import * import re PE_DICT_NAME_PRICE = 'price' PE_D...
# -*- coding: utf-8 -*- # Copyright (c) 2020, mvit ise and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document class DepartmentPlacementReport(Document): def get_usn(self,department,company): recruited_stude...
<filename>vendor/gopkg.in/mgo.v2/stats.go // mgo - MongoDB driver for Go // // Copyright (c) 2010-2012 - <NAME> <<EMAIL>> // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // 1. Redistribu...
<gh_stars>1-10 /*============================================================================ The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center (DKFZ) All rights reserved. Use of this source code is governed by a 3-clause BSD license that can be found in the LICENSE file. ==...
Let’s play a game: Imagine you run a baseball team; a good baseball team; one that’s playing well and has aspirations of playing deep into October. Now imagine you have a prospect at a premiere position, tearing up AAA, who’s seen MLB service time in (small) parts of two seasons, with well above average defensive abili...
<filename>sdk/lib/fidl_driver/tests/transport/assert_peer_closed_helper.h // Copyright 2022 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef LIB_FIDL_DRIVER_TESTS_TRANSPORT_ASSERT_PEER_CLOSED_HELPER_H_ #define LIB_...
// Copyright <NAME> 2008. // Use, modification and distribution are subject to the // Boost Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) static const std::array<std::array<typename table_type<T>::type, 2>, 336> expinti_data = {{ ...
An efficient optimal rate control scheme for JPEG2000 image coding Most of the computation and memory usage of the post-compression rate-distortion (PCRD) optimization scheme in JPEG2000 are redundant. In this paper, an efficient rate PCRD scheme based on priority scanning (PS) is proposed to alleviate the problem. By...
Cancer biomarkers: easier said than done. BACKGROUND Biological and technical advances have led to greatly increased research and development of cancer biomarkers. This overview lists some of the challenges and barriers to developing novel effective cancer biomarkers and enablers to facilitate cancer biomarker develop...
<reponame>nymtech/sphinx<gh_stars>10-100 // Copyright 2020 <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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless require...
<reponame>DandelionSprout/Stringlate package io.github.lonamiwebs.stringlate.cli; import io.github.lonamiwebs.stringlate.classes.resources.ResourceStringComparator; import io.github.lonamiwebs.stringlate.settings.AppSettings; public class Main { public static void main(String[] args) { AppSettings appSet...
import { Session } from "@inrupt/solid-client-authn-node"; export interface IAuthSession { session: ISession | Session } export interface ISession { isLoggedIn: boolean, info : { isLoggedIn?: boolean, webId?: string }, fetch : (url: RequestInfo, init?: RequestInit) => Promise<Response>, logout : () => void...
import { Meta, Story } from '@storybook/react'; import Cooldown, { Props } from './index'; export default { title: 'Components/Cooldown', component: Cooldown, argTypes: { progressPercent: { control: { type: 'range', min: 0, max: 100, step: 1, }, }, }, } as M...
<reponame>Virus288/Time-Tracking-API-V2 import * as mongoose from 'mongoose'; export const UserSchema = new mongoose.Schema( { name: { type: String, required: [true, 'Please enter username'], maxLength: [50, 'Max lenght of username is 50 characters'], minLength: [5, 'Min lenght of usernam...
package com.hinkmond.hello; public class Greeting { private final long instanceID; private final String instanceContent; public Greeting(long id, String content) { this.instanceID = id; this.instanceContent = content; } public long getId() { return instanceID; } ...
/** * system 模块的数据权限配置 */ package cn.iocoder.yudao.module.system.framework.datapermission;
/* Fill_edge_structure: * Polygon helper function: initialises an edge structure for the 2d * rasteriser. */ void Fill_edge_structure(T_Polygon_edge *edge, short *i1, short *i2) { short *it; if (i2[1] < i1[1]) { it = i1; i1 = i2; i2 = it; } edge->top = i1[1]; edge->bottom = i2[1] - 1; edg...
package s3crypto import ( "bytes" "testing" "github.com/aws/aws-sdk-go/internal/sdkio" ) func TestBytesReadWriteSeeker_Read(t *testing.T) { b := &bytesReadWriteSeeker{[]byte{1, 2, 3}, 0} expected := []byte{1, 2, 3} buf := make([]byte, 3) n, err := b.Read(buf) if err != nil { t.Errorf("expected no error, b...
/** * Broker management options for Artemis/AMQ7 brokers. */ public class BrokerArtemisManager extends AbstractArtemisManager implements BrokerManager { // TODO update this class if possible public BrokerArtemisManager(String url, Credentials credentials, String brokerName, String host) throws IOException { ...
/** * @author The eFaps Team */ public class SessionPanel extends Panel { /** * Reference to the style sheet. */ public static final EFapsContentReference CSS = new EFapsContentReference(AbstractSortableProvider.class, "BPM.css"); /** * Needed for serialization. ...
// Package libcontainer provides a native Go implementation for creating containers // with namespaces, cgroups, capabilities, and filesystem access controls. // It allows you to manage the lifecycle of the container performing additional operations // after the container is created. package libcontainer import ( "os...
/* Move window win as a result of pointer motion to coordinates rel_x,rel_y. */ void mouse_move(const int16_t rel_x, const int16_t rel_y) { if (current_window == NULL || current_window->ws != current_workspace) return; current_window->x = rel_x; current_window->y = rel_y; if (borders[2] > 0) snap_window(cu...
package init import ( "net" "github.com/johnstarich/gomodtest/dns" ) func init() { net.DefaultResolver = dns.New() }
//********************************************************************************** //Copyright 2015 Applied Research Associates, Inc. //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:/...
/** * Holds a test coordinating conversation with the test clients. This should consist of assigning the test roles, * begining the test, gathering the test reports from the participants, and checking for assertion failures against * the test reports. * * @param testCircuit The test circuit....
/** * {@link org.infinispan.xsite.BackupReceiver} implementation for clustered caches. * * @author Pedro Ruivo * @since 7.1 */ public class ClusteredCacheBackupReceiver extends BaseBackupReceiver { private static final Log log = LogFactory.getLog(ClusteredCacheBackupReceiver.class); private static final boo...
UPDATE (Wednesday, Feb. 15): City attorney: Riverside pot business the first to be forced closed After months of legal battling, Riverside city officials shut down a medical marijuana dispensary that had been operating illegally in the Magnolia Center neighborhood. Riverside police, fire and code enforcement official...
<gh_stars>1-10 use std::str::FromStr; use super::{ParseError, ParseResult}; #[derive(Debug, Copy, Clone, PartialEq)] pub enum Instruction { Nop(isize), Acc(i64), Jmp(isize), } impl Instruction { pub fn parse(s: &str) -> ParseResult<Instruction> { let s = s.trim(); if s.len() == 0 { ...
S = input() n = len(S) # create ptn ptn = [] for bit in range(2**(n-1)): p = [] for i in range(n-1): if ((bit>>i)&1): p.append('+') else: p.append('-') ptn.append(p) # calc for p in ptn: for i, s in enumerate(S): if i == 0: result = int(s) ...
// https://projecteuler.net/problem=12 pub fn problem12() { fn prime_factorizer(mut n: i32, mut p: i32, factors: &mut Vec<i32>) { // println!("{:p}", &n); print memory address to calculate stack frame size // I was going to do this recursively but Rust doesn't handle deep recursion well. I kept runn...
#!/usr/bin/env python # coding: utf-8 """ This script has to be executed after hi_freq_data_to_csv.py and get_interval.py have succesfully run. This script should be called with 1 (or 2) arguments. The 1st mandatory argument is the ABSOLUTE path of the top directory for the flight campaign. /media/sp...
Enhanced low-rank plus group sparse decomposition for speckle reduction in OCT images Suppression of speckle artifact in optical coherence tomography (OCT) is necessary for high quality quantitative assessment of ocular disorders associated with vision loss. However, due to its dual role as a source of noise and as a ...
IMPLEMENTING BI-TEMPORAL PROPERTIES INTO VARIOUS NOSQL DATABASE CATEGORIES NoSQL database systems have emerged and developed at an accelerating rate in the last years. Attractive properties such as scalability and performance, which are needed by many applications today, contributed to their increasing popularity. Tim...
/** * Contains integration tests (interaction with the Model) for {@code SortMenuCommand}. */ public class SortMenuCommandTest { private RestaurantBook ab = new RestaurantBookBuilder().withItem(BEEF_BURGER).withItem(APPLE_JUICE).build(); private Model model = new ModelManager(ab, new UserPrefs()); private...
/** * Manager providing access to fonts installed to the current system. */ public class SystemFontManager { /** * Available system fonts as mapping from the font name to its description. */ private static FontFile[] SYSTEM_FONTS; /** * Get all available fonts in the system. * *...
<filename>td-racing/core/src/com/mygdx/game/objects/Car.java package com.mygdx.game.objects; import com.badlogic.gdx.graphics.g2d.Sprite; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import com.badlogic.gdx.math.MathUtils; import com.badlogic.gdx.math.Vector2; import com.badlogic.gdx.physics.box2d.Body; import co...
<reponame>subinvelleringatt/A-December-of-Algorithms-2019<filename>December-14/haskell_atarv.hs<gh_stars>100-1000 {- December 14 - A Wordplay with Vowels and Consonants -} import Data.Set ( fromList , member ...
Multisensory enhancement of burst activity in an insect auditory neuron. Detecting predators is crucial for survival. In insects, a few sensory interneurons receiving sensory input from a distinct receptive organ extract specific features informing the animal about approaching predators and mediate avoidance behaviors...
// SOLUTION ============================================== // Each person takes turns buying the highest costing flower // available first, increasing the factor by 1 each round. func minCost(COSTS []int, N, K int) (total int) { buys, factor := 1, 1 for _, cost := range COSTS { total += cost * factor buys++ if ...
/** * @return A malloced string to be returned on read and configuration * errors. */ static char * policy_checking_failed (void) { return g_strdup ("Password policy checking failed (internal error)"); }
def undefined_names(sourcecode): import pyflakes.api import pyflakes.reporter class CaptureReporter(pyflakes.reporter.Reporter): def __init__(reporter, warningStream, errorStream): reporter.syntax_errors = [] reporter.messages = [] reporter.unexpected = [] ...
SEATTLE — A proposed pipeline-expansion project in Canada will put the fishing rights and cultural heritage of U.S. tribes at risk, a lawyer representing several Washington state tribes told Canadian energy regulators Friday. Kinder Morgan’s Trans Mountain project would nearly triple pipeline capacity from 300,000 to ...
def handle_inbound_message(message_text, user_id, space_name, email): user = User.objects.get_or_create( space_name=space_name, user_id=user_id, email=email )[0] message = message_text.lower().split() if message[0] == 'start': if (len(message) != 1 or get_active_loop(user...
Book review: The Eternal Criminal Record by James Jacobs forms. The question Occupy! Scenes from Occupied America raises then is: ‘Should we view the Occupy movements as carnival or carnivalesque?’ That question is unresolved, but that it is raised is no small feat. Taylor and Gessen are on the right track. This text,...
def _get_time_series_display_name_to_id_mapping(self) -> Dict[str, str]: time_series = TensorboardTimeSeries.list( tensorboard_run_name=self.resource_name, credentials=self.credentials ) return {ts.display_name: ts.name for ts in time_series}
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main { static int n,k; static int right[]; static int winner[]; static int real_winner[]; static void make_set() { for(int i = 0; i < n; i++) { right[i] = i; winn...
n=int(input()) a=[int(i) for i in input().split()] ans=[] positive_flag=True if 0<=min(a): positive_flag=True elif max(a)<=0: positive_flag=False elif min(a)*(-1) <= max(a): positive_flag=True maxId=a.index(max(a)) for i in range(n): if i!=maxId: ...
// RegisterInterfaces registers the commitment interfaces to protobuf Any. func RegisterInterfaces(registry codectypes.InterfaceRegistry) { registry.RegisterInterface( "ibc.core.commitment.v1.Root", (*exported.Root)(nil), ) registry.RegisterInterface( "ibc.core.commitment.v1.Prefix", (*exported.Prefix)(nil),...
package wb.t20190422; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.InputStream; import java.io.OutputStream; import charlotte.tools.BinTools; import charlotte.tools.FileTools; import charlotte.tools.LimitedInputStream; import charlotte.tools.RTError; import char...
package org.opencb.biodata.tools.variant; import org.junit.Test; import org.opencb.biodata.models.variant.Variant; import org.opencb.biodata.models.variant.VariantSource; import org.opencb.biodata.models.variant.VariantStudy; import java.io.ByteArrayInputStream; import java.io.InputStream; import java.util.ArrayList;...
package response import "gin-vue-admin/model" type SysAPIResponse struct { Api model.SysApi `json:"api"` } type SysAPIListResponse struct { Apis []model.SysApi `json:"apis"` }
// // Created on 18-5-27. // #include "controlInfo.h" using namespace std; bool ControlInfo::get(JSin &res) { lock_guard<mutex> l(info_mutex); if (used) return false; else { res = this->in; used = true; return true; } } void ControlInfo::set(unsigned char *cin) { ...
Childhood socioeconomic position, gender, adult body mass index, and incidence of type 2 diabetes mellitus over 34 years in the Alameda County Study. OBJECTIVES We examined the association between childhood socioeconomic position and incidence of type 2 diabetes and the effects of gender and adult body mass index (BMI...
{-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE GADTs #-} {-# LANGUAGE KindSignatures #-} {-# LANGUAGE LambdaCase #-} {-# LANGUAGE PolyKinds #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE StandaloneD...
package types import ( "helm.sh/helm/v3/pkg/release" v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // Release is a helm release with a form attached type Release struct { *release.Release *PorterRelease Form *FormYAML `json:"form,omitempty"` } type PorterRelease struct { ID ...
Show full PR text KNO UNVEILS BETA TEXTBOOK APP FOR iPAD WITH WORLD'S LARGEST eTEXTBOOK CATALOG App's Unique Features Make Learning More Engaging, Efficient and Social Santa Clara, CA – June 6, 2011 –Today Kno, Inc., an education software company, unveiled a beta version of Textbooks, an innovative learning applicat...
<reponame>spa5k/discord-slash import { SlashCommandBuilder } from '@discordjs/builders'; import { REST } from '@discordjs/rest'; import type { RESTPostAPIApplicationCommandsJSONBody } from 'discord-api-types/rest/v9'; import { Routes } from 'discord-api-types/rest/v9'; import dotenv from 'dotenv'; import { readdirSync ...
def flattenedIndices(indices, numOfVerts): return (np.arange(2*numOfVerts).reshape((numOfVerts, 2))[indices]).flatten()
package bmstu.restfulcrud.service; import java.io.IOException; import java.io.PrintWriter; import java.util.List; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.ws.rs.DELETE; import...
/* In the election process, one sends an election msg to all bigger nodes in the system. * If any of them responds, it will continue the election process. * If none of them respond, then the current node is the new leader. * The return statement is the negation of the bool because if no one has answered, then this n...
/** @jsx createElement */ import { Children, createElement, Element, Fragment, Raw, } from "@b9g/crank/crank.js"; import {renderer} from "@b9g/crank/html.js"; import fs from "fs-extra"; import type {Stats} from "fs"; import * as path from "path"; import frontmatter from "front-matter"; // TODO: lazily import the...
/** * HQLCoreQueryProcessorConfigUi * UI for configuring the HQL implementation of CQL against * the caCORE SDK v3.1 * * @author David Ervin * * @created Apr 23, 2007 3:49:15 PM * @version $Id: HQLCoreQueryProcessorConfigUi.java,v 1.3 2007/04/25 14:29:41 dervin Exp $ */ public class HQLCoreQueryProcesso...
import { Field, ObjectType } from '@nestjs/graphql'; import { UserProfileOutput } from '../../users/dto/user-profile.output'; import { ChatOutput } from './chat.output'; @ObjectType() export class MessagesOutput { @Field() chatId: string; @Field(() => ChatOutput) chat: ChatOutput; @Field() authorId: stri...
/** * The implementation of UUID key generator * based on the algorithm from Floyd Marinescu's EJB Design Patterns. * * @author <a href="mailto:loubyansky@ukr.net">Alex Loubyansky</a> * * @version $Revision: 57209 $ */ public class UUIDKeyGenerator implements KeyGenerator { // Attributes -----------------...
/** Small helper used to register all base paths in the symbol solver. * * @param solver The symbol solver to add the file to * @param file The base file/src dir */ private void addFolderSymbolSolvers(CombinedTypeSolver solver, File file) { if (file != null) { if (file.isDirecto...
<reponame>spontaneously5201314/leetcode_practice<gh_stars>0 package com.base.structure.tree; import java.util.Comparator; /** * 二叉搜索树的Java实现 * * @author 洪飞 * @date 2020/6/8 */ public class BinarySearchTree<E> extends BinaryTree<E> { protected Comparator<E> comparator; public BinarySearchTree() { ...
FLINT TWP, MI -- A member of Herman's Hermits is adding a footnote to one of the Flint area's most sensational -- and disputed -- legends. Barry Whitwam, drummer with the Hermits, told the Western Morning News in a story posted Wednesday, July 29, that Keith Moon, former drummer for The Who, did smash out two front te...
//*In theory* this should also be compatible with tank drive. @TeleOp(name = "WestCoastDrive", group = "TeleOp") public class WestCoastDrive extends LinearOpMode{ /* Declare OpMode members. */ HardwareConfig robot = new HardwareConfig(); //Configs hardware @Override public void runOpMode ...
// Copyright 2021 The gVisor 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 agree...
import java.util.*; public class Solution{ static int bs(int[] arr,int n,int k) { if(k>=arr[n-1]) return n; int strt=0,end=n-1; while(strt<=end) { int mid=strt+((end-strt)/2); if(k==arr[mid]) return mid+1; else if(k<arr[mid]) end=mid-1; else strt=mid+1; } return end+1; } public sta...
package org.opensha.sha.earthquake.faultSysSolution.ruptures.util; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.Collections; import java.util.Comparator; import java.util.List; import org.opensha.sha.earthquake.faultSysSolution.ruptures.FaultSubsectionCluster; imp...
Effect of oral administration of lysozyme or digested bacterial cell walls on immunostimulation in guinea pigs The effect of oral administration of bacteriolytic enzymes and enzymatically digested bacterial cell walls on immunostimulation in guinea pigs was studied. Guinea pigs were given lysozyme or pronase or both o...
<reponame>EasyLian/rhino3dm #include "bindings.h" #pragma once #if defined(ON_PYTHON_COMPILE) void init3dmSettingsBindings(pybind11::module& m); #else void init3dmSettingsBindings(void* m); #endif class BND_ConstructionPlane { ON_3dmConstructionPlane m_cplane; public: BND_ConstructionPlane() = default; BND_Pla...
/// Sets the horizontal text alignment. pub fn alignment(mut self, alignment: Alignment) -> Self { self.style.alignment = alignment; self }
package no.nav.vedtak.felles.integrasjon.ldap; import static org.assertj.core.api.Assertions.assertThat; import java.util.Collections; import java.util.List; import javax.naming.InvalidNameException; import javax.naming.LimitExceededException; import javax.naming.NamingEnumeration; import javax.naming.NamingExceptio...
<filename>src/namespace/network.rs use libc::{ CLONE_NEWNET, c_int, }; use ::error::*; use ::Child; use super::Namespace; /// Networking /// /// The networking namespace encapsulates an entire network stack shared between /// processes. Each physical network device lives in (usually) the global /// networking names...
def handle(self): self.ip = self.client_address[0] self.port = self.client_address[1] self.connection = self.request self.logged_in = False self.active = True while self.active: received_data = "" try: received_string = self.connect...
#include<stdio.h> int main() { int day; int amount,money; int sum,min; int i; scanf("%d",&day); scanf("%d%d",&amount,&money); min = money; sum = amount*min; for(i=2;i<=day;i++) { scanf("%d%d",&amount,&money); if(min>money) min = money; sum += ...
<filename>mojo/apps/js/test/handle_unittest.cc // Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "mojo/bindings/js/handle.h" #include "mojo/bindings/js/handle_close_observer.h" #include "mojo/pub...
<reponame>Acidburn0zzz/peridot<filename>bin/story_runner/story_controller_impl.h // Copyright 2016 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // The Story service is the context in which a story executes. It // start...
/* identify files being referenced in the file content this is so we can harvest the metadata on these files as well */ fn find_paths(text: &str, already_seen: &mut Vec<String>) -> std::io::Result<()> { lazy_static! { static ref RE: Regex = Regex::new(r#"(?mix)(?:^|[\x20"':=!|])((?:/[\w.-]+)+)"#) ...
/** * Argument parser specific to import */ public static class ImportParser extends ExportImportParser { public static final String IMPORT_ALL_FLAG = "-import-all"; public static final String STATUS_FLAG = "-status"; private Boolean importAll = false; private String status =...
Dawid Andres and Hubert Kisinski had an audacious goal: they would bike the length of the Amazon River—from the headwaters in Peru, down the Andes, through hundreds of miles of rainforest, all the way to the Atlantic. And since much of the region lacks paved roads, they would do the vast majority of the trek on homemad...
Boing Boing's Holiday Gift Guide part one: Kids Well, it's coming up to the holidays and I've started to make my list and fill it in. As a starting point, I went through all the books and DVDs and gadgets I'd reviewed on Boing Boing since last November and looked at what had been the best-sellers among BB's readership...
High-temperature oxidation of ceramic matrix composites dispersed with metallic particles Abstract Oxidation behavior of ceramic matrix composites dispersed with metallic particles is discussed to establish materials design for high-temperature applications. Oxidation kinetics of ceramic matrix composites dispersed wi...
<gh_stars>1-10 from mopro.database import ( database, initialize_database, CorsikaSettings, CorsikaRun, Status, ) initialize_database() runs_per_bin = 20 delta_zd = 5 delta_az = 10 corsika_settings = ( CorsikaSettings .select(CorsikaSettings.id) .where(CorsikaSettings.name == 'epos_u...
/// <reference path="../../test.ts/test.ts/assert.ts" /> /// <reference path="../../test.ts/test.ts/report.ts" /> /// <reference path="../respond.ts/respond.ts" /> /// <reference path="../../test.ts/test.ts/test.ts" /> class MyClass { value: any; @property altValue: number; @sender senderNumber(...
NEW DELHI: NIA on Wednesday arrested a core member of Jamaat-ul-Mujahideen Bangladesh (JMB) in connection with October 2, 2014 Burdwan blast . Mufazzil Haque was arrested from Mukimnagar in Murshidabad (West Bengal) on Tuesday night.According to NIA, Haque used to own the Lalgola madarsa in Mukimnagar which was one of ...
The Los Angeles City Council today voted unanimously to approve the the Lucas Museum of Narrative Art, the $1.5 billion project to be built in Exposition Park next to the L.A. Memorial Coliseum and USC, where Lucas went to film school. When the L.A. site was chosen in January after overtures from Chicago and San Franc...
/* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not u...
// NewMarsGrid is a rectangular grid with min point at (0, 0) and max point given. func NewMarsGrid(maxPos image.Point) *MarsGrid { cells := make([][]cell, maxPos.Y) for y := range cells { cells[y] = make([]cell, maxPos.X) for x := range cells[y] { cells[y][x].lifeSigns = rand.Intn(1001) } } return &MarsGr...
/// Converts a given BssDescription into a BssInfo. pub fn convert_bss_description( &self, bss: &BssDescription, wmm_param: Option<ie::WmmParam>, ) -> BssInfo { let mut probe_resp_wsc = None; match bss.find_wsc_ie() { Some(ie) => match wsc::parse_probe_resp_wsc(ie...
/** \brief link DMA channel to i2s device \param[in] i2s i2s handle to operate. \param[in] rx_dma the DMA channel for receive, when it is NULL means to unused dma. \return error code */ csi_error_t csi_i2s_rx_link_dma(csi_i2s_t *i2s, csi_dma_ch_t *rx_dma) { CSI_PARAM_CHK(i2s, CSI_ERROR); ...
As a warm up post, I’m going to talk about an important generalization of something that should be familiar to anyone’s who has made through a semester of calculus: Taylor series! (And if you haven’t seen these guys before, or are perhaps feeling a bit rusty, then by all means please head on over to Khan academy to qui...
import { expect, test } from "vitest"; import { clone } from "../src"; import { getComposeValue } from "./util"; test("clone", () => { expect(clone("Hello World")).toBe("Hello World"); expect(clone(123)).toBe(123); }); test("deep clone", () => { expect(clone(getComposeValue(), true)).toEqual(getComposeValue());...