content
stringlengths
10
4.9M
/* * Copyright © 2019 Atomist, Inc. * * 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 required by applicable law or agreed...
y,w=map(int,input().split()) s=max(y,w) n=6-(s-1) if(n%6==0): print(str(n//6)+'/'+str(6//6)) elif(n%3==0): print(str(n//3)+'/'+str(6//3)) elif(n%2==0): print(str(n//2)+'/'+str(6//2)) else: print(str(n)+'/'+str(6))
<reponame>febriliankr/go-embedded-microservices package config import ( "os" "testing" "github.com/powerman/check" "github.com/powerman/pqx" "github.com/powerman/go-monolith-example/internal/config" "github.com/powerman/go-monolith-example/pkg/def" "github.com/powerman/go-monolith-example/pkg/netx" ) func Te...
I’m going to be frank—after a minute and a half of GAIA’s latest undercover video footage from a halal slaughterhouse in Belgium, I had to stop watching. But while I was able to hit a pause button, the more than 250,000 cows, sheep, and goats who are slaughtered while they are still conscious must endure prolonged tor...
n = int(input()) a = map(str,raw_input().split(' ')) a[0] = int(a[0]) a[1] = int(a[1]) a1 = a[0]//10 a2 = a[0]%10 b1 = a[1]//10 b2 = a[1]%10 if(a1 == 7 or a2 == 7 or b1 == 7 or b2 == 7 ): print "0" else: count = 0 while(not(a1 == 7 or a2 == 7 or b1 == 7 or b2 == 7)): a[1]-=n count+=1 ...
/* * #%L * HAPI FHIR - Core Library * %% * Copyright (C) 2014 - 2015 University Health Network * %% * 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/lic...
Orthopedic overview of juvenile rheumatoid arthritis. Juvenile rheumatoid arthritis can be classified into three forms by the extent of early involvement: (1) pauciarticular, (2) polyarticular, and (3) systemic. When this disease, in which remission is common, is properly diagnosed and appropriately treated by physica...
/* Copyright (c) 2013, The Linux Foundation. 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 co...
/* * It could be interface argument or field of object which should be listed in * the document. */ @Data public class APIParameter { private String name; private String description; private ParameterOccurs parameterOccurs; private ParameterLocation parameterLocation; private String type; private Modification...
Hello developers, As account scamming tactics evolve, we remain ever-vigilant in promoting good account security practices. Here are some good tips to follow on keeping your accounts secure: If two-factor authentication (2FA)/two-step verification (2SV) is available, use it. Enabling 2FA/2SV allows you a second line ...
<filename>npe2/manifest/readers.py<gh_stars>0 from typing import List, Optional from pydantic import BaseModel, Extra, Field from ..types import ReaderFunction from .utils import Executable class ReaderContribution(BaseModel, Executable[Optional[ReaderFunction]]): command: str = Field( ..., description=...
<gh_stars>100-1000 #include <iostream> #include <seqan/sequence.h> #include <seqan/stream.h> // for output using namespace seqan; int main() { StringSet<CharString> names; StringSet<CharString> surnames; String<int> ages; appendValue(names, "John"); appendValue(names, "Johnny"); a...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ht_search.c :+: :+: :+: ...
<filename>jeff-farm-ui/src/app/error-messages/error-messages.component.ts import { Component } from '@angular/core'; import { ErrorMessage } from './error-message'; import { ErrorMessagesService } from './error-messages.service'; @Component({ selector: 'app-error-messages', templateUrl: './error-messages.componen...
Imitation in Autism Spectrum Disorders Imitation plays a central role in social and cognitive development. A substantial number of studies have documented differences in the way individuals with autism imitate others. These differences include a reduced frequency of spontaneous imitation and a diminished accuracy of i...
package theImposter.cards; import com.megacrit.cardcrawl.actions.common.ApplyPowerAction; import com.megacrit.cardcrawl.cards.AbstractCard; import com.megacrit.cardcrawl.characters.AbstractPlayer; import com.megacrit.cardcrawl.dungeons.AbstractDungeon; import com.megacrit.cardcrawl.monsters.AbstractMonster; import the...
/** * The status bar for the ExchangerEditor application. * * @version $Revision: 1.7 $, $Date: 2004/07/21 09:10:24 $ * @author Dogsbay */ public class Statusbar extends JPanel { private static final boolean DEBUG = false; public static final String VALIDATOR_TYPE_SCHEMA = "XSD"; public static final S...
// Method that prints a message to the text field // private void showMessage(final String message) { SwingUtilities.invokeLater(new Runnable() { public void run() { chatWindow.append(message); } }); }
/** * A simple representation object for the "./src/test/resources/config.json" file */ public class WebDriverConfig { private BrowserType browserType; private URL baseUrl; private long webDriverWaitTimeout; private boolean isHeadless; private JsonNode testConfig; private GridConfig gridConfi...
This won’t be the first time that the company has dabbled with 3D Touch technology. Samsung Display has reportedly been tasked with developing a pressure-sensitive OLED panel for the upcoming iPhone 8 and even produced one for the Huawei P9 last year. If a new report originating from South Korea is anything to go by, ...
<gh_stars>0 import requests def main(): response = requests.get('http://192.168.104.177:5001/config') if response.ok: print(response.json()) if __name__ == '__main__': main()
// SetString parses and sets a value from string type. func (b *Bool) SetString(val string) error { v, err := strconv.ParseBool(val) if err != nil { return err } b.Set(v) return nil }
The out-arc 5-pancyclic vertices in strong tournaments An arc in a tournament T with n ≥ 3 vertices is called k-pancyclic, if it belongs to a cycle of length l for all k ≤ l ≤ n. In this paper, the result that each s-strong (s ≥ 3) tournament T contains at least s +2 out-arc 5-pancyclic vertices is obtained. Furthermo...
Leeds surgical neuroradiology course The past 10 years have seen a rapid increase in the application of diagnostic imaging techniques and image guided treatments, and as a direct result the Royal College of Radiologists is seeking an increase of 60 trainees a year for the next five years.12 Neuroradiology in particula...
<reponame>wyan/ack<filename>util/ceg/ce_back/obj_back/relocation.c #include <system.h> #include <out.h> #include "back.h" /* Solve the local references. */ #define seg_index( s) ( nname - SEGBSS - 1 + s) long get4(); do_local_relocation() /* Check if this reference is solvable. External references contain * -...
Biological sample preparation and data reduction concepts in pharmaceutical analysis. This paper describes strategies to rapidly develop sensitive and selective preparations using manual and robotic liquid-solid isolation (LSI) methods. LSI procedures offer selective isolation of drug or metabolites from complex matri...
class TemplatesNotFoundWithinPackage(Exception): """Used for validating package has textfsm ntc templates""" pass class MissingArgument(Exception): """Missing argument to method or function""" pass class InputError(Exception): """General input error""" pass class ForceSessionRetry(Exceptio...
# Definition for a binary tree node. from collections import deque class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class Solution: def countNodes(self, root): if not root: return 0 coun...
{-# LANGUAGE DeriveFunctor, DeriveTraversable, GeneralizedNewtypeDeriving, RecordWildCards, DeriveGeneric, LambdaCase, NoImplicitPrelude, OverloadedStrings, NamedFieldPuns, TupleSections #-} module Main where import Protolude hiding (sym, retry) import qualified Text.Show as Show import Control.Monad.Catch (Handler(....
/** * Setup FIFO * * @param the sensor interface * @param FIFO mode to setup * @param Threshold to set for FIFO * @return 0 on success, non-zero on failure */ int lis2dw12_set_fifo_cfg(struct sensor_itf *itf, enum lis2dw12_fifo_mode mode, uint8_t fifo_ths) { uint8_t reg = 0; reg |= fifo_ths & LIS2DW12_FI...
A novel two-layer constant power control strategy for renewable energy system with reversible pumped hydro storage The use of energy plays a very important role in one's life. The availability and accessibility of sufficient amount of energy accelerate individual's and nation's development. The current trends in energ...
/** * Returns the QUIC connection for the current UDP stream. This may return NULL * after connection migration if the new UDP association was not properly linked * via a match based on the Connection ID. */ static quic_info_data_t * quic_connection_from_conv(packet_info *pinfo) { conversation_t *conv = find_co...
/* round double array elements to the nearest int */ void matlab_round( double *input_array, int input_array_size, int *output_array ) { int i; for (i = 0; i < input_array_size; i++) { if (input_array[i] >= 0) { output_array[i] = (int) (input_array[i] + 0.5); } el...
<gh_stars>0 import * as express from 'express'; import {programmableVideo} from './programmable-video'; export const twilio = (): express.Router => { const router: express.Router = express.Router(); router.use('/programmable-video', programmableVideo()); return router; };
<reponame>Schidstorm/engine // Copyright 2016 The G3N Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package gui import ( "github.com/schidstorm/engine/texture" "image" ) // Image is a Panel which contains a single Image type Im...
#!/usr/bin/env python3 n = int(input()) s = list(str(input())) ans = 0 for i in range(1, n): a, b = set(s[:i]), set(s[i:]) ans_tmp = len(a & b) ans = max(ans, ans_tmp) print(ans)
<reponame>marshallbrain/pulsar-experiment-1<gh_stars>0 package math; public class UnitConverter { public static Unit convert(Unit i, UnitType from, UnitType to) { Unit m = convertToMeter(i, from); Unit p = convertFromMeter(m, to); return p; } private static Unit convertToMeter(Unit i, UnitTy...
/** * Represent a content from CMS-Lite in the jqgrid. Does not carry any actual content, only * information about the name, type and languages of the content. */ public class ResourceDto implements Serializable { private static final long serialVersionUID = 6728665456455509425L; private final Set<String> l...
<filename>core/projects/just-upload/src/lib/Models.ts import {FileChunk} from './FileChunk'; import {HttpErrorResponse, HttpHeaders, HttpParams, HttpResponse} from '@angular/common/http'; import {UploadFile} from './UploadFile'; /** * @author <NAME> * This file contains the basic models used by this library */ ex...
def _is_valid_event(self, run_name: str) -> bool: return tf.io.gfile.isdir(self._profile_dir(run_name))
import java.util.*; import java.math.*; public class Solution{ private void solve(){ Scanner sc = new Scanner(System.in); int q = sc.nextInt(); while(q-- > 0){ int b = sc.nextInt(); int w = sc.nextInt(); boolean valid = true; if(b > w){ ...
Want to develop an app for the newly released Apple TV? Of course you do. Not sure how to get started? Apple is touring the globe for “Apple TV Tech Talks” which promise to get you rocking. You have to register by November 13th, though…so hop to it. Between December and February next year Apple is going to their store...
<reponame>mandoway/libelektra package main import ( "encoding/json" "net/http" "github.com/gorilla/mux" ) func setupRouter(app *server) http.Handler { r := mux.NewRouter() r.Use(loggingMiddleware) r.Use(handleMiddleware(app.pool)) r.HandleFunc("/", app.getDocHandler).Methods("GET") r.HandleFunc("/version"...
// ---------------------------------------------------------------------------- // Concatenate short with long info text and remove redundant paragraphs // - each paragraph of short-info is compared with long-info; // - the invoked compare function then compares the short-info paragraph separately // with each long-i...
for i in range(int(input())): rd = [x for x in input()] whole = [] count = -1 for i in rd[::-1]: count +=1 if int(i): whole.append(i+"0"*count) print(len(whole)) for i in whole: print(int(i), end=" ")
2011: World’s 10th warmest year, warmest year with La Niña event, lowest Arctic sea ice volume Posted on 1 December 2011 by John Hartz The following is a reprint of a news release isssued by the World Meteorological Organization (WMO) on Nov 29, 2011, with a few minor additions by Skeptical Science. Global temperatu...
//////////////////////////////////////////////////////////////////////// // // Description: // Adds the given light to the scene and to the menu. // // Use: private // void SoSceneViewer::addLight(SoLight *light) { Calculate the light manip size if necessary. Do this before adding the light into the scene, ...
use crate::hardware::cpu::execute::InstructionAddress; use crate::hardware::cpu::registers::{Reg16, Reg8}; use crate::hardware::cpu::CPU; use crate::hardware::mmu::MemoryMapper; /// This trait should be used where we might pass either a direct /// registry address, or a combined registry which points to a memory addre...
def georeference(self, sweeps=None): if sweeps is None: sweeps = self for swp in sweeps: self[swp] = self[swp].pipe(xarray.georeference_dataset)
Predicting the Mechanical Properties of Electric Porcelain Using ANN and MLR Electric porcelain has a long history of being used as insulators and bushings in Power T&D. Its microstructure and composition has a large influence on the mechanical performance. In this paper, two different methods, including Artificial Ne...
def add_asteroids(): for i in range(1, GAME['level'] + 3): OBJECTS.append(Asteroid(0, 0, 0, 0, 1))
The slideshow below includes 50 of the most fascinating uses for LEGO, including LEGO jewelry, a LEGO build of the Obama inauguration and bright block caulking in your home. These innovations prove that the possibilities are endless for these LEGO building blocks! Whether you're interested in recreating President Obam...
def step(self, action): if self._top_down_view: self.wrapped_env.update_cam() self.t += 1 if self._manual_collision: old_pos = self.wrapped_env.get_xy() inner_next_obs, inner_reward, done, info = self.wrapped_env.step( action) new_p...
/* Implement `fmt.GoStringer` for debug purposes. Not used by builder methods. Represents itself as a call to `AP`, which is the recommended way to write this. */ func (self Attrs) GoString() string { if self == nil { return `nil` } var buf NonEscWri _, _ = buf.WriteString(`AP(`) found := false for _, val := ra...
// ReadMessages reads messages from ws connection and send them to node func (s *Session) ReadMessages() { for { _, message, err := s.ws.ReadMessage() if err != nil { if websocket.IsCloseError(err, expectedCloseStatuses...) { s.Log.Debugf("Websocket closed: %v", err) s.Disconnect("Read closed", CloseNor...
A better solution for astronauts who drink their own piss Aquaporin A/S made this new small and lightweight filter that uses aquaporins, membrane proteins, to turn urine, sweat, and wastewater into drinkable water. It's now being tested aboard the International Space Station and could eventually be used on Earth in d...
def update_deployment_config(self): if not self.template.get('zstor', None): self.template.update({'zstor': {}}) zstor = self.template.get('zstor', {}) if not zstor.get('datastor', None): zstor.update({'datastor': {}}) self.datastor = zstor['datastor'] if...
export * from './users.reducer' export * from './users.selectors'
Syfy's upcoming thriller The Expanse, based on the best-selling Leviathan Wakes book series by James S.A. Corey, is set in space, 200 years in the future. But it turns out extraterrestrial sex scenes aren't ideal in zero-gravity space, series lead Steven Strait (James Holden) told The Expanse panel at Fan Expo Canada ...
Impact of COVID-19 on Cancer Diagnosis and Management in Slovenia – Preliminary Results Abstract Background The COVID-19 pandemic has disrupted the provision and use of healthcare services throughout the world. In Slovenia, an epidemic was officially declared between mid-March and mid-May 2020. Although all non-essent...
// // Created by <NAME> on 05/02/2022. // #ifndef ZREGEXSTANDALONE_UTF8_H #define ZREGEXSTANDALONE_UTF8_H #include <cstdint> #include <string> namespace ZRegex { class Utf8 { public: static const uint32_t MAX_TRANS = 0xFFFFFFF; static const uint32_t MAX_TRANS_BYTE = 0xFF; static uint32_t ReadMultiByte...
def remove(animation_name): animations_updated = [] delta_positions_updated = [] delta_sizes_updated = [] delta_opacities_updated = [] object_anitype = [] global animations global delta_positions global delta_sizes global delta_opacities for animation in animations: if not animation[0] == animation_name: ...
<reponame>dan3612812/ticTacTokRL import random from copy import deepcopy from env import EMPTY, NAMES, BOARD_FORMAT, DRAW from lib import gameover, emptystate def enumStates(state, idx, agent): if idx > 8: player = 1 if idx % 2 == 0 else 2 if player == agent.player: agent.add(state) ...
package ca.nova.gestion.mappers; import ca.nova.gestion.model.TaskType; import org.apache.ibatis.annotations.Mapper; import org.springframework.stereotype.Repository; import java.util.ArrayList; @Mapper @Repository public interface TaskTypeMapper { TaskType getTaskTypeById(int idTaskType); ArrayList<TaskTyp...
Newfoundland and Labrador's education minister says he has requested a suspension of the decision to restructure the public library system. Dale Kirby stated during a scrum with reporters Thursday that he was never comfortable with the decision, and says the it was made following consultations with Premier Dwight Ball...
<filename>test/dev/edu/udel/cis/vsl/civl/ShtnsTest.java<gh_stars>0 package edu.udel.cis.vsl.civl; import static org.junit.Assert.assertTrue; import java.io.File; import org.junit.Test; import edu.udel.cis.vsl.civl.run.IF.UserInterface; public class ShtnsTest { /* *************************** Static Fields *******...
<reponame>mainland/kyllini {-# LANGUAGE CPP #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TypeFamilies #-} -- | -- Module : KZC.Monad -- Copyright : (...
The Monetary Authority of Singapore (MAS) and the Hong Kong Monetary Authority (HKMA) are working on a trade finance cross-border platform that leverages blockchain technology to reduce potential fraud and errors. The blockchain project is their first collaborative initiative as part of a newly signed agreement aimed ...
use indexmap::set::IndexSet; /// Index into SourceAtomSet.atoms. #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] pub struct SourceAtomSetIndex { index: usize, } impl SourceAtomSetIndex { fn new(index: usize) -> Self { Self { index } } } impl From<SourceAtomSetIndex> for usize { fn from(inde...
/** * Utilities and helper functions */ public class Util { /** * Create a java BufferedImage from an OpenCV matrix * @param mat * @return */ public static BufferedImage matrixToImage(Mat mat) { final int width = mat.cols(); final int height = mat.rows(); final int ...
/** * @deprecated replaced by <code>addLayoutComponent(Component, Object)</code>. */ public void addLayoutComponent(String name, Component comp) { synchronized (comp.getTreeLock()) { /* Special case: treat null the same as "Center". */ if (name == null) { name ...
package oops; import java.text.DecimalFormat; public class Constrct_Demo { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub Complex c1 = new Complex(); Complex c2 = new Complex(2.34f,3.14f); Complex c3 = new Complex(); c3 = c3.add(c1,c2); System.ou...
The preparation of two inch double-sided YBCO thin films The preparation of two inch double-sided YBCO thin films by simultaneous sputtering from a single target is reported. The lateral homogeneity of microwave surface resistance of the YBCO thin films, on both sides of the two inch wafer, is characterized by using a...
Now that winter is gone we can start to work on our gardens because at this point in time it probably really needs a tube up. Some plants you may find grow uncontrollable but there is ways to contain them. Here is a great way to grow uncontrollable growing vegetables such as squash on a arch or a trellis. Enjoy! Squas...
def find_api_files(cls, api_dir=None, patterns='*'): if api_dir is None: api_dir = cls.find_api_dir() if api_dir is None: raise RuntimeError("api_dir cannot be located") if isinstance(patterns, list) or isinstance(patterns, tuple): patterns = [p.strip(...
/** * @author jessenpan * tag:sort */ public class S79LargestNumber { public String largestNumber(int[] nums) { int len = nums.length; String[] strs = new String[len]; for (int i = 0; i < len; i++) { strs[i] = String.valueOf(nums[i]); } Arrays.sort(strs, new ...
export * from "./ArrayConverter"; export * from "./DateConverter"; export * from "./MapConverter"; export * from "./PrimitiveConverter"; export * from "./SetConverter"; export * from "./SymbolConverter";
/** * A class to 'match' OperationKeys * <p/> * By default this Matcher will return true for any OperationKey. by setting the fields * on the OperationKeyMatcher one may restrict the set of operationKeys for which this is the case: * <p/> * OperationKeyMatcher matcher = new OperationKeyMatcher(); * matcher.setSe...
def blinky_non_linearity(x): global blinky_lut x = decibels(x) x = clip(x, lo=blinky_min_db, hi=blinky_max_db) x = map_to_unit_interval(x, lo=blinky_min_db, hi=blinky_max_db) x = lut_interp(x, blinky_lut) return x
// TODO: Dump environment as JSON func (env *Env) Dump() { env.DumpVariables() fmt.Println() env.DumpPolyTypes() fmt.Println() env.DumpExternals() }
// code common to PrepareAction / PrepareUnknown / PrepareMultipleUnknowns func (n *Notification) prepareFromTemplateKeys(pn *PreparedNotifications, tks NotificationTemplateKeys, render func(string, *template.Template) (string, error), defaults defaultTemplates, alertDetails *NotificationDetails) { if len(n.Email) > 0...
use auto_struct_macros::auto_struct; use reader_writer::{Readable, Reader, RoArray}; use reader_writer::generic_array::{GenericArray, typenum:: *}; use crate::ResId; use crate::res_id::*; #[derive(Debug, Clone)] pub enum Anim<'r> { Uncompressed(AnimUncompressed<'r>), Compressed(AnimCompressed<'r>), } impl<...
def scroll_down(driver): SCROLL_PAUSE_TIME = 1 last_height = driver.execute_script("return document.documentElement.scrollHeight") i = 0 while i < 11: i = i + 1 driver.execute_script("window.scrollTo(0,document.documentElement.scrollHeight);") import time time.sleep(SCROL...
/** * */ package org.kevin.exception; public class SonicTimeoutException extends SonicException { private static final long serialVersionUID = -5384713284430243210L; public SonicTimeoutException(String message) { super(message); } }
'If Leicester can do it...' Rory McIlroy and Northern Ireland captain Steven Davis call for Green and White Army fairytale at European Championship Finals BelfastTelegraph.co.uk Rory McIlroy and international captain Steven Davis have called for Northern Ireland to make it the year of the underdog and emulate the succe...
def delete(self, db_name: str, col_name: str): try: LOGGER.info("trying to '{}' all documents from collection: '{}' in db: '{}'".format( self.delete.__name__, col_name, db_name)) Assertor.assert_data_types([db_name, col_name], [str, str]) collection = getattr(...
I’ve written many times in the past eight months that this draft class is pretty weak and that, combined with the bonus pools that limit each team’s draft spending, will make for an unpredictable draft day filled with below-slot deals. That talk has continued here and in other places but, in the last few weeks, teams’ ...
def create_inventory(items): pass def add_items(inventory, items): pass def delete_items(inventory, items): pass def list_inventory(inventory): pass
Curative effect of kangfuyan capsule combined with antibiotic treatment on pelvic inflammatory disease. This study aims to investigate the curative effect of Kangfuyan capsule in the treatment of damp-heat and blood stasis type of pelvic inflammatory disease (PID), and its influence on serum inflammatory factors IL-6,...
Microsoft’s new devices event was held in New York today — and it totally kicked some ass, for the first time in what seems like years. The company, which seemed to have made a series of repeated misfires over the last few years, got up on stage and presented its new offerings as a unified front. The new Microsoft is ...
Kin discrimination and female mate choice in the naked mole-rat Heterocephalus glaber Naked mole–rats are fossorial, eusocial rodents that naturally exhibit high levels of inbreeding. Persistent inbreeding in animals often results in a substantial decline in fitness and, thus, dispersal and avoidance of kin as mates a...
Mayor Mitch Landrieu, one of numerous local politicians and public figures who came under withering scrutiny from federal prosecutor Sal Perricone's online alter ego, said this morning that he feels Perricone may have "poisoned" negotiations of a consent decree between the Justice Department and New Orleans police. U.S...
/* get index info of a system table index /**/ ERR ErrCATGetCATIndexInfo( PIB *ppib, DBID dbid, FCB **ppfcb, FDB *pfdb, PGNO pgnoTableFDP, CHAR *szTableName, BOOL fCreatingSys ) { ERR err; INT iTable; INT iIndex; FCB *pfcb2ndIdxs = pfcbNil; FCB *pfcbNewIdx; CO...
<filename>svd/utils/labels.py import torch def create_aligned_targets(segments, timestamps, dtype=torch.float32): """ Align labels to spectrogram, taken from https://github.com/f0k/ismir2015/blob/master/experiments/labels.py. """ targets = torch.zeros(len(timestamps), dtype=dtype) if not segments: ...
#include <stdio.h> #include <stdlib.h> #include <string.h> char done[100][2][100][2]; doit(int n, int m){ int i,a,c; char b,d; memset(done,0,sizeof(done)); printf("%d %d\n",n,m); for (i=0;i<m;i++) { do { a = random()%n; b = random()%2; c = random()%n; d = random()...
def ard_access_check(): plist_path = '/Library/Preferences/com.apple.RemoteManagement.plist' if os.path.exists(plist_path): sp = subprocess.Popen(['plutil', '-convert', 'xml1', plist_path]) out, err = sp.communicate() plist = plistlib.readPlist(plist_path) if plist['ARD_AllLocalU...
export const schema = gql` scalar ID # An object with a Globally Unique ID interface Node { id: ID! } `
{-# language OverloadedStrings #-} module Main where import Data.Functor (void) import qualified Network.HTTP.Types.Status as Http import qualified Network.Wai.Handler.Warp as Warp import qualified Network.Wai as Wai import System.Posix.Signals ( installHandler, Handler(Catch), sigTERM, fullSignalSet ) main :: IO ()...
def serialize(self, compact=False): if 'ciphertext' not in self.objects: raise InvalidJWEOperation("No available ciphertext") if compact: for invalid in 'aad', 'unprotected': if invalid in self.objects: raise InvalidJWEOperation( ...
The recent passing of the mother of a lifelong friend brought to mind Bob Dylan’s observations in his song “Simple Twist of Fate” – every new day brings new revelations, some good, some bad and some you should have thought about or might have known but catch you unaware. In the course of Sunday’s condolence call, I ca...