content
stringlengths
10
4.9M
def packet_in_handler(self, ev): msg = ev.msg datapath = msg.datapath ofproto = msg.datapath.ofproto parser = msg.datapath.ofproto_parser dpid = msg.datapath.id pkt = packet.Packet(msg.data) in_port = msg.match['in_port'] data = msg.data if msg.buffer_id =...
<reponame>piskunovdenis/MemSpy<filename>MemSpy/MemSpy/Sources/Path.hpp #pragma once #include <string> namespace memspy { class Path { static const wchar_t kPathSeparator = L'\\'; public: static std::wstring GetFileName(const std::wstring& fileName); }; }
. Erythropsia or red vision (from the Greek erythros = red, and opsis = sight) is a temporary distortion of colour vision. This phenomenon is a chromatopsia or impaired vision. It consists of seeing all objects with a uniform reddish tint. This vision symptom usually alarms the patient. It is a Little known process an...
/** * An expression condition that evaluates to true if the expression is a call to one of a set of operators. */ static class OperatorExprCondition implements ExprCondition { private final Set<Operator> operatorSet; /** * Creates an OperatorExprCondition. * * @pa...
Square Wallet. Google Wallet. PayPal. For many years, these mobile payment apps have been heralded as the successors to our overstuffed wallets and purses. Adoption of these services, however, have been slow. It’s driven one startup to launch a crowdfunding campaign for Coin, a physical card that replaces everything in...
<gh_stars>0 /* eslint-disable import/first */ /* eslint-disable no-multi-str */ import * as mailer from '../../src/auth-server/mailer' import { InvitationType } from '../../src/persistance/invitation/types' import { RegistrationType } from '../../src/persistance/registration/types' jest.mock('../../src/utils/logger') ...
package se.danielkonsult.fsm4j_turnstile; /** * Acts as context for the turnstile state machine, keeping tracking of * how many times it has been opened, and how many forced attempts * (trying to pass without paying) that have been made. */ public class TurnstileData { private int passages = 0; private int forc...
#[allow(unused_imports)] use proconio::input; #[allow(unused_imports)] use proconio::marker::Chars; #[allow(unused_imports)] use std::cmp::{max, min}; #[allow(unused)] const ALPHA_SMALL: [char; 26] = [ 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', ...
import { DomNode, el } from "@hanul/skynode"; import msg from "msg.js"; import { View, ViewParams } from "skyrouter"; import Alert from "../../component/dialogue/Alert"; import MetaversesContract from "../../contracts/MetaversesContract"; import Layout from "../Layout"; import ViewUtil from "../ViewUtil"; export defau...
<reponame>RyaxTech/singularity-cri // Copyright (c) 2018-2019 Sylabs, 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/LI...
#pragma once #include "il2cpp.h" uint8_t Dpr_NetworkUtils_NetDataRecodeTradeData__get_GetDataID (Dpr_NetworkUtils_NetDataRecodeTradeData_o* __this, const MethodInfo* method_info); uint8_t Dpr_NetworkUtils_NetDataRecodeTradeData__get_DataID (const MethodInfo* method_info); void Dpr_NetworkUtils_NetDataRecodeTradeData_...
<reponame>sk177y/sexy<filename>src/Mutation.cpp<gh_stars>1-10 #include "Mutation.h" Mutation::Mutation() { } Mutation::~Mutation() { } void Mutation::mutate(Individual* individual) { } void Mutation::mutateRange(Individual* individual, double mutation) { }
def profile_pic_url(self) -> str: if self._context.is_logged_in: try: return self._iphone_struct['hd_profile_pic_url_info']['url'] except (InstaloaderException, KeyError) as err: self._context.error('{} Unable to fetch high quality profile pic.'.format(err...
#ifndef MALLOC_FAIL_H #define MALLOC_FAIL_H /* https://stackoverflow.com/questions/1711170/unit-testing-for-failed-malloc I saw a cool solution to this problem which was presented to me by S. Paavolainen. The idea is to override the standard malloc(), which you can do just in the linker, by a custom allocator which ...
# import sys input=sys.stdin.readline def main(): S=input().strip("\n") Q=int(input()) sign=True head=[] tail=[] for i in range(Q): q=tuple(input().split()) if q[0]=="1": sign^=True else: if (q[1]=="1" and sign==True) or (q[1]=="2" and sign==Fals...
/** * Adds listener to width property such that if it is below a certain px, it will change to 2-grid mode. * <900px (2 grid); >=900 (3 grid) * * @param scene the scene which listener is added to. */ private void addDynamicGridPaneChange(Scene scene) { scene.widthProperty().addListener(...
/** Returns true if the hailstone sequence that starts with n is considered long * and false otherwise, as described in part (b). * Precondition: n > 0 */ public static boolean isLongSeq(int n){ /* to be implemented in part (b) */ if ((hailstoneLength(n))>n) return true; return false; }
//! Error types. use std::{error::Error, fmt::Display}; /// Returned when trying to reserve an key on a /// full [`Arena`](super::Arena). #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] pub struct ArenaFull; impl Display for ArenaFull { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { f.wri...
// ParseMenuItem parses a single item, returning the new menu. func (m MenuParser) ParseMenuItem(ctx context.Context, item *plugins.Item) *menu.MenuItem { displayText := item.DisplayText() itemAction := item.Action() menuItem := menu.Text(displayText, nil, func(_ *menu.CallbackData) { if itemAction == nil { ret...
/** * @brief Registers a property changed handler function for a d-bus interface. * This refers to the standard-defined org.freedesktop.DBus.Properties.PropertiesChanged * signal. * * @param dbus The dbus control object. * @param interface The dbus interface to monitor for property changes. * @param userd...
Booking a summer camping trip can be stressful. The best campsites will sell out just minutes after the online reservation system opens for bookings, which can leave you scrambling to find an alternative. Last year, some friends and I wanted to go camping over the August long weekend. We started planning a trip to Gol...
/** * {@link Descriptor} for {@link Database} * * @author Kohsuke Kawaguchi */ public abstract class DatabaseDescriptor extends Descriptor<Database> { protected DatabaseDescriptor() { } protected DatabaseDescriptor(Class<? extends Database> clazz) { super(clazz); } public static Descri...
<filename>src/mongomanager.py from pymongo import MongoClient import logging import inspect import json class MongoManager: #what all the scripts will use to connect to the dbs, so now its not in every single script, this can also auto add the indxes, do the updates, return things, etc. def __init__(self,dbname,host=...
// New creates a gRPC client and server connected to eachother. func New() (*Fake, func() error) { f := &Fake{} opts := []grpc.ServerOption{ grpc.UnaryInterceptor(UnaryLoggerInterceptor), grpc.StreamInterceptor(StreamLoggerInterceptor), } f.Server = grpc.NewServer(opts...) port := ":0" var err error f.Listen...
<filename>src/main/java/com/ambrosoft/exercises/SearchSparseSorted.java package com.ambrosoft.exercises; import java.util.Arrays; /** * Created by jacek on 1/2/17. */ public class SearchSparseSorted { /* sorted String array except from any number of empty Strings which break simple binary search ...
<reponame>catphish/flex-floppy struct USBBufTable { struct USBBufDesc { uint16_t txBufferAddr ; uint16_t txBufferCount ; uint16_t rxBufferAddr ; uint16_t rxBufferCount ; } ep_desc[8]; }; #define USBBUFTABLE ((volatile struct USBBufTable *)0x40006C00) #define USBBUFRAW ((volatile uint8_t *)0x40006...
Writing in the National Post, Macdonald-Laurier Institute Senior Fellow Ken Coates argues that the problems facing Aboriginals in Canada run deeper than racism. Coates, who was responding to a sensational recent Maclean’s magazine cover story about the extent of racism towards Aboriginals in Winnipeg, says the solutio...
from task_custom import Task import asyncio async def coro(name): print(f">> Start {name}") await asyncio.sleep(1) print(f">> Working.. {name}") await asyncio.sleep(1) print(f">> End {name}") async def main(): task1 = Task(coro("coro1"), name="task1") task2 = Task(coro("coro2"), name="ta...
// ReadFrom reads a packet from the connection. func (c *SecurePacketConn) ReadFrom(b []byte) (n int, src net.Addr, err error) { n, src, err = c.PacketConn.ReadFrom(c.readBuf) if err != nil { return } nn, err := c.Unpack(b, c.readBuf[:n]) return nn, src, err }
package com.mzj.action; import com.github.pagehelper.PageInfo; import com.mzj.commons.Const; import com.mzj.commons.ResponseCode; import com.mzj.commons.ServerResponse; import com.mzj.dao.pojo.Product; import com.mzj.dao.pojo.User; import com.mzj.dao.vo.*; import com.mzj.service.iservice.IProductService; import com.m...
Looking for news you can trust? Subscribe to our free newsletters. The debate over the Keystone XL pipeline has moved from the White House to a farm in Texas. Third-generation farmer Julia Trigg Crawford is engaged in a court battle over whether TransCanada, the company that wants to build the massive pipeline from C...
import virxrlu from util.utils import (Vector, backsolve, cap, defaultPD, defaultThrottle, shot_valid, side, sign) max_speed = 2300 throttle_accel = 100 * (2/3) brake_accel = Vector(x=-3500) boost_per_second = 33 + (1/3) min_boost_time = 1/30 jump_max_duration = 0.2 jump_speed = 291 + (2/3) jum...
// { Driver Code Starts #include <bits/stdc++.h> using namespace std; // } Driver Code Ends class Solution{ public: int countSubArrayProductLessThanK(const vector<int>& a, int n, long long k) { long prod=1; int j=0,ans=0; for(int i=0;i<n;i++){ prod*=a[i]; ...
def ensure_service_directory(self, relative_name): path = _service_directory(self._local_state_file, relative_name) makedirs_ok_if_exists(path) return path
/** * Creates a Table from given collection of objects with a given row type. * * <p>The difference between this method and {@link #fromValues(Object...)} is that the schema * can be manually adjusted. It might be helpful for assigning more generic types like * e.g. DECIMAL or naming the columns. * * <p>E...
// word list need it so we may need it in the future. public static void markAsUsed(final Context context, final String clientId, final String wordlistId, final int version, final int status, final boolean allowDownloadOnMeteredData) { final WordListMetadata wordListMetaData = MetadataHa...
Evaluation of the Patterns of Non-Adherence to Anti-Platelet Regimens in Stented Patients Bleeding Score for Predicting the Long-term Out-of-hospital Bleeding Risk in Chinese Patients after Percutaneous Coronary Intervention Background: The Patterns of Non-Adherence to Anti-Platelet Regimens in Stented Patients (PARIS...
/* Both Source-Active and Source-Active Response have the same format * with one exception. Encapsulated multicast data is not allowed in * SA Response. */ static void dissect_msdp_sa(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int *offset, int length, proto_item *length_item) { guint32 entries;...
def empty_slot_values(): return { "type": {"value": {}}, "size": {"value": {}}, "crust": {"value": {}}, "count": {"value": {}}, }
/******************************************************************************* The content of this file includes portions of the AUDIOKINETIC Wwise Technology released in source code form as part of the SDK installer package. Commercial License Usage Licensees holding valid commercial licenses to the AUDIOKINETIC W...
<filename>cache.go // Copyright 2018 GRAIL, Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. package bigslice import ( "context" "reflect" "github.com/grailbio/bigslice/internal/slicecache" "github.com/grailbio/bigslice/sliceio" ...
Trap-Assisted DRAM Row Hammer Effect Through 3D TCAD simulations with single charge traps, we discovered a direct evidence to the mechanism of DRAM row hammer effect. It is governed by a charge pumping process, consisting of charge capture and emission under or around an aggressor wordline and subsequent carrier migra...
def plot_dw_config(_data, ax=None, cmap='twilight', marker='cell', dx=2e-9): data = _data.sort_values('y') if ax is None: _, ax = plt.subplots() cmap = cm.get_cmap(cmap) colors = [cmap(np.arctan2(data.iloc[i]['my'], data.iloc[i]['mx'])/(2*np.pi) + 0.5) for i in range(len(data))] if marker ==...
import * as koa from 'koa'; import * as logger from 'koa-logger-winston'; import * as winston from 'winston'; const app = new koa(); app.use(logger(new winston.Logger()));
<reponame>fenriz07/dd-trace-go<filename>contrib/gearbox/gearbox.go // Unless explicitly stated otherwise all files in this repository are licensed // under the Apache License Version 2.0. // This product includes software developed at Datadog (https://www.datadoghq.com/). // Copyright 2016 Datadog, Inc. // Package gea...
Kristina Torres was so close. The 26-year-old was just six months away from being eligible to apply for permanent residency in Canada. Then she was fired. She still doesn’t know why. But she suspects that asking the mother of the autistic seven-year-old boy she looked after for better hours than the 16 a day she was ...
def from_items(cls, items: List[Item]) -> MailMessageItems: items = clean_items_relationships(items) stash_id = generate_item_id() for item in items: if not item.parent_id: item.parent_id = stash_id if not item.slot_id: item.slot_id = "main...
<gh_stars>0 package com.sparrowwallet.sparrow.io; import com.google.gson.*; import com.sparrowwallet.drongo.BitcoinUnit; import com.sparrowwallet.sparrow.Mode; import com.sparrowwallet.sparrow.Theme; import com.sparrowwallet.sparrow.net.*; import com.sparrowwallet.sparrow.wallet.FeeRatesSelection; import org.slf4j.Log...
Examination of UTAUT model in an ERP postadoption environment: An empirical study This research presents an empirical study on UTAUT model in an ERP post-adoption environment, investigating the moderating effect of mid-level management support on the relationship between subjective norm, perceived behavior control and...
/** * Trims a String to a specified length, if the String exceeds that length, * otherwise leaves it alone. If findWordBoundary is true, will work * backwards (or forwards, if searchBackForWordBoundary is false) from the * target length to a space character and truncate there (to avoid * truncating in th...
Utilization of and Adherence to Oral Contraceptive Pills and Associated Disparities in the United States This study investigated sociological factors that may influence women’s utilization of and adherence to oral contraceptive pills. This was a retrospective cross-sectional study using the 2010–2012 Medical Expenditu...
<gh_stars>0 import { render } from '@testing-library/react'; import { StoreProvider } from 'easy-peasy'; import 'mutationobserver-shim'; import React from 'react'; import { BrowserRouter } from 'react-router-dom'; import { ToastContainer } from 'react-toastify'; import App from './App'; import { store } from './store';...
/*============================================================ Problem: Generate Parentheses ============================================================== Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. For example, given n = 3, a solution set is: "((()))", "((...
<reponame>ooliver1/upticheck import durationToHuman from "./duration"; export default async function handleUptime( request: Request, env: Env, path: string ): Promise<Response> { const uptime = await env.UPTIME.get(path); if (uptime === null) { return new Response('Service not found <img src="https://ht...
//--------------------------------------------------------------------------- //! //! This function does not provide fall back mechanics. This is intentional //! It should be used to compare two file locations exsactly bool IOManager::validate_file(const char* path, const char* embeded_path) const { if (embeded_pat...
/******************************************************************************* * Copyright (c) 2009 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is a...
/** * Creates the reisze pane with which the user can resize the model.grid * * @return the ScrollPane holding the link control panel */ private ScrollPane createGridResizePane() { Pane resizePanel = new Pane(); ToggleGroup radioGroup = new ToggleGroup(); myBuilder.addNewRadi...
// purge continuously purges rows from a table. // This function is non-reentrant: there's only one instance of this function running at any given time. // A timer keeps calling this function, so if it bails out (e.g. on error) it will later resume work func (collector *TableGC) purge(ctx context.Context) (tableName st...
# -*- coding: latin-1 -*- """ Funciones matematicas de todo tipo """ from math import asin, atan import cmath from numarray import * import numarray.linear_algebra as la import copy import logging import pylab ################################################################################ # UTILIDADES ...
package strategies.divers; import cls.SimpleEnsemble; import com.yahoo.labs.samoa.instances.Instance; import utils.Trackable; import java.util.HashMap; import java.util.Random; public abstract class DiversityStrategy implements Trackable { abstract public void update(Instance instance, SimpleEnsemble ensemble, H...
<reponame>CallistoHouseLtd/Raven /******************************************************************************* * The MIT License (MIT) * * Copyright (c) 2003, 2016 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files...
Analog non-linear function synthesis Networks of resistors have been identified as interesting devices for analog computation. Since the analytical model of a network of constant resistors is a set of linear equations, such a circuit can be used to solve a large number of linear equations concurrently. Whenever such a...
Production of lipid mediators in experimental keratitis of rabbit eye. The inhibitors of prostaglandin (PG) or leukotriene (LT) synthesis and antagonists of platelet-activating factor (PAF) or LTs are inhibitory in experimental keratitis and clinical symptoms of keratitis are reproduced by application of these lipid m...
<gh_stars>0 /**TODO: Add copyright*/ #define BOOST_TEST_MODULE WeightInit test suite #include <boost/test/included/unit_test.hpp> #include <EvoNet/ml/WeightInit.h> #include <iostream> using namespace EvoNet; using namespace std; BOOST_AUTO_TEST_SUITE(weightInit) /** RandWeightInitOp Tests */ BOOST_AUTO_TEST_C...
The Competitive Recap: We list what you might have missed (July 15th - July 21st) A lot is currently happening, and so it has become increasingly hard to keep track of everything that happened in a week. To help with that, we have compiled this Competitive Recap. Released every week we will try to congest every tourn...
#include <bits/stdc++.h> using namespace std; typedef long long ll; int n, m; ll a[100000]; vector<vector<int> > conn(100000); int main() { cin >> n >> m; for(int i = 0; i < n; i++){ cin >> a[i]; } for(int i = 0; i < m; i++){ int y, x; cin >> y >> x; y -...
{-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE BangPatterns #-} module Warden.Numeric ( combineFieldNumericState , combineMeanAcc , combineMeanDevAcc , combineNumericState , combineStdDevAcc , sampleMedian , summarizeFieldNumericState , summarizeNumericState , unsafeMedian , updateMinimum , up...
/** * @brief Allocate an object clearing it. */ void *osPoolCAlloc(osPoolId pool_id) { void *object; object = chPoolAllocI((memory_pool_t *)pool_id); memset(object, 0, pool_id->object_size); return object; }
DETROIT — The United Automobile Workers union this year is renewing its effort to organize workers at plants that foreign automakers operate in the United States and will portray companies that resist as “human rights violators,” the union’s president said Wednesday. The president, Bob King, said the companies would b...
package clean_test import ( "errors" "strings" "testing" "github.com/spf13/afero" "github.com/staticdev/cleancontacts/clean" ) var ( Clean = clean.Clean{} FakeFS = afero.NewMemMapFs() ) func TestClean(t *testing.T) { testCases := []struct { name string contact string want string e...
<reponame>jpwiddy/fsm-grid<filename>dist/fsm-grid.component.d.ts<gh_stars>0 import { OnChanges, OnInit } from '@angular/core'; export declare class FsmGridComponent implements OnInit, OnChanges { /** * Color of the header (in hex) * Values: * Default (blue) * Success (green) * ...
<filename>tests/components/directv/test_config_flow.py<gh_stars>1-10 """Test the DirecTV config flow.""" from typing import Any, Dict, Optional from asynctest import patch from requests.exceptions import RequestException from homeassistant.components.directv.const import DOMAIN from homeassistant.components.ssdp impo...
#include <iostream> #include <sstream> using namespace std; int toNum(char a) { stringstream alfa; alfa<<a; int ret; alfa>>ret; return ret; } void print(int arr[]) { for(int j=0;j<4;j++) { cout<<arr[j]; } } int main() { int y; cin>>y; while(1) ...
Gold nanocrystals: optical properties, fine-tuning of the shape, and biomedical applications Noble metal nanomaterials with special physical and chemical properties have attracted considerable attention in the past decades. In particular, Au nanocrystals (NCs), which possess high chemical inertness and unique surface ...
def _makeservertoolbar(self, target): f = tk.Frame(target) self.serverChooser = OptionMenuFix(f, labelpos='w', menubutton_width=40, label_text = 'Connection ', label_font = self.FONT, menubutton_font = self.FONT, ...
<reponame>gitlubtaotao/wblog package repositories import ( "github.com/gitlubtaotao/wblog/models" "github.com/gitlubtaotao/wblog/service" ) type ICommentRepository interface { MustListUnreadComment() ([]*models.Comment, error) CountComment() int ListCommentByPostID(postId uint) ([]*models.Comment, error) } type...
<filename>retrofitcachelib/src/main/java/ren/yale/android/retrofitcachelib/intercept/CacheInterceptorOnNet.java package ren.yale.android.retrofitcachelib.intercept; import android.text.TextUtils; import java.io.IOException; import okhttp3.Interceptor; import okhttp3.Request; import okhttp3.Response; import ren.yale....
// extractVolumesExtensions adds a k8s extension to each defined volume. // Every extension contains default k8s settings. func extractVolumesExtensions(c *ComposeProject, out *composeOverride) error { for _, v := range c.VolumeNames() { vol := c.Volumes[v] k8sVol, err := config.VolK8sConfigFromCompose(&vol) if ...
<gh_stars>0 pkgname = "dinit-chimera" _commit = "<PASSWORD>" pkgver = "0.1" pkgrel = 0 build_style = "makefile" makedepends = ["linux-headers"] depends = ["dinit", "util-linux", "eudev"] pkgdesc = "Chimera core services suite" maintainer = "q66 <<EMAIL>>" license = "BSD-2-Clause" url = f"https://github.com/chimera-linu...
Robust spectro-temporal features based on autoregressive models of Hilbert envelopes In this paper, we present a robust spectro-temporal feature extraction technique using autoregressive models (AR) of sub-band Hilbert envelopes. AR models of Hilbert envelopes are derived using frequency domain linear prediction (FDLP...
<filename>notebooks/_solutions/case2_biodiversity_analysis6.py sum(survey_data_processed.duplicated())
<gh_stars>10-100 package com.bihe0832.android.lib.file.select; import android.widget.CheckBox; import android.widget.ImageView; import android.widget.TextView; /** * @author hardyshi <EMAIL> Created on 4/8/21. */ class FileViewHolder { ImageView iv_icon; TextView tv_fileName; CheckBox cb_selected; }
import React from 'react' import { formatDate, LOCAL_TIME } from '../../util/format' import LocationDisplay from '../location/LocationDisplay' import { Card, makeStyles, CardContent, CardActionArea, Typography } from '@material-ui/core' import clsx from 'clsx' import { Link } from 'react-router-dom' import { grey } fro...
def _features(self, img, gt_label=None, cur_mode="puzzlemix", **kwargs): if cur_mode == "attentivemix": img = F.interpolate(img, scale_factor=kwargs.get("feat_size", 224) / img.size(2), mode="bilinear") features = self.backbone_k(img)[-1] elif cur_mode == "puzzlem...
def _encode_component(value): int_bytes = bytearray() int_bytes.append(value & 0x7f) value >>= 7 while value: int_bytes.append(value & 0x7f | 0x80) value >>= 7 int_bytes.reverse() return int_bytes
/// Sort matched tracks by release dates fn sort_tracks(tracks: &mut Vec<(f64, &Track)>, config: &TaggerConfig) { match config.multiple_matches { MultipleMatchesSort::Default => {}, MultipleMatchesSort::Oldest => tracks.sort_by(|a, b| { if a.1.release_date.is_none() || b....
/** * * ADTF Demo Source. * * @file * Copyright &copy; Audi Electronics Venture GmbH. All rights reserved * * $Author: exthanlal $ * $Date: 2014-09-04 11:39:27 +0200 (Do, 04 Sep 2014) $ * $Revision: 25772 $ * * @remarks * */ #ifndef __STD_INCLUDES_HEADER #define __STD_INCLUDES_HEADER // ADTF header #inclu...
A recent issue of Handguns. handgunsmag.com Though print journalism largely remains in the financial doldrums, there’s at least one sector that’s maintaining its buoyancy in these days of political ferment and latent social unrest: gun magazines. AdWeek recently reported that four separate firearms publications saw s...
/** * <p>Invokes the add album dialog window and performs adding operation after that</p> */ public void addAlbom(PaEvent event) { if ( event.getEventType() != PaEventDispatcher.ALBUM_NEW_EVENT ) { return; } try { PaAlbumNewDialog dialog = new PaAlbumNewDialog(m_nodes,m_mainWindow, m_cont,0,get...
// ListClusterStackNames gets all stack names matching regex func (c *StackCollection) ListClusterStackNames(ctx context.Context) ([]string, error) { var stacks []string re, err := regexp.Compile(clusterStackRegex) if err != nil { return nil, errors.Wrap(err, "cannot list stacks") } input := &cloudformation.List...
/** * Lookup the value for the key. * * @param key * the key to be looked up, may be null * @return The value for the key. */ public String lookup(String key) { if (key.equals("filesdir")) { return AndroidLog4jHelper.getApplicationContext().getFilesDir().getAbsolutePath(); } if (key.equa...
import React from "react"; import { Sidebar } from "./sidebar"; import { Logger, LogEventName } from "../../lib/logger"; const kSidebarOffset = 100; export interface SidebarConfiguration { content: string | null; title: string | null; } interface IProps { sidebars: SidebarConfiguration[]; verticalOffset: num...
Two Charts that Show the Challenge Facing Italy’s New Prime Minister Matteo Renzi is poised to take over as Italy’s youngest-ever prime minister. He has a clear mandate to get the Italian economy back on track, but everyone, including Renzi himself, knows that he faces a daunting task. Here are two charts that show ju...
import os import sys from yehua.main import HELP_TEXT, main, control_c_quit, get_yehua_file from six import StringIO from mock import patch from nose.tools import eq_, raises @patch("os.system") @patch("yehua.project.get_user_inputs") @patch("yehua.utils.mkdir") @patch("yehua.utils.save_file") @patch("yehua.utils.c...
ES Football Newsletter Enter your email address Please enter an email address Email address is invalid Fill out this field Email address is invalid You already have an account. Please log in or register with your social account Australia’s women’s football team are ranked the fifth best side in world football. So how ...
<reponame>bellalMohamed/nativescript-windowed-modal import { GestureEventData } from "tns-core-modules/ui/gestures/gestures"; import { booleanConverter, CSSType, isIOS, layout, LayoutBase, View } from "tns-core-modules/ui/layouts/layout-base"; import { StackLayout } from "tns-core-modules/ui/layouts/stack-layout/stack-...
2017 F1: 'Something changed' in McLaren-Honda divorce Posted by: Admin on Jul 09, 2017 - 06:14 AM 2017 F1: 'Something changed' in McLaren-Honda divorce After a tumultuous period in the McLaren-Honda marriage, the works collaboration now appears to be back on track. Recent reports hinted that a divorce announcement wa...
import scipy.io import os from PIL import Image, ImageDraw import numpy as np from data_utils.clean_data import clean_bboxes class mafa2kitti(): def __init__(self, annotation_file, mafa_base_dir, kitti_base_dir, kitti_resize_dims, category_limit, train): self.annotation_file = annotation_file se...
<gh_stars>0 import * as chai from 'chai'; import * as chaiAsPromised from 'chai-as-promised'; import Onexec from "../src/onexec"; chai.use(chaiAsPromised); var expect = chai.expect; describe('Onexec', function() { describe('single run', function() { it('should successfully run with value returned', functi...
First Gene Mapping in Hawaiian Drosophila Several electrophoretic gene markers have been located and three of these mapped in the genome of an endemic Hawaiian species, D. silvestris. This was accomplished by use of the multiple inversion polymorphisms of this species as chromosome markers. The initial localization of...