content
stringlengths
10
4.9M
Praise for _Core Awareness_ , Revised Edition "It seems that yoga classes are offered on every corner these days, but unfortunately they often emphasize movement over awareness, stretching over sensing, and pushing oneself over self-exploration. Luckily Liz Koch's book can offer the yoga student inspiration as well ...
package WebService.extensao.impl.database; import java.awt.Container; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileOutputStream; import java.io.PrintStream; import java.util.List; import java.util.concurrent.Semaphore; import AGVS.Data.AGV; import AGVS.Data.AlertFalhas; imp...
//writes to a file the bigint. "wrap" is how long the lines are in the file void bigint::to_file(std::ofstream &outfile, unsigned int wrap) { std::string str = this-> to_string(); for(size_t n = 0; n < str.length(); n++){ outfile << str[n]; if ((n+1) % wrap == 0){ outfile << std::endl; } } }
/** * Created by Longri on 19.03.17. */ public class CenterCrossLayer extends GenericLayer implements Disposable { public CenterCrossLayer(Map map) { super(map, new Renderer()); ((Renderer) this.mRenderer).setLayer(this); } @Override public void dispose() { ((Renderer) this.m...
def nextPermutation(self, nums) -> None: def swap(nums, i, j): temp = nums[i] nums[i] = nums[j] nums[j] = temp end = -1 for i in range(len(nums)-1, 0, -1): if nums[i] > nums[i-1]: end = i - 1 break if end >= ...
Draft government plan finds no need for new coal stations beyond those already under construction, calls for massive renewable energy push By Karl Mathiesen India needs no extra coal power stations until at least 2027, according to the government’s latest draft National Electricity Plan. The plan, released by the Ce...
package client.reservation; import java.text.ParseException; import java.util.ArrayList; import client.dao.ServerInterfaceCache; import client.flight.Flight; import client.search.FlightSearch; import client.util.Configuration; import junit.framework.Test; import junit.framework.TestCase; import junit.frame...
<reponame>hedonihilist/nushell<gh_stars>1000+ #[cfg(test)] mod tests; use crate::FromSqlite; use nu_errors::ShellError; use nu_plugin::Plugin; use nu_protocol::{CallInfo, Primitive, ReturnValue, Signature, SyntaxShape, UntaggedValue, Value}; use nu_source::Tag; // Adapted from crates/nu-command/src/commands/dataframe...
typedef struct { SPFLOAT gg; SPFLOAT outputs; SPFLOAT inputs; SPFLOAT gain; } sp_dcblock; int sp_dcblock_create(sp_dcblock **p); int sp_dcblock_destroy(sp_dcblock **p); int sp_dcblock_init(sp_data *sp, sp_dcblock *p); int sp_dcblock_compute(sp_data *sp, sp_dcblock *p, SPFLOAT *in, SPFLOAT *out);
extern crate tools; use tools::{generate, run_rustfmt, Verify}; #[test] fn verify_template_generation() { if let Err(error) = generate(Verify) { panic!("{}. Please update it by running `cargo gen-syntax`", error); } } #[test] fn check_code_formatting() { if let Err(error) = run_rustfmt(Verify) { ...
import * as React from "react"; import { SVGProps } from "react"; const Compound = (props: SVGProps<SVGSVGElement>) => ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2000 2000" {...props}> <path fill="#070a0e" d="M1000 2000c552.3 0 1000-447.7 1000-1000S1552.3 0 1000 0 0 447.7 0 1000s447.7 100...
/** * Model tests for CreateUser */ public class CreateUserTest { private final CreateUser model = new CreateUser(); /** * Model tests for CreateUser */ @Test public void testCreateUser() { // TODO: test CreateUser } /** * Test the property 'automatic' */ @Tes...
/* * Copyright(c) 2018 Hemajoo Ltd. * --------------------------------------------------------------------------- * This file is part of the Kakoo Foundation Software (KFS) project which is * licensed under the Apache license version 2 and use is subject to license * terms. You should have received a copy of the l...
/* * Check if it's possible to extend from *contig* with *bridge* to another extended-already contig (contigF) * use for markers and unique bridge only. * This is a pre-step to join 2 scaffolds: scaffoldT going to scaffoldF * @param Contig: a contig to start with * ContigBridge: a bridge from given cont...
def convert_function(cls, name, args): func = getattr(defined_functions, name.title(), None) arg_algebras = func.get_argument_algebras() return func(*[cls(a) for a,cls in zip(args, arg_algebras)])
/** * <p>Describes an update for the Amazon S3 code content location for a Java-based Amazon Kinesis Data Analytics application.</p> */ export interface _S3ContentLocationUpdate { /** * <p>The new Amazon Resource Name (ARN) for the S3 bucket containing the application code.</p> */ BucketARNUpdate?: string; ...
. The "rubtest" to induce an immediate reaction with various inhalative and ingestive allergens has proved to be a very reliable, easily demonstrable and extremely simple method for detection of allergy-type I, especially of the "highest-sensitivity-type". Recent examinations confirmed the clinical importance and the ...
After yesterday, i could not be more angry at google chrome. All i needed was a few seconds and he decided to crash losing all my work. Bastard. I’m not sure how this analysis will turn out to be - i’m pretty bad at repeating myself, but i’ll try to spot the same things i did. And if you’ll enjoy it, check the other on...
/** * Read content of URI into String. * * @param uri * the uri * @param cs * the Charset * @return content of uri * @throws IOException * if content could not be read */ public static String read...
/** * This method will be called at the relay and at the final {@link #destination} node. It will only care about the relaying. * If applicable it will delegate to {@link #handleAtDestination()} at the {@link #destination} node which contains the actual * implementation about the actions to be done. */ @Ove...
<filename>tests/examples.rs use serde_derive::Deserialize; use serde_json::{json, Value}; use std::collections::HashMap; use std::fs::File; use std::io::prelude::*; mod common; use crate::common::{deserializes_to, serializes_to, Val}; #[test] fn serializes_example_infinite() { let mut map = HashMap::new(); m...
<gh_stars>10-100 import { Circle, scaleCircle, engulfsCircle } from '../../circle'; import { TTree } from './t-tree'; import { calcGroups } from './calc-groups'; /** @hidden */ const width = 1620; // TODO change to actual shape coordinates /** @hidden */ const height = 1560; // ... /** * @hidden * Returns a map...
<gh_stars>1-10 {-# LANGUAGE DataKinds #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TypeApplications #-} module App.Commands.Run ( cmdRun ) where import Control.Lens import Control.Monad import Control.Monad.Except import Control.Monad.IO.Class import Data.Generics.Product.Any import Data.Lis...
A review on nursery management in horticultural crops: A beneficial way for enhancing income The present study is based on the nursery management in horticultural crops for enhancing income. The aim of good nursery management is to make available planting material of the highest possible quality for new development ar...
Self-perceived oral health in adolescents associated with family characteristics and parental employment status. OBJECTIVE To investigate self-perceived oral health and its associations with family characteristics and parental employment status in an adolescent population from a gender perspective. DESIGN A cross-se...
/** * Created by Daiwei on 2021/2/13 */ @Log4j public class AdviceMethod { public void helloBefore() { log.info("hello before!!"); } public void helloAfter() { log.info("hello after!!"); } }
Doctors have their own Obamacare nightmare to deal with. Dr. Nicholas DiNubile, a Philadelphia orthopedic surgeon, has a timely reminder for everyone encountering the federal health-care-exchange meltdown: “If you think signing up for Obamacare is a nightmare, ask your doctor how the EMR mandate is going.” Bingo. Th...
#include <bits/stdc++.h> using namespace std; //ifstream f("date.in"); //ofstream g("date.out"); int main() { //int adiacent[501][501]; int n,m,i,j; char harta[501][501]; cin>>n>>m; for(i=1; i<=n; i++) { for(j=1; j<=m; j++) cin>>harta[i][j]; } for(i=1; ...
<reponame>solita/kuntalaisaloite<filename>municipalityinitiative-web/src/main/java/fi/om/municipalityinitiative/dto/Author.java package fi.om.municipalityinitiative.dto; import fi.om.municipalityinitiative.dto.service.Municipality; import fi.om.municipalityinitiative.dto.ui.ContactInfo; import fi.om.municipalityinitia...
<gh_stars>1-10 import React from 'react' export const Logo = ({ title = 'React breadcrumbs trail for Router5 Logo', }) => ( <svg viewBox='0 0 120 37' width='120'> <defs> <radialGradient id='radial-gradient' cx='18.85' cy='19.3' r='14.72' gradientUnits='userSpaceOnU...
<reponame>335is/config package config import ( "errors" "reflect" "strconv" "strings" "time" ) var ( // ErrNilPointer indicates the v parameter is a nil pointer ErrNilPointer = errors.New("destination parameter cannot be nil") // ErrCannotSetValue indicates the v parameter is not writable ErrCannotSetValue =...
/* * FreeRTOS Shadow V2.1.1 * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, includi...
//===- llvm/unittest/Support/CRCTest.cpp - CRC tests ----------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
<filename>src/main/java/mod/linguardium/tickingstorage/inventory/TickingInventoryController.java<gh_stars>0 package mod.linguardium.tickingstorage.inventory; import io.github.cottonmc.cotton.gui.CottonCraftingController; import io.github.cottonmc.cotton.gui.widget.WGridPanel; import io.github.cottonmc.cotton.gui.w...
I'm new here. I wonder if you could point me in the right direction. A potential use case for a decentralised app, possibly ethereum - or somewhere else (if not already planned - I couldn't find it). Thousands of scientists need to access their data from centralised sources - each website is typically fiddly, and upda...
/// Upgrade the handle to a directory handle pub fn to_dir(self) -> super::Result<Dir> { if self.node.is_dir() { Ok(Dir { node: self.node }) } else { Err(super::Error::TypeMismatch) } }
#include "button.h" #include "control_manager.h" #include "window.h" namespace three_kingdoms { WNDPROC CButtonControl::s_originalProc = nullptr; LRESULT CALLBACK CButtonControl::OnControlProc(HWND hWnd, UINT iMessage, WPARAM wParam, LPARAM lParam) { TRACKMOUSEEVENT t...
Officials in India-administered Kashmir have published an advisory in a local newspaper warning residents to be prepared for a possible nuclear war by building bomb shelters and other precautions, barely two weeks after deadly border skirmishes. In an unprecedented move, the Jammu and Kashmir Police Civil Defence and ...
// Load creates the Networking object from saved state. // Assumes the current netns is that of the host. func Load(podRoot string, podID *types.UUID) (*Networking, error) { pdirfd, err := syscall.Open(podRoot, syscall.O_RDONLY|syscall.O_DIRECTORY, 0) if err != nil { return nil, errwrap.Wrap(fmt.Errorf("failed to o...
/** * A JAX-RS resource representing a {@link WorkflowState}. * * @author ngimhana (Nadeeshan Gimhana) */ @XmlRootElement(name = "workflowState") @XmlType(propOrder = {"name", "description", "message", "startTime", "category", "prevState"}) @XmlAccessorType(XmlAccessType.NONE) public class WorkflowStateResource { ...
#include "netlib/bitstream.h" namespace netlib { bitstream::bitstream() { } bitstream::~bitstream() { } bool bitstream::read_block(void *_buffer, size_t _amt) { size_t amtDone = 0; while(amtDone < _amt) { size_t amt = read(((char*)_buffer)+amtDone, _amt-amtDone); if(amt == 0) return false; ...
A young man with hemiplegia after inhaling the bath salt “Ivory Wave” “Legal highs,” intoxicating substances not prohibited by laws, are gaining popularity in Europe and the United States. The bath salt “Ivory wave” is one of these substances and contains methylenedioxypyrovalerone (MDPV), a synthetic cathinone. Methc...
// Code generated by sqlc. DO NOT EDIT. package database import ( "fmt" "time" "github.com/gofrs/uuid" ) type DealType string const ( DealTypePurchase DealType = "purchase" DealTypeSale DealType = "sale" ) func (e *DealType) Scan(src interface{}) error { switch s := src.(type) { case []byte: *e = Dea...
<filename>java/src/main/java/edu/fdiazaguirre/hackerrank/TryNode.java package edu.fdiazaguirre.hackerrank; import java.util.HashMap; import java.util.Map; public class TryNode { char value; Map<Character, TryNode> children = new HashMap<>(); boolean isCompleteWord; public TryNode (...
// UpdateAlerts upserts the given alerts func (c *Client) UpdateAlerts(alerts []*metrics.Alert) error { if len(alerts) == 0 { log.Debug("No alerts to update, skipping push") return nil } ctx := context.Background() timer := timing.NewStageTimer("Client.UpdateAlerts", log.Fields{}) defer timer.Finish() err := ...
//*** MemoryRemoveTrailingZeros() // This function is used to adjust the length of an authorization value. // It adjusts the size of the TPM2B so that it does not include octets // at the end of the buffer that contain zero. // The function returns the number of non-zero octets in the buffer. UINT16 MemoryRemoveTrailin...
Law-Abiding Citizens Heart Gangsters The Red & Black Cafe in Portland, an anarchist establishment, has been the center of controversy — and that’s an understatement — over its request that a police officer leave the premises. Seems that, given some questionable shootings involving local cops, he was making the cliente...
Image caption Both sides in the Sri Lankan war are accused of human rights abuses The UN special investigator into extrajudicial killings in Sri Lanka says video footage showing soldiers apparently executing civilians is evidence of serious rights abuses. Christof Heyns presented the video footage to the UN Human Rig...
<filename>internal/webmention/header_test.go package webmention import ( "fmt" "testing" ) func TestHeader(t *testing.T) { test := []string{`<http://alice.host/webmention-endpoint>; rel="webmention"`} links := GetHeaderLinks(test) for _, l := range links { fmt.Println(l.URL) fmt.Println(l.Params) } }
def playSingleMap(self): maps = glob.glob('./maps/*.map') maps.sort(); i = 0; listLen = 3; lastKey = K_3; mapNo = 0; done = False; while(not done): msg = []; lastIndex = i+listLen if(len(maps) > i+listLen) else len(maps); ...
/*! \class transition_pool_allocator_t \brief Pool allocator for transitions of zone graphs */ class transition_pool_allocator_t final : public tchecker::zg::details::transition_pool_allocator_t<tchecker::zg::shared_transition_t> { public: using tchecker::zg::details::transition_pool_allocator_t<tchecker::zg::...
<reponame>zengineDev/dojo package dojo import ( "crypto/rand" "crypto/subtle" "encoding/base64" "encoding/gob" "errors" "fmt" "github.com/go-resty/resty/v2" "github.com/gofrs/uuid" "github.com/zengineDev/x/utilsx" "golang.org/x/crypto/argon2" "strings" ) var ( // ErrInvalidHash in returned by ComparePassw...
Design of an instrument for measuring the spectral bidirectional scatter distribution function. The spectral bidirectional scatter distribution function (BSDF) offers a complete description of the spectral and spatial optical characteristics of a material. Any gloss and color measurement can be related to a particular...
Impact of Superior Oblique Transposition on Primary Position Deviation, a Pattern and Intorsion in Third Nerve Palsy ABSTRACT Purpose: To evaluate the role of superior oblique transposition on primary position alignment, A pattern, and intorsion in third nerve palsy. Methods: Ten patients with isolated, unilateral thi...
// StringValue returns the string representation of the specified parameter or an error if no value exists for that parameter. func (wp *Params) StringValue(key string) (string, error) { s := wp.values[key] if s == nil { return "", wp.noVal(key) } return s[len(s)-1], nil }
/* * Please note that I might have used the @EnableAutoConfiguration */ @Primary @Bean @ConfigurationProperties(prefix = "spring.datasource") public DataSource dataSource() { return DataSourceBuilder .create() .build(); }
// Print QR-Code to terminal func (qr *QR) OutputTerminal() { length := len(qr.Canvas) output := upperLowerBorder(length) for i := 0; i < length; i++ { output += white for j := 0; j < length; j++ { if qr.Canvas[i][j].color == 0 { output += white } else { output += black } } output += white +...
use std::marker::PhantomData; use std::os::raw::c_void; #[repr(C)] #[derive(Default, Copy, Clone, Debug)] pub struct RUBase { _unused: [u8; 0], } #[repr(C)] #[derive(Copy, Clone, Debug)] pub struct RUArray { pub delete_callback: extern "C" fn(data: *const c_void), pub priv_data: *const c_void, pub ele...
package structure.adapter; /** * 接口适配器 * @author weiyixiao * @version id: SportAdapter3.java, v 0.1 2019年07月09日 17:37:25 weiyixiao Exp $ */ public class SportAdapter3 extends AbstractAdatper { @Override public void hight() { super.hight(); } }
from flask import Blueprint, request, redirect, render_template, \ abort, url_for, flash from flask_login import login_user, logout_user, login_required from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, BooleanField from wtforms.validators import InputRequired, Email, Length, EqualTo #...
<reponame>petejkim/ConciseKit // // OCHamcrest - HCSubstringMatcher.h // Copyright 2009 www.hamcrest.org. See LICENSE.txt // // Created by: <NAME> // // Inherited #import "HCBaseMatcher.h" @interface HCSubstringMatcher : HCBaseMatcher { NSString* substring; } - (id) initWithSubstring:(NSString*)aSubstrin...
/** * Replace all occurrences of the search string with a new string. As in the * contains method, the search string must exist completely within one * document object node. If this node's type is one that does not have * children, this method is a no-op. * * @param oldS The search string ...
/** * A graph represented using adjacency lists. Undirected graphs include two edge representations for two vertices, * one from v to u and one from u to v. Directed graphs use just one edge representation. * * 1-based indices. */ public class G { // 1-based indices public V[] adj; /** * DIRECTED...
// Internal; returns a reference to the appropriate side. fn child_ref(&self, side: Side) -> &Option<QuarterNodePtr<'brand, T>> { match side { Side::Left => &self.left, Side::Right => &self.right, } }
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(0); cin.tie(0); double pi=2*acos(0); int n; double A; int c=0; while(cin>>n>>A && n>2) { double R2=sqrt(2*A/(sin(2*pi/n)*n)); double h=cos(pi/n)*R2; cout<<fixed<<setprecision(5)<<"Case "<<++c<<": "<<R2*R2*pi-A<<" "<<A-h...
package src.model; import java.sql.Date; import java.sql.Timestamp; public class HistoryConnection { private int idCon; private int idUser; private String uriSender; private String uriInvited; private Timestamp beginDate; private Timestamp endDate; public HistoryConnection() { } public...
Crystal Structure and Biochemical Characterization of a Mycobacterium smegmatis AAA-Type Nucleoside Triphosphatase Phosphohydrolase (Msm0858) ABSTRACT AAA proteins (ATPases associated with various cellular activities) use the energy of ATP hydrolysis to drive conformational changes in diverse macromolecular targets. H...
// Returns the text placement gravity used when annotating with text. func (dw *DrawingWand) GetGravity() GravityType { ret := GravityType(C.DrawGetGravity(dw.dw)) runtime.KeepAlive(dw) return ret }
package com.beststudio.la.server; import com.beststudio.la.rest.resource.ActivityResource; import org.eclipse.jetty.server.Server; import org.glassfish.jersey.jetty.JettyHttpContainerFactory; import org.glassfish.jersey.server.ResourceConfig; import javax.ws.rs.core.UriBuilder; import java.net.URI; public class Res...
use gfx::{self, *}; use ggez::graphics::Shader; use ggez::{Context, GameResult}; gfx_defines! { constant WaterShaderParams { resolution: [f32; 2] = "u_Resolution", frame_pos: [f32; 2] = "u_FramePos", t: f32 = "u_Tick", } } pub struct Shaders { pub water_shader: Shader<WaterShaderPa...
def display_value(field): value = field_value(field) if isinstance(field.field, ChoiceField): for (val, desc) in field.field.choices: if val == value: return desc return value
/** * ProcedureCallback implementation that tracks successes and failures. */ class CMCallback implements ProcedureCallback { @Override public void clientCallback(ClientResponse clientResponse) throws Exception { if (clientResponse.getStatus() == ClientResponse.SUCCESS) { ...
Paracomedy and Relative Chronology This chapter presents paracomedy as a tool that can help establish a relative chronology between plays in cases where we can detect an allusive relationship between a tragedy and a comedy but we do not know which play was performed first. Using examples from Sophocles’s Chryses, Euri...
#include "uart.h" #include "string.h" #include "utility.h" #include "mailbox.h" #include "time.h" #include "command.h" #include "task.h" #include "printf.h" #include "list.h" #include "memory.h" #include "allocator.h" void test_lab6_req1() { page_sys_init(); print_buddy(); printf("------\n"); Page *p...
//Initialize starts the 3 goroutines for pipeline schedulers func Initialize(c context.Context, store cache.Store, nbExecToKeep int, DBFunc func() *gorp.DbMap) { rand.Seed(time.Now().Unix()) tickCleaner := time.NewTicker(10 * time.Minute) tickScheduler := time.NewTicker(10 * time.Second) tickExecuter := time.NewTic...
Anti-missionary organization Yad L'achim on Thursday appealed to MKs to block legislation that would enable non-Jewish families to adopt Jewish children. The law was proposed by Yesh Atid MK Adi Koll. Allowing such adoptions, said Yad L'achim, would basically be an endorsement by the Knesset of assimilation. The law i...
Bitcoin and 3D printing are two technologies that are based on similar ideologies. Just like Bitcoin allows for the removal of the middle man and the added fees associated with monetary transactions, 3D printing also removes the middle man by allowing individuals and businesses to manufacture and prototype within their...
import { defineFeature, loadFeature } from 'jest-cucumber'; import 'expect-puppeteer'; const feature = loadFeature('./features/viewing-components.feature'); defineFeature(feature, (test) => { test('Landing on the home page', ({ when, then }) => { when('I land on the home page', async () => { await page.go...
import decimal L = int(input()) decimal.getcontext().prec = 12 L = decimal.Decimal(L) p = decimal.Decimal(3) l = L / p print(l**p)
<filename>xact/xaction.go<gh_stars>0 // Package xact provides core functionality for the AIStore eXtended Actions (xactions). /* * Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. */ package xact import ( "errors" "fmt" "strconv" "sync" "time" "github.com/NVIDIA/aistore/3rdparty/atomic" "git...
// EntityStart implements output.Stream. func (s *Sink) EntityStart(ei *protocol.Entity, outDir string) error { s.msgs = append(s.msgs, &protocol.EntityStartEvent{ Entity: ei, OutDir: outDir, }) return nil }
<reponame>StefanoLanza/Reflection #include "typeDB.h" #include "namespace.h" #include "structType.h" #include <core/scopedAllocator.h> #include <cassert> #include <cstring> namespace Typhoon::Reflection { TypeDB::TypeDB(Allocator& allocator, ScopedAllocator& scopedAllocator) : types(stdAllocator<const Type*>(all...
Towards a source-oriented approach to typological universals. Typological universals are skewed distributional patterns whereby languages recurrently display certain grammatical patterns as opposed to others. Explanations for these patterns are usually based on their synchronic properties, not actual diachronic proces...
import { AppProps } from 'next/app'; import Head from 'next/head'; import Link from 'next/link'; function PassLinkApp({ Component, pageProps }: AppProps) { return ( <div> <Head> <title>PassLink - make a URL with password</title> </Head> <header> ...
About: The opinions in my posts are personal and not necessarily shared by the company I work for. Sometimes I don't agree with myself either. PhD in Computer Science and Engineering. Hi all, Hope you like this Instructable. I have reused both hardware and ideas/code from this: https://www.instructables.com/id/Auto...
import React, { useCallback, useEffect, useState } from "react"; import { useDispatch, useSelector } from "react-redux"; import uniq from "lodash/uniq"; import { RootState } from "store/configureStore"; import { musicSelectors } from "store/features/entities/entitiesState"; import { Option, Select, OptionLabelWit...
/* * 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 to in writing, software * distribut...
package com.example.currentplacedetailsonmap.util; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; public class PlaceJSONParser { /** Receives a JSONObject and returns a list */ public List<HashMap<...
// UpdateNetwork: Calculate all network outputs func UpdateNetwork(net *Network) { for i := 0; i < len(net.hiddenResult); i++ { var x float64 for j, elt2 := range net.networkInput { x += net.hiddenWeights[j][i] * elt2 } net.hiddenResult[i] = sigmoide(x) } for i := 0; i < len(net.outputResult); i++ { var...
/** * Sends a message to the server. * <p/> * This method formats an agent/monitor message (String of SimSpark effector * messages) according to the network protocol and sends it to the server. * <p/> * The content of the agent message is not validated. * * @param msg Agent messa...
/** * \brief Check for arbitrary overviews. * * @see GDALRasterBand::HasArbitraryOverviews() */ int CPL_STDCALL GDALHasArbitraryOverviews( GDALRasterBandH hBand ) { VALIDATE_POINTER1( hBand, "GDALHasArbitraryOverviews", 0 ); GDALRasterBand *poBand = static_cast<GDALRasterBand*>(hBand); return poBand->Ha...
import * as moment from 'moment' import * as _ from 'lodash' import { Headers } from '@angular/http' import { Injectable } from '@angular/core' import { _HttpClient } from '@delon/theme/services/http/http.client' import { User } from '@core/user/user' import { UtilService } from '@core/util/util.service' import { HttpC...
Posterior reversible encephalopathy syndrome with Lilliputian hallucinations secondary to Takayasu's arteritis Posterior Reversible Encephalopathy Syndrome (PRES) is a rare complication of Takayasu's Arteritis. A 54-year-old, right-handed woman presented with Lilliputian visual hallucinations, postprandial abdominal p...
/** * This method send message with TCP/IP connection network.<br> * This method has availability of sending max 655,350,000 [Byte] at once<br> * call.<br> * * @param[in] socket file descriptor(>0) * @param[in] address target address for sending message * @param[in] data send message * @param[in] dataLength...
// Run calls listen on the provided listener and passes connections to the routed // listeners. func (m *ListenMux) Run(ctx context.Context) error { ctx, cancel := context.WithCancel(ctx) defer cancel() go m.monitorContext(ctx) go m.monitorBase() <-m.done m.mu.Lock() defer m.mu.Unlock() for _, lis := range m.ro...
#ifndef STAN_MATH_MPI_COVAR_ESTIMATOR_HPP #define STAN_MATH_MPI_COVAR_ESTIMATOR_HPP #ifdef STAN_LANG_MPI #include <stan/math/torsten/mpi/environment.hpp> #include <stan/math/prim/fun/welford_covar_estimator.hpp> #include <boost/accumulators/accumulators.hpp> #include <boost/accumulators/statistics/stats.hpp> #include...
def to_swan( self, filename, append=False, id="Created by wavespectra", ntime=None ): dset = self._check_and_stack_dims() ntime = min(ntime or dset.time.size, dset.time.size) is_time = attrs.TIMENAME in dset[attrs.SPECNAME].dims if not is_time: dset = dset.expand_dims({attrs....
s = raw_input() t = raw_input() ns, nt = s.count("1"), t.count("1") ns = (ns + 1)/2*2 if ns >= nt: print "YES" else: print "NO"
<filename>src/themes/styled.d.ts<gh_stars>0 import 'styled-components'; // Override DefaultTheme object of styled-components. declare module 'styled-components' { export interface DefaultTheme { name: string; background: string; contentBackground: string; fontColor: string; menuHover: string; }...
def depth_first_traverse(node: TreeNode, visitor: TreeNodeVisitor, indent_level=0): visitor.tree_depth = indent_level visitor.enter_node(node) if node.is_leaf(): return child = node.first_child while True: depth_first_traverse(child, visitor, indent_level + 1) child = child.n...