content
stringlengths
10
4.9M
Since revelations Democratic presidential candidate Hillary Clinton used an unsecure private email server to conduct all of her government business during her time as Secretary of State came to light earlier this year, we've heard every excuse imaginable for the practice. As we've learned in recent weeks that top secre...
package main import ( "fmt" "sync" "time" ) func getRemoteData(ms time.Duration, wg *sync.WaitGroup) { defer wg.Done() duration := ms * time.Millisecond time.Sleep(duration) fmt.Println("retrieving data in : ", duration) } func main() { var wg sync.WaitGroup wg.Add(4) go getRemoteData(1000, &wg) go getR...
#![deny(warnings)] extern crate cotli_helper; pub mod support; macro_rules! assert_formation_dps { ($expected:expr, $formation:expr) => { assert_dps_eq!($expected, $formation.total_dps(&Default::default())); } } macro_rules! assert_dps_eq { ($expected:expr, $dps:expr) => { assert_eq!($ex...
// https://leetcode.com/problems/shuffle-an-array/ #include <vector> #include <cstdlib> using namespace std; class Solution { public: Solution(vector<int> nums) : nums_(nums) , result_(nums) { } vector<int> reset() { return nums_; } vector<int> shuffle() { for (int i = result_.size()-1; i >...
/** * * * @return speech-part pred for verb agreeing with SUBJECT-PHRASE and INTERNAL-CONSTRAINTS */ @LispMethod(comment = "@return speech-part pred for verb agreeing with SUBJECT-PHRASE\r\nand INTERNAL-CONSTRAINTS") public static SubLObject verb_pred_for_subject(final SubLObject subject_phr...
<reponame>samtake/ecology package mysql // 分类 type Category struct { Id int `gorm:"not null;primary_key;AUTO_INCREMENT"json:"id"` //自增主键 Pid int `gorm:"not null;"json:"pid"` //分类id Title string `gorm:"not null;"json:"title"` //分类名称 Intro string `gorm:"...
////////////////////////////////////////////////////////////////////////////////////// // // (C) Daniel Strano and the Qrack contributors 2017-2021. All rights reserved. // // This is a multithreaded, universal quantum register simulation, allowing // (nonphysical) register cloning and direct measurement of probability...
//! This allows multiple apps to write their own flash region. //! //! All write requests from userland are checked to ensure that they are only //! trying to write their own flash space, and not the TBF header either. //! //! This driver can handle non page aligned writes. //! //! Userland apps should allocate buffers...
<filename>hw/mcu/microchip/samg55/samg55/include/instance/twi4.h /** * \file * * \brief Instance description for TWI4 * * Copyright (c) 2017 Atmel Corporation, a wholly owned subsidiary of Microchip Technology Inc. * * \license_start * * \page License * * Licensed under the Apache License, Version 2.0 (the "...
// IO data for a device by family and name pub fn device_iodb(&mut self, family: &str, device: &str) -> &DeviceIOData { let key = (family.to_string(), device.to_string()); if !self.iodbs.contains_key(&key) { let io_json_buf = self.read_file(&format!("{}/{}/iodb.json", family, device)); ...
/* ### * IP: GHIDRA * * 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 writin...
/** * Set: Jabba's Palace * Type: Interrupt * Subtype: Lost * Title: Jabba's Palace Sabacc */ public class Card6_156 extends AbstractLostInterrupt { public Card6_156() { super(Side.DARK, 3, "Jabba's Palace Sabacc", Uniqueness.UNIQUE); setLore("Jabba has won the service of many of his guards and...
import { Card, CardActions, CardContent, CardMedia, IconButton, makeStyles, Theme, Typography } from '@material-ui/core' import Icon from '@mdi/react' import { mdiHeart, mdiHeartOutline } from '@mdi/js' import { Restaurant } from 'src/types' import { useLoggedUserContext } from 'src/pages/LoggedUserContext' type Dish...
def from_json(klass, json_str): result = klass(dcm_meta_ecode, json_str) result.check_valid() return result
<reponame>igortomic99/chatyServer<filename>src/generated/typegraphql-prisma/resolvers/crud/Conversation/args/index.ts<gh_stars>1-10 export { AggregateConversationArgs } from "./AggregateConversationArgs"; export { CreateConversationArgs } from "./CreateConversationArgs"; export { CreateManyConversationArgs } from "./Cr...
<reponame>yuqing521/magic-portal /** * Copyright (c) 2020 Bytedance Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ // 将post-html的对象格式化为magic对象 import posthtml from 'posthtml'; import { Matcher, StringMatcher, Node } from 'postht...
Predicting Interfacial Strengthening Behaviour of Particulate-Reinforced MMC — A Micro-mechanistic Approach The fracture properties of particulate-reinforced metal matrix composites (MMCs) are influenced by several factors, such as particle size, inter-particle spacing and volume fraction of the reinforcement. In addi...
def match_equals(regex, string, values): if string is None: return False matched = regex.findall(string) if not matched: return False if isinstance(values, compat.basestring) and not isinstance(values, Sequence): values = (values,) return matched[0] in values
// dup is for testing only. It is a recusive copy. func (m *Map) dup() *Map { var nm = &Map{ numEnts: m.numEnts, root: m.root.dup(), } return nm }
/** * Ensures that we can not element of the wrong type in a sublist. */ @Test @DependsOnMethod("testAddWrongType") public void testAddWrongTypeToSublist() { final CheckedArrayList<String> list = new CheckedArrayList<>(String.class); assertTrue(list.add("One")); assertTrue(list...
<reponame>DerHumm3l/oop-cpp #include <iostream> #include <string> using namespace std; int getGreatestCommonDivisor(int a, int b) { if (b == 0) { return a; } return getGreatestCommonDivisor(b, a % b); } void reduce(int numerator, int denominator) { int gcd = getGreatestCommonDivisor(numer...
def check_neighbor_connectivity(gpm,warn=False): check.gpm_sanity(gpm) genotypes = np.array(gpm.data.index,dtype=int) try: include_mask = gpm.neighbors.loc[:,"include"] == True except KeyError: include_mask = np.ones(len(gpm.neighbors),dtype=bool) non_self_mask = gpm.neighbors.loc[:,...
<reponame>ggvl/lvgl<filename>src/extra/widgets/spinbox/lv_spinbox.c /** * @file lv_spinbox.c * */ /********************* * INCLUDES *********************/ #include "lv_spinbox.h" #if LV_USE_SPINBOX #include "../../../misc/lv_assert.h" /********************* * DEFINES *********************/ #define M...
import { getStyle, hexToRgba } from '@coreui/coreui/dist/js/coreui-utilities'; import { CustomTooltips } from '@coreui/coreui-plugin-chartjs-custom-tooltips'; import { NguCarouselConfig, NguCarouselStore, NguCarousel } from '@ngu/carousel'; import { Component, Input, OnInit, ChangeDetectorRef, ChangeDetectionStrategy }...
/** * Viewport for diagram panes that is in charge of painting the background * image or page. */ public class Viewport extends JViewport { /** * Paints the background. * * @param g * The graphics object to paint the background on. */ public void paint(Graphics g) { if (isPageVi...
<gh_stars>0 #!/usr/bin/env python '''test/sample/scan.py This is the test case of scanner. ''' from filt.scanner import BaseScanner class SampleScanner(BaseScanner): ''' This is the sample scanner. ''' def scan(self, target, signature): ''' Check target and signature are same. ...
<reponame>pakchoidora/campfire /* Generated by Nim Compiler v0.17.0 */ /* (c) 2017 <NAME> */ /* The generated code is subject to the original license. */ /* Compiled for: MacOSX, amd64, clang */ /* Command for C compiler: clang -c -w -I/usr/local/Cellar/nim/0.17.0/nim/lib -o /Users/pakchoi/Workspace/campfire/src...
// The only Apps that'll be in the `JavaClassPath` will be the system apps private static Set<Class<? extends App>> findSystemApps() { Reflections reflections = new Reflections( new ConfigurationBuilder() .setUrls(ClasspathHelper.forJavaClassPath()) .setScanners(new SubTypesScanner(true)) ); Set<C...
Micropatterned Polymeric Nanosheets for Local Delivery of an Engineered Epithelial Monolayer Like a carpet for cells, micropatterned polymeric nanosheets are developed toward local cell delivery. The nanosheets direct morphogenesis of retinal pigment epithelial (RPE) cells and allow for the injection of an engineered ...
<reponame>thingsw/react-kakao-maps import * as React from "react"; import { render } from "react-dom"; import { MapContext } from "./Map"; export interface CustomOverlayProps { options: kakao.maps.CustomOverlayOptions; visible: boolean; } export class CustomOverlay extends React.PureComponent<CustomOverlayProps>...
/** * Created by kev on 16-04-18. */ export interface IView { draw(time:number):void; addChild(view:IView):void; removeChild(view:IView):void; onResize(width?:number, height?:number) : void; setPos(x:number, y:number, z ?:number) : void; show():void; hide():Promise<IView>; destroy():vo...
/** * Subclass of {@link MongoException} representing a cursor-not-found exception. */ public class MongoCursorNotFoundException extends MongoException { private static final long serialVersionUID = -4415279469780082174L; private final long cursorId; private final ServerAddress serverAddress; /** ...
/** * @author David Withers * */ public class ChangeDataflowInputPortDepthEditTest { private static Edits edits; @BeforeClass public static void createEditsInstance() { edits = new EditsImpl(); } private DataflowInputPortImpl dataflowInputPort; private int depth; private int granularDepth; @Before pub...
/** * Returns the total size of the object and of its children * @return the total size of the object and of its children */ public long totalSize() { if (totalSize < 0) totalSize = computeTotalSize(); return totalSize; }
package gossip import ( "context" "fmt" "time" "github.com/libp2p/go-libp2p-core/peer" "github.com/pkg/errors" "github.com/gohornet/hornet/pkg/dag" "github.com/gohornet/hornet/pkg/metrics" "github.com/gohornet/hornet/pkg/model/hornet" "github.com/gohornet/hornet/pkg/model/milestone" "github.com/gohornet/ho...
<reponame>ashwinimore/chpl-api package gov.healthit.chpl.dto; import java.io.Serializable; import java.util.Date; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import gov.healthit.chpl.entity.developer.DeveloperStatusEventEntity; import lombok.Data; import lombok.NoArgsConstructor; @JsonIgnoreProper...
n=int(input()) x=input() if n%2==1: ans=x[0] for i in range(1,n): if i%2==1: ans=x[i]+ans else: ans=ans+x[i] print(ans) else: # ans=x[int(n/2)-1]+x[int(n/2)] ans=x[:2] for i in range(2,n): if i % 2==0: ans=x[i]+ans ...
/** * Module declaring some example configuration and a _cat action that uses * it. */ public static class ConfiguredExampleModule extends AbstractModule { @Override protected void configure() { bind(ExamplePluginConfiguration.class).asEagerSingleton(); Multibinder<Abs...
<gh_stars>10-100 package com.jun.timer.router.Strategy; import com.jun.timer.common.RpcResponse; import com.jun.timer.dto.JobParams; import com.jun.timer.dto.LogDto; import com.jun.timer.router.BaseRouter; import com.jun.timer.utils.ApplicationContextHolder; import com.jun.timer.utils.CommonUtils; import java.util....
/** * A melee attack from enemy to a target * **/ public class MeleeAttackEvent extends TimeEvent<EnemyEntity> { private float range = 1.5f; private Class target; /** * Default constructor for serialization */ public MeleeAttackEvent() { // Empty for serialzation purposes } /** * Constructor for mel...
Laurie Kilmartin's father is going to pass away soon. Diagnosed with lung cancer, Mr. Kilmartin was admitted to hospice on February 20th. Laurie, a comedian and finalist on Last Comic Standing, has been live-tweeting her experience watching her dad die before her eyes. Kilmartin's tweets hit all of the stages of grie...
/// Score for likelihood of being valid English plaintext. /// Uses a chi-squared score based on English letter frequencies. /// Scores are always positive; lower is better, 0.0 is best. pub fn score_alphabetic(v: &[u8]) -> f32 { let mut char_freq: HashMap<u8, f32> = HashMap::new(); let total_count = v.len() as...
export type PluginOptionValue = string | boolean | number | string[]; export interface PluginOption { [key: string]: PluginOptionValue | PluginOption | PluginOption[] | undefined; } export enum ServiceProvider { GitHub = 'github', GitLab = 'gitlab', } export enum ChangeLevel { Major = 'major', Mi...
{-# LANGUAGE DataKinds #-} {-# LANGUAGE GADTs #-} {-# LANGUAGE PolyKinds #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE ScopedTypeVariables #-} {-# OPTIONS_GHC -fno-warn-unticked-promoted-constructors #-} -- | -- Module : Control.Protocol -- Copyright : (c) <NAME> -- License : BSD3 -- -- Maintainer : <EMAIL> -- Stabili...
import { Module } from '@nestjs/common'; import { ArticalController } from './artical.controller'; import { ArticalService } from './artical.service'; @Module({ controllers: [ArticalController], providers: [ArticalService] }) export class ArticalModule {}
// read reads the given byte data into the given drawing. func read(r io.Reader, d *Drawing) error { version, err := readHeader(r) if err != nil { return err } d.Version = version nLayers, err := readNumber(r) if err != nil { return err } d.Layers = make([]Layer, nLayers) for i := uint32(0); i < nLayers; i...
def build_proxy_options(fname): print('\nMULTI') outfile = fname.replace(os.path.splitext(fname)[1], '.mp4') try: command = [ FFMPEG_PATH, '-i', fname, '-y', '-loglevel', 'warning', '-map', '0:1 0:2', '-c:v', 'h264', '-b:v', VID...
//+-------------------------------------------------------------------------- // // Function: DeleteChildren // // Synopsis: Deletes only the children of a single target // // Arguments: credentialObject // basePathsInfo // pIADs: IADs pointer to the object // *pf...
def add_fulltext_index(self, collection_name, fields, min_length=None): _collection = self.get_collection(collection_name) return _collection.add_fulltext_index(fields=fields, min_length=min_length)
from django.shortcuts import render,redirect # Create your views here. from apps.ponentes.forms import PonentesForm from apps.ponentes.models import Ponente from django.views.generic import ListView class ponentes_list(ListView): model = Ponente template_name = 'ponentes/index.html' paginate_by = 10
<gh_stars>0 import { Component, OnDestroy, OnInit } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { Subscription } from 'rxjs'; import { mergeMap } from 'rxjs/operators'; import { Player } from '../interfaces/player'; import { Team } from '../interfaces/team'; import { League } from ...
def convolve(self, other): if self.data.size == 0 or other.data.size == 0: return signal() data = np.convolve(self.data, other.data) start = self.start + other.start return signal(data, start)
Short-term hydro-thermal coordination based on interior point nonlinear programming and genetic algorithms This paper presents a combined primal-dual logarithmic-barrier interior point and genetic algorithm for short-term hydro-thermal coordination. The genetic algorithm is used to compute the optimal on/off status of...
// Eval takes a list of expressions // representing a solo or product term // of tensors in abstract index notation // and returns the resulting Tensor. // // Note that shmensor Tensors are lazy, so computation // is only performed when you call Reify(). // // Consider verbose mode boolean to explore what's happening. ...
n = int(input()) taegrt = ["3","5","7"] ans = 0 count_num = [] def dfs(s): global count_num global taegrt global ans for val in taegrt: tmp = s+val if int(tmp) > n: return if tmp in count_num: continue count_num.append(tmp) #print(tmp) ...
<reponame>jfblg/ansible-cisco-use-case #!/usr/bin/env python import json from os import listdir from os.path import isfile, join from collections import namedtuple from ciscoconfparse import CiscoConfParse """ Analysis of Ansible ios_facts.json file specific to configuration of DHCP snooping. """ __author__ = "<NAME>...
Optimizing Recommendation Algorithms Using Self-Similarity Matrices for Music Streaming Services Most music recommendation algorithms such as proprietary ones designed for curating music in music streaming companies rely mainly on song ratings data to be able to recommend songs to users. This does not always provide a...
def approve_assignment(self, assignment_id): try: return self._is_ok( self.mturk.approve_assignment(AssignmentId=assignment_id) ) except ClientError as ex: raise MTurkServiceException( "Failed to approve assignment {}: {}".format( ...
/** * @author Francisco Sanchez */ @RunWith(MockitoJUnitRunner.class) public class DefaultResmiServiceTest { private static final long DATE = 1234; private static final String _UPDATED_AT = "_updatedAt"; private static final String _CREATED_AT = "_createdAt"; private static final String DOMAIN = "DOM...
/** * Returns all client software manifests that are broken and cannot be read. */ public Collection<Manifest.Key> listBroken() { Collection<Manifest.Key> result = new ArrayList<>(); Set<Key> keys = hive.execute(new ManifestListOperation().setManifestName(MANIFEST_PREFIX)); for (Key ke...
/** * Initializes {@code budgetListPanelHandle} with a {@code BudgetListPanel} backed by {@code backingList}. * Also shows the {@code Stage} that displays only {@code BudgetListPanel}. */ private void initUi(ObservableList<Budget> backingList) { BudgetListPanel budgetListPanel = n...
def _read_rules(silent=False): global _VOWEL_SET, _CONSONANT_SET if silent == False: print("Reading phonological rule data ...") fin = pathlib.PurePath(__file__).parent / _DEF_DATA / _DEF_RULES config = configparser.ConfigParser(allow_no_value=True) if pathlib.Path(fin).exists() == False: ...
/** * Created by nitinagarwal on 3/12/17. */ public class ListFragmentViewImpl implements ListFragmentView { View mFragemntVideoListView; VideoListAdapter mVideoListAdapter; ObservableListView mListView; public ListFragmentViewImpl(Context context, ViewGroup container, LayoutInflater inflater) { ...
<filename>packages/core/src/List/ListItem.tsx import * as React from "react"; import styled from "styled-components"; import Typo from "../Typo"; import Box from "../Box"; import Image, { ImageRatio } from "../Image"; import { getListItemStyle } from "./getStyled"; import { GlobProps } from "../common/props"; const Co...
<reponame>mugambocoin/mugambo-foundation //+build gofuzz package gossip import ( "bytes" "sync" _ "github.com/dvyukov/go-fuzz/go-fuzz-defs" "github.com/ethereum/go-ethereum/p2p" "github.com/ethereum/go-ethereum/p2p/enode" "github.com/mugambocoin/mugambo-foundation/evmcore" "github.com/mugambocoin/mugambo-fou...
<gh_stars>1-10 #![cfg_attr(feature = "cargo-clippy", allow(clippy::match_wild_err_arm))] /// Read list of domain names from the command line or a file extern crate clap; extern crate futures; use clap::{App, Arg}; use futures::{stream, StreamExt}; use reqwest::Client; use std::io::{self, BufRead}; use std::time::Durat...
def make_user_count_table(results): symptom_table = [] total_very_active_n_obs = 0 total_very_active_ids = set() total_overall_n_obs = 0 total_overall_user_ids = set() for k in results.keys(): very_active_logger_data = results[k]['no_substratification'] non_very_active_logger_dat...
def process_news(keyword, start, end, force_refresh=False, cache_time=CACHE_TIME): if type(start) == str: start = datetime.strptime(start, "%Y-%m-%dT%H:%M:%S") if type(end) == str: end = datetime.strptime(end, "%Y-%m-%dT%H:%M:%S") items = newsdb.find({"keywords": keyword, "pubdate": {"$g...
. A survey was conducted in Hungary on the subject of sex predetermination among the teaching profession. 1500 subjects with no children were asked to answer a questionnaire. Almost 70% of the subjects questioned desired boys. The majority of people wanted 2 children. Among the people who wanted only 1 child, 65% pr...
from .nwbconverter import NWBConverter from .datainterfaces import * from .tools import spikeinterface, roiextractors, neo from .tools.yaml_conversion_specification import run_conversion_from_yaml
#include <cstdio> #include <cstring> #include <algorithm> #include <iostream> using namespace std; const int N = 200000; int a[N]; int c[N]; int s[N]; int getSum(int x) { int res = 0; while(x > 0) { res += s[x]; x -= x&(-x); } return res; } void update(int x) { ...
import pytest import os import subprocess import glob from conftest import * import common_libs.utilities as ut import mysql.connector @ithemal class TestStats: def test_getbenchmarks(self): script = os.environ['ITHEMAL_HOME'] + '/learning/pytorch/stats/getbenchmarks.py' database = '--database=t...
def all_glyphs(self, ignore=['invisible']): _all_glyphs = [] self.import_encoding() for group in self.libs['groups']['order']: if group not in ignore: _all_glyphs += self.libs['groups']['glyphs'][group] return _all_glyphs
In vitro suppression of drug‐induced methaemoglobin formation by Intralipid® in whole human blood: observations relevant to the ‘lipid sink theory’ * To provide further evidence for the lipid sink theory, we have developed an in vitro model to assess the effect of Intralipid® 20% on methaemoglobin formation by drugs o...
Drainage of forests in Finland It is said that the forest industry is the backbone of the national economy in Finland. This was in particular the case in the twentieth century. That is also why the drainage of forests has played an important role in the national forestry policy. The most intensive period of forest dra...
/** * (Solaris) platform specific handling for file: URLs . * urls must not contain a hostname in the authority field * other than "localhost". * * This implementation could be updated to map such URLs * on to /net/host/... * * @author Michael McMahon */ public class FileURLMapper { URL url; Stri...
/* Copyright 2019 The MLPerf Authors. 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...
<filename>ansi/ansi.go package ansi //All ANSI excae codes to incorporate colors in the terminal var RESET string = "\u001B[0m" var WHITE string = "\u001B[37m" var RED string = "\u001B[31m" var YELLOW string = "\u001B[33m" var GREEN string = "\u001B[32m" var BLUE string = "\u001B[34m" var CYAN string = "\u001B[36m" va...
<gh_stars>0 package platform import ( "errors" "log" "sync" "github.com/spf13/viper" "go.uber.org/zap" ) var ( internalConfig *config mutex sync.Mutex ErrInvalidConfigFilePath = errors.New("Invalid config file path for settings platform.log.logfilepath") ) func writePlatformConf...
/** * Persists a given SimpleXML-annotated object into a {@link OutputStream}. * * @param object a SimpleXML-annotated object * @param stream a stream containing object serialized in XML */ public static void persistInStream(Object object, OutputStream stream) { Serializer serializer =...
def reencode_images( sample_collection, ext=".png", force_reencode=True, delete_originals=False, num_workers=None, skip_failures=False, ): fov.validate_image_collection(sample_collection) _transform_images( sample_collection, ext=ext, force_reencode=force_reencode...
<gh_stars>0 package redmine import ( "bytes" "context" "encoding/json" "fmt" "io/ioutil" "net" "net/http" "regexp" "strconv" "strings" "time" "github.com/pkg/errors" "github.com/qarea/redminems/entities" ) const ( redmineType = "REDMINE" slash = '/' dateFormat = "2006-01-02" get = "G...
def inspect_variables(text): inspector = ExpressionInspector() inspector.compile(text) return inspector.variables
/** * Assume that we have a group called member2RepDS and members called rep1 and rep2, where * rep1 is the current leader. The ZooKeeper nodes would appear as follows. Nodes marked with * [p] are persistent, with [e] are ephemeral: * <code><pre> * / * [p] GroupLeadershipConn/ * [p] groups/ *...
Do you have a terrified Cinderella rug I could buy? Designer: I’m making the designs for that new Cinderella rug. Are we doing the standard smile? Client: No, I’ve got a new idea. I don’t want a smile. I want a slightly concerned frown. Like one of those moments on the Bachelor when the guy says something really du...
/** * @Author mcrwayfun * @Description * @Date Created in 2018/6/5 */ public class Solution { public boolean isSymmetric(TreeNode root) { return root == null || (root.left == null && root.right == null) || isSymmetricHelp(root.left, root.right); } private boolean isSymmetricHelp(TreeNode left,...
/** * Check that fonts present in the Resources dictionary match with PDF/A-1 rules * * @param context * @param resources * @throws ValidationException */ protected void validateFonts(PreflightContext context, PDResources resources) throws ValidationException { Map<String, PDF...
Use of Wehner Schulze to predict skid resistance of Irish surfacing materials This paper details the first assessment of asphalt mixes used in Ireland using the Wehner Schulze test equipment. The mixes assessed were 10mm SMA, 14mm SMA and hot rolled asphalt (HRA) made with PSV 62 greywacke aggregate. The Wehner Schulz...
/** * @author Bas Leijdekkers */ public class DuplicateCharacterInClassInspection extends LocalInspectionTool { @Override public @NotNull PsiElementVisitor buildVisitor(@NotNull ProblemsHolder holder, boolean isOnTheFly) { return new DuplicateCharacterInClassVisitor(holder); } private static class Dupli...
def main(): nmxy=input().split(' ') army=input().split(' ') vest=input().split(' ') result=0 detail=[] j=0 for i in range(len(army)): while j<int(nmxy[1]) and int(army[i])-int(nmxy[2])> int(vest[j]): j+=1 if j<int(nmxy[1]): if int(army[i])+i...
<gh_stars>1-10 package router import ( "net/http" "time" "github.com/sarmerer/forum/api/config" "github.com/sarmerer/forum/api/controllers" "github.com/sarmerer/forum/api/middleware" ) type route struct { URI string Handler func(http.ResponseWriter, *http.Request) Method string MinRole int NeedAut...
# -*- coding: utf-8 -*- """ Created on Thu Jul 23 13:24:54 2020 @author: timhe """ # General Python modules import numpy as np import os import glob import pandas as pd from osgeo import gdal def Nearest_Interpolate(Dir_in, Startdate, Enddate, Dir_out=None): """ This functions calculates monthly tiff files b...
// Generates a hashed byte array based on username and salt func Hash(userName, salt string) ([]byte, error) { var ( hash []byte err error ) hash, err = scrypt.Key([]byte(userName), []byte(salt), 16384, 8, 1, keyLength) if err != nil { return nil, err } return hash, err }
<filename>imdbRating.py<gh_stars>0 ####Python Script to find the IMDB rating of movies and TV series##### import requests import bs4 as bs ####Function to confirm the name of movie or Tv series to get the correct rating#### def cnfm_page(link): try: name_link = 'https://www.imdb.com'+link req2 = r...
import { Type } from "class-transformer"; import { String } from "typescript-string-operations"; import { Position } from "vscode-languageserver"; import { AliasHelper } from "../../../aliases/AliasHelper"; import { AliasKey } from "../../../aliases/AliasKey"; import { FormattingHelper } from "../../../helper/Formattin...
Yogi Adityanath said Rahul doesn't even know how to sit in a temple. Yogi Adityanath, the Chief Minister of Uttar Pradesh, has derided the temple visits during Rahul Gandhi's campaign in Gujarat, claiming that the Congress leader was told off at a temple about "sitting as if he's doing Namaaz".The saffron-robed priest...
def allocate(filename: str, size: int) -> str: if '/' in filename: raise ValueError( f"allocate(): Argument must NOT contain path! ('{filename}')" ) else: filepath = os.path.join(DOWNLOAD_DIR, filename) Terminate on filename conflict if exists(filepath): rais...
<filename>src/framework/handler/get-framework-detail-handler.spec.ts<gh_stars>1-10 import {CachedItemStore} from '../../key-value-store'; import {FileService} from '../../util/file/def/file-service'; import {ApiService} from '../../api'; import {of} from 'rxjs'; import {Channel, Framework, FrameworkDetailsRequest, Fram...
/** * Created by raffaelemontella on 12/02/2017. */ public class Pgn01F801Parser extends PgnParser implements Pgn01F801 { public static final String LOG_TAG="PGN01F801"; private Double latitude; private Double longitude; /* private boolean startLat = true; private boolean startLon = true; ...
t=int(input()) ss="codeforces" s="" for x in range(2,60): for i in range(0,10): ans=pow(x,i)*pow((x-1),(10-i)) if(ans>=t): for j in range(0,i): ch=ss[j] for a in range(0,x): s=s+ch for j in range(i,10): ...