content
stringlengths
10
4.9M
One of the most religious states in America was not pleased with a billboard’s unfavorable message about God. Mississippi is known as one of the most religious states in the country and a signboard that was put up there by the FFRF (Freedom From Religion Foundation) was pulled down after heavy community backlash. The ...
<filename>SDFConv/code/utils/vis/unet_vis.py """Implement this function across different project. ----ZY.2020.Oct. """ import os from easydict import EasyDict from torchvision.utils import save_image from logging import Logger from subprocess import call def create_save_folders(root_folder, folder_list: list): ""...
#ifndef TRANSFORM_H #define TRANSFORM_H // lib includes #include <glm/glm.hpp> #include <glm/gtc/quaternion.hpp> namespace mirage { class Transform { public: Transform( glm::vec3 position = glm::vec3(), glm::quat orientation = glm::quat(), glm::vec3 sscale = glm::vec3(1.0f, 1.0f, 1.0f) ); Transform...
/** * Model tests for UpdateInstancesByNameStateRequest */ public class UpdateInstancesByNameStateRequestTest { private final UpdateInstancesByNameStateRequest model = new UpdateInstancesByNameStateRequest(); /** * Model tests for UpdateInstancesByNameStateRequest */ @Test public void testU...
<reponame>zkrami/SuperLibrary #include <string.h> #include <ctype.h> #include <stdio.h> typedef struct Map { char *key; int value; } map; /** * Counts the number of vowels and consonants in a given string * * @param char *string * @return map * */ map * countVowelsAndConsonants(char *string) { int vo...
Elucidation of the Transmission Patterns of an Insect-Borne Bacterium ABSTRACT Quantitative data on modes of transmission are a crucial element in understanding the ecology of microorganisms associated with animals. We investigated the transmission patterns of a γ-proteobacterium informally known as pea aphid Bemisia-...
// SubsetSumBrute returns the subset by performing a brute-force search. // The first possible result is return if found, otherwise the search is exhaustive. // The runtime is exponential. func SubsetSumBrute(ints []int, k int) []int { for i, v := range ints { if v == k { return []int{v} } else if k > v { if...
<filename>GD_HW/hw6/PhysicalEngine.h #pragma once #include "CollisionDetector.h" #include "CollisionResolver.h" class PhysicalEngine { public: PhysicalEngine(bool resolveCollision) : resolveCollision(resolveCollision), RigidBodies(nullptr), isChangedRigidBodies(false) {} void AddRigidBody(Bo...
/* * Copyright 2010 - 2013 <NAME>, <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 required by applicable law or agre...
class GsmHttpResponse(object): def __init__(self, raw_response): self.raw_response = raw_response self.return_code = -1 self.response_body = '' self.parse(self.raw_response) def parse(self, raw_response): split_string = raw_response.split('\r\n\r\nSEND OK\r\n') ...
Antifungal activity of iridoid glycosides from the heartwood of Gmelina arborea Gmelina arborea Linn. (Verbenaceae) is a deciduous broad-leaved tree widely distributed from Southeast Asia to South Asia (Greaves 1981) and all parts of this plant are used in medicine to cure various ailments (Rao et al. 1967; Tiwari 199...
def insert_marker_lines(self, lines): progenitor = lines[0] line = qc.QLineF(progenitor[1], progenitor[2], progenitor[3], progenitor[4]) position = qc.QPointF(progenitor[5], progenitor[6]) tmp_line = self.scene().addLine(line, self._pens.get_display_pen()) tmp_line.setData(ItemDa...
#include "oiserver.h" #include <QDebug> OIServer::OIServer(QObject *parent) : QObject(parent), m_quality(MbData::Quality::Good), m_works(false), m_clientAddr(DEFAULT_CLIENT_ADDRESS), m_requestDelay(DEFAULT_REQUESTS_INTERVAL) { qDebug() << "IOServer constructor"; //--- IODriver ---- m_ptrL...
/** * Handles a path in a tree from the root node to the position inside this tree. * The position of the root node is dropped in the list, because it would always be zero. * The path of the root node as length 0. * <br> * Example: * <pre> * + Root Path: [] * | * +-+ Node Path: [0]...
<reponame>AISSProjects22/extjwnl<filename>extjwnl/src/test/java/net/sf/extjwnl/dictionary/TestEditMapBackedDictionary.java package net.sf.extjwnl.dictionary; import java.io.InputStream; /** * Tests MapBackedDictionary editing. * * @author <a href="http://autayeu.com/"><NAME></a> */ public class TestEditMapBackedD...
#include<stdio.h> int main() { int i,n; long long FBsum = 0,sum = 0; scanf("%d",&n); for(i = 1;i <= n;i++) { sum += i; if(i % 3 == 0 || i % 5 == 0) { FBsum+=i; } } printf("%lld\n",sum-FBsum); }
<gh_stars>100-1000 import * as React from "react"; import { SetStateAction, useState } from "react"; import { CalendarSource } from "../types"; type SourceWith<T extends Partial<CalendarSource>, K> = T extends K ? T : never; interface BasicProps<T extends Partial<CalendarSource>> { source: T; } function DirectoryS...
import React, { useState, useEffect } from "react"; import { Link } from "react-router-dom"; import { StyledNavBar, StyledNavBarContainer, StyledLogo, NavTitleContainer, StyledCartSVGContainer, StyledCartSVG, } from "./style"; interface NavBarProps { fixed?: boolean; } const NavBar: React.FC<NavBarProps...
/** * @return {@code true} if the widget should be created by default. Otherwise, the user must enable it explicitly * via status bar context menu or settings. */ @Override public boolean isEnabledByDefault() { return true; }
<filename>mybatis-generator-extention-core/src/main/java/io/github/elricboa/util/MethodUtil.java package io.github.elricboa.util; import io.github.elricboa.constant.GeneratorConstant; import io.github.elricboa.enums.MethodEnum; import org.apache.commons.collections.CollectionUtils; import org.apache.commons.lang.Strin...
def Move_Stoped(self, pos): self.status_sig.emit(ThreadCommand("move_done", [pos]))
import { Component, h, Prop, Event, EventEmitter, State, Listen, Element } from '@stencil/core' import '@a11y/focus-trap' import { ButtonVariants } from '../../shared/types' /** * @slot - Triggering control goes here */ @Component({ tag: 'bk-pop-confirm', scoped: true, styleUrl: './index.scss', }) expor...
// Invokes the funcs in order, returning the first resulting non-nil handler. func (self Coalesce) Han(req *http.Request) http.Handler { for _, fun := range self { if fun != nil { val := fun(req) if val != nil { return val } } } return nil }
import { Box, Paper, Table, TableBody, TableCell, TableContainer, TableHead, TableRow, } from '@material-ui/core'; import React from 'react'; import { IDespesas } from '../../Interfaces/IDespesas'; import { round } from '../../services/math'; export default function Despesas({ despesas }: any): React.R...
import collections import sys import math X=int(input()) if X<100: print("0") sys.exit() amari=math.floor(X/100) kake=amari*5 if amari*100<=X<=amari*100+kake: print("1") else: print("0")
<reponame>jsdw/git-backup<filename>src/services/gitlab.rs use regex::Regex; use lazy_static::lazy_static; use crate::error::Error; use super::service::{ Service, Repository }; pub struct GitLab { /// Which user are we backing up repositories for? owner: String, /// An access token token: String } impl...
Penetrating cardiac injury by wire thrown from a lawn mower. The first successful surgically treated case of penetrating heart injury, specifically the right ventricle, caused by a fragment of coat hanger wire thrown by a lawn mower, is reported. Though traumatic heart injuries are rare, this case represents accurate ...
<filename>web/src/main/java/net/chrisrichardson/monolithic/customersandorders/web/orderhistory/CustomerView.java package net.chrisrichardson.monolithic.customersandorders.web.orderhistory; import net.chrisrichardson.monolithic.customersandorders.domain.money.Money; import java.util.HashMap; import java.util.List; imp...
<reponame>ruoranluomu/AliOS-Things /* * Copyright (C) 2015-2019 Alibaba Group Holding Limited */ #ifndef BE_MQTT_INSTANCE_H #define BE_MQTT_INSTANCE_H enum { MQTT_INSTANCE_EVENT_DISCONNECTED = 0, MQTT_INSTANCE_EVENT_CONNECTED = 1, }; /** * @brief Get the mqtt singleton instance. * * @param None * ...
<gh_stars>0 """$ fio collect""" from functools import partial import json import logging import click import cligj from fiona.fio import helpers from fiona.fio import options from fiona.transform import transform_geom @click.command(short_help="Collect a sequence of features.") @cligj.precision_opt @cligj.indent_...
/* * Mapping of DWARF debug register numbers into register names. * * Copyright (C) 2010 Matt Fleming <matt@console-pimps.org> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either ver...
Physical exercise and endothelial dysfunction. The role of the endothelium was considered mainly as a selective barrier for the diffusion of macromolecules from the lumen of blood vessels to the interstitial space. During the last 20 years, many other functions have been defined for the endothelium, such as the regula...
/** * Creates the meta-model objects for the package. This method is * guarded to have no affect on any invocation but its first. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void createPackageContents() { if (isCreated) return; isCreated = true; stateMachineEClass = creat...
// Returns True if the markup is Markdown. func isMarkdown(fn string) bool { switch filepath.Ext(fn) { case ".md", ".markdown": return true } return false }
<filename>HR.py # -*- coding: utf-8 -*- """ Created on Tue Aug 14 21:19:20 2018 @author: <NAME> """ """I am using scikit-learn library to find DECISION RULES from the decision trees. So we can make decisions""" import pandas as pd from sklearn.tree import DecisionTreeClassifier from sklearn.model_selection import tra...
async def info(self) -> dict: if not hasattr(Connection.info, "cb"): self.logger.debug("vcx_connection_info: Creating callback") Connection.info.cb = create_cb(CFUNCTYPE(None, c_uint32, c_uint32, c_char_p)) c_connection_handle = c_uint32(self.handle) details = await do_ca...
def repeatexp(n, d, grid_size, reps, tho_scale=0.1, is_classification=True, no_signal=True): datasetList = ['Train', 'Holdout', 'Test'] colList = ['perm', 'performance', 'dataset'] df_list_std = [] df_list_tho = [] for perm in tqdm(range(reps)): vals_std, vals_tho = fitModels_paramTuning(n, ...
/** * Renders a JFreeChart chart, ready for display via a servlet-rendered web * page. The chart is rendered into a PNG image of the given size. * * @param chart the chart to render * @param width width of the image to create, in pixels * @param height height of the image to creat...
/** * Controller for REST operations for the /processes resource * @author JKRANES */ @Controller @RequestMapping("/processes") public class ProcessesController extends CowServerController { @Autowired ProcessService procService; @Autowired ProcessInstanceService processInstanceService; ...
/** * Exception thrown when an HTML document contains WAT tags with invalid arguments. * * @author Francois-Xavier Bonnet */ public class AggregationSyntaxException extends RuntimeException { private static final long serialVersionUID = 1L; /** * @param string * Error message */ ...
Hydrogeologic and Paleo-Geographic Characteristics of Riverside Alluvium at an Artificial Recharge Site in Korea This study showed the hydrogeological characteristics of an alluvial aquifer that is composed of sand, silt, and clay layers in a small domain. It can be classified into a lower high-salinity layer and an u...
/* * Tests use current thread in payload and reply has the thread that actually * performed the send() on gatewayThreadChannel. */ @Test public void testExecs() throws Exception { assertThat(TestUtils.getPropertyValue(execGatewayFB, "asyncExecutor")).isSameAs(exec); assertThat(TestUtils.getPropertyValue(noEx...
#include<bits/stdc++.h> using namespace std; const int inf = 1e9 + 10; const int M = 1000000007; #define enter(x) for(auto & it : x) cin>>it; #define print(x) for(auto & it : x) cout<<it<<' '; cout<<endl; void solve() { int n;cin>>n; string s;cin>>s; if( n < 4){ cout<<"No"<<endl; ...
. Occipital condyle fracture(OCF) is rarely seen and can be missed during medical evaluation due to the variety of clinical presentations and the difficulty to be visualized radiographically. This fracture can be associated with cranial nerves injuries (31%), being the hipoglossal nerve the most frequently involved (6...
from pyastar2d.astar_wrapper import astar_path, Heuristic __all__ = ["astar_path", "Heuristic"]
// AddTerminfo can be called to register a new Term entry. func AddTerminfo(t *Term) { mu.Lock() infos[t.Name] = t for _, x := range t.Aliases { infos[x] = t } mu.Unlock() }
<gh_stars>1-10 package JSHOP2; import java.util.Vector; /** Each method at compile time is represented as an instance of this class. * * @author <NAME> * @author <a href="http://www.cs.umd.edu/~okhtay">http://www.cs.umd.edu/~okhtay</a> * @version 1.0.3 */ public class InternalMethod extends InternalElement { ...
A new rooftop solar system is installed every three minutes in the U.S., up from one every 80 minutes just eight short years ago. If this pace continues to accelerate or even just holds steady, it will not be long before solar panels become visible, if not ubiquitous, in many neighborhoods nationwide. That prospect is...
// PickUtxos Picks Utxos for spending. Tell it how much money you want. // It returns a tx-sortable utxoslice, and the overshoot amount. Also errors. // if "ow" is true, only gives witness utxos (for channel funding) // The overshoot amount is *after* fees, so can be used directly for a // change output. func (w *Wal...
/** * Creates a new UI layout. */ @Command(scope = "onos", name = "layout-add", description = "Creates a new UI layout") public class LayoutAddCommand extends AbstractShellCommand { private static final String FMT = "id=%s, name=%s, type=%s"; private static final String FMT_MASTER = " master=%s"; ...
import sys input = sys.stdin.readline import bisect m,n,k,t = map(int,input().split()) ag = list(map(int,input().split())) ag.sort() lrd = [list(map(int,input().split())) for i in range(k)] lrd.sort() lf = 0 rg = m+1 while lf+1<rg: x = (lf+rg)//2 agl = ag[m-x] lr = [] for l,r,d in lrd: if d >...
/** * Edits the details of an existing item in the sales list. */ public class EditCommand extends Command { public static final String COMMAND_WORD = "edit"; private final int index; private final int quantity; private final Logger logger = LogsCenter.getLogger(getClass()); /** * Creates a...
<filename>cloud-storage-common/src/main/java/com/tal/file/transform/common/storage/local/LocalZone.java package com.tal.file.transform.common.storage.local; import com.tal.file.transform.common.storage.StorageConfig; import com.tal.file.transform.common.storage.StorageFile; import com.tal.file.transform.common.sto...
def from_device(self, other: "Device") -> None: if other is self: return if not isinstance(other, type(self)): raise TypeError("other") self.reset_addresses() self.address = other.address self.address_aliases = other.address_aliases self._old_add...
/** Import an ECC key from a binary packet, using user supplied domain params rather than one of the NIST ones @param in The packet to import @param inlen The length of the packet @param key [out] The destination of the import @param dp pointer to user supplied params; must be the same as the ...
/** * Created by jobob on 17/5/16. */ @Slf4j public class AppTest { public static void main(String[] args) { for (int i=0;i<10000000;i++){ new Thread(()->{ System.out.println(System.currentTimeMillis()); }).start(); } } @Before public void t...
/** * Description: StaticAccessNonStatic * Author: silence * Update: silence(2017-04-20 18:41) */ public class StaticAccessNonStatic { static public void info() { System.out.println("简单的info方法"); } public static void main(String[] args) { //因为main方法是静态方法,而info是非静态方法, //调用...
<reponame>comparae/comparae-ui<filename>src/Button/Button.test.tsx import * as React from 'react'; import { renderWithTheme } from '../utils/tests'; import { Button } from './Button'; describe('<Button />', () => { it('renders with Light theme', () => { const { container } = renderWithTheme( <Button color...
package page70.q6955; import java.util.Locale; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); double max = Double.MIN_VALUE, pi = 3.14159; in.nextLine(); while(n-- > 0) { String s[] = in.nex...
<reponame>Shiba-Kar/DefinitelyTyped<gh_stars>1-10 import FirebaseAdmin from 'lesgo/services/FirebaseAdminService'; const firebase = new FirebaseAdmin(); // $ExpectType FirebaseAdmin // $ExpectType void firebase.connect({ serviceAccount: require('path/to/serviceAccountKey.json'), projectName: 'testproject', })...
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from openapi_server.com.h21lab.TS29510_Nnrf_NFDiscovery.handler.base_model_ import Model from openapi_server.com.h21lab.TS29510_Nnrf_NFDiscovery.handler.amf_info import...
__author__ = "<NAME>, <NAME>, <NAME>" __copyright__ = "Copyright 2012-2013, The SAGA Project" __license__ = "MIT" ''' SLURM job adaptor implementation ''' import re import os import math import time import datetime import tempfile import radical.utils as ru from ...job import constants as c from ...
/** * Replaces the old fisheye figure with a new one. * * @param oldFigure * @param newFigure */ boolean replaceFishFigure(IFigure oldFigure, IFigure newFigure) { if (this.fishEyeLayer.getChildren().contains(oldFigure)) { Rectangle bounds = oldFigure.getBounds(); newFigure.setBounds(bounds); this....
<filename>src/lib/config.rs use std::collections::HashMap; use std::fs; use std::path::PathBuf; use dirs; use failure::Fail; use serde::Deserialize; use serde::Serialize; use crate::types::ResultDynError; #[derive(Debug, Fail)] pub enum ProjectConfigError { #[fail( display = "Project config {} does not exist, ...
/* $OpenBSD: cl.c,v 1.59 2010/06/28 14:13:29 deraadt Exp $ */ /* * Copyright (c) 1995 <NAME>. 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. Redistributions of source code must retain...
It's been a week chock-full of goodies to capture in GIF form (and there was occasionally some hockey in there, as well) - but before we get to this week's set, it's time to unveil the one that ran away with the competition seven days ago. Ladies and gentlemen, we give you... Joel Ward, hat thief: "Hey, I was wearin' ...
<filename>src/data-model/value.ts import { DateTime, Duration } from "luxon"; import { DEFAULT_QUERY_SETTINGS, QuerySettings } from "settings"; import { getFileTitle, normalizeHeaderForLink, renderMinimalDuration } from "util/normalize"; /** Shorthand for a mapping from keys to values. */ export type DataObject = { [k...
import * as React from 'react'; import { DjeetaState } from '../../../states/djeetaState'; import { CurrentAbilityActions } from '../../../containers/Djeeta/currentAbilityContainer'; import { createStyles, Theme, WithStyles } from '@material-ui/core/styles'; import Paper from '@material-ui/core/Paper'; import ...
<reponame>vpnachev/kubernikus<filename>pkg/controller/metrics/routegc.go<gh_stars>100-1000 package metrics import "github.com/prometheus/client_golang/prometheus" func init() { prometheus.MustRegister( OrphanedRoutesTotal, RouteGCFailedOperationsTotal, ) OrphanedRoutesTotal.With(prometheus.Labels{}).Add(0) R...
def holdout_grid_search(clf, X_train_hp, y_train_hp, X_val_hp, y_val_hp, hyperparam, verbose=False): best_estimator = None best_hyperparam = {} best_score = 0.0 hyper_param_l = list(hyperparam.values()) combination_l_of_t = list(itertools.product(*hyper_param_l)) combination_l_of_d = [] for ...
Some dog owners living in a Burnaby, B.C., apartment building are raising a stink after they were told to provide a stool sample from their pets or face eviction. The landlord of the building in the 7400 block of 14th Avenue issued the letters to about 30 dog owners early Sunday morning, after somebody's pet left an a...
#!/usr/bin/env python # Copyright (c) 2009, David Buxton <david@gasmark6.com> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above cop...
<filename>imdb_preprocess.py import argparse import glob import math import os import pickle import sys import cv2 import face_alignment import numpy as np import torch from transform3d import euler face_model_path = ( '/opt/intel/openvino/deployment_tools/intel_models' '/face-detection-adas-0001/FP32/face-...
def otoshidama(N, Y): y = Y/1000 for a in range(int(y/10)+1, -1, -1): for b in range(N - a, -1, -1): c = N - a - b if 10*a + 5*b + c == y: return a, b, c return -1, -1, -1 if __name__ == '__main__': N, Y = map(int,in...
<filename>LexicalAnalyzer.cpp /*********************************************************** * CPSC323 - RAT32S - Lexical Analyzer Component * --------------------------------------------------------- * California State University, Fullerton (CSUF) * CPSC 323 - Spring 2017 * Prof <NAME> * Assignment #1 - Lexical Analyzer...
use super::Error; use derive_new::new; pub type Result<T> = std::result::Result<T, Error>; /// The result of the entire parse process. #[derive(PartialEq, PartialOrd, Debug, Clone, new)] pub struct EntireResult<T> { pub final_result: Result<T>, pub inner_errors: Vec<Error>, } impl<T> EntireResult<T> { pu...
// newDateNotEqualsFunc - returns new DateNotEquals function. func newDateGreaterThanEqualsFunc(key Key, values ValueSet) (Function, error) { v, err := valueToTime(dateNotEquals, values) if err != nil { return nil, err } return NewDateGreaterThanEqualsFunc(key, v) }
What a difference six months makes. The political landscape is barely recognisable from the day Theresa May stood in Downing Street to announce a snap general election. The pundits expected a Tory landslide. The election would strengthen the government’s hand in the Brexit negotiations and stabilise the country, they a...
Myoglobinuric renal failure after generalised tonic-clonic seizures. A case report. A 47-year-old man developed progressive renal impairment after a series of seven generalised tonic-clonic seizures. The patient did not become oliguric and because recovery of renal function was rapid, dialysis was not required. The di...
/** * Contains integration tests (interaction with the Model) and unit tests for SortJobCommand. */ public class SortPersonCommandTest { private Model model = new ModelManager(getTypicalPersonAddressBook(), getTypicalJobAddressBook(), new UserPrefs()); private Model expectedModel = new ModelManager(getTypical...
import math n = list(map(int, input().split())) lista = [] for i in range(n[0]): a,m = list(map(str, input().split())) m = int(m) lista.append([a,m,i+1]) list.sort(lista, key = lambda x:x[1], reverse=True) list.sort(lista, key = lambda x:x[0]) for i in range(n[0]): print(lista[i][2])
C4-dicarboxylate metabolons: Interaction of C4-dicarboxylate transporters of Escherichia coli with cytosolic enzymes and regulators Metabolons represent the structural organization of proteins for metabolic or regulatory pathways. Here the interaction of enzymes fumarase FumB and aspartase AspA with the C4-DC transpor...
// to run this enable redis using docker. run redis-up.sh in home dir package main import ( "context" "fmt" "io/ioutil" "log" "net/http" "time" "github.com/go-redis/redis/v8" ) func redisConnect(name string) string { var ctx = context.Background() rdb := redis.NewClient(&redis.Options{ Addr: "localho...
#include <iostream> using namespace std; #include <string> string str; int n,w=0,op; main() { cin>>str; for(int i=0;i<str.size();i++) { if(str[i]>=97) {w++;} } op=str.size()%2+str.size()/2; if(w>= op ) { for(int i=0;i<str.size();i++) if(str[i]<97)cout<<(char)(str[i]+...
//Add transaction for an existing customer in a branch public boolean addBranchCustomerTransaction(String branchName, String customerName, double amount){ Branch existingBranch = findBranch(branchName); if (existingBranch != null){ return existingBranch.addCustomerTransaction(customerName,am...
// Call for any operation needing GLSL float16 data-type support. void TParseVersions::float16Check(const TSourceLoc& loc, const char* op, bool builtIn) { if (!builtIn) { const char* const extensions[] = { E_GL_AMD_gpu_shader_half_float, ...
#pragma once #include "VPShader.h" #include "ConstantBufferHolder.h" namespace Storm { // This class would be interfaced with Grid.hlsl class GridShader : public Storm::VPShaderBase, private Storm::ConstantBufferHolder { public: GridShader(const ComPtr<ID3D11Device> &device, unsigned int indexCount); pub...
/** * Public API Surface of ng-polymorpheus */ export * from './classes/component'; export * from './directives/template'; export * from './directives/outlet'; export * from './tokens/context'; export * from './types/content'; export * from './types/handler'; export * from './types/primitive'; export * from './polymo...
Amid all the dreadful economic news last week—the European meltdown, the insane trading glitch, the oil spill—it was easy to forget just how good the jobs report was. The report is one piece of data, and subject to revision, and you can’t make too much of it. But jobs rose by 290,000, with 231,000 of those gained in th...
/// Return the starting country in single player playthroughs. If playing in multiplayer or if /// the starting country can't be determined then none is returned. pub fn starting_country(&self, histories: &[PlayerHistory]) -> Option<CountryTag> { match histories { [player] => Some(player.history.ini...
Republican presidential nominee Donald Trump gives a thumbs-up as he arrives at a barbecue restaurant in Greensboro, North Carolina, U.S. September 20, 2016. REUTERS/Jonathan Ernst (Reuters) - Republican Donald Trump may have gotten it wrong when he said the moderator of the first U.S. presidential debate next week be...
<gh_stars>1000+ import { useMemo } from './use-memo'; /** * @function * @template T * @param {T} initialValue * @return {{ current: T }} Ref */ const useRef = <T>(initialValue: T) => useMemo(() => ({ current: initialValue }), []); export { useRef }
import { Inject, Injectable } from '@nestjs/common'; import { Repository } from 'typeorm'; import { CreateTreinoDto } from './dto/create-treino.dto'; import { UpdateTreinoDto } from './dto/update-treino.dto'; import { Treino } from './entities/treino.entity'; @Injectable() export class TreinosService { constructor( ...
Versican V0 and V1 Guide Migratory Neural Crest Cells* We previously showed the selective expression of the chondroitin sulfate proteoglycans versican V0 and V1 in barrier tissues that impede the migration of neural crest cells during embryonic trunk development (Landolt, R. M., Vaughan, L., Winterhalter, K. H., and Z...
/** * Find user by username and password, used for login. * @param username String * @param password String * @return UserModel the instance of UserModel if found */ public UserModel findWsUser(String username, String password) { if (Strings.isNullOrEmpty(username) || Strings.isNullOrEmpty(password))...
<reponame>SparseDataTree/Priority-Operation-Processing package com.comcast.pop.endpoint.agenda.factory; import com.comcast.pop.api.Agenda; import com.comcast.pop.api.AgendaTemplate; public interface AgendaFactory { Agenda createAgendaFromObject(AgendaTemplate agendaTemplate, Object payload, String progressId, Str...
import java.io.PrintWriter; import java.util.Scanner; /** * @author pvasilyev * @since 17 Jul 2014 */ public class C { public static void main(String[] args) { final Scanner reader = new Scanner(System.in); final PrintWriter writer = new PrintWriter(System.out); solve(re...
/** * Run a Javadoc task. * * @param args the command line arguments to pass */ protected void javadoc(String...args) { int result; PrintStream old = System.out; try { println("Javadoc"); if (quiet) { System.setOut(filter(System.out, ne...
// Sum implements hash.Hash. func (h *Hasher) Sum(b []byte) (sum []byte) { if total := len(b) + h.Size(); cap(b) >= total { sum = b[:total] } else { sum = make([]byte, total) copy(sum, b) } if dst := sum[len(b):]; len(dst) <= 64 { var out [64]byte wordsToBytes(compressNode(h.rootNode()), &out) copy(dst,...
package me // GENERATED SDK for me API // Continents type ContinentEnum string var ( ContinentEnumSOUTH_AMERICA ContinentEnum = "south-america" ContinentEnumOCEANIA ContinentEnum = "oceania" ContinentEnumNORTH_AMERICA ContinentEnum = "north-america" ContinentEnumEUROPE ContinentEnum = "europe" Cont...