content
stringlengths
10
4.9M
/** * BoundQuery is a query with its bind variables */ @Data public class BoundQuery { // sql is the SQL query to execute private String sql; // bind_variables is a map of all bind variables to expand in the query. // nil values are not allowed. Use NULL_TYPE to express a NULL value. private Map<...
using namespace std; #include<bits/stdc++.h> #define ll long long #define pr pair<ll,ll> #define pii pair<int,int> #define fir first #define sec second #define mp make_pair #define pb push_back #define sz(c) ((int)c.size()) #define all(c) (c).begin(),(c).end() #define fn "A" /// ___FILE_NAME_HERE___ #defin...
void package___PACKAGE_NAME___register() { }
def find_events(**kwargs): def _build_event(onset, duration, combo): ev = Event(onset=onset, duration=duration, **combo) return ev events = [] prev_onset = 0 old_combo = None duration = 1 for r in xrange(len(kwargs.values()[0])): combo = dict([(k, v[r]) for k, v in kwargs...
// Creating the list of regex used to check the expression const std::vector< std::vector <std::regex> > parser::createRegexList() { std::vector< std::vector <std::regex> > regexListReturn; regexListReturn.push_back({ std::regex{ "^[A-Z]" } }); regexListReturn.push_back({ std::regex{ "^(\\s)*=(\\s)*" } }); ...
/** * Prepares mapping of VxLan configuration based on device id.<br/> * * @param vxlanInstanceList collection of VxLan configuration * @return mapping of VxLan configuration based on device id. * @since SDNHUB 0.5 */ public static Map<String, List<SbiNeVxlanInstance>> divideVx...
/// Steals from other local queues. /// /// `start` specifies the queue from which to start stealing. pub(crate) fn steal(&self, start: usize) -> Option<Task<T>> { let num_queues = self.cluster.local.len(); for i in 0..num_queues { let i = (start + i) % num_queues; if i == self.i...
Using a live singer, instrument or even a taped recording, the national anthem is performed numerous times each day to open sporting events, special memorials and dozens of other occasions. Most times, the performance is nothing to write home about, but every so often someone screws up the song so bad that it becomes n...
/** * Wraps an underlying format element and adds ANSI colours. */ public class Colourizer implements FormatElement.Wrapping { public static final String RESET_COLOR = "\033[0m"; private final transient String ansiColorCode; private transient FormatElement wrapped; public Colourizer(String ansiColorCode, For...
<commit_msg>Convert tabs to spaces in ModelSchema<commit_before>import { Tsoa } from './../metadataGeneration/tsoa'; /** * For Swagger, additionalProperties is implicitly allowed. So use this function to clarify that undefined should be associated with allowing additional properties * @param test if this is undefine...
/// Given a result of name lookup that had no viable results, diagnose the /// unviable ones. void FailureDiagnosis::diagnoseUnviableLookupResults( MemberLookupResult &result, Expr *E, Type baseObjTy, Expr *baseExpr, DeclNameRef memberName, DeclNameLoc nameLoc, SourceLoc loc) { SourceRange baseRange = baseExp...
# -*- coding: utf-8 -*- from __future__ import print_function, unicode_literals, division, absolute_import import unittest import panphon from panphon import distance feature_model = 'segment' dim = 24 class TestLevenshtein(unittest.TestCase): def setUp(self): self.dist = distance.Distance(feature_model...
import AnkeBehandlingProsessStegPanelDef from './prosessStegPaneler/AnkeBehandlingProsessStegPanelDef'; import AnkeResultatProsessStegPanelDef from './prosessStegPaneler/AnkeResultatProsessStegPanelDef'; import AnkeMerknaderProsessStegPanelDef from './prosessStegPaneler/AnkeMerknaderProsessStegPanelDef'; const prosess...
/* * Copyright (c) Contributors to the Open 3D Engine Project. * For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #ifndef CRYINCLUDE_EDITOR_CLIPBOARD_H #define CRYINCLUDE_EDITOR_CLIPBOARD_H #pragma once #inclu...
def find_commit(repo, local_repo, version, branch='master'): description_path = local_repo / 'DESCRIPTION' for commit in repo.iter_commits(branch): repo.git.checkout(commit) with open(description_path) as description: description.readline() description = description.readl...
// process reads results produced by the checker and distributes them // to the publishers. func (r *Runner) process() { r.log.Debug("process() loop start") for { select { case result := <-r.publishChan: if result == nil { continue } for label, publisher := range r.publishers { go func() { l...
<reponame>snytkine/bind-rest import { IBindRestContext } from '../interfaces/icontext'; export type IControllerMatcher = (ctx: IBindRestContext) => boolean;
<gh_stars>0 /* Driver program; runs compiler to generate a full program from one line */ #include <iostream> #include <fstream> #include <string> #include "compiler.hh" void generate_main (const std::string class_name, std::ofstream& ofs) { std::string object_name("sample_object"); /* int main () { ...
// tslint:disable: no-console /// <reference lib="esnext.asynciterable" /> import { google } from 'googleapis' import { default as readline } from 'readline-promise' import { readFile, writeFile, createWriteStream, exists, rename } from 'fs' import { default as fetch } from 'node-fetch' import { mkdirp } from 'mkdirp'...
package billtypeservice import ( "github.com/Samoy/bill_backend/config" "github.com/Samoy/bill_backend/dao" "github.com/Samoy/bill_backend/models" "github.com/stretchr/testify/assert" "os" "testing" ) func setup() { config.Setup("../../app.ini") dao.Setup(config.DatabaseConf.Type, config.DatabaseConf.User, ...
<reponame>daitangio/ahab from fastapi import FastAPI, Depends from pydantic import BaseModel # consider also https://fastapi.tiangolo.com/tutorial/static-files/ app = FastAPI() class Item(BaseModel): name: str price: float is_offer: bool = None amazon_prime: bool = True @app.get("/") d...
/* * QEMU PowerPC PowerNV Emulation of some SBE behaviour * * Copyright (c) 2022, IBM Corporation. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License, version 2, as * published by the Free Software Foundation. * * This program is dist...
// ParseHSL pulls out the rgb/rgba information from a hsl color format from the // provided string. func ParseHSL(hslData string) (float64, float64, float64) { subs := hsl.FindStringSubmatch(hslData) h := utils.ParseFloat(subs[1]) s := utils.ParseFloat(subs[2]) / 100 l := utils.ParseFloat(subs[3]) / 100 return h,...
/* * Populates examples menu with library folders */ public void populateExamplesMenu(JMenu examplesMenu, ActionListener listener) { Library library; Collection libraries = getBuiltLibraries(); Iterator iterator = libraries.iterator(); JMenu libraryExamples; while(iterator.hasNext()){ li...
/** * Tests {@link AbstractTopic} * * @author Tim Neumann */ class AbstractTopicTest { /** * Test method for * {@link io.github.amyassist.amy.messagehub.topic.AbstractTopic#validateTopicString(java.lang.String)}. * * @param name * The name of the topic to test. * * @throws Exception ...
AGRA/ LUCKNOW: Forty-nine infants died in a month at Farrukhabad’s Ram Manohar Lohia government hospital, most of them due to “perinatal asphyxia”, a condition in which the child cannot breathe properly, officials said on Monday. In a virtual replay of the tragedy in Gorakhpur, where 30 children died in two days at a s...
def activities_list_to_objects(self, activities_list): def create_object(activity): verb = get_verb_by_id(activity['verb']['id']) extra_context = activity['extra_context'] activity_datetime = activity['time'] activity = self.activity_class( activit...
package erclog import ( "os" "testing" ) var ( testLog *LogService tokenAddr = "<KEY>" // 币地址 Addr = "0xC56bE5E6B20F6cf225A9ff4412d7cCEcd53e3037" // 目标账户 1-0 fromBlock int64 = 21230135 // 起始块 toBlock int64 = 21230135 /...
def update(self, cond = "", rollback = False): if rollback and self._rollback_queue: self._rollback_queue.add_rollback_point(SpuUpdateRollbackPoint(self, cond)) (sql, reset) = self.gen_update_sql(cond) if not sql: return self.execsql(sql) for n, v in reset...
package com.quickjs.plugin; import com.quickjs.JSArray; import com.quickjs.JSContext; import com.quickjs.JSFunction; import com.quickjs.JSObject; import com.quickjs.JavaCallback; import com.quickjs.JavaConstructorCallback; import com.quickjs.JavaVoidCallback; import com.quickjs.Plugin; import com.quickjs.QuickJS; imp...
# Copyright (c) 2017, IGLU consortium # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # - Redistributions of source code must retain the above copyright notice, # this list of conditions and...
<filename>CPP/No140.cc /** * Created by Xiaozhong on 2020/8/13. * Copyright (c) 2020/8/13 Xiaozhong. All rights reserved. */ #include <iostream> #include <vector> #include <string> #include <unordered_map> #include <unordered_set> using namespace std; class Solution { private: unordered_map<int, vector<string>...
package fr.idarkay.morefeatures.mixin; import fr.idarkay.morefeatures.FeaturesClient; import fr.idarkay.morefeatures.options.screen.MenuButtons; import net.minecraft.client.gui.screen.Screen; import net.minecraft.client.gui.screen.option.OptionsScreen; import net.minecraft.text.Text; import org.spongepowered.asm.mixin...
#encoding=utf-8 import os import mmap import struct import socket #“产品线名.业务组名.服务名”组成serviceKey用于标识一个服务,各字段限长30字节 ServiceKeyCap = 92 #"section.key"组成服务的一个配置,各字段限长30字节 ConfKeyCap = 61 #value支持最大200字节 ConfValueCap = 200 ServiceConfLimit = 100 ''' 一个bucket用于存放一个Service的配置,可存多少种Service [版本号:serviceKey长度:serviceKey:配置个数:配置...
/** * Common functions for PathSeq */ public final class PSUtils { public static JavaRDD<GATKRead> primaryReads(final JavaRDD<GATKRead> reads) { return reads.filter(read -> !(read.isSecondaryAlignment() || read.isSupplementaryAlignment())); } public static String[] parseCommaDelimitedArgList(fi...
<filename>app/providers/GlobalQuran/services/QuranAyahs.ts import {Injectable, Injector} from '@angular/core'; import {Ayah} from './Ayah'; @Injectable() export class QuranAyahs { ayahs: Array<Ayah>; constructor() { //.... to be continue } }
import React from 'react'; import { Hidden } from '@material-ui/core'; import MobileView from './mobile/MobileView'; import LocationContextProvider from '../context/LocationContext'; import BookingContextProvider from '../context/BookingContext'; import WebView from './web/WebView'; const App: React.FC = () => { ...
<reponame>objectrocket/sensu-operator // Copyright 2017 The etcd-operator Authors // // 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 // /...
import { SchemaField, DataField } from "../../types" interface Config { path: string field: SchemaField<{}> } export class PrimitiveField implements DataField { public name: string public type: string constructor({ path, field: { type } }: Config) { this.name = path this.type = type } async va...
The Santa Clara Blues: Corporate Personhood versus Democracy by William Meyers What Corporate Personhood Is Corporate Personhood is a legal fiction. The choice of the word "person" arises from the way the 14th Amendment to the U.S. Constitution was worded and from earlier legal usage of the word person. A corporati...
__all__ = [ 'CustomFormFieldMixin' ] class CustomFormFieldMixin(object): def set_additional_data(self, data): for key, val in data.items(): if hasattr(self, key): raise Exception('{} クラスにはすでに属性 : {} が存在します'.format( self.__class__.__name__, key)) ...
<filename>Libraries/LibCore/CoreIPCClient.h #pragma once #include <LibCore/CEvent.h> #include <LibCore/CEventLoop.h> #include <LibCore/CLocalSocket.h> #include <LibCore/CNotifier.h> #include <LibCore/CSyscallUtils.h> #include <LibIPC/IMessage.h> #include <sched.h> #include <stdio.h> #include <stdlib.h> #include <sys/s...
<gh_stars>0 import React, {useCallback} from 'react'; import {Song} from '../Types'; import {breakpoints, colors} from '../theme'; interface Props { setSongData(songs: Array<Song>): void; } const FileUploader: React.FC<Props> = ({setSongData}) => { const handleDrop = useCallback(e => { const reader = new Fil...
/** * Parses a buffer looking for an LDAP request message. * * @author Middleware Services */ public class RequestParser { /** Bind request DER path. */ private static final DERPath BIND_PATH = new DERPath("/SEQ/APP(0)"); /** Unbind request DER path. */ private static final DERPath UNBIND_PATH = new DERP...
<filename>mayan/apps/documents/links/trashed_document_links.py from django.utils.translation import ugettext_lazy as _ from mayan.apps.navigation.classes import Link from ..icons import ( icon_document_trash_send, icon_trash_can_empty, icon_trashed_document_delete, icon_trashed_document_list, icon_trashed...
We already had confirmation that Torment: Tides of Numenera [Official Site] would launch day-1 on Linux here on GOL from an email chat with inXile, but it's always good to see fully public confirmation. Some additional good news to report; I am told that Torment will be available on Linux and Mac on the same day as al...
<filename>services/preview/storage/mgmt/2015-05-01-preview/storage/storageapi/interfaces.go package storageapi // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // // Code generated by Microsoft (R) AutoRest Code...
/** * Parse the given string representation of the type into an instance. * * @param queueType the type of queue as a string value * @return The type of queue as a {@link DocumentQueueType} instance. */ public static DocumentQueueType parse(final String queueType) { try { return valueOf(queueType.toUpper...
#include <babylon/postprocesses/renderpipeline/post_process_render_effect.h> #include <babylon/babylon_stl_util.h> #include <babylon/cameras/camera.h> #include <babylon/materials/effect.h> #include <babylon/materials/textures/render_target_texture.h> #include <babylon/postprocesses/post_process.h> namespace B...
<gh_stars>0 import * as BS from 'browser-search'; import { StoreId } from 'browser-search'; import { useCallback, useContext, useEffect, useReducer, Reducer } from 'react'; import { BrowserSearchContext } from './provider'; type IndexId = string; export type IdleState = { status: 'idle', } export type LoadingQuery...
def slug_pre_save(signal, instance, sender, **kwargs): if not instance.slug: slug = slugify(instance.titulo) novo_slug = slug contador = 0 while sender.objects.filter(slug=novo_slug).exclude(id=instance.id).count() > 0: contador += 1 novo_slug = '%s-%d'%(slug,...
<gh_stars>0 package com.itranswarp.learnjava; /** * Learn Java from https://www.liaoxuefeng.com/ * * @author liaoxuefeng */ public class Main { public static void main(String[] args) { new Thread1().start(); new Thread2().start(); for (int i = 0; i < 100; i++) { System.out.println("main: running..."); ...
<reponame>kokizzu/genqlient<filename>graphql/client.go package graphql import ( "bytes" "context" "encoding/json" "errors" "fmt" "io" "net/http" "net/url" "strings" "github.com/vektah/gqlparser/v2/gqlerror" ) // Client is the interface that the generated code calls into to actually make // requests. type C...
import tensorflow as tf import os import umap import matplotlib.pyplot as plt import pandas as pd import numpy as np def train(model, epochs, train_dataset): # Define the checkpoint directory to store the checkpoints checkpoint_dir = './training_checkpoints' checkpoint_prefix = os.path.join(checkpoint_dir...
/** * @brief Lock SPI bus for exclusive access * * On SPI buses where there are multiple devices, it will be necessary to lock * SPI to have exclusive access to the buses for a sequence of transfers. * The bus should be locked before the chip is selected. After locking the SPI * bus, the caller should then also c...
/* signal number to freq-index and code --------------------------------------*/ static int sig2idx(int sat, int sig, const char *opt, uint8_t *code) { int idx,sys=satsys(sat,NULL),nex=NEXOBS; if (sig<0||sig>SBF_MAXSIG||sig_tbl[sig][0]!=sys) return -1; *code=sig_tbl[sig][1]; idx=code2idx(sys,*code); ...
<filename>source/slang/slang-ir-spirv-legalize.cpp // slang-ir-spirv-legalize.cpp #include "slang-ir-spirv-legalize.h" #include "slang-ir-glsl-legalize.h" #include "slang-ir.h" #include "slang-ir-insts.h" #include "slang-emit-base.h" #include "slang-glsl-extension-tracker.h" namespace Slang { // // Legalization of ...
from sys import stdin,stdout from bisect import bisect_right input = stdin.readline n,v = map(int, input().split()) ans = min(v,n-1); left=0 for i in range(2,n): if n-v-i >= 0: ans += i print(ans)
// If a database already exists on disk with the same DATABASE_NAME, this method will NOT be called. @Override public void onCreate(SQLiteDatabase db) { String CREATE_POSTS_TABLE = "CREATE TABLE " + TABLE_GROCERIES + "(" + KEY_GROCERIES_ID + " INTEGER PRIMARY KEY," + ...
#include<stdio.h> #include<stdlib.h> #include<stdbool.h> #include<string.h> #include<math.h> #define mprint(x) printf(FORMATCONVERSION(x),(x)) #define FORMATCONVERSION(x) _Generic((x),\ int:"%d",unsigned int:"%u",\ double:"%lf",long long int:"%lld"...
/* * A quick util to know whether or not this report contains information * about a specific equipmentId. * */ @JsonIgnore public boolean seesEquipment(long equipmentId) { if (managedNeighbours != null) { for (List<ManagedNeighbourEquipmentInfo> list : managedNeighbours.valu...
/// Whether to include specialized methods for specific encodings. pub fn with_encodings<I>(mut self, encodings: I) -> Self where I: IntoIterator<Item = Encoding>, { self.encodings = encodings.into_iter().collect(); self }
<filename>lib/__tests__/fixtures/events.ts import {WDIO_TEST_STATUS} from "../../constants"; export const suiteStartEvent = () => ({ uid: "FooBarSuite", cid: "0-0", title: "foo", runner: {"0-0": {}} }); export const suiteEndEvent = () => ({ uid: "FooBarSuite", cid: "0-0", title: "foo", tests: [{ s...
‘The Joyous Light of Day’: New Year’s Day Music in Leipzig, 1781–1847 Unlike other European cities, where the rise of the public concert in the eighteenth century diminished the church’s prominent role in musical life, Leipzig was a city in which the church maintained a strong influence over public concert institution...
#include <iostream> #include<limits.h> #include<algorithm> using namespace std; typedef long long ll; ll n,*a; ll func() { if(n==2) return 0; else if(n==1) return 0; ll *dp; dp= new ll[n]; dp[n-1]= a[n-1]; dp[n-2]= a[n-2]; dp[n-3]= a[n-3]; ...
How Much Zoom is the Right Zoom from the Perspective of Super-Resolution? Constructing a high-resolution (HR) image from low-resolution (LR) image(s) has been a very active research topic recently with focus shifting from multi-frames to learning based single-frame super-resolution (SR). Multi-frame SR algorithms atte...
Get the latest news and videos for this game daily, no spam, no fuss. Microsoft has filed a new trademark application for Battletoads, suggesting--but absolutely not confirming--that the Xbox company may be planning to revive the series in some fashion. The trademark application, spotted by NeoGAF, was filed with the...
def mdct(signals, frame_length, window_fn=window_ops.vorbis_window, pad_end=False, norm=None, name=None): with ops.name_scope(name, 'mdct', [signals, frame_length]): signals = ops.convert_to_tensor(signals, name='signals') signals.shape.with_rank_at_least(1) frame_length = ops.convert_to_tensor(f...
# MongoDB MONGODB_HOST = 'localhost' MONGODB_PORT = 27017 DBS_NAME = 'GroupB' STORAGE_COLLECTION = 'totalStorage' FARMERS_COLLECTION = 'farmers' # SQLITE DB = 'network.db'
<gh_stars>10-100 package org.jetbrains.emacs4ij.jelisp.elisp; import junit.framework.Assert; import org.jetbrains.emacs4ij.jelisp.elisp.text.Action; import org.jetbrains.emacs4ij.jelisp.elisp.text.TextPropertiesInterval; import org.junit.Test; import java.util.List; public class TextPropertiesHolderTest { @Test ...
FLASHBACK 1987 Tascam Porta Two Cassette Four-Track Tape Recorder BACKGROUND The Porta Two is a portable cassette four-track tape recorder manufactured by Tascam in 1987. Teac/Tascam are a huge influence in home recording. The Teac 144, the first cassette four-track recorder, was released in 1979. The 144 kicked off...
import React, { useState } from 'react' import { hot } from 'react-hot-loader/root' import '../components/button/style' import '../components/switch/style' import '../components/spin/style' import { Button, DingAuth, Switch, Spin, Icon } from '../components' const App = () => { const [checked, setChecked] = useState...
<gh_stars>0 package rcustomer import ( "database/sql" "encoding/json" mcustomer "github.com/project.go.standard/project-web/fiber/postgres/crud-dao/models/customer" ) func GetUuid(db *sql.DB, uuid string) (string, error) { var customer mcustomer.CustomerPost sqlexec := ` SELECT imp_id, imp_uuid, imp_st...
#include <stdio.h> typedef struct _Player { int no; double time; }Player; Player ExtractTop(Player player[], int from, int to) { int i; int minNo=from; Player top; for(i=from+1; i<=to; i++) { if(player[i].time < player[minNo].time) minNo = i; } top.no = player[minNo].no; top.time = player[minNo].time;...
def parse(self, payload): remediation_entry = json.loads(payload) notification_info = remediation_entry.get("notificationInfo", None) finding_info = notification_info.get("FindingInfo", None) source_bucket = finding_info.get("ObjectId", None) object_chain = remediation_entry["not...
Seriously. These people are concerned that the statue -- which specifically paid tribute to a past, dead Apple CEO and not the one who publicly and bravely acknowledged his sexuality in a Bloomberg Businessweek piece last week -- could erode the hearty Russian familial structure. Won't someone please think of the chil...
The 2018 Winter Olympics in Pyeongchang, South Korea won’t feature active NHL players, but a legendary recent NHL player could take part. That would be 45-year-old Czech winger Jaromir Jagr (seen above during the 2010 Olympics), who had 16 goals and 46 points for the Florida Panthers last season, but is currently witho...
/** * the layered encryptors * * @since 1.0.0 */ public class LayeredEncryptors { private static RootKeyManager rootKeyManager = new RootKeyManager(); private static WorkingKeyManager workingKeyManager = new WorkingKeyManager(); /** * encrypted data, use Two-layer encryption * * @param ...
/** * Used by test code to obtain Spring beans when auto-wiring is not available. */ @SuppressWarnings("WeakerAccess") public class TestSpringBeans { /** Context used to obtain Spring beans. */ private static ApplicationContext context; /** * Because of some wiring issues experienced, the {@link #c...
const enum RemoteButton { A = 0xA2, B = 0x62, C = 0xE2, D = 0x22, E = 0xC2, F = 0xB0, UP = 0x02, DOWN = 0x98, LEFT = 0xE0, RIGHT = 0x90, STOP = 0xA8, NUM0 = 0x68, NUM1 = 0x30, NUM2 = 0x18, NUM3 = 0x7A, NUM4 = 0x10, NUM5 = 0x38, NUM6 = 0x5A, NUM7 = 0x42, NUM8 = 0x4A, NUM9 = 0x5...
/** * Hilfsobjekt, Macht aus einem String ein JSON Objekt * */ public class ObjectMapperService implements IObjectMapperService { private static final Logger LOGGER = LoggerFactory.getLogger(ObjectMapperService.class); private final ObjectMapper OBJECT_MAPPER = new ObjectMapper(); public ObjectMapperService()...
What is this ? How to write a genome f : draw f orward in the direction I'm currently facing. : draw orward in the direction I'm currently facing. n : step forward with n o drawing. : step forward with o drawing. - : step backward with no drawing. : step backward with no drawing. c : draws a filled c ircle. : dra...
<filename>index.ts<gh_stars>1-10 import { Decimal } from "decimal.js"; import { Asset, asset_to_number, Sym as Symbol, Sym, asset } from "eos-common"; export type EosAccount = string; export interface TokenSymbol { contract: EosAccount; symbol: Symbol; } export interface BaseRelay { contract: EosAccount; sma...
/** * List of two elements. * * @author John Whaley <jwhaley@alum.mit.edu> * @version $Id: Pair.java,v 1.2 2005/04/29 02:32:24 joewhaley Exp $ */ public class Pair extends AbstractList implements Serializable, Textualizable { /** * Version ID for serialization. */ private static final long ...
<gh_stars>1-10 package commands; import java.util.ArrayList; import java.util.List; public class ApplicationInfo { final List<Application> applications; public ApplicationInfo(List<Application> apps) { applications = new ArrayList<Application>(); applications.addAll(apps); } public List<Application> get...
//----------------------------------------------------------------------------- // Purpose: There's no guarantee that your interface pointer will persist across level transitions, // so this function will update your interface. //----------------------------------------------------------------------------- ISteamGame...
def solveSimultaneousEqs(eq): eq = [sympify(expr) for expr in eq] freesym = [expr.free_symbols for expr in eq] freevar = list() for freeset in freesym: for sym in freeset: freevar.append(sym) freevar=list(set(freevar)) for sym in freevar: exec(f"{sym.name}=symbols('{s...
In theory, CS:GO brought along a great mechanism for weapon balance by tweaking the monetary value awarded to the player after landing a frag. In practice however, the values chosen for the rewards were too extreme and also did not accurately take competitive play into account. I believe that this idea can be tweaked t...
<filename>packages/node-utils/src/cli-utils.ts import dotenv from 'dotenv'; import { registerRequireHooks } from './'; import path from 'path'; export function cliInit(projectPath: string): void { dotenv.config(); registerRequireHooks(projectPath); } export const defaultMetaGlob = 'src/**/*.meta.ts?(x)'; expo...
<reponame>brunocodutra/steady import React from 'react'; import { connect } from 'react-redux'; import { State } from 'state'; import removable, { Props as PropsBase } from 'container/removable'; import Element from 'component/element'; import Status from 'component/status'; import Tile from 'component/tile'; import { ...
Flipped Quartification and a composite $b$-quark An alternative"flipped"version of the quartification model is obtained by rearrangement of the particle assignments. The model has two standard (trinification) families and one flipped quartification family. An interesting phenomenological implication is that the model ...
For three years, 50 percent of the evaluations of many D.C. public school teachers were based on students standardized test scores, a key part of the ground-breaking IMPACT assessment system introduced by Michelle Rhee. Kaya Henderson, left and Michelle Rhee (Ricky Carioti/WASHINGTON POST) Sounds reasonable, right? ...
def serialize_token(token): return { 'apiURL': local_site_reverse( 'oauth-token-resource', local_site=token.application.local_site, kwargs={ 'oauth_token_id': token.pk, }, ), 'application': to...
<reponame>ss-jugg/YCAssistivePlugin // // YCAssistiveNetworkFlowDataView.h // YCAssistivePlugin // // Created by shenweihang on 2019/9/25. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface YCAssistiveNetworkFlowDataView : UIView @end NS_ASSUME_NONNULL_END
<reponame>JuanEmus/transito { 'name': 'Productos en tránsito', 'version': '172.16.17.32.0', 'author': 'JuanEmus', 'depends': [ 'purchase', 'purchase_stock', ], 'data': [ # security # data # demo # reports # views 'views/productostra...
<reponame>essafikhadija/ManagmentBooks<filename>src/books/bookDto.ts import {IsInt, IsString, Max, Min} from 'class-validator'; import {ApiProperty} from '@nestjs/swagger'; export class BookDto { @IsString() @ApiProperty() name: string; @IsInt({message: 'le prix doit etre un entier'}) @ApiPropert...
DEBUG = True LOCAL_TEST_SERVER = "192.168.198.242" class DbConfig(object): @staticmethod def get_db_info(): redis_host, redis_port = DbConfig.get_redis_info() mongo_server, mongo_port = DbConfig.get_mongo_info() return mongo_server, mongo_port, redis_host, redis_port @staticmeth...
#include<bits/stdc++.h> using namespace std; double arr[100009]; int main() { int n,a,b; double s1=0,s2=0; scanf("%d%d%d",&n,&a,&b); if(b>a) swap(a,b); for(int i=0; i<n; i++) scanf("%lf",&arr[i]); sort(arr,arr+n); for(int i=0; i<n; i++) if(i>=n-a-b) { if(i>=n-b) s2+=arr[i]; else ...
The 25IQ blog posts below have been rewritten and are now part of a new book that will benefit the author’s chosen charity: No Kid Hungry. The author will be directing his share of the profits from both hardcover and Kindle sales to this charity. Steve Blank (“Customer Development” methodology) Bill Campbell (“The Coa...
<reponame>mremolt/dets<gh_stars>1-10 export class Foo { get foo() { return 5; } set foo(value: number) {} }