content
stringlengths
10
4.9M
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. import { SeverityLevel } from './Contracts/Generated/SeverityLevel' import { IPartC } from './IPartC'; export interface ITraceTelemetry extends IPartC { /** * @description A message string * @type {string} ...
#include "raw.h" #include <signal.h> #include <stdio.h> #include "util.h" volatile sig_atomic_t terminate; static void on_signal(int s) { terminate = 1; } static void dump(uint8_t *frame, size_t len, void *arg) { fprintf(stderr, "%s: receive %zu octets\n", (char *)arg, len); hexdump(stderr, frame, len); } int m...
<filename>ml_proj_init/config.py """ A module for defining the config parameters globally """ import os import string current_abs_path = os.path.split(os.path.realpath(__file__))[0] #print(current_abs_path) configs = {} configs["run_name_choices"] = ["c", "a", "A", "C"] configs["valid_proj_type"] = ["ml", "dl", "ML...
<reponame>ca0v/react-lab<filename>components/packets/common.ts declare var requirejs; import * as geom from "@ol/geom"; import * as extent from "@ol/extent"; import type { Polygon } from "@ol/geom"; type Continents = any; const ol = { geom, extent, }; import { BingImagerySet, OtherImagerySet } from "../openlaye...
Elon Musk is being targeted by the conservative political action committee, Citizens for the Republic. The group's so-called Sunlight Project is behind an incendiary lobbying campaign and website called, "Stop Elon Musk from Failing Again," with a mission of divesting the Tesla/SpaceX/SolarCity boss from federal clean ...
package group // Values clause. type Values struct { elementReindenter } func NewValues(element []Reindenter, opts ...Option) *Values { return &Values{ elementReindenter: newElementReindenter(element, opts...), } }
/** * Method for building trie in-memory structure, and writing it out * using given output stream. * * @param out Output stream to write trie structure to */ @Override public void buildAndWrite(OutputStream out, boolean writeHeader) throws IOException { TrieNode<T> roo...
"""Implements the FilePositionMarker class. This class is a construct to keep track of positions within a file. """ from collections import namedtuple protoFilePositionMarker = namedtuple('FilePositionMarker', ['statement_index', 'line_no', 'line_pos', 'char_pos']) class FilePositionMarker(protoFilePositionMarker)...
/** * Tells if the option requires more arguments to be valid. * * @return false if the option doesn't require more arguments * @since 1.3 */ boolean requiresArg() { if (optionalArg) { return false; } if (argCount == UNLIMITED_VALUES) { return val...
/** * This class was generated by Ali-Generator * @author bang */ public class ActionExample { /** * * @mbg.generated */ protected String orderByClause; /** * * @mbg.generated */ @Deprecated protected boolean distinct; /** * * @mbg.generated */ ...
<reponame>komura-c/universal<gh_stars>1000+ /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ // eslint-disable-next-line import/no-unassigned-import import 'zone.js';...
/* main executable function */ func main() { fmt.Println("\n\n\033[31m~~~~~Dragon\033[32mFruit~~~~~\033[0m") cnf := parseFlags() fmt.Print("\033[1mVersion ", VERSION, " \033[0m\n\n\n") if cnf.version { return } d := backend_couchdb.Db_backend_couch{} d.Connect("http://" + cnf.config.DbServer + ":" + cnf.config...
 #include "si_base/gpu/dx12/dx12_command_queue.h" #include "si_base/gpu/gfx_fence.h" #include "si_base/gpu/gfx_command_list.h" #include "si_base/gpu/gfx_command_queue.h" namespace SI { GfxCommandQueue::GfxCommandQueue(BaseCommandQueue* base) : m_base(base) { } GfxCommandQueue::~GfxCommandQueue() { } void ...
<gh_stars>1-10 package com.example.random.service.business; import java.security.SecureRandom; import com.example.random.service.QualityLevel; import com.example.random.service.RandomNumberGenerator; import com.example.random.service.ServiceQuality; @ServiceQuality(QualityLevel.SECURE) public class SecureRandomNumbe...
#include<bits/stdc++.h> #define mid ((l+r)>>1) typedef long long ll; using namespace std; set<int>edge[100010]; double ans[100010]; int children[100010]; void dfs1(int st) { for(set<int>::iterator it=edge[st].begin();it!=edge[st].end();it++) { dfs1(*it); children[st]+=children[*it]+1...
def smooth_lightcone_tophat(lightcone, redshifts, dz, verbose=True): output_lightcone = np.zeros(lightcone.shape) for i in tqdm(range(output_lightcone.shape[2]), disable=False if verbose else True): z_out_low = redshifts[i]-dz[i]/2 z_out_high = redshifts[i]+dz[i]/2 ...
// NewClient returns a new staketab service client func NewClient(httpClient *http.Client, endpoint string) *Client { return &Client{ endpoint: endpoint, client: httpClient, } }
Every pompous television pundit and untrustworthy intelligence agency wants you, the vulnerable news consumer, to believe that Putin hacked the DNC from the Kremlin’s basement, directly resulting in Hillary Clinton’s defeat — even though it was clearly “her turn”. And we must admit — although it pains us to do so — th...
<gh_stars>10-100 package locals_in; public class A_test567 { public void foo() { String args[] = null; /*[*/ args = new String[/*]*/ 4]; args[0] = args[1]; } }
<gh_stars>1-10 package com.huan.common.util; import cn.hutool.core.date.DateUtil; import io.jsonwebtoken.Jwts; import io.jsonwebtoken.SignatureAlgorithm; import lombok.extern.slf4j.Slf4j; import java.io.UnsupportedEncodingException; import java.nio.charset.StandardCharsets; /** * JWT工具 * * @author <a href="mailt...
LifeWay Christian book stores still carry Dinesh D’Souza’s books. For now. The journalistic scoop belongs to Warren Cole Smith of the very conservative World magazine, so we’ll quote from his report first: About 2,000 people gathered on Sept. 28 at First Baptist North in Spartanburg, S.C., to hear high-profile Christ...
<filename>tests/CompileTests/ElsaTestCases/t0277.cc // t0277.cc // another dependent name problem void bar(); void bar(int *); template <class T> void foo(T t) { typedef T *Ptr; // not a member of a template Ptr p; // will be regarded as non-dependent bar(p); // overload resolution...
def encode_null(message: str, word_list: list) -> list: message = ''.join(format_plaintext(message)) cipherlist = [] for letter in message: for word in word_list: if all([len(word) > 2, word not in cipherlist]): if len(cipherlist) % 2 == 0 and \ wo...
import logging from sys import stdout logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) handler = logging.StreamHandler(stdout) handler.setFormatter(logging.Formatter( fmt='[%(asctime)s][%(levelname)s]%(message)s', datefmt='%Y-%m-%d %H:%M:%S' )) logger.addHandler(handler)
<reponame>viniciusgcardozo/rodrigues-api<gh_stars>0 import event from './event' const routes = (app: any) => { event(app) } export default routes
import React from "react"; import styled from "styled-components"; const Container = styled.div` -webkit-app-region: no-drag; `; type Props = { onChange?: () => void; defaultChecked?: boolean; checked?: boolean; }; const Toggle: React.FC<Props> = (props) => { const { onChange, defaultChecked,...
def is_optional(self): return self.is_in_function or self.is_in_conditional or self.is_in_tryexcept
/** * Lists all files at the specified path. Will return a {@link Map} that contains a paginated list * of secure file summaries. If Cerberus returns an unexpected response code, a {@link CerberusServerException} * will be thrown with the code and error details. If an unexpected I/O error is * enc...
<reponame>developerfromjokela/abitikku<filename>webpack.dev.config.ts import configs from './webpack.config'; import { WebpackOptionsNormalized } from 'webpack'; import * as fs from 'fs'; const [guiConfig, etcherConfig, childWriterConfig] = configs as unknown as WebpackOptionsNormalized[]; configs.forEach((config) =...
<filename>src/main.rs<gh_stars>0 extern crate gl; extern crate glutin; extern crate png; use gl::types::*; use glutin::GlContext; use std::ffi::CString; use std::fs::File; use std::process::Command; use std::str; use std::thread; use std::time::{Duration, Instant}; use std::{mem, ptr}; macro_rules! check_error { ...
<gh_stars>1-10 import pygame, graphics, palette segment_width = 8 class Wire(): def __init__(self): segment = Segment() self.segments = [segment] def set_start(self, (x, y)): old_stop = self.segments[-1].rect.topright self.segments[0]....
After months of non-denying denials, Ford CEO Alan Mulally has finally said he isn't going to take the open CEO job at Microsoft. In a January 7 interview with the Associated Press, Mulally said he is not planning to leave Ford for Microsoft and that he will stay at Ford at least through 2014. The Associated Press Twi...
/** * skip whitespace and scan next token */ public Token scan() { while (!eot && currentChar == ' ') skipIt(); currentSpelling = new StringBuilder(); TokenKind kind = scanToken(); String spelling = currentSpelling.toString(); return new Token(kind, spelling); }
The improved ammoxidation catalysts based on mixed metal oxides 1. A catalyst composition comprising a complex metal oxide, wherein the ratio of the elements in the composition represented by the following formula: MoBiFeADEFGCeO, where A represents at least one element selected from the group consisting of sodium, po...
#include <iostream> #include <bits/stdc++.h> #include <vector> #include <algorithm> using namespace std; #define REP(i,n) FOR(i,0,n) #define FOR(i,a,b) for(long long i=(a),i##Len_=(b);i<i##Len_;i++) typedef long long ll; const ll INF = 1000000007; //くみあわせ ll P [10]={0 ,0 ,0 ,0 ,0 ,0 ,1 ,1 ,1 ,2}; ll Q [10]={1 ,1 ,1 ...
/* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "NR-InterNodeDefinitions" * found in "../../../rrc_15.5.1_asn.asn1" * `asn1c -D ./rrc_out_hlal -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-gen-example` */ #include "ConfigRestrictModReqSCG.h" #include "BandCombi...
#include <bits/stdc++.h> using namespace std; int main() { cin.sync_with_stdio(0); cin.tie(0); int n; int pointer; cin >> n; pointer = (n - 1) / 2; int xArray[n]; int yArray[n]; int x, y; for (int i = 0; i < n; ++i) { cin >> x >> y; xArray[i] = x; yArray[i] = y; } sort(xArra...
Excitation of an Electromagnetic Field in a Large Nerve Fiber by an Array of Electric-Dipole Filaments Excitation of an electromagnetic field with the desired spatial structure in a relatively large nerve fiber consisting of tightly packaged axons by an array of filamentary electric-dipole sources is studied. The proc...
Production of hydrogen by ethanol steam reforming over nickel–metal oxide catalysts prepared via urea–nitrate combustion method A series of Ni/MgO catalysts have been prepared by a urea–nitrate combustion method, studied for the ethanol steam reforming, and compared with Ni/ZnO and Ni/Al2O3. The results show that Ni/M...
import pytest from .data_providers import valid_customers @pytest.mark.parametrize("customer", valid_customers, ids=[repr(x) for x in valid_customers]) def test_can_register_customer(app, customer): old_ids = app.get_customer_ids() app.register_new_customer(customer) new_ids = app.get_customer_ids() ...
Spatial distancing and social closeness: The work of creative professionals during the pandemic As a complete recovery from the COVID-19 pandemic crisis does not seem possible in the near future, the survival of many creative professions is under threat in Russia and other countries. Strict anti-pandemic measures were...
// // FCObjectCaseTableViewCell.h // FCObjectCase // // Created by 石富才 on 2020/12/19. // #import <FCBaseKit/FCBaseKit.h> @interface FCObjectCaseTableViewCell : FCTableViewCell @end
/** * set_timing_db() - enable/disable Timing DB register * @ctrl: Pointer to controller host hardware. * @enable: Enable/Disable flag. * * Enable or Disabe the Timing DB register. */ void dsi_ctrl_hw_cmn_set_timing_db(struct dsi_ctrl_hw *ctrl, bool enable) { if (enable) DSI_W32(ctrl, DSI_DS...
<filename>org.xtext.grammars/org.xtext.component/componentParameter/org.xtext.component.componentParameter/src-gen/org/xtext/component/componentParameter/services/ComponentParameterGrammarAccess.java //================================================================ // // Copyright (C) 2017 <NAME>, <NAME>, <NAME> // /...
<reponame>maksymko/cortex-demos<filename>tests/nrf52_timer_test.cpp<gh_stars>10-100 /******************************************************************************* Copyright 2018 Google LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with ...
def validate_image_names(self, data, udata): for image in data.images(): filename = self.image_path(image, udata) if ' ' in filename: logger.error( 'Image name "{}" contains spaces. ' 'This is not supported by the NVM format. ' ...
// Will be shot down by a plane static void DisasterTick_4(Vehicle v) { GetNewVehiclePosResult gp = new GetNewVehiclePosResult(); int z; Vehicle w; Town t; TileIndex tile; TileIndex tile_org; v.tick_counter++; if (v.getCurrent_order().station == 1) { int x = v.dest_tile.TileX() * 16 + 8; int y = ...
/**************************************************************************** * VCGLib o o * * Visual and Computer Graphics Library o o * * _ O _ * * Copyri...
{-# LANGUAGE RankNTypes , ScopedTypeVariables #-} module Linear.Grammar ( (.+.) , (.*.) , (.==.) , (.<=.) , (.>=.) , module Linear.Grammar.Types.Inequalities )where import Linear.Grammar.Types.Syntax (LinAst (EAdd, ECoeff)) import Linear.Grammar.Types.Expressions (makeLinExpr) import qualified L...
Effect of dental silane primer activation time on resin–ceramic bonding The purpose of this study was to investigate the effect of activation time for the hydrolysis of dental silane primers on resin bonding to ceramic. Two commercial two-part silane primers (Bis-Silane, BS; Tokuso Ceramic Primer, TCP) were tested. Le...
// // Whenever we display a modal dialog, we need to let // our embeddings (the WebBrowser OC) know to disable // any modeless dialogs the embedding is displaying. // VOID EnableEmbeddingModelessDlgs(BOOL fEnable) { LPOLEINPLACEACTIVEOBJECT pIPAO = GetIPAObject(); if (pIPAO) pIPAO-...
/************************************************************************/ /* msIO_stripStdoutBufferContentType() */ /* */ /* Strip off content-type header from buffer, and return to */ /* caller. Ret...
// NewModuleImport returns a `*ModuleImport` for the given alias and import path. // The import path is the import path as used in a playbook and is not a valid Go // import path, as it has the module appended as a suffix. func NewModuleImport(alias, importPath string) (*ModuleImport, error) { qi := qualifiedIdentifie...
// naive growth - just adds a full row or column on a side public synchronized Set<Region> grow(final Regions regions, Direction direction) { Set<Region> growthRegions = new HashSet<>(); int numberOfRegions = calcSideRegions(regions, direction); switch (direction) { c...
def reject(fn: callable, l: iter) -> iter: return func.enum.filter(lambda x: not(fn(x)), l)
/** * Creates a request for location updates, using the location request and locationCallBack objects. * The location call back checks whether or not the user has changed college locations every 500-750ms, and then reloads the TravelActivity page. * To execute the request for location updates, we use the...
// tests to see if hypocenter can successfully // read json output TEST(HypoTest, ReadsJSON) { rapidjson::Document hypodocument; detectionformats::hypocenter hypoobject( detectionformats::FromJSONString(std::string(HYPOSTRING), hypodocument)); checkdata(hypoobject, ""); }
<gh_stars>0 package com.yelelen.sfish.contract; /** * Created by yelelen on 17-9-12. */ public interface MatrixImageViewListener { interface MatrixImageViewCallback { void onClick(); void onLongClick(int position); } }
def generate_website(): util.buildhelpers.create_content_pages_dir() if not os.path.isdir(site_config.resources_markdown_path): os.mkdir(site_config.resources_markdown_path) util.buildhelpers.move_templates(website_build_config.module_name, website_build_config.website_build_templates_path) gene...
/** * Happy-path smoke test to validate that OpenBanking environment with Consent UI is in sane state. */ @EnabledIfEnvironmentVariable(named = ENABLE_SMOKE_TESTS, matches = TRUE_BOOL) @ExtendWith({SeleniumExtension.class, WebDriverErrorReportAspectAndWatcher.class}) @SpringBootTest(classes = {JGivenConfig.class, Smo...
<gh_stars>0 /* * Copyright (C) 2009 JavaRosa * * 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 a...
def Ssrootsinf(theta1inf, theta2inf, q, chi1, chi2): S1, S2 = spinmags(q, chi1, chi2) coscos = np.cos(theta1inf)*np.cos(theta2inf) sinsin = np.sin(theta1inf)*np.sin(theta2inf) Sminussinf = S1**2 + S2**2 + 2*S1*S2*(coscos - sinsin) Splussinf = S1**2 + S2**2 + 2*S1*S2*(coscos + sinsin) S3sinf = -n...
/** * mei_cl_complete - processes completed operation for a client * * @cl: private data of the file object. * @cb: callback block. */ void mei_cl_complete(struct mei_cl *cl, struct mei_cl_cb *cb) { if (cb->fop_type == MEI_FOP_WRITE) { mei_io_cb_free(cb); cb = NULL; cl->writing_state = MEI_WRITE_COMPLETE; ...
<gh_stars>0 // Allow zero pointers for lazy_static. Otherwise clippy will complain. #![allow(unknown_lints)] #[macro_use] extern crate clap; #[macro_use] extern crate error_chain; extern crate liquid; #[cfg(feature = "serde_json")] extern crate serde_json; #[cfg(feature = "serde_yaml")] extern crate serde_yaml; use ...
def build_map(tensor, finished_nodes, nodes_in_progress, layer, node_index, tensor_index): node = layer._inbound_nodes[node_index] if node in nodes_in_progress: raise ValueError('The tensor ' + str(tensor) + ' at layer "' + ...
<filename>torigemubot/wordsdb.go<gh_stars>0 package main import ( "database/sql" "fmt" "regexp" "strings" ) const wordsTablename = "words" const customwordsTablename = "customwords" const kanjipointsTablename = "kanjipoints" const addCustomWordSavePoint = "AddCustomWord" const removeCustomWordSavePoint = "RemoveC...
Scores of North American cities are expected to bid for Amazon’s second corporate headquarters, or HQ2, but only two — Calgary and Denver — are in a real race to win it, based on the giant Internet retailer’s requirements, said Adam Waterous, a member of the executive advisory committee of Calgary’s bid. “Here’s the p...
import sys #97 if __name__ == '__main__': s = raw_input() ch = int(raw_input()) Wi = map(int,list(raw_input().split())) Wi_max = max(Wi) s_len = len(s) ans = 0 for i in xrange(s_len): ans += Wi[ord(s[i])-97]*(i+1) for i in xrange(ch): ans += Wi_max*(s_len+i+1) print ans
/** * * 2. Producer thread which can publish messages to subscribers through the EventBus * */ class Producer implements Runnable{ private ThreadSafePub pub; private String tid; public Producer(ThreadSafePub p, String tid){ this.pub = p; this.tid = tid; } @Override public void run() { try{ for (in...
<reponame>Yulyalu/yes-cart /* * Copyright 2009 Inspire-Software.com * * 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 * *...
// What happens if malloc returns null? #include "testharness.h" #include <malloc.h> #include <sys/resource.h> #include <unistd.h> struct list { struct list* next; int data[1024*10]; }; int main() { struct list* p = 0; // This test tries to run out of memory. To avoid annoying other users, // put a 10M...
The anti-apoptotic and anti-oxidant effect of eriodictyol on UV-induced apoptosis in keratinocytes. Recently, considerable scientific and therapeutic interest has focused on the structure and functions of the flavonoids. In a previous study, we suggested that hydroxyl (OH) substitutions on specific carbons in the skel...
def external_recognition(): logger.warning('Recognizing intent using wit.ai') audio = record_audio()
Publishing is a competitive business. Can you recall a writing conference that did not include overcrowded sessions on how to pitch an editor? Neither can I.​ As Stephen King once said... "Talent is cheaper than table salt. What separates the talented individual from the successful one is a lot of hard work." While c...
// Mark the actual stack data. // This is used both for `StackData` and `StackDataLarge`. uintptr_t mark_stack_data(jl_ptls_t ptls, jl_value_t *p) { dynstack_t *stk = (dynstack_t *)p; if (gc_counter_full & 1) { jl_gc_mark_queue_objarray(ptls, p, stk->data, stk->size); return 0; } else { ...
//go:generate ../../../tools/readme_config_includer/generator package disque import ( "bufio" _ "embed" "errors" "fmt" "net" "net/url" "strconv" "strings" "sync" "time" "github.com/influxdata/telegraf" "github.com/influxdata/telegraf/plugins/inputs" ) //go:embed sample.conf var sampleConfig string type ...
package validator import ( "fmt" "reflect" "github.com/odoku/validator/ast" "github.com/odoku/validator/lexer" "github.com/odoku/validator/parser" ) type ( Rules map[string]Functions ) func createRulesFromStruct(s interface{}) (Rules, error) { v := getSubstance(s) if v.Kind() != reflect.Struct { return ni...
package io.dotanuki.fixtures; public class Starter { public static void main(String[] args) throws InterruptedException { Thread.sleep(Long.valueOf(args[0])); System.out.println("Done"); } }
//------------------------------------------------------------------------------ // Application Run Function contains the Main Loop void WinPCPlatformApplication::Run(IGameLaunchOption *gameLaunchOption) { std::shared_ptr<IGame> game = CreateGame(this, gameLaunchOption); game->Prepare(); game->GraphicPre...
#pragma once #include "MacroSet.h" #include "Interface3D.h" #include "EnumSet.h" class MouseRender : public Interface3D { public: MouseRender(); ~MouseRender(); public: void Init(); virtual void Update(); virtual void Render() const; void SetGameCursorPos( int PosX, int PosY ); private: bool m_I...
<reponame>renaudll/omtk<gh_stars>10-100 import pymel.core as pymel from maya import OpenMaya from maya import cmds from omtk.libs import libRigging def create_shape_circle(size=1.0, normal=(1, 0, 0), *args, **kwargs): transform, make = pymel.circle(*args, **kwargs) make.radius.set(size) make.normal.set(nor...
<gh_stars>100-1000 /** @file Time Zone processing, declarations and macros. Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR> This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License that accompanies this distribution. ...
/* Called after each test method. */ void testTearDown() { MQTTStatus_t mqttStatus; TransportSocketStatus_t transportStatus; mqttStatus = MQTT_Disconnect( &context ); transportStatus = SecureSocketsTransport_Disconnect( &networkContext ); TEST_ASSERT_EQUAL( MQTTSuccess, mqttStatus ); TEST_ASSERT...
<reponame>GuyLivni/da-design-system<gh_stars>0 import * as React from 'react'; import { render } from '../../util/testUtils'; import { Button } from './Button'; describe('Button', () => { it('should render the button', () => { const text = 'Heyo'; const { getByRole } = render(<Button>{text}</Button>); ...
After David’s post, I got a few mails asking whether this change has anything to do with the project I started last summer, so I decided to provide a small update. My original plan was to ship a test version of Blade a few months after the project announcement, but that did not happen. The main reason was that there w...
// authenticate is used to handle connection authentication func (sf *Server) authenticate(conn io.Writer, bufConn io.Reader, userAddr string, methods []byte) (*AuthContext, error) { for _, auth := range sf.authMethods { for _, method := range methods { if auth.GetCode() == method { return auth.Authenticate(...
Vacuums – also handy underwater (Image: Brett Seymour/ARGO/EUA) GEMMA SMITH is grinning like a child on Christmas morning. “It could be anything!” she says as our boat speeds past the rugged grey cliffs of Antikythera, a tiny Greek island midway between the Peloponnese and Crete. We are here to explore one of the worl...
<reponame>cojoj/Codewars<gh_stars>0 module NameCombiner where combineNames :: String -> String -> String combineNames x y = x ++ " " ++ y
# Description: Checks that all EC2 instances are launched as Spot Instances for maximum cost savings # # Trigger Type: Change Triggered # Scope of Changes: EC2:Instance # Required Parameter: desiredLifecycle # Required Value: spot # # See https://aws.amazon.com/ec2/spot/ to learn more about EC2 Spot Instances import ...
// MinPoint returns the smallest voxel coordinate of the given 3d chunk. func (c ChunkPoint3d) MinPoint(size Point) Point { return Point3d{ c[0] * size.Value(0), c[1] * size.Value(1), c[2] * size.Value(2), } }
// NEq returns true iff all given arguments are different. func NEq(args ...jsonutil.JSONToken) (jsonutil.JSONBool, error) { if len(args) < 2 { return true, nil } hashSet := stringset.NewSize(len(args)) for _, a := range args { h, err := Hash(a) if err != nil { return false, err } if !hashSet.Add(strin...
<gh_stars>1-10 package namespace import ( "context" "fmt" "time" "github.com/appuio/seiso/pkg/util" "github.com/karrick/tparse/v2" log "github.com/sirupsen/logrus" corev1 "k8s.io/api/core/v1" apierrors "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pk...
<filename>examples/reference/swap.cpp #include <iostream> using namespace std; void swap(int& a, int& b) { int temp = a; cout << "Inside the swap() function:\n" << "address of a: " << &a << "\taddress of b: " << &b << "\naddress of temp: " << &temp << endl; a = b; b = temp; }...
// Generate methods on the builder for setting a value of each of the struct // fields. // // impl CommandBuilder { // fn executable(&mut self, executable: String) -> &mut Self { // self.executable = Some(executable); // self // } // // ... // } use robma_builder...
import { ApiProperty } from '@nestjs/swagger' import { Column, Entity } from 'typeorm' import { BaseEntity } from '../../common/models/base.entity' import { Exclude } from 'class-transformer' @Entity('key_value') export class KeyValueEntity extends BaseEntity { @Exclude() @Column({ nullable: false...
package com.mingsoft.people.entity; import com.mingsoft.base.constant.e.BaseEnum; import com.mingsoft.base.entity.BaseEntity; /** * * 用户收货地址实体类 * @author yangxy * @version * 版本号:【100-000-000】 * 创建日期:2015年8月24日 * 历史修订: */ public class PeopleAddressEntity extends BaseEntity{ /** * 用户收货地址...
Umavathi Effect of Time-Periodic Boundary Temperature on the Onset of Nanofluid Convection in a Layer of a Saturated Porous Medium T The linear stability of nanofluid convection in a horizontal porous layer is examined theoretically when the walls of the porous layer are subjected to time-periodic temperature modulati...
<gh_stars>1-10 package main import ( "context" "log" "math/rand" "strconv" "time" "github.com/go-redis/redis/v8" ) var profAttr = [10]string{"professor_name", "quality_score", "difficulty_score", "sentiment_score_discrete", "sentiment_score_continuous", "keywords", "would_take_again", "pid", "school", "departm...
package pdf import ( "image/color" "github.com/alecthomas/chroma" "github.com/alecthomas/chroma/styles" ) // Style is the struct to capture the styling features for text // Size and Spacing are specified in points. // The sum of Size and Spacing is used as line height value // in the gofpdf API type Style struct ...
export { XmLabeledViewContainerModule, XmLabeledViewContainerComponent, XmLabeledContainerOptions, } from './xm-labeled-view-container.component';