content stringlengths 10 4.9M |
|---|
Efficient octave-spanning frequency comb generation in normal dispersion regime
In this paper, we present a stable dark soliton with its spectrum spanning about one octave generated in the silicon nitride microring resonator with normal dispersion. The dark soliton can be generated straightforwardly from noise. Then, ... |
// Counting Sort implementation, which removes duplicate elements
// and replaces them with zeroes
// RETURNS: how many duplicates it has found
// For example: 5 2 3 5 becomes 0 2 3 5
int countingSort(int* arr, int size) {
int maxNumber = 0;
for (int i = 0; i < size; i++) {
if (arr[i] > maxNumber) {
... |
Old evidence and new technology led to an arrest in a 25-year-old cold case, and to welcome closure for the victim’s family, Toronto police said Tuesday.
Surinder Singh Parmar was 38 when he was stabbed to death inside a gas station bathroom on Danforth Road on Nov. 19, 1990.
He had just arrived in Canada in July on ... |
#include <bits/stdc++.h>
using namespace std;
const int N = 100005;
int n, mod;
vector<int> g[N];
int f[N];
int ans[N];
int mul(int x,int y) {
return (long long) x * y % mod;
}
void dfs(int u,int p) {
auto it = find(g[u].begin(), g[u].end(), p);
if (it != g[u].end()) {
g[u].erase(it);
}
f[u] = 1;
for (int v... |
A handful of protesters got rowdy in front of New York City’s Crosby Street Hotel Saturday, heeding the hacktivist group Anonymous’ call for a protest against a former member.
But they never saw him. Hector “Sabu” Monsegur, scheduled to speak at the second day of the Suits and Spooks security conference in the hotel, ... |
// Extend world - ECS enabled
impl World<Input> for MyWorld {
fn new() -> Self {
Self {
entity_manager: EntityManager::new(),
positions: PositionRegistry::new(),
counters: CounterRegistry::new(),
players: PlayerRegistry::new(),
player_id_map: Playe... |
<filename>src/Chapter_14_Databases/MultipleApartments.cpp
#include <iostream>
/**
* Write a SQL query to get a list of tenants who are renting
* more than one apartment.
*/
int main() {
std::cout << "Whenever you write a GROUP BY clause in an interview\n"
"(or in real life), make sure that anyth... |
/**
* Parses a binary multiset operator.
*/
final public SqlBinaryOperator BinaryMultisetOperator() throws ParseException {
SqlBinaryOperator op;
jj_consume_token(MULTISET);
if (jj_2_472(2)) {
jj_consume_token(UNION);
op = SqlStdOperatorTable.MULTISET_UNION;
if (jj_2_465(... |
/// do a quick check it the entry is in the lower triangle part of the matrix
fn check_lower_triangle(r: usize, c: usize) -> Result<(), MatrixMarketError> {
if c > r {
return Err(MatrixMarketError::from_kind_and_message(
MatrixMarketErrorKind::NotLowerTriangle,
format!(
... |
class WebhookServer:
"""Instantiate a WebhookServer class to handle incoming webhook payloads
They should use the serve_forever() startup method, because Relay
will manage the lifecycle of the trigger container.
They should not expect any state to be preserved between requests,
nor rely on any per... |
/// NewWallets creates Wallets and fills it from a file if it exists
pub fn new() -> Result<Wallets> {
let mut wlt = Wallets {
wallets: HashMap::<String, Wallet>::new(),
};
let db = sled::open("data/wallets")?;
for item in db.into_iter() {
let i = item?;
... |
<gh_stars>1-10
/**
*
*/
package bean;
/**
* @author parsh
*
*/
public class VideoStore {
private Video[] store;
public int getStoreSize() {
if (store != null) return store.length;
else return 0;
}
public Video getLastAdded() {
if (store != null) return store[store.length - 1];
else return null;
... |
/**
* Obtain the 64-bit table identifier associated with this tombstone.
*/
uint64_t
ObjectTombstone::getTableId()
{
return header.tableId;
} |
// LeetCode: 36. Valid Sudoku (Medium)
class Solution {
public:
bool isValidSudoku(vector <vector<char>> &board) {
int n = board.size();
for (int i = 0; i < n; ++i) {
set<char> s;
for (int j = 0; j < n; ++j) {
if (board[i][j] != '.') {
if (... |
To encourage film producers to make original Kannada movies, rather than go for remakes, Kannada Chalanachitra Academy (KCA) is coming out with a repository of stories.
The academy, a government- appointed panel, has completed the process of compiling 150 original stories penned by both amateurs and professionals writ... |
/*******************************************************************************
* Copyright [2015] [Onboard team of SERC, Peking University]
*
* 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... |
// Convert from Apache Headers Spring Headers
private HttpHeaders mapHeaders(List<Header> requestHeaders) {
HttpHeaders headers = new HttpHeaders();
for (Header h : requestHeaders) {
String value = getScript().expand(h.getValue());
logger.info(String.format("Request header: %s: %... |
/**
* The outgoing class.
*/
class Outgoing {
final Out message;
final ChannelPromise promise;
/**
* @param message The output message
* @param promise The channel promise
*/
Outgoing(Out message, ChannelPromise promise) {
this.message = ... |
Fishing for Answers in Canada's Inside Passage: Exploring the Use of the Transit Fee as a Countermeasure
In 1994, following the breakdown of negotiations to revise the Canada-United States Pacific Salmon Treaty, Canada imposed a fee of $1500 Canadian on all U.S. commercial fishing boats transiting Canada's Inside Pass... |
/**
* Helper method to get the api key from a file location
*/
public static String LoadAPIKey(String filename) throws IOException {
String apiKey;
if (null == filename || 0 == filename.length())
throw new IllegalArgumentException("Empty API key file specified.");
File file = new File(filename);... |
Eating habits among primary and secondary school students in the Gaza Strip, Palestine: A cross-sectional study during the COVID-19 pandemic
Background The COVID-19 pandemic has a great impact on the eating habits, dietary intake, and purchasing behaviours of students. At this critical moment, there is an urgent need ... |
Another one of the “rumors have been flying” stories… that I was getting ready to post about this weekend anyway, but I finally found a nugget of corroborating evidence!
Royal Farms is planning on putting one of its Super convenience/gas stations along Blackwood-Clementon Road in Gloucester Township. The address (1409... |
<filename>doc/doxygen/snippets/line_feed_formatter.cc
/**
* @file
* @brief Shows usage of lf::base::LineFeedFormatter
* @author <NAME>
* @date 2020-10-08 10:38:42
* @copyright MIT License
*/
#include <lf/base/base.h>
#include <spdlog/pattern_formatter.h>
#include <spdlog/sinks/stdout_color_sinks.h>
#include <s... |
Former US intelligence chief Michael Hayden, who has previously held top positions at the NSA and CIA, has admitted that US spy agencies – like their Russian counterparts – have previously hacked foreign political parties in past operations.
Speaking at an interview hosted by The Heritage Foundation this week (18 Octo... |
def toggle_loading(self):
self.loading = not self.loading
self.disabled = self.loading
return self |
<gh_stars>0
import { ApiPropertyOptional } from '@nestjs/swagger';
import * as mongoose from 'mongoose';
export class CreateGoodsImageDto {
@ApiPropertyOptional({ description: '商品ID' })
goodsId: mongoose.Schema.Types.ObjectId
@ApiPropertyOptional({ description: '图片地址' })
imgUrl: string
// @ApiPropertyOptiona... |
def course_heading_loose_match_with_location(
curr_location, prev_location, heading, course, errors, error_type
):
number_of_errors = len(errors)
bearing = bearing_between_two_points(prev_location, curr_location)
delta = 90
if heading:
heading_in_degrees = heading... |
/**
* Deletes content on database. Won't delete saved files.
*
* @param jsonId id of content to delete.
* @return true if successfully deleted.
*/
public boolean deleteContent(String jsonId) {
long row = mContentDatabaseAdapter.getPrimaryKey(jsonId);
ArrayList<ContentBlock> contentBlocks = mConte... |
The Lineup Has Arrived. We are so thrilled to host some of our favorite bands in the world, including Victor Wooten, Thao & the Get Down Stay Down, Chali 2na, and of course the wall of power that is RATATAT for their only 2016 festival appearance! We're prepping for a landmark Fall weekend out on the Ranch Sep. 29-Oct.... |
Still-face Effect in Dogs (Canis familiaris). A Pilot Study.
The Still-face Paradigm has been widely used for the assessment of emotion regulation in infants, as well as for the study of the mother-child relationship. Given the close bond that dogs have with humans, the purpose of this research was to evaluate, throug... |
/**
* A task is reporting in as 'done'.
*
* We need to notify the tasktracker to send an out-of-band heartbeat.
* If isn't <code>commitPending</code>, we need to finalize the task
* and release the slot it's occupied.
*
* @param commitPending is the task-commit pending?
*/
void... |
<reponame>rendinam/crds
"""uses.py defines functions which will list the files which use a given
reference or mapping file.
>> from pprint import pprint as pp
>> pp(_findall_mappings_using_reference("v2e20129l_flat.fits"))
['hst.pmap',
'hst_0001.pmap',
'hst_0002.pmap',
'hst_0003.pmap',
'hst_0004.pmap',
'hst_0005.... |
<reponame>nichtl/datav
import React, { useState } from 'react';
import { Icon} from 'src/packages/datav-core';
import {Row} from 'antd'
import { useUpdateEffect } from 'react-use';
import {renderOrCallToRender} from 'src/core/library/utils/renderOrCallToRender'
import './QueryOperationRow.less'
interface QueryOperatio... |
/**
*
* Copyright 2016 Xiaofei
*
* 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 w... |
<gh_stars>0
const Icon = () => {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
fillRule="evenodd"
imageRendering="optimizeQuality"
shapeRendering="geometricPrecision"
textRendering="geometricPrecision"
viewBox="0 0 8268 11692"
xmlSpac... |
/*
* Copyright (c) 2008-2023, Hazelcast, Inc. 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 ... |
.
As supplementary material to Health Education programs about synthetic drugs, the authors present a historical summary on LSD, stramonium and khat. "Tripis", Special K and other synthetic pills contain these substances and are being widely used by youths. The history of these main hallucinogenic active ingredients h... |
<filename>frontend/csi/rest.go<gh_stars>1-10
// Copyright 2019 NetApp, Inc. All Rights Reserved.
package csi
import (
"bytes"
"crypto/tls"
"crypto/x509"
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"github.com/netapp/trident/config"
"github.com/netapp/trident/utils"
)
type RestClient struct {
url s... |
//
// Copyright 2017 <NAME> <<EMAIL>>
//
// This software is supplied under the terms of the MIT License, a
// copy of which should be located in the distribution where this
// file was obtained (LICENSE.txt). A copy of the license may also be
// found online at https://opensource.org/licenses/MIT.
//
// POSIX pipes.... |
<reponame>CodeLingoBot/libbeat
package elasticsearch
import (
"crypto/tls"
"errors"
"net/url"
"strings"
"time"
"github.com/elastic/libbeat/common"
"github.com/elastic/libbeat/logp"
"github.com/elastic/libbeat/outputs"
"github.com/elastic/libbeat/outputs/mode"
)
var debug = logp.MakeDebug("elasticsearch")
v... |
/*
* Compile or: as a built in.
*/
static int
doOr()
{
Codenode block;
int flag;
genDupTOS(cstate);
block = genJumpTForw(cstate);
genPopTOS(cstate);
flag = optimBlock();
setJumpTarget(cstate, block, 0);
if (get_cur_token(tstate) == KeyKeyword) {
if (strcmp... |
<reponame>foxsi/foxsi-smex
"""
Telescope is a module to handle the FOXSI telescopes
"""
from __future__ import absolute_import
import pyfoxsi
import pandas as pd
from astropy.units import Unit
import os.path
import numpy as np
class Optic(object):
"""A FOXSI Optic class definition."""
def __init__(self):
... |
<reponame>sinvsmae/car_crash
"""
cannot stop the loop wherever break is.
after bang
print bang twice
v1 returned to the last second num.
"""
import math
time_delta = 0.1
time_reaction = 20
def vehicle(time_now, name1, m1, v1, brakeJ1, name2, m2, v2, brakeJ2, pos2_now, gap):
for i in range(time_reaction):
... |
/*
* MIT License
*
* Copyright (c) 2021 EPAM Systems
*
* 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 without restriction, including without limitation the rights
* to use, copy, mod... |
import java.util.*;
/*
Course : CPCS 202
Name : Dalia Saeed Mohammed Al-Ghamdi
ID : 2006543
Section : BAR
Name of lab instructor : Abeer Alhuthali , Sara Alnefaie
Problem number : 5
Assignment number : 2
Codeforces ID : Dalia-131
URI ID :DALIA MOHAMMED ALGHAMDI
CodeChef ID: dalia131
*/
pub... |
/**
Spain national citizen card number validation.
This validation algorithm is based on the official documentation.
Link: http://www.interior.gob.es/web/servicios-al-ciudadano/dni/calculo-del-digito-de-control-del-nif-nie
**/
impl validator::CountryValidator for SpainValidator {
fn validate_id(&self, id: &str)... |
/**
* A FieldPartitioner that formats a timestamp (long) in milliseconds since
* epoch, such as those returned by {@link System#currentTimeMillis()}, using
* {@link SimpleDateFormat}.
*
* @since 0.9.0
*/
@edu.umd.cs.findbugs.annotations.SuppressWarnings(value={
"NP_PARAMETER_MUST_BE_NONNULL_BUT_MARKED_AS_NUL... |
<gh_stars>0
import LandingPageTwoSideContent from "./landingPageTwoSideContent";
export default LandingPageTwoSideContent;
|
PSYCHIATRY AND THE POLITY: THE SOVIET CASE AND SOME GENERAL IMPLICATIONS *
The purpose of this communication is to discuss some problems inherent in the comparative examination of psychiatric practice in two or more cultural settings, I have chosen to focus on psychiatry in the Soviet Union because I am familiar with ... |
/************************************************************************/
/* ImportFromESRIWisconsinWKT() */
/* */
/* Search a ESRI State Plane WKT and import it. */
/*******************... |
"UnKoch my campus," demanded students at nearly 30 colleges on Monday.
Protests broke out across the nation as part of a campaign calling for more transparency in what industrialists Charles and David Koch give to college campuses, and how much influence the billionaires wield in academic decisions.
Brothers Charles ... |
(Photo from Flickr user thisisbossi used under Creative Commons license)
The Department of Education is not doing enough to crack down on debt collection agencies that are too aggressive about seeking payments from student loan borrowers, a consumer group said Wednesday.
A report from the National Consumer Law Center... |
This article is about the philosophical ability of the mind to form representations. For the related logical or semantic concept, see Intension . For the idea of doing something with a goal, see Intention
Intentionality is a philosophical concept and is defined by the Stanford Encyclopedia of Philosophy as "the power ... |
<filename>server_middleware.go<gh_stars>10-100
package amqprpc
/*
ServerMiddlewareFunc represent a function that can be used as a middleware.
For example:
func myMiddle(next HandlerFunc) HandlerFunc {
// Preinitialization of middleware here.
return func(ctx context.Context, rw *ResponseWriter d amqp.Delivery)... |
def execute_run_grpc(api_client, instance_ref, pipeline_origin, pipeline_run):
from dagster.grpc.client import DagsterGrpcClient
check.inst_param(api_client, 'api_client', DagsterGrpcClient)
check.inst_param(instance_ref, 'instance_ref', InstanceRef)
check.inst_param(pipeline_origin, 'pipeline_origin', ... |
/**
* delayed schedule of runnable successfully executes after delay
*/
public void testSchedule3() throws InterruptedException {
TrackedShortRunnable runnable = new TrackedShortRunnable();
ScheduledThreadPoolExecutor p1 = new ScheduledThreadPoolExecutor(1);
p1.schedule(runnable, SMAL... |
Role of Nasal Carriage of Staphylococcus aureus in Chronic Urticaria
Aim: To evaluate the role of nasal carriage of Staphylococcus aureus in patients suffering from chronic urticaria. Method: All total 82 patients were included for this study. Study group comprised 57 patients with chronic urticaria and the control gr... |
#pragma once
#include "../../Strategy.h"
#include "../../Steps/2021/PathFinderStep.h"
class PFBounceAutoStrategy : public StepStrategy {
public:
PFBounceAutoStrategy(std::shared_ptr<World> world) {}
virtual ~PFBounceAutoStrategy() {}
void Init(std::shared_ptr<World> world) override {
const degree_t yaw ... |
Relational energy and co-creation: effects on hospitality stakeholders’ wellbeing
ABSTRACT Drawing from service-dominant logic and conservation of resources theory, the aim of this study was to examine the integration of relational energy as a complementary operant resource. US respondents (n = 720) participated in a ... |
<gh_stars>1-10
import { FixedArray, FixedArraySize, FixedReadonlyArray, isNotNull, isUndefined, isUnset, TriState, typeOrUndefined, unset, Unset } from "../utils"
import { ComponentBase, defineComponent } from "./Component"
import * as t from "io-ts"
import { COLOR_BACKGROUND, COLOR_COMPONENT_BORDER, COLOR_MOUSE_OVER, ... |
def add_to_ignorelist(self, to_ignore):
to_ignore = [to_ignore] if isinstance(to_ignore, str) else to_ignore
self._ignore = list(self._ignore)
[self._ignore.append(i) for i in to_ignore]
self._ignore = set(self._ignore)
self._ignore = tuple(self._ignore) |
The Role of Extracellular Matrix Proteins in the Control of Phagocytosis
The phagocytic function of human‐peripheral‐blood‐derived mononuclear and polymorphonuclear leukocytes can be regulated by external stimuli. In particular, the extracellular matrix (ECM) proteins fibronectin and laminin and serum amyloid P compon... |
package types
var (
EventTypeRegisterWrkChain = RegisterAction
EventTypeRecordWrkChainBlock = RecordAction
AttributeValueCategory = ModuleName
AttributeKeyOwner = "wrkchain_owner"
AttributeKeyWrkChainId = "wrkchain_id"
AttributeKeyWrkChainMoniker = "wrkchain_moniker"
AttributeKey... |
/**
* Execute the given task. If given task is not {@link Preemptable}, it will
* preempt all outstanding preemptable tasks.
*/
public <P> void execute(AsyncTask<P, ?, ?> task, P... params) {
if (task instanceof Preemptable) {
synchronized (mPreemptable) {
mPreemptable... |
def update_single_repository(self, repo):
if not type(repo) == Repository:
return False
msgt('Repository update: %s' % repo)
repo_api_url = repo.get_github_api_url()
request_auth = (self.github_username, self.get_api_key(repo))
msg('repo_api_url: %s' % repo_api_url)
... |
def compute_gradient_penalty(discriminator: Callable, real_samples: Tensor, fake_samples: Tensor):
device = real_samples.device
alpha = torch.Tensor(np.random.random((real_samples.size(0), 1, 1, 1))).to(device)
interpolates = (alpha * real_samples + ((1 - alpha) * fake_samples)).requires_grad_(True)
int... |
/**
* Returns a Map that represents a mapping from every Clazz in the ClassPool
* to its original name. This can be useful to retrieve the original name
* of classes after name obfuscation has been applied.
*/
public Map<Clazz, String> reverseMapping()
{
Map<Clazz, String> reversedMap = ... |
package example
import (
"fmt"
"math"
)
func Example_float() {
var maxFloat32 float32 = math.MaxFloat32
var minFloat32 float32 = math.SmallestNonzeroFloat32
var maxFloat64 float64 = math.MaxFloat64
var minFloat64 float64 = math.SmallestNonzeroFloat64
fmt.Printf("max float32: %v\n", maxFloat32)
fmt.Printf("min... |
/**
* @author Antonio Prota
*/
public class CpuFrequency {
private int cpuId;
private int time;
private int value;
public int getCore() {
return cpuId;
}
void setCpuId(int cpuId) {
this.cpuId = cpuId;
}
/**
* @return the time
*/
public int getTime() {
... |
/**
* Convert file.
*
* @param file the file
* @return the file
* @throws IllegalStateException the illegal state exception
* @throws IOException the io exception
*/
public static File convert(MultipartFile file) throws IOException {
FileOutputStream fos = null;
... |
// Returns the given flag string (adjusting any capitalization differences),
// if a valid flag was given. Else, return the empty string.
func VerifyNormalizeFlag(flagStr string) string {
flagLower := strings.ToLower(flagStr)
value, ok := hmsFlagMap[flagLower]
if ok != true {
return ""
} else {
return value.St... |
/************************************************************
// reads the next spectrum into spec
// returns false if no more spectra are available
// returns the mgf_pointer through mp, if file = -1 this means
// this was a dta
*************************************************************/
bool FileSet::get_next... |
Painlevé analysis of Fokas–Lenells equation with fractal temporal evolution
This paper presents new optical solitons of a fractal Fokas–Lenells equation that models the dynamics of optical fibers. The Painlevé technique is employed to identify kink soliton solutions. The constraint conditions guarantee the existence o... |
/**
* Resolves enough of the result set to return the {@link Entity} at the specified {@code index}.
* There is no guarantee that the result set actually has an {@link Entity} at this index, but
* it's up to the caller to recognize this and respond appropriately.
*
* @param index The index to which we ne... |
The ballooning posterior leaflet syndrome: Minnesota Multiphasic Personality Inventory profiles in symptomatic and asymptomatic groups.
Due to a complex of vague symptoms in some patients with a ballooning posterior leaflet (BPL), a standardized personality inventory test (MMPI) was given to 14 patients exhibiting a m... |
Entertainment Weekly is reporting—in a piece that doesn’t offer much in the way of further detail—that Harry Shearer will return to The Simpsons for the next two seasons, nearly two months after very publicly exiting the show. The dispute was supposedly never about money, of which there is a massive amount for the voic... |
/*
* File: umbrella_spce_hamiltonian.h
* Author: <NAME>
*
* Created on February 1, 2012, 3:56 PM
*/
#ifndef UMBRELLA_SPCE_HAMILTONIAN_H
#define UMBRELLA_SPCE_HAMILTONIAN_H
class UmbrellaSPCEHamiltonian : public SPCEHamiltonian {
private:
double &WINDOW_LOWER_BOUND, &WINDOW_UPPER_BOUND;
bo... |
Take a look at Houston, where Medicare patients are a big business. Medicare spent $11,567 on each enrollee in the Houston area in 2010, according to the Dartmouth Atlas, putting it well ahead of the national average of $9,584.
It’s also the city where John McCarthy has practiced hematology for nearly three decades. O... |
/**
* Stores properties details of a query class.
*
* @author Kamran Ali Khan (khankamranali@gmail.com)
*
* @param <T>
*/
public class QueryBean extends AbstractBean {
public QueryBean(Class<?> type) throws IntrospectionException {
super(type, null, null);
}
} |
// test che verifica il corretto numero di regioni del gioco: 8
@Test
public void testCorrectNumberOfRegion(){
Setup setup = new Setup();
try{
setup.loadCard("test.json");
}catch(Exception e){}
board = new Board();
assertEquals(8, board.getRegionMap().size());
} |
import Item from '../item/item';
import ItemFactory from '../item/item_factory';
import { reduce } from '../reduce/reduce';
import ItemStackIterator from './stack_iterator';
export default class ItemStack<T> {
private stack: Array<Item<T>> = [];
private factory: ItemFactory<T>;
constructor(factory: ItemFactory<... |
<reponame>dkishere2021/scrape
import logging
import os
DbDateFormat = "%Y-%m-%d %H:%M:%S %z"
# Logger Configuration (scrapeNews)
logger = logging.getLogger("scrapeNews")
handler = logging.FileHandler('scrapeNews.log')
formatter = logging.Formatter('%(asctime)s %(name)-12s %(levelname)-8s [Line %(lineno)d] %(messag... |
// Copyright 2019 The MWC Developers
//
// 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... |
/**
* Tries to connect to the TV.
*
* @return Whether the connection was successful.
*/
private boolean connect() {
try {
if (mSocket.isConnected()) {
resetSocketAndStreams();
}
try {
mSocket.connect(mInetSocketAddress, SO_TIMEOUT);
} catch (SocketException ex) {
... |
Microdrill with variations in thickness of diamond coating
In this study, microcrystalline diamond films with varied thicknesses (1·2, 2·5, 4 and 7 μm) are deposited on flat samples and microdrills. The Raman results show that the top layer of thicker diamond films on flat samples exhibit relatively lower compressive ... |
<filename>repository-message-broker-core/src/main/java/org/openforis/rmb/inmemory/FindMessageProcessing.java
package org.openforis.rmb.inmemory;
import org.openforis.rmb.spi.*;
import org.openforis.rmb.spi.MessageRepository.MessageProcessingFoundCallback;
import java.util.List;
final class FindMessageProcessing exte... |
The launch of American Journal of Cardiovascular Disease.
Welcome to the inaugural issue of the American Journal of Cardiovascular Disease, a new open-access journal devoted to reporting current advances in understanding, prevention, and treatment of the spectrum of cardiovascular diseases.
You might ask, with all ... |
Discovery of Complex Anomalous Patterns of Sexual Violence in El Salvador
When sexual violence is a product of organized crime or social imaginary, the links between sexual violence episodes can be understood as a latent structure. With this assumption in place, we can use data science to uncover complex patterns. In ... |
<reponame>not-kyozm/NanoUtils
package com.kyozm.nanoutils.utils;
import net.minecraft.client.settings.KeyBinding;
import net.minecraftforge.fml.client.registry.ClientRegistry;
import org.lwjgl.input.Keyboard;
public class Keybinds {
public static KeyBinding openGUI;
public static void register()
{
... |
Conflict resolution strategies of nurses in a selected government tertiary hospital in the Kingdom of Saudi Arabia
Background: Conflict is inevitable and can be found in all settings. It can co-exist between and among health care professionals such as doctors and nurses and their patients. The roles of the nurses in e... |
Simplified Approach for In-Plane Strength Capacity of URM Walls by Using Lower-Bound Limit Analysis and Predefined Damage Patterns
In this study, a two-phase simplified approach is proposed to predict the in-plane strength capacity of unreinforced masonry (URM) walls. In the first phase, in-plane damage and failure pa... |
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.time.*;
import java.time.format.DateTimeFormatter;
public class Main{
public static void main(String[] args){
// 15-1
StringBuilder sb = new StringBuilder();
for (int i=0; i<100; i++){
... |
Game of Thrones will more than likely end as number one on this list but I want to see how the show ends. We have 2 more seasons to go before that is official though. GoT is simply put genius. It encapsulates everything I love about TV. It's gruesome, bloody, sad, heartbreaking, funny at times, and even rewarding if yo... |
.
Long-term results of surgical correction of hyperlipidemia in 46 patients with obliterating atherosclerosis of lower extremities were compared with results of conservative treatment of 41 patients with the same pathology within the terms from 6 months till 5 years. It was shown that the surgical correction of hyperl... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { FontSizes, Pivot, PivotItem } from '@fluentui/react';
import { RouteComponentProps } from 'react-router-dom';
import {
AuthenticatedTemplate,
UnauthenticatedTemplate,
} from '@azure/msal-react';
import Repositories from '../Reposi... |
package com.rabbitmq.exchange.direct.example;
import java.io.IOException;
import com.rabbitmq.client.Channel;
import com.rabbitmq.util.RabbitHelper;
public class EmitLogDirect {
private static final String EXCHANGE_NAME = "directLog";
private static final String EXCHANGE_TYPE = "direct";
public stat... |
# VarLookUpDict and EvalEnvironment are taken from Patsy library.
# For more info see: https://github.com/pydata/patsy/blob/master/patsy/eval.py
import inspect
import numbers
import pandas as pd
from .transformations import TRANSFORMATIONS
class VarLookupDict(object):
def __init__(self, dicts):
self._d... |
def describe_klass(obj):
wi('+Class: %s' % obj.__name__)
indent()
count = 0
for name in obj.__dict__:
item = getattr(obj, name)
if inspect.ismethod(item):
count += 1;describe_func(item, True)
if count==0:
wi('(No members)')
dedent()
print |
// Copyright (c) 2014 The SkyDNS Authors. All rights reserved.
// Use of this source code is governed by The MIT License (MIT) that can be
// found in the LICENSE file.
package main
import (
"flag"
"fmt"
"log"
"net"
"os"
"strconv"
"strings"
"time"
"github.com/coreos/go-etcd/etcd"
"github.com/miekg/dns"
)
... |
/**
* Moves the shape one rows down, or freezes it in place
* if it reaches the end. Does not actually perform the drop of
* the shape.
*/
public synchronized void moveOneDown() {
if (currentShape == null) {
return;
}
if (canDrop()) {
performDrop();
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.