content stringlengths 10 4.9M |
|---|
When I wrote that location would be this year’s Twitter at SXSW, I also meant that Twitter’s geolocation would be this year’s Twitter at SXSW. The service has just turned on geolocation on its website today for the first time.
While Twitter’s geolocation feature has been live through its API since last November, there... |
def refresh(self, index):
path = self._make_path([index, '_refresh'])
self.send_request('POST', path)
return True |
<reponame>inb-co/joob<filename>tests/backend_tests.py
import logging
from unittest import mock
from unittest.case import TestCase
from easy_job.result_backends.log import LogResultBackend
__author__ = 'Apollo'
class ResultBackendLogTestCase(TestCase):
@mock.patch("logging.getLogger")
def test_normal_logging_... |
def convert_game(self, file_name, bd_size):
with open(file_name, 'r') as file_object:
state_action_iterator = sgf_iter_states(file_object.read(), include_end=False)
for (state, move, player, result) in state_action_iterator:
if result is None:
raise NoResultError(... |
def calc_even_odd(movie_path,
even_path,
odd_path,
recursive=True,
fbinning=utils.fourier_binning):
even_files = []
odd_files = []
for (dirpath, dirnames, filenames) in os.walk(even_path):
for filename in filenames:
... |
/**
* We don't want the filterNonZeroIds to iterate through the array if there are no zeros in it.
*/
@Test
public void filterNonZeroIds_returns_theSameInstanceOfArray_whenThereAre_noZeros_inPassedArray() {
StaggeredAnimationGroup spiedGroup = prepareSpiedGroup();
int[] testIds = new int[]... |
On Monday, Minnesota state Rep. Mary Franson (R) told the local Fox affiliate in Alexandria that she had refused to meet with a local high school group, the Alexandria Area High School (AAHS) Democrats, because she doesn't "meet with partisan organizations," adding, "this has absolutely nothing to do with me not wantin... |
from src.server.instance import server
from controllers.books import *
server.run() |
// DeriveKey derives a new secret key and chain code from an existing secret key and chain code
func (sk *SecretKey) DeriveKey(t *merlin.Transcript, cc [ChainCodeLength]byte) (*ExtendedKey, error) {
pub, err := sk.Public()
if err != nil {
return nil, err
}
sc, dcc := pub.DeriveScalarAndChaincode(t, cc)
nonce := ... |
<filename>pkg/digit_video_recorder/driver/digit_video_recorder.go
package digit_video_recorder_driver
import (
"io"
"os"
"sync"
"time"
"github.com/spf13/viper"
)
type Record struct {
Id string `yaml:"id"`
StartAt time.Time `yaml:"start_at"`
EndAt time.Time `yaml:"end_at"`
Path string `yaml:"... |
a = str(input())
s = 0
for i in range(0,len(a)+1):
for j in range(i,len(a)+1):
b = a[i:j+1]
c = b[::-1]
if b != c:
s = max(s,len(b))
if s == 0:
print(0)
else:
print(s) |
#include <cstdio>
#include <cstring>
#include <cstdlib>
const int maxn=5000+1;
const int maxm=1000000+10;
int n,k;
int a[maxn];
struct Tnode
{
int x,y;
int next;
}q[maxn*maxn/2],tmp;
int h[maxm];
int mark[10],len;
int ma,de,tot;
bool check(int s)
{
for (int i=0;i<len;i++) if (mark[i]==s) return 1;
return 0;
}
int... |
<gh_stars>0
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RoleComponent } from './role/role.component';
import { SharedModule } from './../../shared/shared.module';
import { ScrollPanelModule } from 'primeng/scrollpanel';
import { UsermasterRoutingModule } from '../u... |
<gh_stars>1-10
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT
use gdk_sys;
use glib::translate::*;
use AnchorHints;
use Gravity;
use Rectangle;
glib_wrapper! {
#[derive(Debug, PartialOrd, Ord, Hash)]
pub struct PopupLayo... |
package net.clarenceho.algo.minspanning.test;
import net.clarenceho.algo.minspanning.Kruskal;
import net.clarenceho.algo.minspanning.MinSpanningSolver;
import net.clarenceho.algo.minspanning.Prim;
import net.clarenceho.util.AdjMatrixGraph;
import net.clarenceho.util.Edge;
import net.clarenceho.util.GraphProblem;
impor... |
def write_dtmpl_file(tmpl_file, dflt_input_file, parameter_names):
with open(tmpl_file, "r") as fp:
txt_base_tmpl = fp.read().split("\n")
with open(dflt_input_file, "r") as fp:
txt_dflt_input = fp.read().split("\n")
for p_name in parameter_names:
for i, line_tmpl in enumerate(txt_bas... |
def pull_arm(self):
return np.random.normal(loc = 0, scale = 1)+self.mean |
matrix = []
target_row = target_col = None
for i in range(5):
entry =list(map(int, input().split()))
if 1 in entry:
target_row = i
target_col = entry.index(1)
print(abs(target_row - 2) + abs(target_col - 2))
break
|
Image copyright Getty Images
The only Finnish word to make it into everyday English is "sauna". But what it is, and how much it means to Finns, is often misunderstood - and it's definitely not about flirtation or sex.
In a dimly lit wood-panelled room, naked men sit in silence, sweating. One beats himself repeatedly ... |
Classical potentials for q-deformed anharmonic oscillators.
Classical potentials giving the same spectrum as the q-deformed anharmonic oscillators having the symmetries U q (2)⊃(2) and SU q (1,1), which have been used for the description of vibrational spectra of diatomic molecules, are determined in analytic form. Th... |
Without much fanfare, the City Council on Thursday unanimously approved a $2.5 billion budget for the upcoming fiscal year that officials called a “back to basics” spending plan focused on core municipal services.
The budget, which takes effect Oct. 1, is slightly smaller than the previous year’s plan because of sligh... |
/**
* Created by Administrator on 2018/1/19.
*/
@Data
public class CallbackCheckDTO {
private Boolean checkResult;
private CallbackBO callbackBO;
private PaymentDetailDO paymentDetailDO;
public static CallbackCheckDTO getCheckFailInstant() {
CallbackCheckDTO callbackCheckDTO = new CallbackChe... |
# -*- coding: utf-8 -*-
colorize_enabled = True
_tc = {
'black': '\033[90m',
'red': '\033[91m',
'green': '\033[92m',
'yellow': '\033[93m',
'blue': '\033[94m',
'purple': '\033[95m',
'cyan': '\033[96m',
'white': '\033[97m',
'end': '\033[0m',
}
_tc_end = _tc['end']
def colorize(messa... |
CBN News staff have been praying as we've covered Hurricane Harvey. Above is a prayer effort we recorded to share with you. Below is a Facebook prayer time with CBN's Gordon Robertson on this National Day of Prayer. Watch, pray and share. We know where two or more are gathered the Lord Jesus is in our midst and there i... |
<reponame>maxep/maxep.me
import React, { useState, useEffect } from "react";
import { Box, Image, Flex, Link, Text, Icon } from "@chakra-ui/react";
import fetchJsonp from "fetch-jsonp";
import Rating from "react-rating";
import { BsStarFill } from "react-icons/bs";
export type ApplicationProps = {
id: number;
titl... |
<filename>src/pages/bill/bill.ts
import { ConationProvider } from '../../providers/conation/conation';
import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
import { AlertController } from 'ionic-angular';
import { HomePage } from '../home/home';
@IonicPage()
@C... |
<reponame>sebge2/github-oauth
import {
NonRecurringScheduledTaskTriggerDto,
RecurringScheduledTaskTriggerDto,
ScheduledTaskDefinitionDto,
ScheduledTaskTriggerDto,
} from '../../../api';
import { LocalizedString } from '@i18n-core-translation';
import { ScheduledTaskTrigger } from './scheduled-task-trigger.model... |
Share. ''The Dirty Dozen with clones.'' ''The Dirty Dozen with clones.''
At Star Wars Celebration today, Dave Filoni introduced a premiere screening for a never finished or released story arc from Star Wars: The Clone Wars – “Bad Batch.” All four episodes of the storyline were shown, though in their incomplete form – ... |
/**
\brief Launches a thread that spins ROS.
This is usually used to ensure that callbacks are processed.
*/
Spinner()
: spin{[this] {
while (!done && ros::ok()) {
ros::spinOnce();
ros::Duration(0.01).sleep();
}
}} {} |
use linebuffer::{typenum, LineBuffer};
use std::convert::TryInto;
use std::time::*;
#[test]
#[ignore]
fn perf_simple() {
const AMOUNT: usize = 8192;
let mut buffer: LineBuffer<(), typenum::U2048> = LineBuffer::new(AMOUNT);
let start = Instant::now();
let max: u32 = 1_000_000_000;
for i in 0..max {
... |
/**
* The type Bch tx script pub key.
*/
@AllArgsConstructor
@NoArgsConstructor
@Data
@EqualsAndHashCode
@JsonIgnoreProperties(ignoreUnknown = true)
public class BchTxScriptPubKey {
private String hex;
private String asm;
private String[] addresses;
private String type;
} |
/**
* If there is an associated endpoint then check is authentication required
* and if so trigger the authentication process.
*
* @param args
* @throws ClientServicesException
*/
protected void checkAuthentication(Args args) throws ClientServicesException {
if (endpoint != null) {
if (endpoint.isRequ... |
Former Manhattan U.S. Attorney Preet Bharara took several shots at the administration of President Donald Trump on Thursday, calling for “facts not falsehoods” as the basis for political discourse and a more welcoming stance towards immigrants in his first public speaking event since being fired one month ago.
Bharara... |
<filename>src/main/java/mx/ipn/cic/biblioteca/AdminControl/services/UserServiceImpl.java
package mx.ipn.cic.biblioteca.AdminControl.services;
import mx.ipn.cic.biblioteca.AdminControl.model.DoctorModel;
import mx.ipn.cic.biblioteca.AdminControl.model.PatientModel;
import mx.ipn.cic.biblioteca.AdminControl.model.User;
i... |
/**
* Unit Test Case for EndpointService.
*
* @author kumargautam
*/
@PrepareForTest(value = { DockerClientBuilder.class, ExposedPort.class, EndpointService.class })
@PowerMockIgnore({ "javax.net.ssl.*,javax.xml.*", "org.xml.sax.*", "org.apache.logging.log4j.*" })
public class EndpointServiceTest extends Powe... |
def configure(config_filepath=None):
config = load_configuration(config_filepath)
write_config = False
if config["julia_exec"] is None:
config["julia_exec"] = get_julia_exec()
write_config = True
else:
print(f"configured julia executable: {config['julia_exec']}")
while Tr... |
Breaking News Emails Get breaking news alerts and special reports. The news and stories that matter, delivered weekday mornings.
Dec. 1, 2016, 1:33 AM GMT / Updated Dec. 1, 2016, 5:33 AM GMT By Maggie Fox
More than 2,300 American scientists, including 22 Nobel Prize winners, issued an open letter to President-elect D... |
<filename>libs/platform/src/lib/value-help-dialog/components/index.ts
export * from './base-tab/vhd-base-tab.component';
export * from './define-tab/define-tab.component';
export * from './select-tab/select-tab.component';
export * from './value-help-dialog-filter/value-help-dialog-filter.component';
export * from './v... |
<reponame>damian123/crypto
#include <iostream>
#include <gtest/gtest.h>
#include <securities.h>
TEST(securities_test_case, FindSpot)
{
Securities s;
s.Refresh("ftx");
EXPECT_EQ(true, s.FindSpot("BTC/USD", "ftx"));
}
TEST(securities_test_case, FindFuture)
{
Securities s;
s.Refresh("ftx");
EX... |
/**
* Test class for CreateMoodActivity. All the UI tests are written here.
* Robotium test framework is used
* Test class for CreateMoodActivity. All the UI tests are written here. Robotium test framework is
used
* todo:
* * write tests for location picker
*/
public class CreateMoodActivityTest {
priv... |
/*
* Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
*/
#include "orte_config.h"
#include "orte/constants.h"
#include "opal/mca/mca.h"
#include "opal/util/output.h"
#include "opal/mca/base/base.h"
#include "opal/mca/base/mca_bas... |
<reponame>technologiestiftung/kulturdaten-frontend<filename>components/navigation/header/HeaderMenuLink.tsx<gh_stars>1-10
import React, { useContext, useMemo } from 'react';
import Link from 'next/link';
import styled from '@emotion/styled';
import * as feather from 'react-feather';
import { useIsRouteStringActive } f... |
package ru.stqa.pft.sandbox;
public class PointMain {
public static void main(String[] args) {
double d1 = Point.distance(new Point(0, 0), new Point(0, 1));
double d2 = Point.distance(new Point(1, 1), new Point(-1, -1));
double d3 = new Point(0,3).distance(new Point(4,0));
System.out.println(d1);
... |
// also remove surrounding quotes, if any :
String KillHeadTailWhiteAndQuotes(const char * str)
{
str = skipwhitespace(str);
const char * end = skipwhitebackwards( strend(str) -1,str);
if ( end <= str )
return String();
int len = (int) (end - str) + 1;
if ( len >= 2 )
{
if ( *str == '"' && str[len-1] == '"' )... |
package gobatis
import (
"fmt"
"testing"
)
func TestStaticSqlSource_getBoundSql(t *testing.T) {
sss := &staticSqlSource{
sqlStr:"select * from t_gap where id = #{id} and gap = #{gap}",
paramMappings:make([]string, 0),
}
bs := sss.getBoundSql(map[string]interface{}{
"id":1,
"gap":10,
})
expc := "sele... |
<gh_stars>0
/*
* Copyright 2017 Red Hat, Inc. and/or its affiliates.
*
* 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... |
from google_images_download import google_images_download
insectFolder = "~/ai-insects/dataset-collection/insects-dataset/"
#creating list of arguments
arguments = {"keywords":"mosquitoes","limit":50,"print_urls":True,output_directory:insectFolder}
arguments.type = "photo"
arguments.print_size = true
response = googl... |
Five “can’t-miss” first round prospects in the 2009 NFL Draft
There is no such thing as a “can’t-miss” prospect in the first round of an NFL draft. They just don’t exist. For as much as teams scout and prepare, it’s inevitable that some prospects just aren’t going to pan out, which means they hop the train to Bustvill... |
/**
* Created by Alessandro Di Diego
*/
public class OpenPcapFragment extends Fragment {
private AppCompatButton openPcapButton;
private FilePickerDialog dialog;
@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setHasOptionsMe... |
Molecular Evolution of Puumala Hantavirus
ABSTRACT Puumala virus (PUUV) is a negative-stranded RNA virus in the genusHantavirus, family Bunyaviridae. In this study, detailed phylogenetic analysis was performed on 42 complete S segment sequences of PUUV originated from several European countries, Russia, and Japan, the... |
def check_file_compliance(file_list, hlsp_name, known_missions, known_filters,
exclude_missions, exclude_filters):
n_fields_expected = 8
for ifile in file_list:
ifile_base = os.path.basename(ifile)
if not ifile_base.islower():
logging.warning("File is not al... |
<reponame>lunes-platform/lunes-lite<filename>src/types/index.d.ts
declare module "*.png"
declare module "*.jpg"
declare module "*.jpeg"
declare module "*.svg"
declare module "*.json"
type Token = {
assetId?: string
balance: number
reissuable?: boolean
quantity?: number
issueTransaction: {
t... |
// GetAllMembers retrieves a set of thread
// members from the thread with the given id.
func GetAllMembers(token auth.Token, threadID snowflake.Snowflake) (members []channel.ThreadMember, err error) {
return members, client.GET(client.Request{
Path: fmt.Sprintf("/channels/%s/thread-members", threadID),
Token: ... |
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *ListenerParameters) DeepCopyInto(out *ListenerParameters) {
*out = *in
if in.AlpnPolicy != nil {
in, out := &in.AlpnPolicy, &out.AlpnPolicy
*out = make([]*string, len(*in))
for i := range... |
def run_with_batches(self, fetch, dataset, batch_size=None):
if batch_size is None or dataset.sample_size <= batch_size:
return self.sess.run(fetch, dataset[:])
else:
assert dataset.sample_size % batch_size == 0
if type(fetch) is list:
out = zeros_from... |
#include <bits/stdc++.h>
using namespace std;
char a[1005][1005];
int v[1005][1005];
int r,c;
void bfs (int i , int j) {
memset(v, 1005, 1005);
queue<pair<pair<int, int>,int>> q;
q.push({{i,j},0});
memset(v, 0, sizeof(v));
while (!q.empty()) {
auto z = q.front();
q.po... |
/**
* Do texgen needed for glRasterPos.
* \param ctx rendering context
* \param vObj object-space vertex coordinate
* \param vEye eye-space vertex coordinate
* \param normal vertex normal
* \param unit texture unit number
* \param texcoord incoming texcoord and resulting texcoord
*/
static void
compute_te... |
/**
* A connection to a remote client is handled in its own thread. The method run() implements the
* Runnable interface. It will be started in a seperate thread.<br/>
* In run() we handle the actual conversation with a remote client be sending and receiving messages
* and also taking the appropriat... |
<reponame>KwanJunWen/jsx-readme
/* @jsx MD */
import MD from "jsx-md";
import { Badge } from "../Badge";
import { BadgeComponent } from "./utils/BadgeComponent";
/** Display a badge explaining that this repo uses https://github.com/semantic-release/semantic-release */
export const SemanticReleaseBadge: BadgeComponent ... |
package live.stubs;
import live.data.AccountRepository;
import live.domain.Account;
public class StubAccountRepository implements AccountRepository {
@Override
public Account getAccount(String username) {
return "Mike".equals(username)?new Account(username,"secret"):null;
}
}
|
SHARE
By of the
The Archdiocese of Milwaukee and its bankruptcy creditors have failed to reach a settlement after two days of negotiations, but the parties have agreed to continue settlement talks in two weeks.
The parties are scheduled to return to the negotiating table for two more days of talks Sept. 22 and 23, s... |
/**
* Executes the given Index Operation once, without performing retries. In case of failure with BadOffsetException
* (which indicates a conditional update failure), the BTreeIndex is reinitialized to the most up-to-date state.
*
* @param indexOperation A Function, that, when invoked, returns a Co... |
Whole-exome sequencing identifies variants in invasive pituitary adenomas
Pituitary adenomas exhibit a wide range of behaviors. The prediction of invasion or malignant behavior in pituitary adenomas remains challenging. The objective of the present study was to identify the genetic abnormalities associated with invasi... |
/// A light row, a dark row and a lightning bolt below.
mod dataframe_map_row {
use super::*;
ensogl::define_shape_system! {
(style:Style) {
let weak_color = style.get_color(theme::preparation::weak);
let strong_color = style.get_color(theme::preparation::strong);
... |
Different shaped stress balls , including a cube, a star, and a sphere
Molyneux's problem is a thought experiment in philosophy concerning immediate recovery from blindness. It was first formulated by William Molyneux, and notably referred to in John Locke's An Essay Concerning Human Understanding (1689). The problem ... |
/**
* This test lously checks that errors are reported as expected. It
* checks that the error code given at construction time is reported
* either my an exception thrown from the execute method or during the
* processing of single files in the SVGConverterController handler.
*/
class ConfigErrorTest extends Abstr... |
How Do They Sound? The voice of keyboard instruments has evolved in the last five hundred years, changed by the way that the strings are made to sing, and the body of the instrument itself. Innovators sought to increase the instrument’s volume and expressiveness. When your finger strikes the keyboard on a harpsichord, ... |
//
// ViewController.h
// HanCamera
//
// Created by 韩畅 on 14/11/6.
// Copyright (c) 2014年 韩畅. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
typedef enum : NSUInteger {
hcCameraMode9to16,
hcCameraMode1to1,
hcCameraMode3to4,
} hcCameraMode;
@interface ViewContro... |
<gh_stars>1-10
//*** <<< Use Configuration Wizard in Context Menu >>> ***
// <o> SPI Flash <0=>W25X80 <1=>W25Q64
#define TYPE_SPI 0
//*** <<< end of configuration section >>> ***
#if TYPE_SPI == 0
#define FLASH_SECTOR_COUNT ((uint32_t)256) /* Number of sectors */
#else
#if TYPE_SPI == 1
#define ... |
def t_star(self, s):
delta, k, c, n = self._delta, self._k, self._c, self._n
f = lambda t: delta * k * self.p_func(t / k) + c(s - t)
return max(fminbound(f, -1, s), 0) |
Women’s Education May Be Even Better Than We Thought: Estimating the Gains from Education When Schooling Ain’t Learning
Women’s schooling has long been regarded as one of the best investments in development. Using two different cross-nationally comparable data sets which both contain measures of schooling, assessments... |
/**
* This method is mainly responsible for the colors of the board.
* @param s The String that will determine what kind of board will be implemented.
* @param bC the color of the board.
* @param pC the Color of the pits.
*/
private void pickColorScheme(String s, Color bC, Color pC)
{
if (s.equals("S... |
Share. Train of thought. Train of thought.
There's a science to getting people from point A to point B, and Cities in Motion 2 takes a very technical, not particularly user-friendly approach to its simulation of urban mass transit. Despite significant strides in creative freedom over its predecessor, this is still lar... |
// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT.
package benchmarks
import (
json "encoding/json"
easyjson "github.com/mailru/easyjson"
jlexer "github.com/mailru/easyjson/jlexer"
jwriter "github.com/mailru/easyjson/jwriter"
)
// suppress unused package warning
var (
_ *json.RawMessage
_ ... |
// messageMAC returns the hex-decoded HMAC tag from the signature and its
// corresponding hash function.
func messageMAC(signature string) ([]byte, error) {
if signature == "" {
return nil, &errors.Error{
Category: errors.AUTHENTICATIONERROR,
Message: "missing signature",
}
}
buf, err := hex.DecodeString... |
//FUNCTION TO UNITE TWO BINOMIAL HEAP INTO ONE BINOMIAL HEAP
node* binomialheapunion(node* h1, node* h2)
{
node* finalheap = makebinomialheap();
finalheap = binomialmerge(h1,h2);
if(finalheap == NULL) return finalheap;
node* x = makebinomialheap();
x=finalheap;
node* nextx = x->sibling;
node* prevx = NULL;
whil... |
Southampton Fire Department took the trophy for best fire truck in the Southampton Village Parade of Lights on Saturday for a truck with a Frozen theme, while a second SOuthampton Fire Department truck in the parade was decorated to look like Olaf, the living snowman from the Disney film.
The windshield served as the ... |
import java.util.Scanner;
import java.util.ArrayList;
public class test{
public static void main(String args[]){
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int[] horizontal=new int[n*n];
int[] vertical=new int[n*n];
ArrayList<Integer> h=new ArrayList<>();
... |
/**
* Adds a new media action listener.
*/
public void addListener(ActionListener listener) {
if (!mListeners.contains(listener)) {
mListeners.add(listener);
listener.onMediaActionsChanged(getMediaActions());
}
} |
#http://codeforces.com/contest/520/problem/A
#solved by Benegripe
#!/usr/bin/python
n = int(raw_input())
s = raw_input()
alpha= set()
for x in s:
if x.lower() not in alpha:
alpha.add(x.lower())
if (26 == len(alpha)):
print "YES"
else:
print "NO"
|
/**
* execute action of menu.
* @param input interface for ask
* @param tracker object for action with
*/
@Override
public void execute(Input input, Tracker tracker) {
String name = input.ask("item ru.job4j.user name: ");
String description = input.ask... |
// NewMySQLFileRepo ... create implementation of FileRepo
func NewMySQLFileRepo(Conn *sql.DB) FileRepo {
return &mysqlFileRepo{
Conn: Conn,
}
} |
<filename>src/components/Divider.tsx
import React from 'react'
export type DividerProps = {
colour?: string
}
export const Divider = (props) => {
const { colour } = props
return (
<div
className="bottom-auto top-0 left-0 right-0 w-full absolute pointer-events-none overflow-hidden -mt-2... |
<filename>reactfx/src/main/java/org/reactfx/util/TriPredicate.java
package org.reactfx.util;
@FunctionalInterface
public interface TriPredicate<A, B, C> {
boolean test(A a, B b, C c);
}
|
<filename>sia4e-P1_Core_Spring-C03_Advanced_wiring-04_scope/src/test/java/com/myapp/ShoppingCartTest.java
package com.myapp;
import static org.junit.Assert.assertNotEquals;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.... |
{-# LANGUAGE CPP #-}
module JS.DOM.EventTarget.Node.Element.HTML
( -- | constructor not exported
HTMLElement
, IHTMLElement(..)
) where
import Control.Monad.IO.Class
import JS.Data
import JS.DOM.EventTarget.Node.Element
import JS.DOM.EventTarget.Node.Element.HTML.Internal
import Prelude hiding (id)
... |
def parse_value(self,value,type,tag):
raise NotImplementedError |
CORRELATIONS BETWEEN MUSCULAR STRENGTH AND INDUSTRIAL WORK PERFORMANCE IN MENTALLY RETARDED PERSONS
An important task with mentally retarded persons is to place them in an occupation which they can manage without difficulties. With this goal in mind, a group of young adult mentally retarded persons, presented in a pre... |
Factor-specific deactivation of leucocyte chemotaxis in vivo.
This report analyses the locomotory capacity of polymorphonuclear leucocytes (PMNL) isolated from 7 patients with bacterial meningitis. 7 healthy control subjects were also investigated in parallel. It was found that PMNL from the patients suffering from me... |
<gh_stars>0
package org.progress.web.util;
public class ParamName {
public final static String APARTAMENTS_ID = "id";
public final static String TYPE_OF_SALES = "typeOfSales";
public final static String CITY_NAME = "cityName";
public final static String STREET_NAME = "streetName";
public final sta... |
<gh_stars>1-10
package net.dugged.cutelessmod.mixins;
import net.dugged.cutelessmod.CutelessMod;
import net.minecraft.client.gui.GuiButton;
import net.minecraft.client.gui.GuiIngameMenu;
import net.minecraft.client.gui.GuiScreen;
import net.minecraft.client.multiplayer.GuiConnecting;
import net.minecraft.client.resour... |
These are incredibly quick, incredibly easy and incredibly good! I keep all the ingredients made up in my freezer and refrigerator so that such lunches are a snap for me! These little gems can’t be picked up and eaten like regular pizza as they are too wet/messy, so get out a fork to enjoy these. This recipe is not sui... |
Paul Finebaum is not on board with Nick Saban's antics as of late, and is especially confused by Saban blocking Maurice Smith's transfer to Georgia. (2:01)
Alabama reserve defensive back Maurice Smith said Monday that he's "willing to go as far as it takes" in his ongoing battle with the Crimson Tide, who have blocked... |
package conf
import (
"gopkg.in/ini.v1"
"HFish/utils/log"
"container/list"
)
var cfg *ini.File
func init() {
c, err := ini.Load("./config.ini")
if err != nil {
log.Pr("HFish", "127.0.0.1", "打开配置文件失败", err)
}
c.BlockMode = false
cfg = c
}
func Get(node string, key string) string {
val := cfg.Section(node)... |
import { Component, OnInit, OnDestroy } from '@angular/core';
import { FormGroup, FormBuilder } from '@angular/forms';
import { View } from '../../../../shared/view.shared';
import { ClientService, Client } from '../../../../service/client.service';
import { UserService, User } from '../../../../service/user.service';... |
def update_general(self, engine):
changed = False
if self.default_nat is not None:
status = engine.default_nat.status
if not status and self.default_nat:
engine.default_nat.enable()
changed = True
elif status and not self.default_nat:
... |
def Repeat(t, max=4294967295, ctx=None):
t = _to_tactic(t, ctx)
return Tactic(Z3_tactic_repeat(t.ctx.ref(), t.tactic, max), t.ctx) |
package com.gwtjs.icustom.common.htmlarea.service;
import static org.junit.Assert.assertNotNull;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.inject.Inject;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
... |
/**
* @author Santhosh Kumar Tekuri
*/
public class ReadMessage extends Task{
private final long maxHeadSize;
private final MessageParser parser;
protected ReadMessage(long maxHeadSize, MessageParser parser){
super(OP_READ);
this.maxHeadSize = maxHeadSize;
this.parser = parser;
... |
/**
* Test that closing all incognito tabs successfully handles the base tab and
* its preview tab opened in incognito mode. This makes sure an incognito profile
* shared by the tabs is destroyed safely.
*/
@Test
@MediumTest
@Feature({"PreviewTab"})
public void testCloseAllIncognitoTabsC... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.