content
stringlengths
10
4.9M
<reponame>arigesher/disaster_tweet_reports<filename>disaster_tweets/GoogleReverseGeocoder.py # Copyright 2012 Palantir Technologies # # 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 # #...
<gh_stars>1-10 package ru.nivanov.storages; import ru.nivanov.foods.GeneralFood; import java.util.ArrayList; /** * Created by <NAME> on 28.02.2017. */ public class WareHouseStorage implements GeneralStorage { private static final int TOTAL_SIZE = 3; private static final int TWENTYFIVE = 25; private Arr...
Marrying Well: The Clinician's Guide to Premarital Counseling Marrying Well: The Clinician's Guide to Premarital Counseling Elena Lesser Braun, Anne F Ziff. New York, NY: W W Norton, 2010. ISBN-13: 978-0-39370-594-2. Price: £19.99. Pages: 280 (hardback) In an era where marriage is still looked upon with approval and...
/************************************************************************/ /* Dumps the specified range of the phone memory and */ /* sends out the content accordingly to the protocol rules */ /************************************************************************/ void handlerDump(con...
<gh_stars>1-10 package org.drools.compiler.compiler; import java.io.InputStream; import org.kie.api.Service; import org.kie.internal.builder.ScoreCardConfiguration; public interface ScoreCardProvider extends Service { String loadFromInputStream( InputStream is, ScoreCardConfigura...
/** * Represnetation of an index on a specific database column. */ public final class IndexSpecification { /** * The name of this index. */ private final String indexName; /** * The table on which the index is placed. */ private final String tableName; /** * The list of columns indexed. */ pri...
Noble rot on Riesling grapes Noble rot (French: pourriture noble; German: Edelfäule; Italian: Muffa nobile; Hungarian: Aszúsodás) is the beneficial form of a grey fungus, Botrytis cinerea, affecting wine grapes. Infestation by Botrytis requires moist conditions. If the weather stays wet, the damaging form, "grey rot",...
Elijah Doughty: Melbourne brought to standstill as protesters march against sentence Updated A huge crowd has blocked one of the busiest thoroughfares in Melbourne during a protest against what they say is the "unjust" verdict handed to a man who killed Aboriginal teenager Elijah Doughty. Hundreds of protesters marc...
def chat_commands(self): return [cmd.app.name for cmd in ChatCommandHandler.register.values()]
/** * @author Tatsuya Oba */ @Singleton public class UserService { private final EbeanServer ebeanServer; @Inject public UserService(final EbeanServer ebeanServer) { this.ebeanServer = ebeanServer; } public List<User> getAllUser() { return ebeanServer.find(User.class) ...
def print_help(self): print("\nTestbench arguments:") print("-V enable terminal output") print("-G enable GUI mode") print("-MODELSIM set modelsim simulator (default)") print("-RIVIERA set Aldec Riviera Pro simulator\n") sys.exit(0)
<filename>cli/src/macros.rs macro_rules! skip_fail { ($res:expr) => { match $res { Ok(val) => val, Err(e) => { eprintln!("{:?}", e); continue; } } }; }
<gh_stars>10-100 package carboncfg_test import ( "os" "testing" "github.com/pkg/errors" log "github.com/sirupsen/logrus" "github.com/stretchr/testify/assert" apicorev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" kubecommon "github.com/starofservice/carbon/pkg/kubernetes/common"...
/** * Store appropriately properties regarding the manifest file. */ private void storeManifestChanges() throws IOException { FileObject manifestFO = FileUtil.toFileObject(getManifestFile()); EditableManifest em; if (manifestFO != null) { em = Util.loadManifest(manifestFO);...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: _proto/kelda/messages/v0/messages.proto package messages import ( fmt "fmt" proto "github.com/golang/protobuf/proto" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = ma...
package cross_loginflow import ( "fgame/fgame/game/arenapvp/pbutil" crossloginflow "fgame/fgame/game/cross/loginflow" crosstypes "fgame/fgame/game/cross/types" "fgame/fgame/game/player" ) func init() { crossloginflow.RegisterCrossLoginFlow(crosstypes.CrossTypeArenapvp, crossloginflow.HandlerFunc(arenapvpAttend))...
After suffering back-to-back losses at Light Heavyweight, Rashad Evans attempted to right his ship by dropping down to Middleweight for his fight against Daniel Kelly at UFC 209 a few weeks ago. Instead, “Suga” suffered his third straight defeat after coming up short on the judges’ scorecards (video replay here). Acco...
// Pick a random ID for a key func (lib *PKCS11Lib) generateKeyID() ([]byte, error) { const labelSize = 32 rawLabel := make([]byte, labelSize) sz, err := lib.GenRandom(rawLabel) if err != nil { return nil, errors.Trace(err) } if sz < len(rawLabel) { return nil, errors.Trace(errCannotGetRandomData) } label :...
Synthesis and SAR Study of Novel Peptide Aldehydes as Inhibitors of 20S Proteasome Based on the analysis of the crystal structure of MG101 (1) and 20S proteasomes, a new series of peptide aldehyde derivatives were designed and synthesized. Their ability to inhibit 20S proteasome was assayed. Among them, Cbz-Glu(OtBu)-...
// PullImage pulls an image from a registry to the image store. func (i *LibpodAPI) PullImage(call iopodman.VarlinkCall, name string) error { var ( imageID string err error ) dockerRegistryOptions := image.DockerRegistryOptions{} so := image.SigningOptions{} if call.WantsMore() { call.Continues = true }...
/* as a client, we pass the notification to our server */ static pmix_status_t notify_server_of_event(pmix_status_t status, const pmix_proc_t *source, pmix_data_range_t range, pmix_info_t ...
package ag.ag.items.materials; import net.minecraft.item.ToolMaterial; import net.minecraft.recipe.Ingredient; /** * A custom material for all Carbon Nanotube tools */ public class CarbonNanotubeMaterial implements ToolMaterial { public static final CarbonNanotubeMaterial INSTANCE = new CarbonNanotubeMaterial()...
<gh_stars>1-10 /* * Lesson 9 Coding Activity Question 1 * * Write the code to print a random integer from 1 to 10 inclusive using Math.random(). * */ import java.lang.Math; class Lesson_9_Activity_One { public static void main(String[] args) { System.out.println((int) (Math.random() * 10) + 1); ...
import {ParameterJoint} from './factor-calculator-types'; import {TenantId} from './tenant-types'; import {TopicHolder, TopicId} from './topic-types'; import {OptimisticLock, Tuple, TupleHolder} from './tuple-types'; import {UserGroupHolder} from './user-group-types'; /** filter */ export interface SpaceFilter { topi...
Analysis of features selection for P2P traffic detection using support vector machine Network traffic classification plays a vital role in various network activities. Network traffic data include a large number of relevant and redundant features, which increase the flow classifier computational complexity and affect t...
def Predict(self, image_jpeg_bytes): predictor = caip.Predictor() input_data = { 'instances': [{ 'inputs': [{ 'b64': base64.b64encode(image_jpeg_bytes).decode() }] }] } response = predictor.Predict(input_data, self._model_config) prediction = r...
<filename>Emptify/StringConversions.cpp #include "StringConversions.hpp" #include <codecvt> #include <locale> namespace emptify { std::string Utf16ToUtf8(const wchar_t* wide) { return std::wstring_convert<std::codecvt_utf8<wchar_t>>().to_bytes(wide); } std::string Utf16ToUtf8(const wchar_t* w...
<reponame>misuchiru03/intercept<filename>src/interception/tc_combine.h #ifndef TC_COMBINE_INCLUDED #define TC_COMBINE_INCLUDED #if (TC_COMBINED) void buffer_and_snd(int fd, msg_server_t *msg); void send_buffered_packets(void); #endif #endif /* TC_COMBINE_INCLUDED */
/** * View Pager Activity * * Major Takeaways * -If you want the strip at the top near the tabs that indicates what tab you're on, must nest a PagerTabStrip inside the viewpager * -Needs a adapter to determine how many pages exist and what fragment to display at those pages * -Adapter needs to use supportFragment...
/** * Leaf node info class to store the information about the Btree leaf */ public class LeafNodeInfo implements Serializable { /** * serialization id */ private static final long serialVersionUID = 1873135459695635381L; /** * Number of rows in this leaf node */ private int numbe...
/** * Adds the elements of another container of the same type. * * @param container The other container. */ @Override public void add(Container<Pacman> container) { for (Pacman p : container) { this.add(p); } }
/** * This method updates the Map pair based on maxfrequency * @param a */ public ArrayList<Integer> updatePosition(char a) { ArrayList<Integer> hasposition = new ArrayList<Integer>(); for (int i = 0; i < this.wordLength; i ++) { if ((this.selectFrequency.get(i) >= this.getMaxFrequency()) && (this.selectOr...
<reponame>chairco/dj-realtime-visualization #-*- coding: utf-8 -*- import datetime import itertools import pytz from borax.fetch import fetch from pyecharts import HeatMap, Bar, Line, Grid, Scatter, EffectScatter, Style from films.models import FilmGap, Film from films.factory import ChartFactory from django.db.mode...
Breaking up Is Hard to Do: Explaining the 2002 San Fernando Valley Secession Vote ABSTRACT: In November 2002 the voters of Los Angeles soundly rejected Proposition F which, if approved, would have authorized the secession of the San Fernando Valley in order to constitute a city independent of Los Angeles. This article...
Combined Arms Resist Shield Fixed issue where the visual component of resist shield did not appear. Supernova PC (Magrider HEAT) · Damage from 500 to 550 Dev note: HEAT damage over time was too low compared to AP. C75 Viper (Lightning) Cone of Fire · Recovery Delay from 1 second to 0 · Recovery Rate from 1 deg...
#setup: import numpy as np ; grid_shape = (512, 512) ; grid = np.zeros(grid_shape) ; block_low = int(grid_shape[0] * .4) ; block_high = int(grid_shape[0] * .5) ; grid[block_low:block_high, block_low:block_high] = 0.005 #run: evolve(grid, 0.1) #from: High Performance Python by <NAME> and <NAME>, http://shop.oreilly.com/...
/* * 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 required by applicable law ...
<gh_stars>1-10 import db from './db'; import { InternalError } from '../errors/index'; export function query(req: string, params?: Array<string | number>): Promise<any> { return new Promise((resolve, reject) => { db.query(req, params, (err, result) => { if (err) return reject(new InternalError()); resolve(resu...
class LaunchJobs: """Launch jobs in nodes - Scheduled - Single execution """ def __init__(self): self.TAG = self.__class__.__name__ self.logger = PulzarLogger(master=False) self.utils = Utils() self.data_base = RDB(Constants.DB_NODE_JOBS) self.jobs_to...
<filename>definitions/gradesRes.ts /** * @apiDefine gradesRes * @apiSuccessExample {json} Success Response: * { * "items": [ * { * "begin": "2020-08-01", // Time this grade was added? * "einde": "2020-07-31", // Time this grade was added? * "groep": { * ...
#include <bits/stdc++.h> using namespace std; #define vll vector<long long> int main() { int n; cin >> n; vll v(n); vll pref1(n+1,0), pref2(n+1,0); for(int i=0; i<n; i++) { cin >> v[i]; pref1[i+1] = pref1[i]+v[i]; } sort(v.begin(),v.end()); for(int i=0; i<n; i++) pref2[i+1] = pref2[i]+v[...
VNIIGiM contribution to the development of land reclamation sciences of Russia FGBNU «VNIIGiM them. A.N. Kostyakova» heads the land reclamation science of the country for 95 years. Much has been done over this period. The Institute gave the largest scientists in the field of land reclamation and hydraulic engineering,...
Podcasting is starting to become big business with over 2.6 billion downloads in 2014. Edison Research reported that fully one-third of all Americans 12 years of age or older now say they have listened to at least one podcast. One of the biggest new segments of podcasts is books and today we are going to look at some o...
def data_preprocessing(df, ohe=False): df_new = df.copy() feature_engineering(df_new) cols_to_drop = ['emp_title', 'zip_code', 'application_type', 'desc', 'funded_amnt', 'funded_amnt_inv', 'grade', 'pymnt_plan', 'title', 'issue_d', ] df_new.drop(labels=cols_to_drop, axis=1, inplace=T...
import { Component, OnInit, ViewChild, OnDestroy, AfterViewInit } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { combineLatest, Subject } from 'rxjs'; import { takeUntil, mergeMap } from 'rxjs/operators'; import { RouterNavigationService, ResourceService, ToasterService, Server...
/** * Config service. * * An application dev team defines the configuration contract of the application in the logical model: * <p> * By being associated to a ConfigSet, an executionNode exposes contract of configureable keys it supports. This contract precises the intended syntax and associated semantic with each...
// Converts the given 32-bit operation to a target-specific SelectionDAG node. // Because i32 isn't a legal type for RV64, these operations would otherwise // be promoted to i64, making it difficult to select the SLLW/DIVUW/.../*W // later one because the fact the operation was originally of type i32 is // lost. static...
// Synchronous calls return ZOK or throw an exception, but async calls get // an integer so should use this. This could perhaps use standardising. PyObject *pyzerror(PyObject *self, PyObject *args) { int rc; if (!PyArg_ParseTuple(args,"i", &rc)) return NULL; return Py_BuildValue("s", zerror(rc)); }
# Table of Contents * Title * Title Page * Copyright Page * FOREWORD BY SIR JEREMY ISAACS * INTRODUCTION * INTERVIEWEES * CHAPTER 1 GERMANY'S HITLER * CHAPTER 2 JAPAN'S MILITARISM * CHAPTER 3 APPEASEMENT AND PHONEY WAR * CHAPTER 4 BATTLE OF THE ATLANTIC 1939–40 * CHAPTER 5 FALL OF FRANCE AND DU...
/** * @brief DFSDM1 Initialization Function * @param None * @retval None */ static void MX_DFSDM1_Init(void) { hdfsdm1_filter0.Instance = DFSDM1_Filter0; hdfsdm1_filter0.Init.InjectedParam.Trigger = DFSDM_FILTER_EXT_TRIGGER; hdfsdm1_filter0.Init.InjectedParam.ScanMode = ENABLE; hdfsdm1_filter0.Init.Inje...
/** * {@link ListItem} implementation for page links. */ public class PageListItemImpl extends AbstractListItemImpl implements ListItem, LinkMixin { private final Page page; private final Link link; /** * @param page Page * @param link Link * @param parentId Parent ID * @param parentComponent The ...
Anyone who looks at central bankers speak can sense the fear behind their absurd bravado, and the dishonesty of their public confidence. The extraordinary disconnect between soaring stock markets and stagnating real economies has been gleefully embraced by all who benefit from the disconnect: The financial media, bro...
Cathepsin S mediates gastric cancer cell migration and invasion via a putative network of metastasis-associated proteins. Cancer progression is governed by multifaceted interactions of cancer cells with their microenvironment and one of these ways is through secreted compounds. Substances released by gastric cancer ce...
#include <cstddef> struct point { float x, y; void operator+=( const point& right ) { x += right.x; y += right.y; } point operator/( size_t count ) const { point p = *this; p.x /= count; p.y /= count; return p; } }; inline float dista...
// If a Merge node has a NextIteration node as an input then that input will // try to forward an UnknownShape at graph construction time. However, the // Merge shape function will always propagate an UnknownShape if any of its // inputs are UnknownShapes. So we need to ignore the input from NextIteration // nodes to p...
Divergence of virulence factors of Helicobacter pylori among clinical isolates does not correlate with disease specificity. The aim of this study was to examine the relation between disease specificity and the virulence factors of Helicobacter pylori isolated from patients with gastric cancer (GC), duodenal ulcer (DU)...
<gh_stars>1-10 /** * Created by zc on 2020/8/8. **/ package route import ( "github.com/go-chi/chi" "github.com/zc2638/drone-control/handler" "luban/handler/api" "luban/handler/web" "net/http" ) func New() http.Handler { mux := chi.NewMux() mux.Get("/", func(w http.ResponseWriter, r *http.Request) { http.Red...
def unpack_frames(filename, field_request, streams): if streams is None: streams = field_request.empty() reader = so3g.G3IndexedReader(filename) while True: frames = reader.Process(None) if len(frames) == 0: break frame = frames[0] if frame.type == core.G3...
BOSTON, March 31, 2016 /PRNewswire-USNewswire/ -- Inaction on raising net metering caps and reforming the Commonwealth's Solar Renewable Energy Credit (SREC) program has stopped construction of more than 500 solar projects valued at $617 million, which is costing cities and towns $3.2 million in annual tax revenues, ac...
package com.adailsilva.iotenergymeter.api.thethingsnetwork.services; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.dao.EmptyResultDataAccessException; import org.springframework.stereotype.Service; import com.adailsilva.iotenergymeter.api.thethingsnetwork.entities.TTN...
''' A source is any input data source. Say a IQ.wav file ''' from abc import ABCMeta, abstractmethod import directdemod.constants as constants import numpy as np import scipy.io.wavfile ''' Abstract model of a class, to keep the models consistent Any source must inherit this abstract class The general structure is as...
An FPGA-Based LDPC Decoder With Ultra-Long Codes for Continuous-Variable Quantum Key Distribution In this paper, we propose a good decoding performance, low-complexity, and high-speed decoder architecture for ultra-long quasi-cyclic LDPC codes by using the layered sum-product decoding scheme. To reduce implementation ...
// validateAddr asserts that an addr parsed by ParseAddressString matches the // properties expected by its addressTest. In particular, it validates that the // Network() and String() methods match the expectedNetwork and expectedAddress, // respectively. Further, we test the IsLoopback and IsUnix detection methods // ...
/** * Test equals and hascode methods. * * @throws Exception the exception */ @Test public void testModelEqualsHashcode041() throws Exception { Logger.getLogger(getClass()).debug("TEST " + name.getMethodName()); tester.include("conceptId"); tester.include("refsetId"); tester.include("fo...
/** * This class moved to {@link org.apache.stanbol.entityhub.query.sparql.SparqlFieldQuery}. * and now extends the new one. NOTE that calls to {@link #setEndpointType(EndpointTypeEnum)} * and {@link #getEndpointType()} will translate {@link EndpointTypeEnum} instances * to {@link SparqlEndpointTypeEnum}. * @autho...
Sleep and immune function among people living with human immunodeficiency virus (HIV) ABSTRACT People living with HIV are at increased risk for sleep disturbances. Up to 75% of the HIV-infected individuals in the United States experience sleep disturbances of some kind. Previous studies have suggested an association b...
<filename>general/src/functions/forums-create/handler.ts import 'source-map-support/register'; import { Forum } from 'src/@types/index.d'; import type { ValidatedEventAPIGatewayProxyEvent } from '@libs/apiGateway'; import { formatJSONResponse } from '@libs/apiGateway'; import { middyfy } from '@libs/lambda'; import re...
package com.genericmethod.moneymate.model; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.google.common.base.Objects; import io.dropwizard.validation.OneOf; import io.dropwizard.validation.ValidationMethod; import org.hibernate.validator.constraints...
/* * Greatest common divisor, implemented only for the least common multiple * below. * */ static int _gcd(const int m, const int n) { if (n == 0) return m; return _gcd(n, (m % n)); }
A Green Paper for the Abbott Government’s Energy White Paper is due to be released any day now. The Government says that the White Paper “will set out a coherent and integrated approach to energy policy to reduce cost pressures on households and businesses, improve Australia's international competitiveness and grow ou...
//========================================================= // Precache - precaches all resources this NPC needs //========================================================= void CNPC_Alyx::Precache() { BaseClass::Precache(); PrecacheScriptSound( "npc_alyx.die" ); PrecacheModel( STRING( GetModelName() ) ); PrecacheM...
India is among the most depressed countries in the world. At a rate of 36%, as recorded by World Health Organisation, it has the highest rate of depressed people recorded anywhere across the globe. Not to forget that it also has the highest suicide rate in the world too.The reason that depression is now being talked ab...
// false - not authorized to log in // true - authorized to log in pub fn login( &self, socket_addr: SocketAddr, client_id: &String, maybe_username: Option<String>, maybe_password: Option<String>, ) -> bool { let ip_net_addr = IpNet::from(socket_addr.ip()); le...
Secret South African documents reveal that Israel offered to sell nuclear warheads to the apartheid regime, providing the first official documentary evidence of the state's possession of nuclear weapons. The "top secret" minutes of meetings between senior officials from the two countries in 1975 show that South Africa...
Polysorbates and renal oxalate crystals in the E-Ferol syndrome. To the Editor.— We concur with the conclusion of Bove et al 1 that a more likely cause of the E-Ferol-associated toxic reaction is polysorbate. 2 Furthermore, we believe that this contention is consistent with their histopathologic findings of sinusoidal...
# Constants pertaining to game scripting LINK_TYPE_CONSTANT = 1 LINK_TYPE_METHOD = 2 LINK_TYPE_OBJECT = 3 LINK_TYPE_PROPERTY = 4 LINK_TYPE_CONDITIONAL = 5 LINK_TYPE_ITERATOR = 6 # each() function LINK_TYPE_THIS = 7 # "this" keyword for use within the each() iterator CONDITION_MET = 1 CONDITION_M...
/** * Generate sample http poller. * * @return the http poller processor */ public static HttpPollerProcessor generateSampleHttpPoller() { String pollerType = "CronusAgentPoller"; String successRegex = ".*\"progress\"\\s*:\\s*(100).*}"; String failureRegex = ".*\"error\"\\s*:...
<reponame>tjnt/atcoder data Tree a = Empty | Fork Int a (Tree a) (Tree a) newtype MinHeap a = MinHeap (Tree a) newtype MaxHeap a = MaxHeap (Tree a) type HeapPolicy a = (a -> a -> Bool) class Heap a where policy :: Ord e => a e -> HeapPolicy e wrap :: Tree e -> a e unwrap :: a e -> Tree e instance ...
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO Auto-generated method stub Scanner console = new Scanner(System.in); Scanner lineTokenizer = null; lineTokenizer = new Scanner(console.nextLine()); int n = lineToken...
<filename>src/client/Socket.ts import { io, Socket } from 'socket.io-client'; class SocketConnection { private static connection: Socket; private static instance: SocketConnection; private constructor() {} public static getInstance(): SocketConnection { if (!SocketConnection.instance) { SocketConnecti...
<reponame>rjw57/tiw-computer<filename>emulator/src/mame/drivers/c128.cpp // license:BSD-3-Clause // copyright-holders:<NAME> /* TODO: - connect CAPS LOCK to charom A12 on international variants */ #include "emu.h" #include "screen.h" #include "softlist.h" #include "speaker.h" #include "bus/c64/exp.h" #inclu...
<reponame>kou64yama/bcviz<filename>src/pages/DataLoader/index.ts import DataLoader from './DataLoader.vue'; export default DataLoader;
<gh_stars>1-10 package com.mercadopago.android.px.internal.features.hooks.components; import android.support.annotation.NonNull; import com.mercadopago.android.px.internal.view.RendererFactory; import com.mercadopago.android.px.internal.features.hooks.HookComponent; public class PaymentConfirm extends HookComponent<V...
//Released under the MIT License - https://opensource.org/licenses/MIT // //Copyright (c) 2019 AIT Austrian Institute of Technology GmbH // //Permission is hereby granted, free of charge, to any person obtaining //a copy of this software and associated documentation files (the "Software"), //to deal in the Software wit...
<gh_stars>1-10 /* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the lic...
The effect of feeding culture media with biogenetic precursors on high production of depsides in agitated shoot cultures of black and red aronias Agitated shoot cultures of two aronias, Aronia melanocarpa (Michx.) Elliott and Aronia arbutifolia (L.) Pers., were maintained on Murashige & Skoog medium (1 mg/l BA and 1 m...
<reponame>matheusd/dcrlnd // Code generated by protoc-gen-go. DO NOT EDIT. // source: routerrpc/router.proto package routerrpc import ( context "context" fmt "fmt" lnrpc "github.com/decred/dcrlnd/lnrpc" proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" math "math" ) // Reference imports to...
def trigger(self): if len(self.args) == 0: return self.action() else: return self.action(self.args[0])
<filename>src/UserList.tsx import * as React from "react"; import { ListGroup, ListGroupItem, UncontrolledTooltip } from "reactstrap"; import { ConnectionStatus } from "./WebRTCMultiConnector"; import { Bind } from "./Decorators"; import "./UserList.css"; export interface User { id: string; name: string; connect...
import {Arg, Args, Ctx, FieldResolver, ID, Query, Resolver, Root as GQLRoot} from 'type-graphql'; import {State, StateQL} from '../state/state'; import {DBObjectType} from '../../types/enums'; import {Radio, RadioIndexQL, RadioPageQL, RadioQL} from './radio'; import {Context} from '../../modules/server/middlewares/apol...
How internet porn turned my beautiful boy into a hollow, self-hating shell Mother tells how her 11-year-old boy's 'entire character' changed when he began watching porn on his laptop in his own bedroom His internet history showed he had also watched 'vile, paedophiliac images' presented in cartoon form More needs to...
Image credit: Jasper Van Der Meij Sponsor me on Patreon to support more content like this. In the previous part in this series, we touched upon user authentication and JWT. In this episode, we'll take a quick look at the go-micro's broker functionality and even brokering. As mentioned in previous posts, go-micro is ...
/* * Copyright (c) 2018. <NAME>, <EMAIL> * * 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 appl...
/** * Writes a {@link BufferedImage} to a file. * * @param image {@link BufferedImage} * @param imageFile File to write to. * @throws IOException If file could not be written */ private void writeImage(BufferedImage image, File imageFile) throws IOException { OutputStream resultImageOutputStream = ne...
/* * * This file is part of the open-source SeetaFace engine, which includes three modules: * SeetaFace Detection, SeetaFace Alignment, and SeetaFace Identification. * * This file is part of the SeetaFace Detection module, containing codes implementing the * face detection method described in the following paper:...
/** * Exception thrown when a method is called that is not implemented. * * @author kschneider * */ public class NotImplementedException extends RuntimeException { private static final long serialVersionUID = 1L; /** * Constructs a new exception instance. The detail message includes the * class name, met...
package enums import ( "bytes" "encoding" "errors" github_com_eden_framework_enumeration "gitee.com/eden-framework/enumeration" ) var InvalidDroneCiPlatformArch = errors.New("invalid DroneCiPlatformArch") func init() { github_com_eden_framework_enumeration.RegisterEnums("DroneCiPlatformArch", map[string]string...
<reponame>cuba-platform/sampler package com.haulmont.sampler.web.ui.components.lookupfield.relatedentity; import com.haulmont.cuba.core.entity.Entity; import com.haulmont.cuba.core.global.Metadata; import com.haulmont.cuba.core.global.MetadataTools; import com.haulmont.cuba.gui.Notifications; import com.haulmont.cuba....
The First Medium.com Interview with a Sitting President David Siegel Blocked Unblock Follow Following Apr 5, 2016 In which David Siegel talks with Barack Obama about war, the economy, minimum wage, obesity, education, climate change, and “unbundling science.” After YouTube and Reddit have both had interviews with Ba...
def optimize(self, vc_init, vc_init_type): if vc_init_type == 'lowrank' or vc_init_type == 'diagonal': self._genoCov.setCovariance(vc_init._genoCov.C.K()) self._envCov.setCovariance(vc_init._envCov.C.K()) self._cageCov.scale = vc_init._cageCov.scale elif ...