content
stringlengths
10
4.9M
/** * @author <a href="mailto:julien@julienviet.com">Julien Viet</a> */ public class GenericsTCKImpl implements GenericsTCK { @Override public GenericRefedInterface<Byte> methodWithByteParameterizedReturn() { return methodWithClassTypeParameterizedReturn((byte)123); } @Override public GenericRefedInte...
/** * Parses a language tag list. * * @param langs the language tag list to be parsed * * @return a list of language tags parsed from {@code langs}, sorted by descending * <a href="https://developer.mozilla.org/en-US/docs/Glossary/quality_values">quality value</a> * * @throws NullPointerException if {@c...
def minimax_endgame_search(state, maximize=True) : if type(state) != list: state = [[state]] leaf_node = [] static_eval_count = 0 while state: path = state.pop(0) if path[-1].is_game_over(): score = path[-1].get_endgame_score(maximize) leaf_node.append((pa...
/* ** Find any duplicates in the arguments and either print an error ** if there is one or create/add another variable option. */ void add_option(t_arg *args, t_opt **options, t_opt *new) { t_opt *opt; if (options && *options && has_duplicates(options, new) && strcmp(new->name, "_unknown")) { fprintf(stderr...
def _file_fix(self, filepath, prefix=None, suffix=None): with tempfile.NamedTemporaryFile(dir=self.working_path, delete=False) as outfile: if prefix: outfile.write(prefix) shutil.copyfileobj(open(filepath, 'r'), outfile) if suffix: outfile.writ...
Two days on, no clear explanation for downing of Russian plane over Sinai By Thomas Gaist 3 November 2015 The cause of the destruction of a Russian commercial airliner Saturday over Egypt remains unclear. The plane fell in pieces in the war-torn region of Hasana in northern Sinai, killing all 224 people on board. T...
Raj Date, the former Deputy Director of the US Consumer Financial Protection Bureau (CFPB), a consumer finance watchdog, said in an interview this week that he supports – and is now investing in – bitcoin. During a segment of Bloomberg Television’s “Street Smart,” Date commented that, on a personal level, he sees a lo...
The Dynamic of Social Relations and Conflicts in Mining Area in Indonesia Study of Mining in Bahodopi of Marowali, Central Sulawesi The study of socio-cultural institutions related to natural resource management includes two factors namely IPSO facto (based on facts) namely management in an area marked by the presence...
/** * This class takes a template string that refers to positional * parameters as well as a sequence of argument values and * returns a string in which the parameter references have been * replaced by actual values. * * The parameter references are 0-based and written as decimal numbers * enclosed by curly bra...
// Copyright (c) 2020 Author Name. All rights reserved. // Use of this source code is governed by the Apache License, Version 2.0 // that can be found in the LICENSE file. // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under t...
A new real estate forecast for Canada predicts ups and downs ahead in 2017: Vancouver will slump, the GTA will soar, and Alberta should see some recovery after a rocky few years. Real estate in Canada’s largest markets became increasingly unaffordable for many in 2016, and the spectre of a crash loomed. “The price of...
def paragraph_span(span, text): i, j = span[0], span[1] start = rfind_pattern(r'\n(?:\n|==)', text, 0, i) if start == -1: start = 0 elif text[start+1] == '\n': start += 2 else: start = re.compile(r'\n').search(text, start+3).end() end = index_pattern(r'\n(?:\n|==)', text,...
Monday, March 27, 2017 at 12:10PM At GDS, we’ve had a busy few weeks helping our clients manage the risk associated with CVE-2017-5638 (S2-045), a recently published Apache Struts server-side template injection vulnerability. As we began this work, I found myself curious about the conditions that lead to this vulnerab...
import ClipChannel from './clip_channel_model'; async function add(channelId: string, channelName: string): Promise<void> { await new ClipChannel({ channelId, channelName }).save(); } async function remove(channelId: string): Promise<void> { await ClipChannel.findOneAndRemove({ channelId }); } async function has...
# Copyright 2021 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file acco...
def _read_file(cls, path, filter_n_rx=True): my_reader = IWLBeamformReader() csi_data = my_reader.read_file(path) csi_entries = [] if filter_n_rx: csi_entries = [ frame for frame in csi_data.frames if frame.n_rx == 3] else: csi_entries = cs...
Free Museum Admission for Veterans, Active Military, and Family Members FREE MUSEUM ADMISSION FOR VETERANS, ACTIVE MILITARY BEGINS ON MEMORIAL DAY Veterans, Active Military free all summer long Milwaukee, Wis. – The Milwaukee Art Museum is offering free admission for all veterans, active military, and up to five add...
/** Bind to the Events Manager Service */ private void bindToEventsManagerService() { Log.d(LOG_TAG, "Binding to Events Manager Service..."); Intent serviceIntent = new Intent(SERVICE_ACTION); bindService(serviceIntent, serviceConnection, Context.BIND_AUTO_CREATE); }
<filename>zxl_exchange_microservice/zxl_framework_wallet_base/src/main/java/com/whoiszxl/wallet/base/dao/UserAddressDao.java package com.whoiszxl.wallet.base.dao; import com.whoiszxl.wallet.base.pojo.ZxlUserAddress; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repos...
#pragma once #include <QJsonObject> #include <memory> #include <game/board/field.h> class FieldFactory { FieldFactory() = delete; public: static std::unique_ptr<Field> create(const QJsonObject& specification); protected: static std::unique_ptr<Field> createStreet(const QJsonObject& specification); st...
//! Probability of at least N events class ProbabilityOfAtLeastNEvents { public: explicit ProbabilityOfAtLeastNEvents (int n) : n_(n) {} Real operator()(std::vector<Real> p) const; private: Size n_; }
<filename>src/index.tsx import * as React from "react"; import * as ReactDOM from "react-dom"; import InputPlayers from "./pages/input_players"; import ChooseCard from "./pages/choose_card"; import Challenge from "./pages/challenge"; import Result from "./pages/result"; import initState from "./state"; const Index = (...
import { State, Action, StateContext } from '@ngxs/store'; import { Reminder } from 'src/app/_shared/models/reminder'; import { SelectDay, SelectReminder, RefreshReminder } from './actions'; export interface DateModel { day: Date; } export interface ReminderModel { reminder: Reminder; } @State<DateModel>({ nam...
Using different iodine staining for morphological analysis from microCT images in muscle structure of wistar rats The aim of this study was to evaluate the effect of concentration and staining duration of iodine contrast applied to study the masticatory muscle of Wistar rats in microCT images. The iodine contrast was ...
ISTANBUL/ANKARA (Reuters) - Turkish demonstrators demanded the sacking of police chiefs on Wednesday over a fierce crackdown on days of unprecedented protest against what they see as Prime Minister Tayyip Erdogan’s authoritarian rule. A delegation of activists met Deputy Prime Minister Bulent Arinc at his office in An...
Share For those familiar with the original Borderlands, arguably the one character that has the most iconic and lasting appeal is that of Claptrap, the robot—or robots—that populate the landscape of Pandora (Search your feelings Lilith fans, you know it to be true). They were there to offer quests, lead you to hidden ...
#pragma once #include "./Marquardt1.hpp" #include "./Marquardt2.hpp"
def _on_train_end(self): self.train_end = timeit.default_timer() print('Training took {} seconds'.format(self.train_end - self.train_start))
/********************************************************** * 500 page. * * @author <NAME> <<EMAIL>> * @version 1.0.0 * * Copyright (C) 2021 hello-slide **********************************************************/ import Title from '../components/common/Title'; import InternalServerErrorPage from '../components/e...
/** * * @author Robert Gruendler <r.gruendler@gmail.com> * */ @SuppressWarnings("restriction") public class PackagistItem extends AbstractDiscoveryItem<PackageFilterItem> { private MinimalPackage item; private Label nameLabel; private Label description; private Button downloadButton; private final PackageFil...
Amid the uproar across Canada over student dress codes, school administrators came to the defence of such rules on Wednesday, saying they are not meant to stifle creativity or be sexist. Standards are needed for safety reasons and to prevent clothes from becoming a distraction in the classroom, officials said. Such ru...
use super::OauthError; use crate::core::{error::AppError, AppState}; use actix_session::Session; use actix_web::http::header::LOCATION; use actix_web::http::StatusCode; use actix_web::web::{Data, Form, Query}; use actix_web::Error; use actix_web::{HttpResponse, Responder, Result}; use std::collections::HashSet; /// GE...
A 0.56-mW 63.6-dB SNDR 250-MS/s Two-Step SAR ADC in 8-nm FinFET This letter presents a two-step SAR ADC that uses coarse and fine comparators with dedicated SAR logics and asynchronous clock generators for each comparator to increase the energy efficiency by optimizing comparators and reduce output loading of the comp...
/** Called by pipelines after they've modified the individual and it might need to be "fixed" -- basically a hook for you to override. By default, calls validateRules on each ruleset. */ public void postprocessIndividual(final EvolutionState state, final int thread) { for (int x=0;x<rul...
/** * Defines per-space configuration properties for {@link GridH2IndexingSpi}. */ public class GridH2IndexingSpaceConfiguration { /** */ private String name; /** */ private boolean idxPrimitiveKey; /** */ private boolean idxPrimitiveVal; /** */ private boolean idxFixedTyping; ...
/** * This tool can be used to generate a primitive root * for a prime modulus. * * @version 1.0 * @author Mikko Tommila */ public class PrimitiveRoot extends LongModMath { private PrimitiveRoot(long p) { setModulus(p); } public static void main(String[] args) { ...
The EcoATM made its debut last week at the 2012 Consumer Electronics Show, but unlike all the other products that manufacturers hoped you’d throw your hard earned dollars at, this innovative piece of tech wants to give you cash for your gadgets. E-waste is a growing problem with few programs in place with enough incent...
/* Simulator memory may be accessed after the program has been loaded. */ static int gdbsim_has_all_memory (struct target_ops *ops) { struct sim_inferior_data *sim_data = get_sim_inferior_data (current_inferior (), SIM_INSTANCE_NOT_NEEDED); if (!sim_data->program_loaded) return 0; return 1; }
// Test that it stops retrying if a 4xx response comes back func TestGetURL4xx(t *testing.T) { client := NewHttpClient() retries := 0 ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { retries++ http.Error(w, "", 404) })) defer ts.Close() _, err := client.GetRetry(ts.URL)...
/** * Handles starting a guest processes. * * @returns VBox status code. * @param pSession Guest session. * @param pHostCtx Host context. */ static int vgsvcGstCtrlSessionHandleProcExec(PVBOXSERVICECTRLSESSION pSession, PVBGLR3GUESTCTRLCMDCTX pHostCtx) { AssertPtrReturn(pSession, VERR_INVALI...
BERLIN – While mostly staying away from reporters gathered at a CrossFit gym for this weekend’sUFC Fight Night 41 event in Berlin, Georges St-Pierre gave a small update about the goings-on in his life. First, St-Pierre, who is in Germany in support of teammate and Saturday combatant Francis Carmont, is still healing f...
/** * Operand to a {@link UnifyRule} that matches a relational expression of a given type. */ private static class AnyOperand extends Operand { AnyOperand( Class<? extends MutableRel> clazz ) { super( clazz ); } @Override public boolean matches( SubstitutionVisit...
//QueryRow exec query with args and rows. //Return row. func (d *PlainDB) QueryRow(query string, args ...interface{}) *sql.Row { if d.Optimizer != nil { query, args = d.Optimizer.MustOptimize(query, args) } return d.db.QueryRow(query, args...) }
def user_avatars_db(self, user_id: str) -> RtdbNode: return self.avatars_db() / user_id
#!/usr/bin/env python from resource_management.libraries.script import Script from resource_management.libraries.functions.default import default import functools from resource_management.libraries.functions import get_kinit_path from resource_management.libraries.resources import HdfsResource from resource_management...
ALEXANDER OF APHRODISIAS as he does not give information about the date and textual state of several of the sources he mentions. A more accessible overview of the types of lexicographical activity current in antiquity is provided by J. Barnes’s introduction to Bonelli’s text and commentary. None the less, V.’s edition...
#!/usr/bin/env python # coding=utf-8 # Created by: <NAME> # Created on: 5/25/20 import hashlib import os from configparser import ConfigParser from .parameterParser import upload_file_map, history_map def digest_check(file_path): """ Generate hash digest for a file :param file_path: :return: """ ...
<gh_stars>0 /* * vim:ts=4:sw=4:expandtab * * i3 - an improved dynamic tiling window manager * © 2009 <NAME> and contributors (see also: LICENSE) * */ #include "libi3.hpp" #include <math.h> #include <stdlib.h> #include <string.h> #include <xcb/xcb.h> #include <xcb/xcb_aux.h> /* * Try to get the contents of the...
/** * Returns a newsFeedResponseItem that will be sent to front end to handle grouped trip updates * @return newsFeedResponseItem sent to front end */ @Override public CompletableFuture<NewsFeedResponseItem> execute() { return getUserProfileAsync().thenComposeAsync(profile -> getR...
package com.github.jira.commons.model; import java.text.ParseException; import java.util.Date; import org.apache.commons.lang.ObjectUtils; import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.builder.EqualsBuilder; import org.apache.commons.lang.builder.HashCodeBuilder; import com.github.jira.c...
def update_item(self, item_id, item_type, item_type_keywords, title, categories, snippet, description, license_info, tags, nb_path, runtime_stamp, thumbnail): item_properties = {"title" : title, "snippet" : snippet, "d...
After nearly 5 months (almost half a year, Jesus Christ), Valve has finally released the first Portal 2 DLC pack into the wild. Titled “Peer Review”, it features a new co-op testing course, or track, if you prefer: “Art Therapy”, it’s called. It takes place… well, that’s best left for you guys to discover. The pack’s a...
package types import ( "fmt" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/auth" ) // Tx represents an already existing blockchain transaction type Tx struct { sdk.TxResponse Messages []sdk.Msg `json:"messages"` Fee auth.StdFee `json:"fee"` Signatures []Signature `json:"s...
def loading_Images(): def loading_Image(img_file_name): file_name = os.path.join('.', 'images', img_file_name) img = pygame.image.load(file_name) img.convert() return img return {'game_background': loading_Image('background.png'), 'endPipe': loading_Image('pipe_end.pn...
import * as React from 'react' import { mount, shallow } from 'enzyme' import { SynapseConstants } from '../../../lib/utils' import UserCard, { UserCardProps } from '../../../lib/containers/UserCard' import { UserCardSmall, UserCardSmallProps, } from '../../../lib/containers/UserCardSmall' import UserCardMedium, { ...
<gh_stars>10-100 __all__ = [ "SetDescriptionReferenceAttribute" , "DOp_SetPCIIdAttr" , "DOp_SetAttr" ] from .project_editing import ( DescriptionOperation ) from copy import ( deepcopy as dcp ) from common import ( mlget as _ ) from .pci_ids import ( PCIVendorId, PCIDeviceId, PCICla...
package prefetcher // TODO visability import ( "fmt" ) type node struct { URI string AccessFreq int // TODO change this to a linked list? Children []*node } func newNode(URI string) *node { return &node{URI: URI, AccessFreq: 0} } func (n *node) getChild(URI string) *node { for _, child := range n.Chi...
<reponame>gaoxiaojun/Lean from .__Brokerages_1 import * import typing import System.Collections.Generic import System import QuantConnect.Securities import QuantConnect.Packets import QuantConnect.Orders.Slippage import QuantConnect.Orders.Fills import QuantConnect.Orders.Fees import QuantConnect.Orders import QuantCon...
package com.macindex.macindex; import android.app.AlertDialog; import android.content.Context; import android.net.Uri; import android.view.LayoutInflater; import android.view.View; import android.widget.RadioButton; import android.widget.RadioGroup; import android.widget.Toast; import androidx.browser.customtabs.Cust...
/// Returns a tuple of node id lists as result of a Depth-First search from node `start`. /// The first list is the predecessor list, that matches each node to it's predecessor in the /// search path. /// The second list is the order in which nodes are visited by the search algorithm. /// # Arguments /// * `network` a...
def notify_usage(engine, lab_dict, sub_dict, upd_sub_list, timestamp_utc=None): success = True error = None count = 0 session = session_open(engine) for _, sub_update in enumerate(upd_sub_list): send_notification = False new_details = sub_update[1] if ( new_detail...
/* eslint-disable */ import * as React from "react"; import EditableInput from "./EditableInput"; import { Button } from "library-simplified-reusable-components"; export interface AnnouncementFormProps { content?: string; start?: string; finish?: string; id?: string; add: (announcement: any) => void; } expo...
class CMGP: """ An implementation of various Gaussian models for Causal inference building on GPy. """ #---------------------------------------------------------------- #---------------------------------------------------------------- # This method implements the class constructor, automatically # invo...
Molecular modeling of the conductivity of carbon nanotubes under different temperature and humidity At present, the sensor is widely used and its types are varied, such as biological sensor, gas sensor, humidity sensor, optical sensor, pressure sensor, etc. However, the performance of many sensors remains to be optimi...
"Ultra Street Fighter II" for the Nintendo Switch Capcom It turns out that "Ultra Street Fighter II," a souped-up version of the 1991 classic for the new Nintendo Switch console, is a certifiable smash hit. So far, game developer Capcom says "Ultra Street Fighter II" has sold 450,000 copies, reports IGN— despite lukew...
/** * Determines the data member path to the specified node. * * @param node The node * @return The path, not containing the name of the top level complex type item node (e. g. "Buyer.Name") * or null if the node is the root node itself */ protected String determineNodePath(ItemTreeNode node) { Ite...
// Convert WALL4 to WALL3, or WALL1 to WALL0, etc. Leave non-walls alone. constexpr CellState remove_wall_dep(CellState cell) { if (is_wall_with_deps(cell)) { return CellState(+cell >> 1); } return cell; }
/* * Connect a client to the server. * This performs the following PLI client-side initialization. * * 1) Initialize a lock for PLI setreg/getreg accesses * 2) Input connection host/port information from user. * 3) Setup DMA controller task to listen (locally) on dmaPort. * 4) Setup Interrupt Controller task to ...
/** * Model definition for Precinct. * * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Google Civic Information API. For a detailed * explanation see: * <a href="https://developers.google.com/api-client-library/java/...
A few weeks ago a multiplayer horror game, Section Studios' Dead Realm, was released on Steam's Early Access service and quickly rose to (briefly) become one of its top sellers. (According to SteamSpy, it's sold 70,000 units at $15, and it's undoubtedly a satisfying game, given almost 1,500 reviews averaging 'Very Posi...
/** * This test and DummyBaseCloneTest make sure that two TestBase classes can be executed in the same suite - * in particular, it makes sure that Explore is working properly. */ public class DummyBaseTestRun extends TestFrameworkTestBase { @Test public void test() throws Exception { deployApplication(DummyA...
/** * Properties of entity Aqi.<br/> * Can be used for QueryBuilder and for referencing column names. */ public static class Properties { public final static Property Areaid = new Property(0, String.class, "areaid", false, "AREAID"); public final static Property Aqi = new Property(1, Integ...
def canceled_sessions_chart(self): context = {} where_clause = '''WHERE ((session.state_id is null AND session.canceled=True) OR (session.state_id is not null AND session.last_modified < (NOW() - INTERVAL '24 hour')))''' with c...
def XMLToPython (pattern): assert isinstance(pattern, six.text_type) py_pattern, position = _MatchSubRegex(pattern, 0) if position != len(pattern): raise RegularExpressionError() return six.u("^%s$") % (py_pattern,)
/** * Call after invoking {@link WindowContainer#prepareSurfaces} on children as * described in {@link #resetDimStates}. * * @param t A transaction in which to update the dims. * @param bounds The bounds at which to dim. * @return true if any Dims were updated. */ boolean updateD...
/** * <p>Title : RpcClientProxy </p> * <p>Description : </p> * * @author huifer * @date 2019-06-11 */ public class RpcClientProxy { /** * Rpc客户端 * * @param interfaceCls 具体接口 {@link com.huifer.rmi.rpc.HelloService} * @param host host * @param port port * @return H...
/** * The <code>DispatcherSyntheticResource</code> extends the * <code>SyntheticResource</code> class overwriting the * {@link #getResourceSuperType()} method to provide a possibly non- * <code>null</code> result. */ private static class DispatcherSyntheticResource extends SyntheticResource { ...
/** * Clears a subtree rooted at the node with the given id that is * hosted in a given window. * * @param windowId The id of the hosting window. * @param rootNodeId The root id. */ private void clearSubTreeLocked(int windowId, long rootNodeId) { if (DEBUG) { Log.i(LOG_...
<filename>Google/OnlineRound19/B.cpp #include <iostream> #include <regex> #include <string> #include <vector> #include <sstream> using namespace std; bool compare(vector<int> &A, vector<int> &B) { // Returns true if A > B for(int i=0;i<A.size();i++) { if(A[i] > B[i]) { return true; } els...
/** * <p> * An abstract base class for a {@link NodeHandler} implementation for {@link ImmutableNode} objects. * </p> * <p> * This class already implements all methods which need no other information than the passed in node object. * Functionality which requires additional state (e.g. querying the root node or a ...
def rand_int(*shape): res = np.random.randint(low=1, high=5, size=shape) if isinstance(res, np.ndarray): return res.astype(np.float32) return float(res)
/// Creates a random [`Ulid`] with the current timestamp, using a custom source of randomness. pub fn from_rng<R: Rng + ?Sized>(rng: &mut R) -> Self { // get the timestamp portion of the ulid let millis = Utc::now().timestamp_millis(); // create the buffer holding the raw bytes let mut buf = [0; 16]; ...
#include "eigs.h" #include "cotmatrix.h" #include "sort.h" #include "slice.h" #include "massmatrix.h" #include <iostream> template < typename Atype, typename Btype, typename DerivedU, typename DerivedS> IGL_INLINE bool igl::eigs( const Eigen::SparseMatrix<Atype> & A, const Eigen::SparseMatrix<Btype> & iB,...
def fetch_mnist(): data_path = check_fetch_mnist() f = gzip.open(data_path, 'rb') try: train_set, valid_set, test_set = pickle.load(f, encoding="latin1") except TypeError: train_set, valid_set, test_set = pickle.load(f) f.close() return train_set, valid_set, test_set
#ifndef DQM_TRACKERREMAPPER_PHASE1PIXELMAPS_H #define DQM_TRACKERREMAPPER_PHASE1PIXELMAPS_H #include "TH2Poly.h" #include "TGraph.h" #include "TH1.h" #include "TH2.h" #include "TStyle.h" #include "TCanvas.h" #include <fmt/printf.h> #include <fstream> #include <boost/tokenizer.hpp> #include <boost/range/adaptor/indexe...
// Verifies that managed bookmarks (installed by policy) don't get synced. IN_PROC_BROWSER_TEST_F(TwoClientBookmarksSyncTest, ManagedBookmarks) { policy_provider_.SetDefaultReturns( true, true); policy::PushProfilePolicyConnectorProviderForTesting(&policy_provider_); ASSERT_TRUE(SetupSync()) << "Setup...
Anderson Ponty Band – Better Late Than Never Article by: Tony Colvill Somewhere around 1980, Jon Anderson approached Jean-Luc Ponty with a view to a collaboration. Now, over thirty years later, the man from Accrington and the man from Avranches, two very different environments, have finally got together. The album wa...
def aggregate(self, inputs, index): return scatter(inputs, index, dim=self.node_dim, reduce=self.aggr)
package com.july.springboot.service.impl; import com.july.springboot.mapper.UserMapper; import com.july.springboot.model.entity.User; import com.july.springboot.model.json.UserJson; import com.july.springboot.service.UserService; import com.july.springboot.util.PasswordUtil; import org.springframework.beans.factory.an...
import { Directive } from '@angular/core'; import { Object3D } from 'three'; import { GLTF, GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader'; import { ThLoader } from './ThLoader'; @Directive({ selector: '[loadGLTF]' }) // eslint-disable-next-line @angular-eslint/directive-class-suffix export class ThGLTFLo...
<reponame>mctofu/homek package config import ( "bytes" "encoding/json" "fmt" "io/ioutil" "os" "path" "github.com/mctofu/homekit/client" ) // ControllerConfig details a controller and its pairings type ControllerConfig struct { Name string DeviceID string PublicKey []byte Priv...
Characterization of zinc magnesium stannate phosphor fine particles synthesized by electromagnetic wave heating Electromagnetic wave heating has drawn much attention in material processing. This method is possible in using materials with the dielectric loss in the corresponding wavelength region. The merits are quick ...
#!/usr/bin/env python import os import re PROJECT_DIRECTORY = os.path.realpath(os.path.curdir) if __name__ == '__main__': cf_template_file = "%s/cloudformation/{{ cookiecutter.cloudformation_template_name }}.yml.tpl" % PROJECT_DIRECTORY cf_template_name = "{{ cookiecutter.cloudformation_template_name }}" ...
class IgfBasicSlackBot: ''' A basic slack bot for IGF specific operations required params: slack_config_json: A json file containing slack api keys project_data_file: A csv file containing project data usage: - create bot bot=IgfBasicSlackBot(slack_config_json, project_data_file) - sta...
<reponame>aimed/frosty<gh_stars>1-10 import { Connection } from 'typeorm'; import { Container } from 'typedi'; import { Fridge } from '../fridge/Fridge'; import { ShoppingList } from '../shoppinglist/ShoppingList'; import { User } from '../user/User'; import { getDeterministicString } from './getDeterministicString'; ...
import {IoNode, RegisterIoNode, ListenersDeclaration, EventDispatcher} from '../../iogui.js'; const handlerFunction = () => {}; class IoNode1 extends IoNode { handler1Count = 0; handler1Detail?: string; static get Listeners(): ListenersDeclaration { return { 'event1': 'handler1', }; } handler1...
In Maine study, rates of contamination exceed WHO and EPA guidelines A study by researchers at Columbia University reports that schoolchildren from three school districts in Maine exposed to arsenic in drinking water experienced declines in child intelligence. While earlier studies conducted by the researchers in Sout...
/** Check if there is personal data for student with given email. * @param email student email * @return true if data is found, false if not. */ public boolean studentExists( String email ) { try { personsTable.getRowForPerson(email); return true; } catch (...
<reponame>abstulo/jaeger-operator<gh_stars>0 package jaeger import ( "testing" "github.com/spf13/viper" "github.com/stretchr/testify/assert" "k8s.io/apimachinery/pkg/types" v1 "github.com/jaegertracing/jaeger-operator/pkg/apis/jaegertracing/v1" ) func TestDirectNextMinor(t *testing.T) { viper.Set("jaeger-vers...
<reponame>oubijie/ssm_quickstart package com.veryoo.ssmqs.mapper; import com.veryoo.ssmqs.entity.Menu; import java.util.List; import com.baomidou.mybatisplus.core.mapper.BaseMapper; /** * <p> * Mapper 接口 * </p> * * @author oubijie * @since 2019-07-22 */ public interface MenuMapper extends Ba...