content
stringlengths
10
4.9M
#include <bits/stdc++.h> #include <unistd.h> #include "../util/helpers.cpp" using namespace std; // http://adventofcode.com/2019/day/13 vector<int> do_phase(const vector<int> &v, const vector<int> &base_pattern, int phase_num) { vector<int> out; for (size_t i = 0; i < v.size(); i++) { int temp = 0; // build t...
A hazmat transportation monitoring system based on Global Positioning System / Beidou Navigation Satellite System and RS485 bus With the demand for road transport of hazmat in the past few years, accidents occur frequently during the dangerous goods transportation and road transportation safety issues become increasin...
<reponame>zann1x/FrameGraph<gh_stars>0 // Copyright (c) 2018-2019, <NAME>. For more information see 'LICENSE' #include "SphericalCubeMath.h" using namespace FG; #define TEST CHECK_FATAL template <typename Projection> static void Test_ForwardInverseProjection () { static constexpr uint lod = 12; static constexpr...
#include<stdio.h> int choice[10000000]; int main(void) { int h1,a1,c1,h2,a2; scanf("%d%d%d",&h1,&a1,&c1); scanf("%d%d",&h2,&a2); int vava=h1,monster=h2,result,remain=c1-a2; for(int i=0;;i++) { if(monster-a1<=0) { result=i+1; choice[i]=1; break; } if(v...
<reponame>apokalipsys/tenprintcover-java package org.apoka.tenprintcover; import org.apoka.graphics.Image; import org.kohsuke.args4j.CmdLineException; import org.kohsuke.args4j.CmdLineParser; import org.kohsuke.args4j.Option; import java.io.IOException; public class TenPrintCover { @Option(name = "-t", usage = "...
package cmd import ( "github.com/mitchellh/go-homedir" log "github.com/sirupsen/logrus" ) const ( defaultPort = 5126 ) var ( homeDir, _ = homedir.Dir() ) func setDebugMode() { log.SetLevel(log.DebugLevel) }
<reponame>imle/go-firmata package firmata import ( "fmt" "reflect" "testing" ) func TestByteConversion(t *testing.T) { for i := uint16(0x00); i <= 0xFF; i++ { t.Run(fmt.Sprintf("0x%02X", i), func(t *testing.T) { a, b := ByteToTwoByte(byte(i)) o := TwoByteToByte(a, b) if byte(i) != o { t.Errorf("Byt...
#ifndef VOXEL_TYPE_H #define VOXEL_TYPE_H // A unique identifier for each type of voxel. // Voxel types, if they are still part of the design, are meant for host usage only, // and not for mapping textures to the OpenCL kernel. // This type is still experimental and might be removed. // ------------------...
/** * Base class for all standard forms whose models are created using "properties" * of some kind that are defined by a single string. Subclasses must implement * {@link #createPropertyModel(String)} to map those strings to Wicket models. * Based on that method, this class provides factory methods for the form * ...
// Test closing the browser while inspecting an extension popup with dev tools. IN_PROC_BROWSER_TEST_F(BrowserActionInteractiveViewsTest, MAYBE_CloseBrowserWithDevTools) { if (!ShouldRunPopupTest()) return; ASSERT_TRUE(LoadExtension(test_data_dir_.AppendASCII( "browser_action/popup"...
def process_spatial_coordinates( x: Union[float, int, np.ndarray, None] = None, y: Union[float, int, np.ndarray, None] = None, z: Union[float, int, np.ndarray, None] = None, coords: Optional[np.ndarray] = None, order: tuple = ("x", "y", "z"), ) -> Tuple[np.ndarray, List[str]]: if (x is None) and...
Run-length encoding Run-length encoding is a simple compression scheme in which runs of equal values are represented by the value and a repeat count. For example, a supermarket cashier might process this line of shopping as 4 bananas 3 apples 2 bananas 1 pineapple 3 apples Unix packs in its very own run length ...
Imagine enough water to fill a couple of great lakes, but spread under some of the driest parts of eight western states. That was the High Plains Aquifer 60 years ago, before new pumping and irrigation systems made it easy for farmers to extract billions of gallons from it, and use it to grow lucrative crops on the ari...
ATHENS — It always could change, but as they enter the last third of the regular season, the Georgia Bulldogs are as healthy as they’ve been all season. DaQuan Hawkins-Muckle returned to practice on Monday, and while the junior defensive lineman may not be a significant contributor, he signifies the state of the team....
extern crate es_core; extern crate es_data; use self::es_core::optimizer::ScoreLogger; use self::es_data::dataset::types::{MetaType, Metadata}; use crate::l2r::scorer::parameters::*; use crate::l2r::scorer::utils::*; /// Scorer for basic binary indicator /// Can be used to bury or boost based on a field #[derive(Deb...
// popNonce returns a nonce value previously stored with c.addNonce // or fetches a fresh one from c.dir.NonceURL. // If NonceURL is empty, it first tries c.directoryURL() and, failing that, // the provided url. func (c *Client) popNonce(ctx context.Context, url string) (string, error) { c.noncesMu.Lock() defer c.non...
/** SecurityConfig captures the security related configuration for FeastClient */ @AutoValue public abstract class SecurityConfig { /** * Enables authentication If specified, the call credentials used to provide credentials to * authenticate with Feast. */ public abstract Optional<CallCredentials> getCrede...
def draw_fpentamino(on_grid:np.ndarray,at_offset:int) -> np.ndarray: on_grid[4+at_offset,4+at_offset] = 1 on_grid[4+at_offset,5+at_offset] = 1 on_grid[5+at_offset,3+at_offset] = 1 on_grid[5+at_offset,4+at_offset] = 1 on_grid[6+at_offset,4+at_offset] = 1
<filename>quic/typings/data/quic.schema.d.ts declare namespace Quic { namespace Data { interface ISchema { props: { [name: string]: ISchema; }; indexs: { [name: number]: ISchema; }; prop(name: string): ISchema; ...
/** * Test of setSilentUpdate method, of class org.netbeans.modules.tasklist.core.Task. */ public void testSetSilentUpdate() { System.out.println("testSetSilentUpdate"); }
Book Review: Gill Plain and Susan Sellers, eds, A History of Feminist Literary Criticism. Cambridge: Cambridge University Press, 2007. 352 pp. (incl. index). ISBN 9780521852555, £70.00 (hbk) Woolf lived. Through the focus on Virginia Woolf and those ‘servants’ we see how aggressive and embattled everyday class relatio...
Have you ever imagined what it is like to be a gamer girl? This article takes the perspective from a female gamer herself. Let’s begin. Lightning has her problems, but thanks to Square Enix, sometimes genders are not discriminated. Remember when it was just you and your N64 (or whatever console that launched your fan...
<filename>impl/cons/console.go<gh_stars>0 package cons import ( "github.com/chzyer/readline" "github.com/golangmc/minecraft-server/apis/uuid" "github.com/golangmc/minecraft-server/lib" "io" "os" "github.com/golangmc/minecraft-server/apis/base" "github.com/golangmc/minecraft-server/apis/logs" "github.com/golan...
/** * Updates the camera based on which C buttons are pressed this frame */ void handle_c_button_movement(struct Camera *c) { s16 cSideYaw; if (gPlayer1Controller->buttonPressed & U_CBUTTONS) { if (c->mode != CAMERA_MODE_FIXED && (gCameraMovementFlags & CAM_MOVE_ZOOMED_OUT)) { gCameraMovem...
#ifndef STPrimaryVertexEVENTS_HH #define STPrimaryVertexEVENTS_HH #include "StRareEventCut.h" #include <Stiostream.h> class StEvent; class StPrimaryVertexEvents : public StRareEventCut { public: StPrimaryVertexEvents(){}; ~StPrimaryVertexEvents(){}; int Accept(StEvent* event); void Report(); ClassDef(St...
. The restructuring of the State Sanitary Inspectorate was determined by the need to adjust the existing system to the new structure- and task-oriented standards introduced by the administrative reforms at the provincial level. This brought about a lot of changes in the way State County Sanitary Inspectors operate. Fo...
//! Python extension, exported functions and type conversions. pub mod conversions; pub mod utils; use crate::blending::params::{BlendAlgorithmParams, Options}; use crate::blending::{ blend_images, demultiply_image, get_blending_algorithm, is_algorithm_multiplied, BlendAlgorithm, }; use crate::constants; use crat...
/** * Find the filter environments. * * @param request the HTTP servlet request. * @param servletName name of the servlet if any. Can be null. * * @return the filter environments. */ protected List<DefaultFilterEnvironment> findFilterEnvironments(HttpServletRequest request, String ser...
def extract_exif(self): width, height = self.extract_image_size() make, model = self.extract_make(), self.extract_model() orientation = self.extract_orientation() geo = self.extract_geo() capture = self.extract_capture_time() direction = self.extract_direction() d...
def predict(self, RDD_X2): if self._U != None: RDD_norm = self._scaler.transform(RDD_X2) U = self._U RDD=RDD_norm.map(lambda x: x.dot(U.T)) return RDD else : print 'You have to fit the model first'
Feed Additives with the Inclusion of Co and Mn Change Their Bioavailability and Digestibility of Substances in Bull Calves In accordance with the scheme of the experiment animals in the control group received the basic diet (BD), Experimental Group I–BD + feed additive, replacing 30% of the concentrated part of the ra...
/** copy method for event handler plugins (called when SCIP copies plugins) */ static SCIP_DECL_EVENTCOPY(eventhdlrCopyObj) { SCIP_EVENTHDLRDATA* eventhdlrdata; assert(scip != NULL); eventhdlrdata = SCIPeventhdlrGetData(eventhdlr); assert(eventhdlrdata != NULL); assert(eventhdlrdata->objeventhdlr != NU...
<gh_stars>10-100 from ray.experimental.workflow.api import step, run, resume from ray.experimental.workflow.workflow_access import WorkflowExecutionError __all__ = ("step", "run", "resume", "WorkflowExecutionError")
Luna "likes most d*cks." It's no wonder why our first encounter was during the B*kkake Social Club! Many ask me why a woman would want to suck so many c*cks in one sitting (or kneeling). Well, this week's Manwhore Podcast has your answer! After growing up Orthodox Jewish, she is now a professional dominatrix who takes ...
days,sumTime = [int(x) for x in input().split()] MAxDictionar = [] MInDictionar = [] for i in range(days): MIN,MAX = [int(x) for x in input().split()] MAxDictionar.append(MAX) MInDictionar.append(MIN) if sum(MAxDictionar) < sumTime or sum(MInDictionar)>sumTime: print("NO") exit() sumTime-=sum(MInDic...
<gh_stars>10-100 package code import ( "archive/zip" "bytes" "context" "encoding/json" "fmt" "io" "log" "net/http" "os" "os/exec" "path/filepath" "strconv" "strings" "syscall" "time" "github.com/shurcooL/go/vfs/godocfs/vfsutil" "github.com/shurcooL/home/internal/mod" "github.com/shurcooL/httperror" ...
Implications of the radio spectral index transition in LS I +61°303 for its INTEGRAL data analysis The TeV emitting X-ray binary LS I +61{\deg}303 has two radio periodicities that correspond to a large periodic outburst with the same period as the orbit, 26.5 days (phase \Phi), and a second periodicity of 1667 days (p...
import pytest import rlp from eth.codecs import abi from hexbytes import HexBytes import vyper.ir.compile_ir as compile_ir from vyper.codegen.ir_node import IRnode from vyper.compiler.settings import OptimizationLevel from vyper.utils import EIP_170_LIMIT, checksum_encode, keccak256 # initcode used by create_minimal...
// RemoveVmAuthKey revokes a VM auth key. func (c *Panorama) RevokeVmAuthKey(key string) error { type rreq struct { XMLName xml.Name `xml:"request"` Key string `xml:"bootstrap>vm-auth-key>revoke>vm-auth-key"` } req := rreq{ Key: key, } c.LogOp("(op) revoking vm auth code: %s", key) _, err := c.Op(req,...
<reponame>ride-austin/ios-driver // // QueueZone.h // RideDriver // // Created by <NAME> on 10/17/16. // Copyright © 2016 FuelMe LLC. All rights reserved. // #import <Mantle/Mantle.h> @interface QueueZone : MTLModel <MTLJSONSerializing> @property (nonatomic, readonly) NSString *areaQueueName; @property (nonatomi...
<reponame>jorgeluis11/profile from django.db import models from django.utils import timezone from autoslug import AutoSlugField from imagekit.models import ImageSpecField from imagekit.processors import ResizeToFill class ProjectManager(models.Manager): def top(self): return "Manager" def get_url_large(...
Oil in times of democracy: debates on extraction and politics in Ghana The discovery of oil in 2007 in Ghana came in a time when elections had shown the capacity to allow for alternation of two main political parties in government. The main objective of this article is to investigate the terms of the debates that have...
import styled from 'styled-components' import { Logout } from 'styled-icons/heroicons-outline' import { Login } from 'styled-icons/material' export const Auth = styled.div` grid-area: LG; background-color: var(--tertiary); ` export const BtnGoogle = styled.button` @media (min-width: 1024px) { width: 165px; > sp...
Learn how to change the oil on your 4th generation (2012+) Toyota Avalon with a 3.5L 2GR-FE V6 engine. We've got a step by step how to with all the parts and tools you'll need. Fortunately, the Avalon is extra easy to change oil on, there are no trim panels to remove or get in the way, you'll just need the right tools ...
import { Video, VideoSrc } from '@/video/state/types'; import { srcToGlobalVideo, srcToHostVideo, srcToIFrameSource, srcToIFrameVideo, videosWithSubtitle } from '@/video/state/state'; import { RemoveVideoInIFrame, useVideoElementMutationObserver, useWindowMessage, VideosInIFrame } from '@/composables'; import { watch }...
216 Multiplex base editing of NK cell to enhance cancer immunotherapy Natural killer (NK) cells have many unique features that have gained attention in cancer immunotherapy. NK cells can kill in antigen independent and dependent fashion, can be used as an allogeneic product, and perform antibody-dependent cell-mediate...
package org.loose.fis.sre.controllers; //import javafx.collections.FXCollections; import javafx.beans.value.ChangeListener; import javafx.beans.value.ObservableValue; import javafx.collections.FXCollections; import javafx.collections.ListChangeListener; import javafx.collections.ObservableList; import javafx.fxml.FXML...
<filename>src/config/pagination-adapters/index.ts import { LimitOffset } from "./limit-offset" import { RelayForward } from "./relay" import { NoPagination } from "./no-pagination" export * from "./types" const PaginationAdapters = [NoPagination, LimitOffset, RelayForward] export { LimitOffset, RelayForward, NoPagina...
/** * Copyright (c) 2013-2021 UChicago Argonne, LLC and The HDF Group. * * SPDX-License-Identifier: BSD-3-Clause */ #ifndef MERCURY_TEST_H #define MERCURY_TEST_H #include "na_test.h" #include "mercury.h" #include "mercury_bulk.h" #include "mercury_request.h" #ifdef HG_TEST_HAS_THREAD_POOL # include "mercury_t...
An Improved Reflector with Serrated Resistive Films Frame for Compact Antenna Test Range In this paper, a novel reflector design with serrated resistance films (R-films) frame for compact antenna test range (CATR) is proposed. The CATR is an essential system for antenna testing at 5G millimeter-wave frequencies, which...
// AddStoryComment adds a comment to a story func (d *Database) AddStoryComment(StoryboardID string, UserID string, StoryID string, Comment string) ([]*StoryboardGoal, error) { if _, err := d.db.Exec( `call story_comment_add($1, $2, $3, $4);`, StoryboardID, StoryID, UserID, Comment, ); err != nil { log.Pr...
Ronan Tynan (born 14 May 1960) is an Irish tenor singer and former Paralympic athlete. He was a member of The Irish Tenors re-joining in 2011 while continuing to pursue his solo career since May 2004. In the United States, audiences know him for his involvement with that vocal group and for his renditions of "God Bles...
Child abuse and neglect in the Jaffna district of Sri Lanka – a study on knowledge attitude practices and behavior of health care professionals Background Victims and perpetrators of child abuse do not typically self-report to child protection services, therefore responsibility of detection and reporting falls on the ...
async def halldorsson_science_de_novos(result): logging.info('getting Halldorsson et al Science 2019 de novos') with tempfile.NamedTemporaryFile() as temp: download_file(url, temp.name) df = pandas.read_table(temp.name, comment='#') df['person_id'] = df['Proband_id'].astype(str) df['pers...
use async_graphql::ID; use bson::{self, oid::ObjectId}; use serde_derive::{Deserialize, Serialize}; // use syn::Fields; // use uuid::Uuid; #[derive(Debug, Clone, Serialize, Deserialize)] pub struct Role { pub id: ID, pub name: String, pub description: String, } #[derive(Debug, Clone, Serialize, Deserializ...
/** * Compute the Point Volatility Modulus * * @param iXDate The X Date * @param iYDate The Y Date * * @return The Point Volatility Modulus * * @throws java.lang.Exception Thrown if the Point Volatility Modulus cannot be computed */ public double pointVolatilityModulus ( final int iXDate, final...
<filename>source/dred/dtk/dtk.h // Copyright (C) 2018 <NAME>. See included LICENSE file. #ifndef DTK_H #define DTK_H #if defined(_MSC_VER) #pragma warning(push) #pragma warning(disable:4201) // nonstandard extension used: nameless struct/union #endif // Platform/backend detection. #ifdef _WIN32 #define...
def _maybe_expand_macro(self, component, component_list_type, template_data=None): component_copy = copy.deepcopy(component) if isinstance(component, dict): component_name, component_data = next(iter(componen...
<reponame>GabrielModog/pokemanos import { Reducer } from 'redux'; import { PokemonsState, PokemonsType } from './types'; const INITIAL_STATE: PokemonsState = { data: [], error: false, loading: false, layout: 'GRID', }; const reducer: Reducer<PokemonsState | any> = ( state = INITIAL_STATE, action ) => { ...
import * as React from "react"; import { Gallery } from "./Gallery"; import { GalleryPageMainSection } from "./GalleryPageMainSection"; export class GalleryPage extends React.Component { render() { const urls = [ "https://images.unsplash.com/photo-1513836279014-a89f7a76ae86?w=1920&q=80", ...
<reponame>kevinYin/ideploy<filename>deployment-web/src/main/java/io/ideploy/deployment/admin/websocket/request/CookieRequestMessage.java package io.ideploy.deployment.admin.websocket.request; /** * 功能: 发送cookie的请求 * <p> * 详细: * * @author jingyesi 17/2/4 */ public class CookieRequestMessage extends WebSocketReq...
<filename>node_modules/@types/express/lib/application.d.ts import {Server} from 'http'; import {ListenOptions} from 'net'; import {Router, ParamHandler, HandlerArgument, PathArgument} from './router/index'; declare namespace app { export interface Application extends Router { /** * Contains one o...
<filename>packages/eolts/inst/include/R_nts.h // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 4; tab-width: 4; -*- // vim: set shiftwidth=4 softtabstop=4 expandtab: /* * 2013,2014, Copyright University Corporation for Atmospheric Research * * This file is part of the "eolts" package for the R software envi...
import React from "react"; import styled from "styled-components"; const ScheduleSection = styled.section` display: grid; gap: 1rem; padding: 1rem; ${({ theme }) => theme.breakpoints.up("md")} { gap: 2rem; padding: 2rem; } `; const Schedule: React.FC = () => { return <ScheduleSection>Schedule</Sc...
#include <bits/stdc++.h> using namespace std; int main(){ int n; ios_base::sync_with_stdio(false); cin.tie(NULL); cin>>n; int x=n%7; int mp[]={0,2,4,6,1,3,5}; int n4=mp[n%7]; if(n4*4>n){ cout<<-1<<endl; } else{ for(int i=0;i<n4;i++){ cout<<4; } x=(n-n4*4)/7; for(int j=0;j<x;j++) cout<<7; } ...
// Post writes body to the DataDog api func (d *DataDogLogger) Post(body []byte) error { req, err := http.NewRequestWithContext(d.Context, http.MethodPost, d.URL, bytes.NewBuffer(body)) if err != nil { _, wErr := fmt.Fprintf(os.Stderr, "error writing logs %v", err) if wErr != nil { return wErr } return err...
/* ������i�������Ե�i����Ϊ��Сֵ��ʽ��ö�� ���е���������Է�Ϊ������i����Ͳ�������i���� ������i�������Ե�i����Ϊ��Сֵ��Ψһ��ʶ����һЩ����� �����������������Щȷ���� ����ʱ��Ҫô�������Ҳ�����Сֵ��Ҫô������ */ #include<bits/stdc++.h> #define lson l,m,rt<<1 #define rson m+1,r,rt<<1|1 using namespace std; typedef long long ll; cons...
<reponame>florisweb/JLP<gh_stars>0 import { Question, Word } from './types'; import { App } from './app'; // //@ts-ignore function shuffleArray(arr:Question[]) { return arr.sort(() => Math.random() - 0.5); } const Server = new (function() { const syncTimeout:number = 1000 * 60 * 2; //ms this.sync = async funct...
// GetChannelClient gets a channel client func GetChannelClient(ctx context.Context, trillAdminClient trillian.TrillianAdminClient, trillMapClient trillian.TrillianMapClient, channelMapID int64, tracer opentracing.Tracer) (*tclient.MapClient, error) { channelLogger.Info().Msg("[DBoM:GetChannelClient] Entered") span, ...
// LengthEQ applies the EQ predicate on the "length" field. func LengthEQ(v int) predicate.BinaryItem { return predicate.BinaryItem(func(s *sql.Selector) { s.Where(sql.EQ(s.C(FieldLength), v)) }) }
<reponame>golden-dimension/xs2a /* * Copyright 2018-2019 adorsys GmbH & Co KG * * 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 * * Unles...
<reponame>lucasaciole/-DC-UFSCar-ES2-201701--GrupoFoco package org.jabref.logic.l10n; import java.util.ArrayList; import java.util.Collections; import java.util.Enumeration; import java.util.List; import java.util.Objects; import java.util.ResourceBundle; import java.util.stream.Collectors; /** * A bundle containing...
<gh_stars>1-10 from ..config import get_logger class Tool(object): def _log(self): if not (hasattr(self, "_cached_log") and self._cached_log is not None): self._cached_log = get_logger(type(self).__name__.lower()) return self._cached_log
/** * Diff table in embedded class to avoid immediate instantiation. * * @author keve * */ private static final class DiffTable { /** * Difference lookup table. */ private static final int[][] BIT_PAIRS_DIFF_TABLE = generateTable(); private static int...
<filename>src/main/go/src/euler/solver026.go // COPYRIGHT (C) 2017 barreiro. All Rights Reserved. // GoLang solvers for Project Euler problems package euler import ( "euler/algorithm" ) // A unit fraction contains 1 in the numerator. The decimal representation of the unit fractions with denominators 2 to 10 are give...
// ExpiresAt returns a state option that sets a state value to its zero value at // the given time. // // Values persisted to local storage with the Persist option are removed from // it. func ExpiresAt(t time.Time) StateOption { return func(s *State) { s.ExpiresAt = t } }
def pull_urls(page): soup = BeautifulSoup(page, "html.parser") soup.prettify() return [anchor['href'] for anchor in soup.findAll('a', href=True)]
<gh_stars>10-100 import { Scalar, SchemaElement, Type, TypeTag, Variant, LookupName, matchSchemaElement, createLookupName } from '../schema'; import { TsFileBlock, TsFileBlock as ts } from '../ts/ast'; import { variantPayloadTypeName } from '../ts/schema2ast'; import { BincodeLibTypes, traverseType...
package fr.dofuscraft.dofuscraftstuffs.items; import fr.dofuscraft.dofuscraftstuffs.DofuscraftStuffs; import fr.dofuscraft.dofuscraftstuffs.init.ModArmors; import fr.dofuscraft.dofuscraftstuffs.init.ModItems; import fr.dofuscraft.dofuscraftstuffs.utils.References; import net.minecraft.entity.Entity; import net.minecra...
<gh_stars>1-10 class MyTest { static <T> T m() { return null; } void n(boolean b) { double ex = 0.0; ex <error descr="Operator '+' cannot be applied to 'double', 'java.lang.Object'">+=</error> (b ? MyTest.m() : 0); ex <error descr="Operator '*' cannot be applied to 'double', 'java.lang.Object'">*...
def _spacy_tokenizer_lemmatizer(text): parsed_data = parser(text) list_of_lemmatized_tokens = [token.lemma_ for token in parsed_data] return list_of_lemmatized_tokens
Optimal Policy for the Replacement of Industrial Systems Subject to Technological Obsolescence - Using Genetic Algorithm The technological obsolescence of industrial systems is characterized by the existence of challenger units possessing identical functionalities but with improved performance. This paper aims to defi...
/* * * 36TH ELEMENT LICENSE 1.0 * * This is a project of 36TH ELEMENT TECHNOLOGIES PVT. LTD. * This project is a closed source and proprietary software package. * None of the contents of this software is to be used for uses not intended, * And no one is to interface with the software in methods not defin...
/** * Parses text from the beginning of the given string to produce a date in UTC using the given pattern and the * default date format symbols for the UTC. The method may not use the entire text of the given string. * <p> * * @param pattern the pattern to parse. * @param stringDate ...
/** * This class handles all the functions related to an Institute. */ @Service @Transactional public class InstituteService implements UserDetailsService { private InstituteRepository instituteRepository; private InstituteClassRepository instituteClassRepository; private StudentRepository studentReposit...
#include <cstdio> #include <algorithm> #include <set> #include <utility> #include <vector> #include <cmath> using namespace std; const int CMax = 100002; int n; long long p, A[CMax][2], B[CMax], C[CMax], D[CMax]; double ats = 0; int main(){ scanf("%d %I64d", &n, &p); for (int i = 0; i < n; i++){ scanf("%I64d %I...
Blockchain Based E-Voting System: Open Issues and Challenges Blockchain technology has become very trendy and penetrated different domains, mostly due to the popularity of cryptocurrencies. Blockchain technology offers decentralized nodes for e-voting and is used to create e-voting systems, mainly because of their end...
use ::reqwest::blocking::Client; use clap::{App, Arg}; use console::Term; use const_format::formatcp; use log::*; use std::path::Path; mod api; mod app; mod branch_protection_rules; mod config; mod context; mod models; mod options; mod repository_settings; mod topic_operation; const PKG_NAME: &str = env!("CARGO_PKG_...
<gh_stars>1-10 /* vi: set sw=4 ts=4: */ /* * getopt.c - Enhanced implementation of BSD getopt(1) * Copyright (c) 1997, 1998, 1999, 2000 <NAME> <<EMAIL>> * * Licensed under GPLv2 or later, see file LICENSE in this source tree. */ /* * Version 1.0-b4: Tue Sep 23 1997. First public release. * Version 1.0: Wed N...
Doctors of Indian origin living overseas who want to practice, research or teach in India can now get work permits within a fortnight. “Overseas doctors willing to contribute to India’s healthcare can now apply online … the application will be processed within 15 days, including permission to practice from the Medical...
Towards risk knowledge management in unmanned aerial vehicles applications development UAV (Unmanned Aerial Vehicle) applications development projects are complex due to the high level of details involved in the development stages and the different components that must be integrated within the same project. This paper...
<reponame>kun-shang/GRACE-Gravity-Inversion<gh_stars>0 /* ------------------------------------------------------------------------ Purpose: some subroutines of matrix and vector operation Notes: Programmer: <NAME> @ 4.29.2014 Functions: void mgrns(double u, double g, double *r,int n,double a...
First, I cut down some plastic Suja juice bottles, which I thought had an interesting shape. Since I want water to be able to easily drain out of the planters, I glued a piece of a drinking straw to the bottom of the bottle. For my inner shell, I used an old film container, but you could also use an empty cosmetics bo...
<filename>go/concurrency/3.fan_in_and_out/2.fan_in_out/main.go<gh_stars>0 package main import ( "fmt" "sync" ) func GetPipeLine(left, right int) <-chan int { c := make(chan int) go func() { for i := left; i < left+right; i++ { c <- i } close(c) }() return c } func filterOdd(in int) (int, bool) { if i...
/** * This class exists to provide methods that Javascript in a WebView can make * callbacks on. Currently this class is attached using * addJavascriptInterface(one of these, "ParentProxy"); as a result, the * JavaScript can call the @JavascriptInterface methods of this class as if they * were methods of a global ...
// Converts a duplex mode to its Mojo type. mojom::PrintDuplexMode ToArcDuplexMode(int duplex_mode) { printing::mojom::DuplexMode mode = static_cast<printing::mojom::DuplexMode>(duplex_mode); switch (mode) { case printing::mojom::DuplexMode::kLongEdge: return mojom::PrintDuplexMode::LONG_EDGE; c...
import { _getWordRandomc_, _getWordLowerc_, _getWordUpperc_, _getNumber_, _getSpecial_, } from "../lib/chart"; import { _shuffle_ } from "../lib/permuter"; interface options { length: number; lowercase?: boolean; uppercase?: boolean; number?: boolean; special?: boolean; } enum sizes { min = 0, ...
Residential Experiences and the Culture of Suburbanization: A Case Study of Portuguese Homebuyers in Mississauga This paper examines the housing experiences of immigrants to Canada through a survey of first-generation Portuguese homebuyers in Mississauga, a suburb of Toronto. The survey focused on the push/pull factor...
/** * Created by allenliu on 2017/8/31. */ public class AllenHttp { private static OkHttpClient client; public static OkHttpClient getHttpClient() { if (client == null) client = new OkHttpClient(); return client; } private static <T extends Request.Builder> T assembleHead...
//MoveTypes returns all moves that are valid in this game: all of the Moves //that have been added via AddMove during initalization. Returns nil until //game.SetUp() has been called. func (g *GameManager) moveTypes() []*moveType { if !g.initialized { return nil } return g.moves }