content stringlengths 10 4.9M |
|---|
/**
* Loads the FONTS into cache for quick lookup. This also tries to find all fonts automatically via their font file
*/
public static void init() {
if (!initDone) {
String[] fonts = GenericsUtil.getFields();
for (String fontsClassPath : fonts) {
try {
... |
/*
* File: typedefs.h
* Author: <NAME>
*
* Description: Contains the required typedefs.
*/
#ifndef _TYPEDEFS
#define _TYPEDEFS
#include <stdio.h>
#include <math.h>
/* ----- CONSTANTS --------------------------------------------------------- */
#define Pi 3.141592653589793239
#define radiansPer... |
main = do
n <- readLn::IO Int
interview <- getLine
let process [] = []
process ('o':'g':'o':str) = '*':process' str
process (c:str) = c:process str
process' [] = []
process' ('g':'o':str) = process' str
process' str = process str
putStr . concat . map trans $ process interview
where
... |
<reponame>gpeter12/amuse
#include "amuse/SoundMacroState.hpp"
#include <cmath>
#include <cstring>
#include "amuse/AudioGroup.hpp"
#include "amuse/AudioGroupPool.hpp"
#include "amuse/Common.hpp"
#include "amuse/Engine.hpp"
#include "amuse/Voice.hpp"
using namespace std::literals;
/* C++17 will error out if an offset... |
// AAAA returns AAAA records from Backend or an error.
func AAAA(b ServiceBackend, zone string, state request.Request, previousRecords []dns.RR, opt Options) (records []dns.RR, err error) {
services, err := checkForApex(b, zone, state, opt)
if err != nil {
return nil, err
}
dup := make(map[string]bool)
for _, se... |
import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int K = sc.nextInt();
long[] V = new long[N];
for (int i=0; i<N; i++... |
// Range returns all Pythagorean triplets with sides in a given range min-max
func Range(min int, max int) (result []Triplet) {
for i := min; i < max; i++ {
for j := max; i > min; i-- {
sum := math.Sqrt(float64(i * i + j * j))
if sum == float64(int64(sum)) {
result = append(result, Triplet{i, j, int(sum)})... |
// Start runs a golang http server with the given routes.
// Returns
// * a reference to the HTTP server (so that we can gracefully shut it down)
// a channel that will contain the error result of the ListenAndServe call
func (s *Server) Start() (*http.Server, chan error) {
s.registry.MustRegister(s.processDuration)
... |
def handler_imgur_image(self, url, info, channel):
if not self.registryValue("imgur.enabled", channel=channel):
return self.handler_default(url, channel)
client_id = self.registryValue("imgur.clientID")
if not client_id:
log.error("SpiffyTitles: imgur client ID not set")
... |
Diagnosing von Willebrand disease: a short history of laboratory milestones and innovations, plus current status, challenges, and solutions.
von Willebrand disease (VWD) is a disorder characterized by deficiency of, or defects in, von Willebrand factor (VWF). VWD was originally identified by Erik Adolf von Willebrand,... |
<gh_stars>1-10
#ifndef SRC_PAYLOAD_PROCESSOR_UPLINKS_QUERY_EXCEPTIONS_UPLINK_H_
#define SRC_PAYLOAD_PROCESSOR_UPLINKS_QUERY_EXCEPTIONS_UPLINK_H_
#include <src/payload_processor/uplinks/uplink.h>
class QueryExceptionsUplink : public Uplink {
public:
explicit QueryExceptionsUplink(byte* payload);
bool Execut... |
export * from './lib/ng2-throttle-click.module';
|
The Evacuation of the Noncombatant Population in the 1948 War: Three Kibbutzim as a Case Study
During the 1948 Israeli War of Independence thousands of Jewish civilians, mainly women and children, became refugees when the fighting came dangerously near to their homes in the towns and agricultural settlements (moshavot... |
/**
* __lpfc_sli_issue_iocb - Wrapper func of lockless version for issuing iocb
*
* This routine wraps the actual lockless version for issusing IOCB function
* pointer from the lpfc_hba struct.
*
* Return codes:
* IOCB_ERROR - Error
* IOCB_SUCCESS - Success
* IOCB_BUSY - Busy
**/
int
__lpfc_sli_issue_iocb(str... |
// Simple Class to iterate over the modules on the PEB to add extra modularity
class ModuleIterator {
private:
const WinDecls::LDR_DATA_TABLE_ENTRY_T* modulePtr;
const WinDecls::PEB_LDR_DATA_T* Ldr;
const char* base;
public:
ModuleIterator(const WinDecls::LDR_DATA_TABLE_ENTRY_T* _modptr, const WinDecls::PEB_LDR_DAT... |
<filename>Projeto Estoque/Projeto LabED/controle.h
#ifndef CONTROLE_H_INCLUDED
#define CONTROLE_H_INCLUDED
void apresentacao(char* mensagem);
void msgm_desp(char* mensagem);
void limpa_tela(void);
void limpa_buffer(void);
void apresenta_menu(int n_itens, int menor_opcao, ...);
int le_opcao(int menor_valor, int maior_v... |
#include <iostream>
using namespace std;
int main()
{
string nombre;
short int edad;
short int altura;
float peso;
cout << "Por favor, introduce el nombre: ";
cin >> nombre;
cout << "Por favor, introduce la edad de " << nombre << ": ";
cin >> edad;
if(edad <= 0){
cout << "La... |
<gh_stars>1000+
#pragma once
#include <mbgl/map/map.hpp>
#include <mbgl/map/map_impl.hpp>
namespace mbgl {
class FileSource;
// Non-public version of mbgl::Map that accepts a file source as parameter.
class MapAdapter : public Map {
public:
explicit MapAdapter(RendererFrontend& frontend,
... |
<filename>src/App/app.tsx
import React, { Component } from "react";
import "./app.scss";
import { Routes } from "../routes";
import Navigation from "../Components/Navigation/navigation";
interface AppState {
showMenu: boolean;
}
export class App extends Component<{}, AppState> {
readonly state = {
showMenu: ... |
#ifndef XT_PULSE_SHARED_HPP
#define XT_PULSE_SHARED_HPP
#if XT_ENABLE_PULSE
#include <xt/private/Device.hpp>
#include <xt/private/Stream.hpp>
#include <xt/private/Service.hpp>
#include <xt/blocking/Device.hpp>
#include <xt/blocking/Stream.hpp>
#include <xt/private/DeviceList.hpp>
#include <xt/backend/pulse/Pri... |
In this image provided by IntelCenter, Sgt. Bowe Bergdahl is seen while in captivity. (AFP/Getty Images)
Bowe Bergdahl, the Army sergeant now facing charges of desertion and misbehaving before the enemy, has remained outside the public spotlight since he was recovered in a prisoner swap and returned to U.S. custody la... |
import useGqlHandler from "./useGqlHandler";
import { assignMenuLifecycleEvents, tracker } from "./mocks/lifecycleEvents";
const id = "menu-lifecycle-events";
const slug = "menu-lifecycle-events";
const title = "Menu Lifecycle Events";
const description = "Menu Description";
const items: any[] = [];
describe("Menu L... |
Pocket Certificates using Double Encryption: A Survey
: Documents are items that convey information, can be used to certify someone, or can constitute a legal report. Theft of such crucial documents/certificates can obstruct or hinder an individual's or organization's ability to execute their work effectively, as well... |
{-# LANGUAGE OverloadedStrings #-}
module CmdExport where
import Turtle
import Turtle.Bytes as TB
import Prelude hiding (FilePath)
import Command
import Repository
-- | Speciffic command options.
data CmdOptions = CmdOptions
{ cmdRepo :: Repository
, cmdBlob... |
package aQute.bnd.osgi;
import java.io.*;
public abstract class AbstractResource implements Resource {
String extra;
byte[] calculated;
long lastModified;
protected AbstractResource(long modified) {
lastModified = modified;
}
public String getExtra() {
return extra;
}
public long lastModified() {
ret... |
/**
* Launches a file using the appropriate method
*/
private void launchFile(String file, String urlOrQuery) {
if (file == null) {
displayNoFileSelectedTooltip();
return;
}
RunTargetType appType = RunButtonTargetPopup.RunTargetType.parseTargetType(file);
launchPreview(file, StringUtil... |
<reponame>NDNLink/NDNProtocol
// Copyright 2020 Parity Technologies (UK) Ltd.
// This file is part of Polkadot.
// Polkadot is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, o... |
<reponame>dheraclio/dependometer
package com.valtech.source.dependometer.app.controller.compilationunit;
public interface HandleCompilationUnitTangleCollectedEventIf
{
public void handleEvent(
CompilationUnitTangleCollectedEvent event);
}
|
def is_adversarial(self, predictions, annotation):
if self._model_name.startswith("pytorchhub_"):
if len(predictions.pred[0]) == 0:
return True
if predictions.pred[0][0, 5] != annotation:
return True
return False
elif self._model_name.s... |
//String return string to li tag
func (li ListItem) String() string {
ret := "<li" + li.Attrs() + ">"
if li.Text != "" {
if li.HTMLEncode {
ret += html.EscapeString(li.Text)
} else {
ret += li.Text
}
}
for _, el := range li.Body {
ret += el.String()
}
ret += "</li>"
return ret
} |
#include <bits/stdc++.h>
using namespace std;
#define LMX (LLONG_MAX >> 1)
typedef long long int i64;
typedef vector<int> vii;
typedef vector<i64> vll;
typedef vector<string> vss;
template<typename T> void read(vector<T> &v) { for(auto &a: v) cin >> a; }
int main() {
int m, n, a = 0;
cin >> m >> n;
vii v(m), u(n... |
/**
* The MetricFetcher can be used to fetch metrics from the JobManager and all registered TaskManagers.
*
* <p>Metrics will only be fetched when {@link MetricFetcher#update()} is called, provided that a sufficient time since
* the last call has passed.
*/
public class MetricFetcher {
private static final Logger... |
import { Box, Heading, Link, Text } from '@sajari/react-components';
import { getStylesObject } from '@sajari/react-sdk-utils';
import { useSearchUIContext } from '../../../ContextProvider';
import { useBannerStyle } from './styles';
import { BannerItemProps } from './types';
const BannerItem = ({ banner, numberOfCol... |
def add_node_loopback(self, nodes, ospf_area=None):
pass |
def sample_obj_array(arr):
samples = [sample(arr_i) for arr_i in arr]
return samples |
def subscribe(self, observer):
if hasattr(observer, data_received) and observer not in self.observers:
self.observers.append(observer)
else:
raise SubscriptionError() |
<filename>agile-itsm-web/agile-itsm-web-portal/src/main/java/br/com/centralit/citcorpore/bean/CausaIncidenteDTO.java
package br.com.centralit.citcorpore.bean;
import br.com.citframework.dto.IDto;
public class CausaIncidenteDTO implements IDto {
private Integer idCausaIncidente;
private Integer idCausaIncidentePai;
... |
inp = input()
temp = inp.split()
n = int(temp[0])
m = int(temp[1])
a = int(temp[2])
b = int(temp[3])
if n%m == 0:
print(0)
else:
num_to_remove = n%m
num_to_add = m - n%m
cost_to_remove = b*num_to_remove
cost_to_add = a*num_to_add
print(min(cost_to_remove,cost_to_add))
|
def _get_all_info_states_data(state: pyspiel.State, info_states: dict,
state_data: dict,
include_terminal_states) -> None:
r = -1
print(f"Len: {len(state_data)}", end='\r')
if state.is_terminal():
if include_terminal_states:
r =... |
/**
* Note this command won't remove the typeToBeReplaced from its container in case it's being iterated over
*
* @param typeToBeReplaced
* @param newType
* @param library
*/
public void swapType(ImportType typeToBeReplaced, Type newType, GeppettoLibrary library)
{
Command replaceCommand = ReplaceComman... |
/**
* method to create dialog object
* @param title title of dialog
* @param data items of spinner
* @param selected selected items position
* @return the dialog
*/
public static MultipleDialog newInstance(String title, String[] data, List<Integer> selected) {
MultipleDialog instan... |
def fetch_jarvis(key="jarvis", **kwargs):
jarvis_files = [f"jarvis{i}.csv.bz2" for i in range(11)]
dataset = _from_cache(jarvis_files, key, **kwargs)
dataset = dataset.drop(dataset.columns[-1], axis=1)
dataset.columns = ["Formula"] + JarvisCFID().feature_labels()
return dataset |
<gh_stars>1000+
export default function Logo(props: any) {
return (
<img
// Grab dynamically from merchant's predefined logo
src={
props.image ||
'https://cdn.builder.io/api/v1/image/assets%2Fe7eb284a1bc549c8856f32d1fc7a44cf%2F77b22e5949524b3190561953907db4e7'
}
style={{
... |
def send_email(subject: str, recipients: List, message: str,
attachments: List = None, zip_files: bool = False):
mail_server = os.environ['MAIL_SERVER']
mail_server_port = os.environ['MAIL_SERVER_PORT']
mail_address = os.environ['MAIL_SENDER_ADDRESS']
mail_msg = MIMEMultipart()
mail_m... |
/*************************************************************************/
/*! Sorts an array of da_pskv_t in increasing order */
/*************************************************************************/
void da_pskvsorti(size_t n, da_pskv_t *base)
{
#define da_pskv_lt(a, b) ((a)->val < (b)->val)
GK_MKQSORT(da_psk... |
/**
* <CODE>FunctionLocation</CODE> provides information about the location
* in a program within a <CODE>Function</CODE>.
*/
public class FunctionLocation extends ProgramLocation {
protected Address functionAddr;
/**
* Create a new FunctionLocation.
*
* @param program the program of the location
* @param... |
import qualified Data.List as L
import qualified Data.Map as M
import qualified Data.Set as S
import Data.Map((!))
numOcc [] = M.empty
numOcc (x:xs) = let m = numOcc xs in case M.lookup x m of
Just i -> M.insert x (i+1) m
Nothing -> M.insert x 1 m
result list = aux (length sort) sort sumOcc where
sor... |
Regulation of stress-responsive mitogen-activated protein (MAP) kinase pathways by TAO2.
Previous studies demonstrated that in vitro the protein kinase TAO2 activates MAP/ERK kinases (MEKs) 3, 4, and 6 toward their substrates p38 MAP kinase and c-Jun N-terminal kinase/stress-activated protein kinase (JNK/SAPK). In thi... |
/* Copyright (c) 2011, <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DI... |
<reponame>zemahran/spiral<filename>spiral/environments/fluid_wrapper/simulator.cc
// Copyright 2019 DeepMind Technologies Limited.
//
// 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
//
// ht... |
#import sys
#sys.stdin=open('in','r')
r=raw_input
n,k,l,r,sall,sk=map(int,r().split())
d1=sk/k
m1=sk%k
if k!=n:
d2=(sall-sk)/(n-k)
m2=(sall-sk)%(n-k)
else:
d2=m2=0
res1 = []
res2 = []
for t in ( (k,d1,m1,res1),(n-k,d2,m2,res2) ):
for i in range(t[0]):
t[3].append(t[1])... |
Tuberculosis screening among healthcare workers in Sicily, Italy.
Tuberculosis (TB) is a diffuse communicable disease; and healthcare workers (HCWs) are among the at-risk populations for the disease. This study reports the result of TB surveillance in HCWs operating in three hospitals: one classified as 'low' risk for... |
<reponame>snieguu/remote-device-client<filename>src/main/java/com/bitbar/remotedevice/errors/WrongParameterException.java
package com.bitbar.remotedevice.errors;
import com.bitbar.remotedevice.cli.CommandLineParameter;
public class WrongParameterException extends Exception {
public WrongParameterException(Comman... |
<reponame>GregB76/EU4toVic2
#include "MergeBlock.h"
#include "ParserHelpers.h"
EU4::MergeBlock::MergeBlock(std::istream& theStream)
{
registerKeyword("master", [this](const std::string& unused, std::istream& theStream)
{
const commonItems::singleString masterStr(theStream);
master = masterStr.getString();
}... |
def main(argc: int, argv: List[str]):
run(create_app, host='0.0.0.0', port=8000) |
# coding: utf-8
# Your code here!
A, B = map(int, input().split())
add = A + B
sub = A - B
mul = A * B
print(max(add, sub, mul)) |
def Danilevski(A):
all_polynomial = []
n = A.shape[0]
back = np.eye(n)
similar = A.copy()
list_eigenvalues = []
list_eigenvectors = []
charFunc = []
k = n-1
m = n
while k > 0:
if similar[k, k-1] != 0:
similar, _, inverseM = findSimpleA(similar, k)
... |
/**
* This class is a container for dictionary values. It allows reading values in cycle.
*/
private static class Dictionary {
private final List<String> iterable;
private Iterator<String> iterator;
Dictionary(List<String> iterable) {
this.iterable = iterable;
... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright by The HDF Group. *
* All rights reserved. *
* *
* T... |
Dear Reader, As you can imagine, more people are reading The Jerusalem Post than ever before. Nevertheless, traditional business models are no longer sustainable and high-quality publications, like ours, are being forced to look for new ways to keep going. Unlike many other news organizations, we have not put up a payw... |
<gh_stars>1-10
// SPDX-License-Identifier: GPL-2.0
/*
* usb-serial driver for Quatech USB 2 devices
*
* Copyright (C) 2012 <NAME> (<EMAIL>)
*
* These devices all have only 1 bulk in and 1 bulk out that is shared
* for all serial ports.
*
*/
#include <asm/unaligned.h>
#include <linux/errno.h>
#include <linux/... |
/// Write the cache to json file
pub fn write(&self, path: impl AsRef<Path>) -> Result<()> {
let path = path.as_ref();
let file = fs::File::create(path)?;
tracing::trace!("writing cache to json file");
serde_json::to_writer_pretty(file, self)?;
tracing::trace!("cache file located... |
Two Years of Observations of the Io Plasma Torus by Juno Radio Occultations: Results From Perijoves 1 to 15
The Io plasma torus is the primary source for plasma in Jupiter’s magnetosphere. Observations of fundamental properties of the torus place valuable constraints on how the Io plasma torus behaves. Yet measurement... |
Seoul has complained to the World Trade Organization (WTO) that Beijing is retaliating against South Korean companies in response to the country deploying a US anti-missile defense system.
Read more
“The South Korean government appealed to the WTO service council to determine if Chinese measures on South Korean touri... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
def is_connected(self):
return (
self._proxy is not None and
not self._proxy.is_closed()
) |
<reponame>yorgyetson/rattletrap
module Rattletrap.Decode.AppliedDamageAttribute
( decodeAppliedDamageAttributeBits
) where
import Rattletrap.Decode.Common
import Rattletrap.Decode.Int32le
import Rattletrap.Decode.Vector
import Rattletrap.Decode.Word8le
import Rattletrap.Type.AppliedDamageAttribute
decodeAppliedDa... |
<filename>bloxz-master/src/app/pages/EventsPage/index.ts
import EventsPage from './EventsPage'
export default EventsPage
|
<filename>ssh2ws/internal/h_comment.go
package internal
import (
"strings"
"github.com/gin-gonic/gin"
"github.com/libragen/felix/model"
)
func CommentAll(c *gin.Context) {
q := &model.CommentQ{}
err := c.ShouldBindQuery(q)
if handleError(c, err) {
return
}
data, err := q.SearchAll()
if handleError(c, err)... |
Russian Trade and Foreign Direct Investment Policy at the Crossroads
This paper summarizes the estimates of what Russia will get from World Trade Organization accession and why. A key finding is the estimate that Russia will gain about $53 billion per year in the medium term from World Trade Organization accession and... |
Frequency of Common Neurological Manifestations among Patients Presenting with Human Immunodeficiency Virus Positivity
Background: Unsafe injection practices and injection drug use have been linked to multiple HIV outbreaks in Pakistan since 2003.HIV/AIDS has a wide range of clinical manifestations, and it affects a v... |
/**
* Shows/Prints a String representation of the Value.
*/
@Override
public void show() {
} |
def MAS(self, axes, masters=None):
debug('GCSCommands.MAS(axes=%r, masters=%r)', axes, masters)
axes, masters = getitemsvaluestuple(axes, masters)
cmdstr = self.__getcmdstr('MAS', axes, masters)
self.__msgs.send(cmdstr) |
<gh_stars>0
import sys
class DummyModule(object):
dummy = None
def import_all():
sys.modules["gpu"] = DummyModule
sys.modules["runners"] = DummyModule
sys.modules["loggers"] = DummyModule
sys.modules["global_params"] = DummyModule
def unimport_all():
del sys.modules["gpu"]
del sys.modules... |
/*
* Check to see if OBP Service is enabled in the application.properties
*/
public boolean isObpServiceEnabled () {
if (ObpService.obpEnabled == null) {
ObpService.obpEnabled = Boolean.parseBoolean(environment.getProperty(Constants.APP_OBP_ENABLED));
if (!getConnectionProperties()) {
return false;
}... |
// Copyright 2020 Espressif Systems (Shanghai) PTE LTD
//
// 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 applic... |
<reponame>uos/hatsdf_slam
/**
* @file bridge_base.h
* @author <NAME>
* @date 2020-09-29
*/
#pragma once
#include <string>
#include <iostream>
#include <ros/node_handle.h>
#include <comm/receiver.h>
#include <util/process_thread.h>
#include <chrono>
namespace fastsense::bridge
{
/**
* @brief The BridgeBase c... |
// RowCount implements Plan RowCount interface.
func (p *basePlan) RowCount() float64 {
if p.limit == 0 {
return p.rowCount
}
return math.Min(p.rowCount, p.limit)
} |
/**
* Executes a program that adds 2 values in the AS400 using the connector.
* @throws Exception
*/
@Test(groups = {"wso2.esb"}, description = "Check if number addition test works.")
public void callAdditionProgramTestCase() throws Exception {
SOAPEnvelope soapRequest = sendSOAPRequest(proxy... |
<reponame>zfdang/zSMTH
//
// ContentEditViewController.h
// zSMTH
//
// Created by <NAME> on 2015-4-12.
// Copyright (c) 2015 Zhengfa. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "ExtendedUIViewController.h"
typedef enum {
ACTION_NEW_POST = 0,
ACTION_REPLY_POST,
ACTION_NEW_MAIL,
ACTION... |
<gh_stars>1-10
#ifndef LOC_CALLER_HXX_
#define LOC_CALLER_HXX_
#include <opengm/opengm.hxx>
#include <opengm/inference/loc.hxx>
#include "inference_caller_base.hxx"
#include "../argument/argument.hxx"
namespace opengm {
namespace interface {
template <class IO, class GM, class ACC>
class LOCCaller : public Inferen... |
def post_analyze(analyze_id, part_number, workspace):
LOG.info('Post Analyze Step')
file_path = os.path.join(workspace, analyze_id)
source_file_without_extension = 'source_' + str(part_number)
analyze_dir_path = os.path.join(file_path, source_file_without_extension)
output_dir_path = os.path.join(an... |
package diaceutics.selenium.pageobject.forms;
import diaceutics.selenium.pageobject.BaseForm;
import org.openqa.selenium.By;
public class UserEditIdentityForm extends BaseForm {
public UserEditIdentityForm() {
super(By.xpath("//h2[.='Identity']"), "Identity");
}
}
|
// ViewInertiaScroller.Listener implementation for image movement and scaling
@Override
public boolean move(float xd, float yd) {
float nextX = centerX + xd / scale;
centerX = Math.min(Math.max(0, nextX), imageW);
float nextY = centerY + yd / scale;
centerY = Math.min(Math.max(0, nextY), imageH);
... |
<gh_stars>1-10
CMD_READ_MEM = 0x00
CMD_WRITE_MEM = 0x01
CMD_PROGRAM_FLASH = 0x10
CMD_ERASE_FLASH = 0x11
CMD_ENTER_DEBUG = 0x80
CMD_EXIT_DEBUG = 0x81
CMD_REVISION = 0xFE
REQUEST_SYNC_BYTE = 0x55
RESPONSE_SYNC_BYTE = 0xAA
|
string = raw_input()
s = "01235689"
s2 = [4, 44, 444, 7, 77, 47, 477, 474, 74]
flag = True
for x in s2:
if int(string) % x == 0:
print "YES"
exit(0)
for x in string:
if x in s:
print "NO"
exit()
print "YES"
input() |
/**
* @file
* @brief HAL UDP API
* @internal
*
* @copyright (C) 2020 <NAME>.
*
* THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY,
* INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. MELEX... |
/**
* Generate a name based on a file position
*/
public class PointerNameGenerator {
private static final int START_VALUE = 90;
private static final int INCREMENT = 1;
private transient int position;
private final transient Map<Long, String> contents = new HashMap<>();
/**
* Create a new {@link PointerNameGe... |
#include "FWCore/Framework/interface/global/EDProducer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h"
#include "FWCore/ParameterSet/interface/ParameterSetDescription.h"
#include "DataFormats/Co... |
Tottenham are set to approach Inter Milan over Marcelo Brozovic after he was put up for sale, according to TransferMarketWeb.
The website claims that the central midfield kingpin is definitely on Spurs’ shopping list and they should be able to get him for a fee between £11-£12million.
TransferMarketWeb report that Br... |
// Add adds the value of the passed datum to the sum.
func (a *intSumAggregate) Add(datum Datum) {
if datum == DNull {
return
}
t := int64(*datum.(*DInt))
if t != 0 {
if !a.large &&
((t < 0 && a.intSum < math.MinInt64-t) ||
(t > 0 && a.intSum > math.MaxInt64-t)) {
a.large = true
a.decSum.SetUnscale... |
<reponame>rgxcp/JavaBelajar
public class Welcome {
public static void main(String[] args) {
System.out.println("SELAMAT <NAME> DI KELAS 3KA17");
}
} |
A comparison of two anesthesia methods for the surgical removal of maxillary third molars: PSA nerve block technique vs. local infiltration technique
Objectives: The purpose of this study was to compare the effect of PSA block injection with infiltration technique regarding local anesthesia for surgical extraction of ... |
package sections
import (
"github.com/FlagField/FlagField-Server/internal/app/setup/hooks"
"reflect"
)
type Section struct {
Name, Description string
Items []*Item
Before, After hooks.HookFunc
}
func (s *Section) Item(_key, _description string, _type reflect.Kind, _before, _after hooks.HookFunc)... |
from sportsreference.nba.boxscore import Boxscore
from sportsreference.nba.schedule import Schedule
from sportsreference.nba.teams import Teams
import pandas as pd
teams = Teams()
indexes = []
for team in teams:
games = team.schedule
for game in games:
indexes.append(game.boxscore_index)
scores = pd... |
// Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved. This file is licensed under the Apache Software License, v. 2 except as noted otherwise in the LICENSE file
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the Lice... |
def example():
seam_counts = [10, 50]
image = io.imread('lena.jpg')
carver = SeamCarver(image)
for count in seam_counts:
carver.find_seams(count)
save_image('lena_{}_seams.png'.format(count), carver.color())
save_image('lena_{}_shrunk.png'.format(count), carver.shrink()) |
A Lancaster County judge won't block a lawsuit filed for three same-sex couples challenging a Nebraska policy that bars them and all unmarried couples from serving as foster parents.Lincoln Journal Star says the state had sought dismissal of the case, saying the plaintiffs had no standing and had failed to state a clai... |
//Closing the class Combo
class A { //implements ActionListener {
Object [] index;
JFrame jf;
JPanel jp;
JLabel label1, label2;
A() {
jf = new JFrame("JScrollBar");
jp = new JPanel();
label1 = new JLabel("Displaying a picture ",JLabel.CENTER);
ImageIcon image = new ImageIcon("C:/Users/lili... |
<gh_stars>10-100
/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.