content
stringlengths
10
4.9M
Spread the love By: JoOnna Silberman, LightningDiva@Large It’s been said that traveling in an airplane is much safer than driving in a car, but that doesn’t mean aircrafts are not susceptible to damage from electrostatic charges. It has been proven that lightning actually does strike aircrafts, sometimes leaving the...
Evaluation of the Usefulness of Breast CT Imaging in Delineating Tumor Extent and Guiding Surgical Management: A Prospective Multi-Institutional Study Objective: The aim of the present study was to evaluate the usefulness of computed tomographic (CT) imaging in delineating tumor extent and guiding surgical management....
The present age is the age of technology. Life without the use of technology is impossible. Can you imagine your life without the use of a computer or Smartphones? The answer is no of course. In present times, most of your work is done with the help of computers or smart devices. While carrying out your day-to-day acti...
Macrophages Facilitate Coal Tar Pitch Extract-Induced Tumorigenic Transformation of Human Bronchial Epithelial Cells Mediated by NF-κB Objective Chronic respiratory inflammation has been associated with lung cancer. Tumor-associated macrophages (TAMs) play a critical role in the formation of inflammation microenvironm...
ABOARD THE TCG ALEMDAR (Reuters) - In blazing sunlight, two dozen U.S. and Turkish sailors on a NATO exercise lower an American diving bell from an advanced Turkish rescue ship, sending it deep under the Aegean Sea where it is secured to a submarine. U.S. and Turkish sailors prepare a U.S. Navy Submarine Rescue Chambe...
package fr.cookiedev.codebreaker.core.questions.impl; import fr.cookiedev.codebreaker.core.Code; import fr.cookiedev.codebreaker.core.Tile; import fr.cookiedev.codebreaker.core.Tile.Color; import fr.cookiedev.codebreaker.core.questions.Question; public class BlackSumQuestionImpl implements Question { @Override pub...
def additional_pixel_clock(self): return (self._block[12] >> 2) * 0.25
<gh_stars>1000+ /** Copyright (c) 2015-present, Facebook, Inc. All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. */ #ifndef __xcsdk_SDK_Manager_h #define __xcsdk_SDK_Manager_h #include <xcsdk/SDK/Platform.h> #includ...
def loadUserConfig(self): configFile = '.config' pictureFile = '.picture' userConfig = self.viewRemoteFile(configFile) userConfigData = {} pictureConfig = str(self.viewRemoteFile(pictureFile)) userConfigData['picture'] = str(pictureConfig) for i in userConfig.stri...
by We can all agree that President Donald Trump is a disaster for the country. He has been proving this pretty much every day since his inauguration. But Democrats and progressive activists need to do more than decry Trump’s horrific actions, from his ban on immigrants, including refugees, from seven majority-Muslim...
<filename>Android_Project/app/src/main/java/com/example/jigar/booyahproject/rest/model/response/RatingsResponse.java package com.example.jigar.booyahproject.rest.model.response; import com.google.gson.annotations.SerializedName; import java.io.Serializable; import java.util.ArrayList; import java.util.List; /** * R...
def _process_ingest(self, ingest, file_path, file_size): if ingest.status not in ['TRANSFERRING', 'TRANSFERRED']: raise Exception('Invalid ingest status: %s' % ingest.status) ingest.file_path = file_path ingest.file_size = file_size if ingest.is_there_rule_match(self._file_ha...
/** * Created by Haotao_Fujie on 2016/11/9. */ public class ActivityBean { public MallActivity activity; public class MallActivity { public String image; public String desc; public String uri; } }
/** * Provides static utility methods for translating properties between Java and SQL. */ public final class PersistenceHelper { private PersistenceHelper() {} /** * Returns the name of the table associated with class {@code c}. * Table name defaults to the name of the class, but may be customized with the {@l...
/*** * Insert Data Into Mongo With Partitions * * Takes a set of KeySpacePartition objects and a ThreadPoolExecutor and starts a thread on each partition to migrate * data from CouchDB to MongoDB in that range * * @param executor A ThreadPoolExecutor object containing all the threads to run the migration ...
Book Review: IV. Ministry Studies: Enlarge Your World Sunday School Division of the Texas Baptist Convention, has put together a good survey of religious education as this is expressed by Southern Baptists. The different authors include seminary professors, denominational leaders, and practitioners in the local church...
/** * @author Crated By YangKai On 2019/12/26 */ @Service @Slf4j public class MessageService { public Mono<String> parseMessageBody(String messageBody) { return Mono.just(messageBody).map(m -> { Map<String, String> messageMap = new HashMap<>(0); SAXReader reader = new SAXReader(); ...
/** * Checks if a given classifier supports the desired capability. * * @author Ingo Mierswa */ public class WekaLearnerCapabilities { public static boolean supportsCapability(Classifier classifier, OperatorCapability lc) { if (!(classifier instanceof SerializedClassifier)) { Capabilities capabiliti...
<filename>src/features/result/Result.tsx import React, { FC, useEffect } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import result, { ResultState } from './resultSlice'; import { RootState } from '../../app/rootReducer'; import ResultSection from './ResultSection'; import AllLoveTypesSection f...
<reponame>zwizwa/asm_tools {- Loop transformation algebra This is a mini-language used to illustrate loop transformations, stripped from all non-essentials such as primtive operations and loop/grid sizes. These can then be lifted to languages with more annotation. These are the (bi-directional) operations in the n...
/** * Writes the specified text value to the file * @param path File path * @param value The value to write * @return The result of the operation (true = successful write, false = write failed) */ public static boolean writeValue(String path, String value) { if (value == null) ...
/** * Application event that represents configuration file has been changed * * @author Code2Life * @see DynamicConfigPropertiesWatcher */ @Getter @Setter public class ConfigurationChangedEvent extends ApplicationEvent { /** * The diff properties, keys are normalized, values are newest values */ ...
/** * Creates a class out of a given array of bytes with a ProtectionDomain. * * @param name binary name of the class, null if the name is not known * @param b a byte array of the class data. The bytes should have the format of a * valid class file as defined by The JVM Spec * @param offset offset of t...
On May 14, 1889, the North Carolina Granite Company was founded in Surry County by Thomas Woodroffe. It has been in continuous operation since. Now known as the North Carolina Granite Corporation, it is the world’s largest open-faced granite quarry. The site has produced granite for many high rise buildings and even f...
def _vdc_get_by_id(self, arg_vdc_id): ret_vdc_id = 0 ret_vdc_dict = dict() api_params = dict(cloudspaceId=arg_vdc_id,) api_resp = self.decs_api_call(requests.post, "/restmachine/cloudapi/cloudspaces/get", api_params) if api_resp.status_code == 200: ret_vdc_id = arg_vd...
package com.artemis.generator.model.type; import java.lang.reflect.Type; import java.util.ArrayList; import java.util.List; /** * Sourcecode generator agnostic model of class. * <p> * @author <NAME> */ public class TypeModel { public String name = "unnamed"; public String packageName = "com.artemis"; ...
/* This writes to the RX_DESC_WPTR register for the specified receive * descriptor ring. */ void efx_nic_notify_rx_desc(struct efx_rx_queue *rx_queue) { efx_dword_t reg; unsigned write_ptr; while (rx_queue->notified_count != rx_queue->added_count) { efx_build_rx_desc(rx_queue, rx_queue->notified_count & ...
<reponame>MCHAMOUXCAPG/TeamSpirit import { Column } from "material-table"; export enum questionType { slider, fiveIcons, twoIcons, stars, } export interface ISurveyQuestion { number: number; question: string; type: questionType; images: string[]; } export interface IQuestionStatus { status?: string...
<reponame>MarinPostma/AOC2021 {-# LANGUAGE DeriveDataTypeable #-} {-# OPTIONS_GHC -fno-cse #-} module Lib ( entry ) where import System.Console.CmdArgs import Data.List import Control.Exception import Data.Void import Data.Char (digitToInt) import Data.Ratio import Data.Bits import Numeric import Data.Bifuncto...
def const_cgmap(ctxstr, cgmapfile, readdepth=4): cgmap = {} with open(cgmapfile) as infile: for chr in ctxstr.keys(): cgmap[chr] = ['-' for _ in xrange(len(ctxstr[chr]))] for line in infile: line = line.strip().split() chr = line[0] pos = int(line[...
def seek(self, frame): if frame != 0: raise EOFError
/** * Created by Administrator on 2014/7/27 0027. */ public class Candy { public int candy(int[] ratings) { if (null == ratings) { return 0; } int sum = ratings.length; int last = 1; for (int i = 0; i < ratings.length;) { if (i - 1 >= 0 && ratings[i...
#ifndef __SENSORS_H #define __SENSORS_H #include <stdint.h> #include "rfreport.h" enum value_type { SENSOR_INT, SENSOR_FLOAT, SENSOR_STRING, }; struct sensor_measurement { const char *property_name; const char *unit; enum value_type type; uint8_t precision; // How many decimals are vali...
<reponame>bacali95/ngx-json-table<gh_stars>0 export * from './lib/lib/settings'; export * from './lib/ngx-json-table.component'; export * from './lib/ngx-json-table.module';
// Copyright 2022 PyMatching Contributors // // 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 ...
/** * Tests whether the multiplication of {@code x*y} will cause long overflow */ public static boolean isOverflowMultiply(long x, long y) { long r = x * y; long ax = Math.abs(x); long ay = Math.abs(y); if (((ax | ay) >>> 31 != 0)) { if (((y != 0) && (r / y != x)) |...
In early October, we called on PornHub to seize the opportunity and build the greatest data-fueled brand blog of all time. A few months later, they’ve followed through, creating one of the most detailed cultural studies of human sexuality we’ve seen since William Masters and Virginia Johnson teamed up in the late ’50s....
“There will be a ton of froth in the water during the first three months. Folks will be squeezing each other and not making many friends.” Yes, Washington marijuana growers will have product ready for sale in the first week of July in time for the first wave of 20-30 stores receiving state licenses. Exactly which day...
Acting Honolulu Police Chief Cary Okimoto may face uncomfortable questions come January as he attempts to explain to police commissioners his proximity to a growing scandal involving a missing mailbox. On Tuesday, Okimoto took over the nation’s 20th-largest police department after his boss, Chief Louis Kealoha, volunt...
num = input() num = list(map(int, num.split())) lst = [] for i in range(num[0]): button = input() button = list(map(int, button.split())) button.remove(button[0]) for elem in button: if elem not in lst: lst.append(elem) lst.sort() if lst ...
<gh_stars>0 use crate::repos::shared::repo::DeleteResult; use nettu_scheduler_domain::{Entity, Meta, ID}; use std::sync::Mutex; use super::query_structs::MetadataFindQuery; /// Useful functions for creating inmemory repositories pub fn insert<T: Clone>(val: &T, collection: &Mutex<Vec<T>>) { let mut collection = ...
def clear_notification( loop: Union[urwid.MainLoop, urwid.main_loop.EventLoop], data: Any ) -> None: widgets.notifications.contents.pop() loop.remove_alarm(_alarms.get())
def update(self, update_values: Dict[str, List[float]]) -> None: for metric_name, metric_values in update_values.items(): getattr(self, metric_name).update(metric_values)
Bringing Schemas to the Schemaless Ad-hoc spreadsheets can be appealing for managing some kinds of scientific data, but they allow bad practices like inconsistent types (e.g., string, integer, decimal) within individual columns, as well as open-ended categorical values (e.g., cell shapes). We have developed tools that...
Voice of the Wetlands All-Stars 04/25/2010 Nola Jazzfest, New Orleans, LA Set: Bayou Breeze, Lousiana Sunshine, Lonely Lonely Nights, Ya-Ya, Poor Man’s Paradise, The Things that I Used To Do, Band Intros, Me Donkey Want Water, Make A Good Gumbo Bluesman Tab Benoit founded this Louisiana super-group in 2004 to raise ...
<filename>terrascript/resource/oktadeveloper/oktaasa.py # terrascript/resource/oktadeveloper/oktaasa.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:23:27 UTC) import terrascript class oktaasa_assign_group(terrascript.Resource): pass class oktaasa_create_group(terrascript.Resource): pass ...
#include "SocketHandler.h" Socket SocketHandler::CreateUDPSocket(unsigned short portno) { int sockfd = socket(AF_INET, SOCK_DGRAM, 0); struct sockaddr_in serveraddr; bzero((char *) &(serveraddr), sizeof(serveraddr)); serveraddr.sin_family = AF_INET; serveraddr.sin_addr.s_addr = htonl(INADDR_ANY); serveraddr.sin_...
def log_timeout(self, log_topics): values = [] for topic in log_topics: values.append((self.get_topic_name(topic), self.last_seen.get(topic))) c = self.connection.cursor() c.executemany( "INSERT INTO topic_log (topic, last_seen_before_ti...
Incorporation of the Radioactive Interinfluence in Multi-Unit Seismic PRA Kashiwazaki-Kariwa nuclear power station of TEPCO is the largest nuclear power station in the world, and it has seven nuclear power plants. As the experience at Fukushima Daiichi nuclear power station accident in March 2011 involving concurrent ...
About We are three IT professionals with experience in programming, server management, storage, security, networking, web hosting, car audio installs, food preparation and restaurant management. We would like to start a buisness in Boston where IT professionals, students and anyone interested in technology can come t...
Through five games, it’s been a struggle defensively for the Los Angeles Rams. Outside of facing an abysmal Colts offense in Week 1, and limiting the Seahawks to just 241 total yards on Sunday, the Rams’ defense has not been good. It ranks 23rd in points and 20th in yards allowed, while the offense is second and fifth...
/** Maps a RevCommit object to a VcsCommit object. */ public class RevCommitMapper { public static Commit map(RevCommit revCommit) { Commit commit = new Commit(); commit.setName(revCommit.getName()); commit.setAuthor(revCommit.getAuthorIdent().getName()); commit.setComment(revCommit.getShortMessage()...
<gh_stars>0 import { Layout } from "antd"; import { NormalizedCacheObject } from "apollo-cache-inmemory"; import ApolloClient from "apollo-client"; import cookie from "cookie"; import Link from "next/link"; import { MouseEvent, PureComponent } from "react"; import * as React from "react"; import { redirect } from "../....
<filename>src/clustering.py import numpy as np from sklearn.cluster import MiniBatchKMeans # # Constants # kmeans_batch_size = 100 n_clusters = 32 # # HSL <> HHSL methods # def hcos_hsin_to_h(hh_array): h_array = [] for i in range(hh_array.shape[0]): cosinus = hh_array[i][0] sinus = hh_arra...
SecondLie wants you to hate cancer. SecondLie, the premier Second Life Twitter parody account, is raising money for cancer research as a part of the broader Relay For Life campaign. If you’re a Second Life user, click the ‘love’ button on SecondLie’s post by the end of the month, and he (and 19 others) will donate on...
<gh_stars>0 import json import pandas as pd def save_to_csv(filename): with open(f'{filename}_match_data.txt', 'r') as f: data = f.read() new_data = [] for elem in data.split('\n'): string = elem.replace("'", "\"") try: new_data.append(json.loads(string)) exce...
Don’t get me wrong, I’m sure there is a valid reason why Cyclops and Wolverine are going at it in the newly released image for X-men: Schism, but in my heart of hearts, I like to think that Hannah Montana had something to do with it. Even if it’s a little part. Today’s Best-of-Friends page was done by Guy Allen, whos...
package main import ( "net/http" "github.com/gorilla/mux" ) func enableCors(w http.ResponseWriter) { headers := w.Header() headers.Add("Access-Control-Allow-Origin", "*") headers.Add("Vary", "Origin") headers.Add("Vary", "Access-Control-Request-Method") headers.Add("Vary", "Access-Control-Request-Headers") h...
Generic Dating Sim 2000 V0.0.1 gamesinabit Nov 4th, 2014 225 Never 225Never Not a member of Pastebin yet? Sign Up , it unlocks many cool features! rawdownloadcloneembedreportprint Batch 7.59 KB @ echo off title GDS2000 color 70 set /a days=0 set /a endingsunlocked=0 set /a peoplemet=0 set /a friends=0 echo ----------...
/** * Format a key's statistic cache hashmap to OfflineSlot storage convenient. * * @param o a HashMap which should have key: key, dimension, and bunch of variables * @return com.threathunter.nebula.slot.offline.OfflineSlotDataObj **/ public OfflineSlotDataObj format(final Map o) { byte...
/** * Periodic code for teleop mode should go here. * * Users should override this method for code which will be called each time a * new packet is received from the driver station and the robot is in teleop * mode. * * Packets are received approximately every 20ms. Fixed loop timing is not * guaranteed due to ...
Millennials couldn't care less about the news. That's according to the research of University of Texas at Austin journalism professor Paula Poindexter. Young people do not make it a priority to stay informed because they feel that media talks down to them, comes off as propaganda or is just plain boring, Poindexter fo...
//! The main html module which defines components, listeners, and class helpers. mod classes; mod component; mod conversion; mod listener; pub use classes::*; pub use component::*; pub use conversion::*; pub use listener::*; use crate::virtual_dom::VNode; use std::cell::RefCell; use std::rc::Rc; use wasm_bindgen::Js...
package com.marckregio.firebasemakunat.model; /** * Created by eCopy on 9/29/2017. */ public class SampleModel { public final static String USERID = "userid"; public final static String NAME = "name"; public final static String NUMBER = "number"; private String userid; private String name; ...
3‐D S Wave Imaging via Robust Neural Network Interpolation of 2‐D Profiles From Wave‐Equation Dispersion Inversion of Seismic Ambient Noise Ambient noise seismic data are widely used by geophysicists to explore subsurface properties at crustal and exploration scales. Two‐step dispersion inversion schema is the dominan...
def supports_protein(): pass
A dirt track leads through scrub grass, rubble, and weeds. To my right, a few dilapidated industrial buildings lie unoccupied. To my left, mounds of overgrown foliage overshadow the path; beyond them runs a line of track that used to shuttle trains to Sligo and Maynooth. This is wasteland by most people’s definition, ...
/** * encoding for String * * @author zeno (Sven Augustus) * @version 1.0 */ public class T01_StringEncodeDecode { static final Charset GBK = Charset.forName("GBK"); static final Charset GB2312 = Charset.forName("GB2312"); public static void main(String[] args) throws IOException { final String srcStri...
<reponame>nernstp/1had module Y2017.M08.D31.Solution where import Control.Arrow ((&&&)) import qualified Data.ByteString.Lazy.Char8 as BL import Data.List (sortOn) import Data.Map (Map) import qualified Data.Map as Map import Data.Ord import Data.Ratio ((%)) import Network.HTTP.Conduit -- below imports available via ...
/** * This method updates the progress in the view. It is responsible for * updating the counters. */ private void refreshCounters() { int startedCount; int currentCount; int totalCount; int errorCount; boolean hasErrors; boolean stopped; if (benchR...
Electron Acceleration at Rippled Low Mach Number Shocks in Merging Galaxy Clusters Shock waves are ubiquitous in cosmic plasmas wherein they accelerate particles. In particular, X-ray and radio observations of so-called radio relics indicate electron acceleration at large-scale merger shocks in galaxy clusters. These ...
<reponame>ogii-test/ddp-study-server package org.broadinstitute.ddp.db.dao; import java.util.List; import org.broadinstitute.ddp.model.dsm.OnDemandActivity; import org.broadinstitute.ddp.model.dsm.TriggeredInstance; import org.jdbi.v3.sqlobject.SqlObject; import org.jdbi.v3.sqlobject.config.RegisterConstructorMapper;...
<gh_stars>0 /* * Copyright 2012 hbz NRW (http://www.hbz-nrw.de/) * * 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 req...
package com.google.android.gms.common.internal; import android.os.Binder; import android.os.Bundle; import android.os.IBinder; import android.os.IInterface; import android.os.Parcel; import com.andi.alquran.C0861R; import com.google.ads.AdSize; import com.google.android.gms.C1114a.C1096c; import com.google.android.gms...
#![feature(int_error_matching)] mod syntax; pub mod client; pub mod header; pub mod method; pub mod protocol; pub mod reason; pub mod request; pub mod response; pub mod server; pub mod session; pub mod status; pub mod uri; pub use rtsp_common::version;
# Copyright 2018 Intel Corporation # # 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 wr...
The lower court rulings that were voided by the justices on Wednesday had barred the New York State Board of Elections from using the judicial convention system, directing the board to hold primaries instead, until the State Legislature could set up a new selection system. The high court’s rejection of those decrees w...
/** * This class * * @author Cedric Beust, Jul 22, 2004 * */ public class ParameterTest extends BaseTest { // @Configuration(beforeTestMethod = true) // public void methodSetUp() { // m_testRunner.setClasses(new Class[] { test.ParameterTest.class }); // } public static void ppp(String s) { S...
import log from 'electron-log'; import { Topic } from '@shared/constants/topic'; import { getStore } from '@shared/store'; import type { LogData } from '@shared/types'; import type { MatchResult } from './utils'; const store = getStore(); /** * 负责将整理过的日志信息向外广播 * @param type * @param source */ export function lo...
<reponame>zh1614933/Paste-Images-as-Base64Str package org.herry.pic.helper; import java.io.File; import java.io.IOException; import java.util.Set; import org.eclipse.jgit.api.AddCommand; import org.eclipse.jgit.api.Git; import org.eclipse.jgit.api.RmCommand; import org.eclipse.jgit.api.Status; import org.eclipse.jgit....
<reponame>tatem-games/verdaccio-google-oauth-ui<filename>src/redirect.ts<gh_stars>0 import { authorizePath, callbackPath } from './constants'; export function getAuthorizePath(id?: string) { return authorizePath + '/' + (id || ':id?'); } export function getCallbackPath(id?: string) { return callbackPath + (id ? '...
import { Component, AfterContentInit } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import blog from '../../../../data/blog/blog.json'; import blogcategory from '../../../../data/blog/category.json' import blogtags from '../../../../data/blog/tags.json' import author from '../../../../data/...
def get_input(): while True: try: yield ''.join(input()) except EOFError: break ans1 = [0 for i in range(4001)] ans2 = [0 for i in range(4001)] ans3 = [0 for i in range(4001)] ans4 = [0 for i in range(4001)] for i in range(1001): ans1[i] = 1 for i in range(1001,4001): ...
/** * Group of tests for EnsemblGenomes compara databases * * @author dstaines * */ public class EGCompara extends GroupOfTests { public EGCompara() { setDescription("Group of tests for EnsemblGenomes compara databases."); addTest( EGCommon.class, EGComparaGeneTree.class, EGCheckSynteny.cla...
package makeless_go_model import "sync" type EmailVerification struct { Model Token *string `gorm:"unique;not null" json:"-"` Verified *bool `gorm:"not null" json:"verified"` UserId *uint `gorm:"not null" json:"userId"` User *User `json:"user"` *sync.RWMutex } func (emailVerification *EmailVerificatio...
import sys input = sys.stdin.readline def gcd(a, b): if a == 0: return b return gcd(b % a, a) def lcm(a, b): return (a * b) / gcd(a, b) def isprime(n): for i in range(2,int(n**0.5)+1): if n%i==0: return 0 return 1 def main(): n = int(inpu...
//Leak byte at provided kernel addr, return 0 if addr not mapped //if provided, it also return the number of hits to check the //leak confidence level int leak(uint64_t addr, int *n_hits) { int hits; uint8_t byte = 0; *n_hits = 0; for(int bit_pos=0; bit_pos<8; bit_pos++) { hits=0; for(in...
// WithTemplates overrides the default templates (entgql.AllTemplates) // with specific templates. func WithTemplates(templates ...*gen.Template) ExtensionOption { return func(ex *Extension) error { ex.templates = templates return nil } }
def show_ui_component(builder, component: str, show: bool): component = builder.get_object(component) if show: component.show() else: component.hide()
// LoadCSV loads a csv file for mocked database testing. Like // github.com/DATA-DOG/go-sqlmock does. // CSV file should be comma separated. func LoadCSV(opts ...csvOptions) (columns []string, rows [][]driver.Value, err error) { cfg := new(config) for _, opt := range opts { opt(cfg) } f, err := os.Open(cfg.path) ...
Three-dimensional wake fields, generated in plasma by cylindrical electron bunch The expressions for wake fields, generated in plasma (in the plasma waveguide or unlimited plasma) by relativistic electron bunch, was received and analyzed for the cases of the presence and absence of strong external longitudinal magneti...
Mobilizing Education to Nurses at the Bedside. After a survey revealed practice gaps in central venous catheter care, one organization was challenged to identify a novel approach to educate nurses. Through a search for evidence, a project workgroup discovered an existing but beneficial teaching method, using a mobile ...
from django.contrib import admin from .models import * admin.site.register(Usuario) admin.site.register(Turma) admin.site.register(Aula) admin.site.register(Exercicio) admin.site.register(Experimentacao) admin.site.register(Pergunta) #admin.site.register(Tema) admin.site.register(Usuario_Pergunta) admin.site.registe...
def save(self) -> None: tmp_list = self.listbox_num.get(0, END) file = open('num_list.csv', 'w') for tmp in tmp_list: file.write(tmp + '\n') file.close()
<filename>generate.py from keras.models import Sequential from keras.layers import Dense, Activation from keras.layers import LSTM import numpy as np import random import sys import os import io import argparse parser = argparse.ArgumentParser() parser.add_argument('weights', help='''Path to the we...
def add_message(self, player, message): connection_id = player.connection_id if not connection_id in self.messages: self.messages[connection_id] = [] self.messages[connection_id].append(message)
class DemexWebsocket: """ DemexWebsocket is a high-level async implementation off the official Tradehub Demex websocket and provides all functionalities described in the documentation. """ def __init__(self, uri: str, ping_interval: Optional[int] = 10, ping_timeout: Optional[int] = 30): """...
// CorrectedAge adjusts the age of a resource for clock skew and travel time func CorrectedAge(h http.Header, reqTime, respTime time.Time) (time.Duration, error) { date, err := timeHeader("Date", h) if err != nil { return time.Duration(0), err } apparentAge := respTime.Sub(date) if apparentAge < 0 { apparentAg...
<reponame>paolobarbolini/psd use failure::Error; use psd::Psd; use psd::PsdChannelCompression; use psd::PsdChannelKind; use std::collections::HashMap; const RED_PIXEL: [u8; 4] = [255, 0, 0, 255]; // const GREEN_PIXEL: [u8; 4] = [0, 255, 0, 255]; const BLUE_PIXEL: [u8; 4] = [0, 0, 255, 255]; // Transparent pixels in t...
async def introspect( self, headers: Optional[Dict[str, str]] = None ) -> graphql.GraphQLSchema: request = GraphQLRequest( query=graphql.get_introspection_query(descriptions=False), validate=False, headers=headers, ) introspection = await self.quer...