content stringlengths 10 4.9M |
|---|
My. Oh. My.
Where did August go? Things have been hectic at work and next thing I know we are less than a week away from the start of September! Where did the time go?
Well for one thing, I’ve had a hard time wrapping my head around Spirit Merry as a Hero. It’s not that I don’t think he’s good, I think he’s excellent... |
<reponame>VLSIDA/lithosim
#include <stdio.h>
#ifndef _HELPER_H_
#define _HELPER_H_
float bessj1(float x);
int fpeek(FILE *stream);
void eatspace(FILE *in);
#endif
|
use crate::transformer::{TransformContext, TransformResult, TransformResultHelper, Transformer};
use serde::{Deserialize, Serialize};
/// This transformer is doing... nothing.
#[derive(Serialize, Deserialize, PartialEq, Eq, Hash, Clone, Debug)]
pub struct NoneTransformer;
impl Transformer for NoneTransformer {
fn... |
/**
* Helper to merge params when request body is an array
*/
export function arrayRequestBody<T, O>(array: T[], params?: O): T[] & O {
return Object.assign([...array], params)
}
|
def temporary_data_dir(request) -> Path:
temp_data_dir = Path(os.getcwd()) / "temp_test_data_folder"
try:
os.mkdir(temp_data_dir)
except FileExistsError:
pass
def remove_temp_dir_created():
shutil.rmtree(temp_data_dir)
request.addfinalizer(remove_temp_dir_created)
return ... |
/**
* Test case where the document does not have a DOCTYPE
*
* @since 2.2
*
**/
public void testMissingDoctype() throws Exception
{
try
{
parseApp("MissingDoctype.application");
unreachable();
}
catch (DocumentParseException ex)
... |
<reponame>davrv93/creed-en-sus-profetas-backend
from rest_framework import serializers
from django_rv_apps.apps.believe_his_prophets.models.language import Language
class LanguageSerializer(serializers.ModelSerializer):
class Meta:
model = Language
fields = '__all__'
|
/**
* The EMR_STRETCHDIBITS record specifies a block transfer of pixels from a source bitmap to a
* destination rectangle, optionally in combination with a brush pattern, according to a specified raster
* operation, stretching or compressing the output to fit the dimensions of the destination, if necessa... |
def start(print_queue=None, hw_reset=False):
success = False
if not AND_STAY_DEAD:
with CONTEXT_LOCK:
agent_context = get()
if agent_context:
success = True
else:
agent_context = Context()
agent_context.name = AGENT_CONT... |
/**
* This handles prompting the user how to handle adding multiple tasks as favorites.
*/
public class SwingAddMultipleFavoritesInteraction implements FavoritesEditor.AddMultipleFavoritesInteraction {
private Window parent;
public SwingAddMultipleFavoritesInteraction(Window parent) {
this.parent = p... |
/*
* See if the given function is member of a package.
*
* returns the package oid of the function if its a memeber of package. InvalidOid
* otherwise.
*/
static Oid
package_by_funcid(Oid funcOid)
{
Oid pkgOid = 0;
Form_pg_proc proc;
HeapTuple tuple;
tuple = SearchSysCache1(PROCOID, ObjectIdGetDatum(funcOid)... |
package controllers
import (
"io/ioutil"
"net/http"
"net/url"
"vms-go/goweb/settings"
"github.com/gin-gonic/gin"
jsoniter "github.com/json-iterator/go"
"github.com/sagacao/goworld/engine/gwlog"
)
var (
gamemap = map[string]string{
"21001": "heros",
}
)
// ReqPlayerInfo @Get
func ReqPlayerInfo(c *gin.Cont... |
This week, after Congressman Steve Scalise and four others were shot by an apparent leftist, Roger Simon, a Politico columnist, made light of the fact, stating in a column in The Chicago Sun Times, “Getting shot is no big deal in America.”
In a column devoted to attacking Attorney General Jeff Sessions, Simon decided ... |
#include<bits/stdc++.h>
using namespace std;
const int P=1e9+7;
char s[5005];
int a[5005],lcp[5005][5005],f[5005][5005],dp[5005][5005];
int n;
void pre(){
for(int i=n;i>=1;i--){
for(int j=n;j>=1;j--){
if(a[i]!=a[j])lcp[i][j]=0;
else lcp[i][j]=lcp[i+1][j+1]+1;
}
}
}
bool cmp(int l1,int r1,int l... |
import java.util.Scanner;
public class Domino {
public static Scanner scanny;
public static int M;
public static int N;
public static int D;
public static void main(String[] args) {
scanny = new Scanner(System.in);
M = scanny.nextInt();
N = scanny.nextInt();
D = 2*1;
if((... |
def jsonbackup_clear(jsondata):
out = {}
for dic in jsondata:
try:
out[dic["model"]]
except (KeyError):
out[dic["model"]] = {"cols": [], "vals": []}
out[dic["model"]]["cols"] = ["pk"] + list(dic["fields"].keys())
l = [dic["pk"]] + list(dic["fields"].va... |
<reponame>shan3275/c
/*
* Prefix related functions.
* Copyright (C) 1997, 98, 99 <NAME>
*
* This file is part of GNU Zebra.
*
* GNU Zebra is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version ... |
// Complete the config applying defaults / overrides.
func (c *Config) Complete() {
if c.CompartmentOCID == "" && c.Auth.CompartmentOCID != "" {
zap.S().Warn("cloud-provider config: \"auth.compartment\" is DEPRECATED and will be removed in a later release. Please set \"compartment\".")
c.CompartmentOCID = c.Auth.C... |
<gh_stars>10-100
import re
from random import seed as _seed, choice
VARIABLE_TAG_START = '{{'
VARIABLE_TAG_END = '}}'
tag_re = re.compile('(%s.*?%s)' % (re.escape(VARIABLE_TAG_START), re.escape(VARIABLE_TAG_END)))
def choice_words(phrase_book, root_key='root', seed=None):
if isinstance(seed, int):
seed ... |
<gh_stars>0
import click
from .marker import Marker
def fmt_triplet(v):
return f'({v[0]:.2f}, {v[1]:.2f}, {v[2]:.2f})'
@click.group()
def cli():
pass
@cli.command(help='Read marker ROM file and show a summary of its attributes')
@click.argument('filename')
def inspect(filename: str):
marker = Marker.... |
<reponame>neonkingfr/netzhaut
#ifndef NH_HTML_BROWSING_CONTEXTS_H
#define NH_HTML_BROWSING_CONTEXTS_H
#ifndef DOXYGEN_SHOULD_SKIP_THIS
/**
* netzhaut - Web Browser Engine
* Copyright (C) 2020 The netzhaut Authors
* Published under MIT
*/
#include "../Common/Types/Private.h"
#endif
/** @addtogroup lib_nhhtml_en... |
Bernie Sanders Has Strength Among White Men Pinched By The Economy
Enlarge this image toggle caption Joe Raedle/Getty Images Joe Raedle/Getty Images
When Bernie Sanders won the primary in Michigan last week, it shook up the narrative of the Democratic race.
Sanders did so with the help of white men. If he's able to ... |
// Start starts the config tracker in particular subscribing to the head broadcaster.
func (c *ConfigTracker) Start() error {
return c.StartOnce("ConfigTracker", func() (err error) {
var latestHead *evmtypes.Head
latestHead, c.unsubscribeHeads = c.headBroadcaster.Subscribe(c)
if latestHead != nil {
c.setLates... |
def create_output(self, base, req):
step = None
suffix = 'uncal'
final_suffix_piece = 'uncal'
skip = copy.deepcopy(self.pipe_step_list)
baseend = len(base)
for key in self.pipe_step_list:
if req[key]:
step = key
suffix = "{}_{}"... |
Walking Stability Compensation Strategy of a Small Humanoid Robot Based on the Error of Swing Foot Height and Impact Force
Abstract In order to reduce the impact force of swing legs and improve walking stability when a small humanoid robot is walking, a set of impact dynamics equations based on the second kind Lagrang... |
module Print2 where
main :: IO ()
main = do
putStrLn "Count to four for me:"
putStr "one, two"
putStr ",three"
putStrLn ", four!"
|
import * as examples from '../testing-types'
import { isSuccess, isFailure } from 'aelastics-result'
import * as t from '../../../src/aelastics-types'
import * as r from '../../example/recursive-example'
describe('Testing fromDTOgraph method for MapType', () => {
it('should be valid for bidirectional example', () =>... |
/**
* @brief Transmit a byte to the HyperTerminal
* @param param The byte to be sent
* @retval HAL_StatusTypeDef HAL_OK if OK
*/
HAL_StatusTypeDef Serial_PutByte( uint8_t param )
{
if ( UartHandle.gState == HAL_UART_STATE_TIMEOUT )
{
UartHandle.gState = HAL_UART_STATE_READY;
}
return HAL_UART_Tran... |
It seems that the iPhone 7 won’t be the only flagship smartphone to ditch the 3.5mm headphone socket: SamMobile is reporting ‘confirmation’ of an earlier rumor that Samsung’s Galaxy S8 – set to be unveiled in February – will follow Apple’s lead.
NordVPN
The move is said to be in an effort to make the device thinner w... |
Options for Redesigning the Russian Political System: Empirical Study
The paper is devoted to the study of the current state and prospects of reformatting the party-political system of Russia in the interests of society development. The paper’s stipulations are based on the generalization of the results of a large-sca... |
def __credit_type_choices(self):
json_res = self.__fetch(None, method='OPTIONS')
credit_type = json_res['actions']['POST']['name_contract_type']
return [None] + [x['value'] for x in credit_type['choices']] |
/*
* SoftPC Revision 2.0
*
* Title : keyboard.h
*
* Description : defines for keyboard translations
*
* Author : <NAME>
*
* Notes :
*
*/
/* SccsID[]="@(#)keyboard.h 1.7 10/08/92 Copyright Insignia Solutions Ltd."; */
#define KH_BUFFER_SIZE 32
/*
* Constants
*/
#define PC_KEY_UP 0... |
<gh_stars>1-10
{-# LANGUAGE ViewPatterns #-}
module Compiler.Tiger.Parser where
import qualified Compiler.Tiger.AbSyn as A
import Compiler.Tiger.Symbol (Sym)
import Compiler.Tiger.Token
import Control.Monad.State (MonadState (get, put), State, evalState, gets, runState)
import Data.Functor.Identity (Identity)
lookAh... |
from unittest.mock import patch
from tests.api.test_base import BaseTestAPIView
class TestHealthCheckAPIView(BaseTestAPIView):
url = "/health_check/"
def test_health__ok(self, client):
response = client.get(self.url)
response_data = self.assert_ok_response(response)
assert response_d... |
They say more needs to be done to help disabled riders access buses and trains.
One of the mayor’s picks is UT Health Sciences professor Lex Frieden, a nationally-known advocate for the disabled and independent living. He also helped write the Americans with Disabilities Act.
Frieden injured his spinal cord as a teen... |
class Group:
"""
Group class represents the tenants group in the System
"""
def __init__(self, id_, projects):
self.id = id_
self.projects = projects |
/**
* Abstract tree model whose elements are serializable views of server elements.
* By implementing the two abstract methods, <code>rebuildViewsFor(CoTreeElementView, int)
* and <code>updateViewsFor(CoTreeElementView, int, int), the concrete subclass can implement
* the caching in the way that best suits its pur... |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE MagicHash #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE UnboxedTuples #-}
module Main (main) where
-- import qualified Data.Array.Unboxed as A
import qualified Data.Vector as V
import qualified Data.Vector.Storable.Mutable as VM
im... |
/**
* Created by zhaoziliang on 17/2/7.
*/
public class ZhihuFragment extends BaseFragment implements IZhihuFragment{
private IZhihuPresenterImpl mIZhihuPresenterImpl;
private ZhihuAdapter mZhihuAdapter;
private RecyclerView recyclerView;
private ProgressBar progressBar;
private ViewStub vs_noC... |
//
// ========================================================================
// Copyright (c) 1995-2021 Mort Bay Consulting Pty Ltd and others.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available und... |
package org.wangpai.commonutil.multithreading;
import java.util.concurrent.Future;
import java.util.concurrent.FutureTask;
/**
* @since 2021-10-3
*/
public class Multithreading {
/**
* 无结果反馈的版本
*
* @since 2021-10-3
* @lastModified 2022-1-5
*/
public static void execute(Function fun... |
<reponame>bmatejek/gsvgaps
// Source file for GSV pose optimization
////////////////////////////////////////////////////////////////////////
// Select solvers (guides compilation in RNMath/RNPolynomial.h)
////////////////////////////////////////////////////////////////////////
/*#define RN_USE_CSPARSE
#def... |
// Initialize the app for first Usage.
public void initializeAppForFirstUse(Invoker caller){
Log.v(TAG, "Initializing Application for first use");
ce = new CommandExecuter();
MultiCommand command = new MultiCommand(caller);
ValidateApplicationCommand validate = new ValidateApplicationCommand(caller);
command.... |
/*
* This header is generated by classdump-dyld 1.0
* on Sunday, September 27, 2020 at 11:40:38 AM Mountain Standard Time
* Operating System: Version 14.0 (Build 18A373)
* Image Source: /System/Library/PrivateFrameworks/NewsCore.framework/NewsCore
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME... |
def IsDone(self, *args):
return _Geom2dLProp.Geom2dLProp_CurAndInf2d_IsDone(self, *args) |
<gh_stars>1-10
#include "workersPInfo.h"
void addPath(Paths * path, char * val) { // add Path Node under standard File Node
Paths * last = path;
while (last->next != NULL) {
last = last->next;
}
last->next = malloc(sizeof(Paths));
last->next->str = calloc(strlen(val) + 1, sizeof(char));
... |
#include<stdio.h>
#include<algorithm>
#define P pair<int,int>
#define x first
#define y second
#define mp make_pair
#include<queue>
using namespace std;
int n,k;
int board[7][55];
bool complete[555];
P goal[555];
int left;
class Movement
{
public:
int carId,row,column;
Movement(int cid,... |
<reponame>Dormouse759/cython
from .PyrexTypes import BufferType, CType, CTypedefType, CStructOrUnionType
_pythran_var_prefix = "__pythran__"
# Pythran/Numpy specific operations
def has_np_pythran(env):
while not env is None:
if hasattr(env, "directives") and env.directives.get('np_pythran', False):
... |
Toll‐Like Receptor Engagement Enhances the Immunosuppressive Properties of Human Bone Marrow‐Derived Mesenchymal Stem Cells by Inducing Indoleamine‐2,3‐dioxygenase‐1 via Interferon‐β and Protein Kinase R
Mesenchymal stem cells (MSC) display unique suppressive properties on T‐cell immunity, thus representing an attract... |
const _ = {
debounce: require('lodash/debounce'),
}
interface ICatalog {
root: string; // 文章根元素
catalogRoot: string; // 目录根元素
// className?: string;
// activeName?: string;
// style?: string;
// activeStyle?: string;
}
export default class Catalog {
options: ICatalog;
intersectionObserver: Intersect... |
<filename>examples/TestDFS.py
from Graph import Graph
from Graph import Tree
# Create vertices for graph in Figure 16.1
vertices = ["Seattle", "San Francisco", "Los Angeles",
"Denver", "Kansas City", "Chicago", "Boston", "New York",
"Atlanta", "Miami", "Dallas", "Houston"]
# Create an edge list for graph in F... |
Image copyright AFP Image caption The raid comes amid efforts from Kurdish fighters to dislodge IS militants
US-Iraqi forces have rescued dozens of hostages held by Islamic State (IS) in Iraq after learning of their "imminent execution", the Pentagon has said.
But a US soldier wounded in the raid died of his injuries... |
The Further Adventures of Mark Discordia
Back in the late eighties, a man wrote in to Nintendo Power to tell them all about the score he got in video games the magazine might have heard of. And history was made. Ridiculous, dumbass history. Years later, I found the magazine at the bottom of a closet, called him a fuck... |
#include "AERobot.h"
//Copyright (C) 2014-2015 Wyss Institute (http://wyss.harvard.edu)
//This file is licensed under a Creative Commons Attribution 4.0 International License. (CC BY 4.0)
int previous_direction=0;
int move_f_a=0xca;
int move_f_b=0xca;
int move_b_a=0x33;
int move_b_b=0x33;
int rotate_ccw_a... |
/**
* Test the un successful creation of a association with a action record
* @throws UniquenessConstraintException in case of duplicated fields
*/
@Test
public void testUnsuccessfulAssociationWithAction() throws UniquenessConstraintException {
when(permissionBusinessService.associate(any(), ... |
import requests
import json
import pandas
# To check login status
loggedin = 0
baseurl = 'http://127.0.0.1:8000/api'
# baseurl = 'http://sc17crk.pythonanywhere.com/api'
def main():
while True:
print("\n\nPlease select the command to execute.")
print("1. To register, type 'register'")
print... |
import parse,sys,os
import networkx as nx
import node,resolve,options
def callgraph(G, stmt_list):
"""
Build callgraph of func_list, ignoring
built-in functions
"""
func_list = []
for stmt in stmt_list:
try:
G.add_node(stmt.head.ident.name)
func_list.append(stmt)... |
Elizabeth Warren says she will be meeting with English, who was outgoing director Richard Cordray's chosen successor, on Capitol Hill today. Mulvaney was Trump's pick, and English has filed suit claiming the position is legally hers. The CFPB's general counsel has said her opinion is that Trump has the right to fill th... |
Trump fans were waving tiny Russian flags until CPAC staff confiscated them Meanwhile, Trump’s speech only raised new questions.
Here’s an odd sign of the times.
Snapchat’s Peter Hamby was at National Harbor to watch President Donald Trump’s speech to the Conservative Political Action Conference on Friday, and he saw... |
import { EmailRoute, EmailRouteInput } from '../graphqlTypes.generated';
export default function buildEmailRouteInput(
emailRoute: Pick<EmailRoute, 'receiver_address' | 'forward_addresses'>,
): EmailRouteInput {
return {
receiver_address: emailRoute.receiver_address,
forward_addresses: emailRoute.forward_a... |
<reponame>mlwilkerson/lumen<filename>compiler/llvm/src/funclet.rs
use std::convert::AsRef;
use crate::Value;
/// A structure representing an active landing pad for the duration of a basic
/// block.
///
/// Each `Block` may contain an instance of this, indicating whether the block
/// is part of a landing pad or not.... |
def _send_command(self, command):
self._logger.debug('command="%s"', command)
self.interface.write(command + '\r\n')
res = self._read_result()
self._logger.debug('result="%s"', ' '.join(res.split('\n')))
return res |
/**
* <p>
* Contains methods and resources useful to all classes in this package.
* </p>
*/
abstract class AbstractUserNeighborhood implements UserNeighborhood {
private final UserSimilarity userSimilarity;
private final DataModel dataModel;
private final double samplingRate;
private final Refre... |
def reserve_gen_timeseries(self, figure_name: str = None, prop: str = None,
start: float = None, end: float= None,
timezone: str = "", start_date_range: str = None,
end_date_range: str = None, **_):
facet=False
... |
/*
* So that one can see
* start_type
* ...
* start_type --> start visit of inner class
* ...
*
* end_type
* end_type
*/
public class Inner
{
void g()
{
}
} |
import { Component, OnInit } from '@angular/core';
import { Driver } from '../services/mock';
import { DataService } from '../services/data.service';
import 'rxjs/add/operator/toPromise';
import { Observable } from 'rxjs/Observable';
import { Router } from '@angular/router';
@Component({
moduleId: mod... |
# -*- coding: utf-8 -*-
# Does not work because both the module "u" and the function
# orbital_speed() in the with block become undefined.
import numpy as np
import astropy.units as u
from astropy.constants import G, M_earth, R_earth
from guietta import Gui, ___, HValueSlider
def orbital_speed(h):
'''h = height ... |
Revealed: Afghan government at war with ‘CIA vigilante group’
November 17, 2011 by Joseph Fitsanakis
By JOSEPH FITSANAKIS | intelNews.org |
Very little has been written about the Kandahar Strike Force, a controversial CIA-funded vigilante group operating in Afghanistan’s Kandahar, Zabul and Uruzgan provinces. In 200... |
// MustNewSet constructs a genericSet from a set of Values, or panics if construction fails.
func MustNewSet(values ...Value) Set {
s, err := NewSet(values...)
if err != nil {
panic(err)
}
return s
} |
"""Requests adapter implementing a JSON-RPC protocol for LSP"""
from requests import Response
from requests.adapters import BaseAdapter
from urllib3.util import parse_url, connection
class LSPAdapter(BaseAdapter):
"""
A requests adapter for JSON-RPC used in LSP.
Uses urllib3 helpers for connecting and p... |
Citizens United architect and campaign finance law foe James Bopp Jr. has seconded a request by Democratic campaign finance experts Perkins Coie for the Federal Election Commission to allow politicians and party committee officials to solicit corporations and labor unions for unlimited funds to be spent by independent ... |
/* -----------------------------------------------------------------
* 'EM2_To_EM3'Convert a 2 DOF EM into its corresponding EM 3-vector
* -----------------------------------------------------------------*/
void EM2_To_EM3(double r[2], double s[3], double t[3], double v[3])
{
v[X] = r[X]*s[X] + r[Y]*t[X];
v[Y... |
// DoTestMain is intended to be run from TestMain somewhere in the test suit.
// This enables the testbed.
func DoTestMain(m *testing.M) {
err := Start()
if err == ErrSkipTests {
os.Exit(0)
}
res := m.Run()
SaveResults()
os.Exit(res)
} |
#pragma once
#include "renderer/common.h"
namespace estun
{
class DeviceMemory
{
public:
DeviceMemory(const DeviceMemory &) = delete;
DeviceMemory &operator=(const DeviceMemory &) = delete;
DeviceMemory &operator=(DeviceMemory &&) = delete;
DeviceMemory(size_t size, uint32_t memoryTypeBits, VkMemoryPropertyFlag... |
test_stdout!(
with_self_returns_true_but_does_not_create_link,
"true\ntrue\n"
);
// `with_non_existent_pid_errors_noproc` in unit tests
test_stdout!(with_existing_unlinked_pid_links_to_process, "true\ntrue\n");
test_stdout!(with_existing_linked_pid_returns_true, "true\ntrue\n");
test_stdout!(
when_a_linked_... |
/**
* @param salary : The salaries of all employees
* @return : average of all salaries without max salary and min salary
*/
public static double average(int[] salary) {
/* initializes min and max salary to the first salary in the list. Then iterates all salaries and
* compares; takes n... |
<filename>skia-safe/src/effects/table_color_filter.rs
use crate::prelude::*;
use crate::ColorFilter;
use skia_bindings as sb;
use skia_bindings::SkColorFilter;
impl RCHandle<SkColorFilter> {
pub fn from_table(table: &[u8; 256]) -> Self {
from_table(table)
}
pub fn from_argb(
table_a: Optio... |
/**
* add or remove one seed at the given coordinates
*
* @param p the point in the anthill
* @param adding if true add one seed else remove one (if possible in both case)
*/
private void addSeed(Point p, boolean adding) {
int toAdd = (adding ? 1 : -1);
this.mainFrame.getF... |
/**
* Update the provided HTTP request by adding any HTTP headers or query parameters specified as part of the
* {@link SdkRequest}.
*/
private void addRequestLevelHeadersAndQueryParameters(ExecutionContext execCtx) {
SdkHttpRequest httpRequest = execCtx.interceptorContext().httpRequest();
... |
/**
* Zeigt, dass eine Exception geworfen wird, falls bei der Suche nach dem primary Key kein Objekt gefunden wird.
*/
@Test(expected = NoSuchElementException.class)
public void testeNoSuchElementFallsEmailNichtGefunden() {
RegistrierungsController controller = new RegistrierungsControllerImpl();
... |
/**
* Interface implementation for devices with at least v5 APIs.
*/
static class EclairDrawableImpl extends BaseDrawableImpl {
@Override
public Drawable wrap(Drawable drawable) {
return DrawableCompatEclair.wrapForTinting(drawable);
}
} |
def RunEval(sess, g, test_pos_arr, test_neg_arr, train_pos_arr, train_neg_arr,
i, v_total_loss, v_objective_loss, eval_metrics, feed_dict):
scores = sess.run(g, feed_dict=feed_dict)
test_pos_prods = scores[test_pos_arr[:, 0], test_pos_arr[:, 1]]
test_neg_prods = scores[test_neg_arr[:, 0], test_neg_arr... |
Computation for the corridor: ubiquitous computing systems for social spaces
This position paper motivates the need for ubiquitous computing systems to act as social mediators within organizations, and proposes that such systems be situated in the various shared public spaces of the workplace. We present a set of desi... |
<filename>src/test/java/com/mistraltech/smogen/codegenerator/BasicExtensibleMatcherTest.java
package com.mistraltech.smogen.codegenerator;
public class BasicExtensibleMatcherTest extends AbstractGeneratorTest {
public void testBasicExtensibleMatcher() {
doTest("basic_extensible", defaultGeneratorProperties... |
// starts a server that does not complete the quic handshake until after the
// given duration.
func stallHandshakeServer(d time.Duration) (*net.UDPConn, error) {
addr, err := net.ResolveUDPAddr("udp", "127.0.0.1:0")
if err != nil {
return nil, err
}
l, err := net.ListenUDP("udp", addr)
if d > 0 {
time.AfterFu... |
from math import fabs
a = [[int(j) for j in input().split()] for i in range(5)]
for i in range(5):
for j in range(5):
if a[i][j] == 1:
rem_i = i + 1
rem_j = j + 1
break
print(int(fabs(3 - rem_i) + fabs(3 - rem_j)))
|
#ifndef ICOMBOBOX_HPP_
#define ICOMBOBOX_HPP_
#include <functional>
#include <string>
#include "IComponent.hpp"
#include "IComboBoxItem.hpp"
namespace ice_engine
{
namespace graphics
{
namespace gui
{
class IComboBox : public virtual IComponent
{
public:
virtual ~IComboBox() = default;
virtual IComboBoxIte... |
package game.internal;
enum Sign {
EMPTY(' '),
X('X'),
Y('Y');
private char value;
Sign(char value) {
this.value = value;
}
public char getValue() {
return this.value;
}
}
|
.
OBJECTIVE
To explore the clinical application value of transurethral ureteroscopy in the diagnosis and treatment of hemospermia.
METHODS
We summed up and analyzed the experience in the diagnosis and treatment of 43 hemospermia patients by transurethral ureteroscopy and douching therapy.
RESULTS
The disease cause... |
package io.github.stawirej.fluentapi.example.builder.fluent.valueobjects;
import static java.util.Objects.requireNonNull;
import io.github.stawirej.fluentapi.prepositions.simple.WithFunction;
public final class User {
private final Name name;
private final Surname surname;
private final Login login;
... |
//RegisterHandler is a replacement for DefaultRegisterHandler. It contains fixes of original password package
func RegisterHandler(context *auth.Context) (*claims.Claims, error) {
context.Request.ParseForm()
if context.Request.Form.Get("confirm_password") != context.Request.Form.Get("password") {
return nil, ErrPas... |
/*
=============
A sky texture is 256*128, with the right side being a masked overlay
==============
*/
void
Sky_InitSky (image_t *img)
{
int i, j, p;
Uint8 *src;
Uint32 trans[128 * 128];
int r, g, b;
Uint8 rgba[4], transpix[4];
if ((img->type != IMG_QPAL) || (!img->pixels)) {
return;
}
src = img->pixe... |
To the memory of Robert (Bud) George Alfred Burt and to all those who have given their lives in war "for freedom"
_Grey goose, grey goose,_
_Whither flyest thou?_
_"Eastward, eastward is my flight,_
_With the cry 'For Freedom's right,'_
_O'er a stormy wind-tossed sea,_
_O'er a war-torn Germany,_
_I've taught m... |
Obama’s NSA Speech Has Little Impact on Skeptical Public
Most Say U.S. Should Pursue Criminal Case Against Snowden
Survey Report
President Obama’s speech on Friday outlining changes to the National Security Agency’s collection of telephone and internet data did not register widely with the public. Half say they have... |
package evmstore
import (
"github.com/Fantom-foundation/lachesis-base/kvdb"
"github.com/Fantom-foundation/go-opera/opera/genesis"
)
// ApplyGenesis writes initial state.
func (s *Store) ApplyGenesis(g genesis.Genesis) (err error) {
batch := s.EvmDb.NewBatch()
defer batch.Reset()
g.RawEvmItems.ForEach(func(key, ... |
"""last_reset_at column for repo
Revision ID: 8<PASSWORD>
Revises: <PASSWORD>
Create Date: 2017-09-01 10:54:46.855976
"""
revision = '<PASSWORD>'
down_revision = '<PASSWORD>'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
def upgrade():
op.add_column('repos', sa.Column('... |
/**
* Allows adding a value in the data structure.
*
* @param key the non null mapping key
* @param value the mapped value
* @return this data structure instance
*/
public SimpleMultiValued<K, V> addValue( K key, V value )
{
checkArgument( key != null, "null key not admitted" )... |
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import { override } from '@microsoft/decorators';
import { Log } from '@microsoft/sp-core-library';
import {
BaseListViewCommandSet,
RowAccessor,
IListViewCommandSetRefreshEventParameters,
IListViewCommandSetExecuteEventParameters
} from '@... |
That the Bottleneck is Unavoidable
Allow me an indulgence. After more than a decade of searching for answers, and attending to the major trends in our world, I have come to certain conclusions about the future of humanity. I haven't made a secret of my now fairly firm belief that in the not-too-distant future humanity... |
What is an afro? In the context of this blog, it is the ::magic:: that follows any “before.” It’s the discovery of something new about the world, or better yet, about yourself. An “afro”—be it a new lipstick or a new career—changes your perspective. It makes you think, walk, see and experience life differently.
There’... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.