text
stringlengths
1
1.05M
#!/bin/bash set -u IMAGE=desktop TAG=i3 docker build . -t $IMAGE --build-arg tag=$TAG --build-arg uid=$UID --build-arg passwd=$(cat .passwd)
# ----------------------------------------------------------------------------- # # Package : lodash.uniq # Version : 4.5.0 # Source repo : https://github.com/lodash/lodash # Tested on : RHEL 8.3 # Script License: Apache License, Version 2 or later # Maintainer : BulkPackageSearch Automation <sethp@us.ibm.com> # # Disc...
import tensorflow as tf # Create a Neural Network for classification of animals into 10 different classes # Defining model's architecture model = tf.keras.models.Sequential() # Adding layers model.add(tf.keras.layers.Flatten(input_shape=(64, 64, 3))) model.add(tf.keras.layers.Dense(128, activation="relu")) model.ad...
#!/bin/bash #javac -d "../../../target/" stone/*.java #javac -d "../../../target/" chap3/*.java javac -d "../../../target/" chap5/*.java
use std::path::{Path, PathBuf}; use std::fs; use std::io::{Write, Read}; use std::fs::File; struct FileBundler { files: Vec<PathBuf>, bundle_dir: PathBuf, } impl FileBundler { fn new(bundle_dir: PathBuf) -> FileBundler { FileBundler { files: Vec::new(), bundle_dir, ...
#!/usr/bin/bash xrdb -merge /home/jack/.Xresources xrandr --output eDP-1 --primary --mode 2560x1440 setxkbmap -layout 3l & compton & dunst & /home/jack/.fehbg & (sleep 1 && polybar example &> /home/jack/polybar.txt) & # echo $DISPLAY > /home/jack/5.txt # /home/jack/.local/bin/neXtWM-exe 1 &> /home/jack/.xtest.txt #echo...
#include <iostream> class CliSend { public: int Send(int argc, char* argv[], int target_pid) { // Implement the logic to send CLI commands to the target process identified by target_pid // For the purpose of this example, let's assume the commands are sent successfully and return a random number ...
<reponame>aribennett/PiNC import numpy as np from gcodeparser import GcodeParser from . import get_corners class GcodeSolver(object): def __init__(self, gcode_str, start_position=[0, 0, 0]): lines = GcodeParser(gcode_str).lines # get parsed gcode lines x = start_position[0] y = start_po...
#!/bin/sh export THEANO_FLAGS=floatX=float32 export PYTHONPATH=$PWD/src/python:$PYTHONPATH
echo Release version ? read version go build -o=builds/picsell chmod 777 builds/picsell cd builds ls tar -zcvf ../tarbuilds/picsell_${version}_linux_x86_64.tar.gz picsell rm picsell cd .. env GOOS=windows GOARCH=amd64 go build -o=builds/picsell.exe chmod 777 builds/picsell.exe cd builds zip ../tarbuilds/p...
/***** BEGIN LICENSE BLOCK ***** * Version: EPL 1.0/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Eclipse Public * License Version 1.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.eclipse.org/legal/epl-...
import React from 'react' import Indicator from '../Indicator' import Banner from '../Banner' import Header from '../Header' import Container from '../Container' import Talks from '../Talks' import Section from '../Section' import Team from '../Team' import Sponsors from '../Sponsors' import Community from '../Communi...
#!/usr/bin/env bash . "/srv/provision/provisioners.sh" NAME=$1 REPO=$2 BRANCH="${3:-master}" DIR="/srv/provision/utilities/${NAME}" if [[ false != "${NAME}" && false != "${REPO}" ]]; then # Clone or pull the utility repository if [[ ! -d "${DIR}/.git" ]]; then echo "* Cloning the \"${NAME}\" utility, see \"$...
#!/bin/bash res=$(aspell list --mode=tex -l fr -d fr --add-tex-command="loadglsentries op" --add-tex-command="bibliographystyle op" < "$1") if [ "$res" == "" ]; then echo "No spell check errors. This is a basic check, please double-check !" exit 0 fi echo "Spell check error found. For details, run the intera...
package desarrollomobile.tiendadeclases.tiendadeclases.Fragments.Home; import android.content.Intent; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; im...
<reponame>djedi/bindable /** * This will allow you to pipe an promise to a value converter * * ex. `value | value-converter & async` */ export class AsyncBindingBehavior { public bind(binding) { binding.originalupdateTarget = binding.updateTarget; binding.updateTarget = async a => { ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ic_link_off = void 0; var ic_link_off = { "viewBox": "0 0 24 24", "children": [{ "name": "path", "attribs": { "d": "M0 0h24v24H0V0z", "fill": "none" }, "children": [] }, { "name": "path", "a...
const app = document.getElementById('app'); const form = document.createElement('form'); app.appendChild(form); const input = document.createElement('input'); input.type = 'text'; input.id = 'input'; input.placeholder = 'Enter a word or phrase...'; form.appendChild(input); const button = document.createElement('butt...
import { Flex, FlexProps, Heading } from "@chakra-ui/layout"; import { useTranslation } from "react-i18next"; import useGlobalSeverity from "../../../hooks/useGlobalSeverity" import useSeverityColor from "../../../hooks/useSeverityColor"; import CirclePulse from "../util/CirclePulse"; export interface StatusBannerProp...
const groupChannels = require('./group_channels'); const activeChannels = require('./active_channels'); const getQuery = require('./get_query'); const { computeFee } = require('./fee'); const getLocalChannel = require('./get_local_channel'); const { recalculatePath, getEdges, addLastHopsToRoutes } = require('./path'); ...
<reponame>infamousSs/zod package com.infamous.zod.storage.model; import java.io.Serializable; import java.util.Objects; public class StorageFileKey implements Serializable { private String id; public StorageFileKey() { } public StorageFileKey(String id) { this.id = id; } public St...
#! @shell@ # - make Nix store etc. # - copy closure of Nix to target device # - register validity # - with a chroot to the target device: # * nix-env -p /nix/var/nix/profiles/system -i <nix-expr for the configuration> # * install the boot loader # Ensure a consistent umask. umask 0022 # Re-exec ourselves in a pr...
<reponame>dsanz/alloy-ui /** * The Affix Component * * @module aui-affix */ var win = A.config.win; /** * A base class for Affix. * * Check the [live demo](http://alloyui.com/examples/affix/). * * @class A.Affix * @extends Base * @param {Object} config Object literal specifying scrollspy configuration * ...
<reponame>imrehg/WatchDoc<filename>src/docs.js function initialize() { var bkg = chrome.extension.getBackgroundPage(); var gdocs = bkg.gdocs; bkg.console.log(Util.getTime(gdocs)+' Show doclist window'); var loginButton = document.getElementById('login_button'); loginButton.addEve...
<reponame>Mimikyu612/blizzard3<filename>data/mods/ccapm2021/items.ts export const Items: {[itemid: string]: ModdedItemData} = { dinnerplate: { name: "Dinner Plate", spritenum: 110, onPlate: 'Food', onBasePowerPriority: 15, onBasePower(basePower, user, target, move) { if (move && move.type === 'Food') { ...
#!/bin/bash display_usage() { echo "Please supply function name to tail logs" echo "eg. ./slsLogs.sh opacheck" } if [ $# -eq 0 ]; then display_usage exit 1 fi sls logs -v -t -f $1
/* * File : ProcessingService.java * Created : 02-Oct-2009 * By : atrilla * * Emolib - Emotional Library * * Copyright (c) 2009 <NAME> & * 2007-2012 Enginyeria i Arquitectura La Salle (Universitat Ramon Llull) * * This file is part of Emolib. * * You should have received a copy of the rights granted...
<filename>sdk/src/test/java/com/iovation/launchkey/sdk/transport/domain/KeysListPostResponseTest.java /** * Copyright 2017 iovation, Inc. * <p> * Licensed under the MIT License. * You may not use this file except in compliance with the License. * A copy of the License is located in the "LICENSE.txt" file accompany...
docker exec --interactive --tty transport2 bin/cypher-shell -u neo4j -p hoopa
class Phrase { private var expression: String var context: [String: Any] = [:] init(_ expression: String) { self.expression = expression } func evaluate() throws -> Bool { var evaluatedExpression = expression for (variable, value) in context { if let valueString...
"use strict"; /* * @Author: 邱狮杰 * @Date: 2021-07-30 21:55:11 * @LastEditTime: 2021-08-07 09:43:13 * @FilePath: /reduxEncapsulation/src/action/defaultAction.ts * @Description: defaultAction */ Object.defineProperty(exports, "__esModule", { value: true }); exports.defaultAction = void 0; function defaultAction(act...
package demo.quartz; import lombok.extern.slf4j.Slf4j; import org.quartz.Job; import org.quartz.JobExecutionContext; /** * TODO Quartz * * @author Mr.He * 2020/11/27 10:29 * e-mail <EMAIL> * qq 294046317 * pc-name mrhe */ @Slf4j public class JobDemo implements Job { @Override public void execute(JobEx...
#!/bin/bash # Copyright 2019 Istio Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
#!/bin/bash # Reference: az cosmosdb | https://docs.microsoft.com/cli/azure/cosmosdb # -------------------------------------------------- # # Throughput operations for a SQL API database and container # # # Generate a unique 10 character alphanumeric string to ensure unique resource names uniqueId=$(env LC_CTYPE=C tr ...
# put this on cron.daily kill $(ps aux | grep '[p]ython /usr/local/bin/aaTwitter' | awk '{print $2}') aaTwiter &
# coding: utf-8 """ RadioManager RadioManager # noqa: E501 OpenAPI spec version: 2.0 Contact: <EMAIL> Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from radiomanager_sdk.models.block_relations_broadcast import BlockRelat...
package malte0811.controlengineering.crafting; import malte0811.controlengineering.items.CEItems; import malte0811.controlengineering.items.ISchematicItem; import malte0811.controlengineering.logic.schematic.Schematic; import net.minecraft.core.NonNullList; import net.minecraft.resources.ResourceLocation; import net.m...
<reponame>KimJeongYeon/jack2_android<gh_stars>10-100 /* Copyright (C) 2008-2011 <NAME> at Grame This program 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 2 of the License, or (at your option) an...
import Vue from 'vue' import App from './App.vue' import VueGmaps from 'vue-gmaps' Vue.use(VueGmaps, { key: '<KEY>', libraries: ['places'], version: '3' }) /* eslint-disable no-new */ new Vue({ el: '#app', render: h => h(App) })
#!/bin/sh if [ -z "$FUTILITY" ]; then FUTILITY="futility" fi if [ ! -x "$(command -v $FUTILITY)" ]; then echo "futility not found (install vboot-kernel-utils), exitting..." exit 1 fi VBOOT_KEY_URL="https://chromium.googlesource.com/chromiumos/platform/vboot_reference/+/master/tests/devkeys" VBOOT_PUBKEY=...
#!/bin/bash set -euv if [[ $# -lt 1 ]]; then echo 'Usage: ./release.sh <new version>' exit 1 fi mvn -Prelease release:clean release:prepare -DpushChanges=false -Dresume=false -DreleaseVersion=${1} mvn -Prelease release:perform mvn -Prelease deploy
<gh_stars>0 /** * Copyright (c) 2017-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ const React = require('react'); const CompLibrary = require('../../core/CompLibrary.js'); // const MarkdownBlock = CompLibr...
#!/bin/bash # We'll use the standard scijava script for maven deployment #mvn -Pdeploy-to-imagej deploy --settings settings.xml echo echo "====== Generating Fiji installation ======" sh populate_fiji.sh echo echo "====== Uploading to neuroanatomy-unstable update site ======" cd Fiji.app chmod a+x ../upload-site-unst...
function fibonacci(n) { let arr = [0, 1] for (let i = 2; i < n + 1; i++) { arr.push(arr[i-2] + arr[i-1]) } return arr[n] }
<reponame>tagnyngompe/taj-ginilogitpls import sys, os from taj.data_utils import load_evaluation_data2 from taj.api import evaluation def ff(f): return '%.3f' % float(f) if __name__ == '__main__': basePath = "/home/tagny/Documents/current-work/sens-resultat" metrics_file_path = basePath + "/resultat-xp/co...
from cuser import SerAction class CustomObject: def __init__(self, name, value): self.name = name self.value = value def serialize(self): return {'name': self.name, 'value': self.value} @classmethod def deserialize(cls, data): return cls(data['name'], data['value']) #...
package cmd import ( "time" "github.com/goat-systems/go-tezos/v3/rpc" "github.com/goat-systems/tzpay/v3/internal/config" "github.com/goat-systems/tzpay/v3/internal/payout" "github.com/pkg/errors" log "github.com/sirupsen/logrus" "github.com/spf13/cobra" ) type server struct { queue *payout.Queue rpcClie...
SELECT category, SUM(quantity) AS total_inventory FROM store_inventory GROUP BY category
import time import logging import json from tkinter.constants import NW import tkinter as tk import base64 import numpy as np import cv2 from PIL import Image, ImageTk from mqtt_client import MqttClient from threading import Thread FPS = 30 CHANNELS = 1 RATE = 44100 MQTT_BROKER = "mqtt.item.ntnu.no" MQTT_PORT = 1883 ...
<reponame>mission-apprentissage/prise-de-rdv module.exports = { presets: ["@babel/env"], plugins: [ ["transform-inline-environment-variables", { include: ["BASE_URL"] }], ], };
@mixin hover-color($color) { &:hover { color: $color; background-color: $color; border-color: $color; text-decoration-color: $color; } }
import matplotlib.pyplot as plt from matplotlib.font_manager import FontProperties # Sample data for plotting x = [1, 2, 3, 4, 5] y = [2, 3, 5, 7, 11] # Create a plot plt.plot(x, y) # Set the font properties for Chinese characters chFont = FontProperties(family="SimHei") # SimHei font for Chinese characters # Cust...
from ...combinators import Lazy, Opt, Rep from ...AST.expressions.objects import ObjectVal, ObjectMethod def object_val(): from ..common import id, keyword from ..expressions import arithmetic def process(parsed): ((object_name, (_, prop_name)), other_prop_names) = parsed other_props = N...
package sword.bitstream; public interface IntSupplierCreator { IntSupplierWithIOException create(InputBitStream stream); }
#!/bin/bash set -e # exit on error # This script is just for developer convenience to be run locally to hit the endpoints # after code changes to make sure all the DI etc is wired up correctly. echo "======================================================" echo "FindNextCorruption..." curl -i http://localhost:7071/api...
if ! command_exists git; then return 0 fi emit_file alias/git.sh copy_bin bin/git-find-large git config --system core.autocrlf input git config --system core.eol lf # git config --system 'url "file://".insteadOf' git+file:// git config --system push.default upstream # git config --system submodule.recurse true git c...
<filename>src/headers.ts import * as events from 'phovea_core/src/event'; export const DB_CHANGED_EVENT = 'db_changed'; export const LAYOUT_CHANGED_EVENT = 'layout_changed'; import { select, selectAll, selection, mouse, event } from 'd3-selection'; /** Class implementing the Header Menus */ class HeaderMen...
package com.avalon.caverns.common.blocks; import com.avalon.caverns.client.util.CavernsTags; import net.minecraft.block.AbstractBlock; import net.minecraft.block.Block; import net.minecraft.block.BlockState; import net.minecraft.block.BushBlock; import net.minecraft.block.EndRodBlock; import net.minecraft.block.IGrow...
#!/bin/bash # # Script to build & run a docker image NAME=`cat NAME` VERSION=`cat VERSION` docker build -t msagency/$NAME:$VERSION . | tee last_docker_build.out CONTAINER_ID=`cat last_docker_build.out | grep "Successfully built" | cut -d ' ' -f 3` rm last_docker_build.out echo "docker run -ti -p 9909:80 $CONTAINER_...
#!/bin/bash cd tasks/build-jar mvn clean package cp -r target ../..
#!/bin/sh # Derived from https://raw.githubusercontent.com/microsoft/vscode-dev-containers/master/script-library/common-alpine.sh. # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information. # shellcheck dis...
import prettier from 'prettier' export {prettier}
package evilcraft.api.config.elementtypeaction; import net.minecraftforge.common.BiomeManager; import net.minecraftforge.common.config.Configuration; import net.minecraftforge.common.config.Property; import evilcraft.api.config.BiomeConfig; /** * The action used for {@link BiomeConfig}. * @author rubensworks * @se...
while true; do echo "restarting bash script" sleep 5s; python spreadsheet.py && break; done
<filename>package/spack-pixman/package.py<gh_stars>1-10 ############################################################################## # Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by <NAME>, <EMA...
import tensorflow as tf from onnx_tf.handlers.backend_handler import BackendHandler from onnx_tf.handlers.handler import onnx_op from onnx_tf.handlers.handler import tf_func @onnx_op("Clip") @tf_func(tf.clip_by_value) class Clip(BackendHandler): @classmethod def _common(cls, node, **kwargs): tensor_dict = k...
<filename>aquitania/data_processing/indicator_pipeline.py ######################################################################################################################## # |||||||||||||||||||||||||||||||||||||||||||||||||| AQUITANIA ||||||||||||||||||||||||||||||||||||||||||||||||||||||| # # ||||||||||||||||||...
#!/usr/bin/env bash # # FreeSwitch # TTS Voice Prompt Generator # - Identify potentially deprecated voice prompts - # # Copyright (c) 2013, Julian Pawlowski <jp@jps-networks.eu> # See LICENSE file for details. # if [ ! -d input/en ]; then echo "English voice prompt text files not found in input/en. Aborting ..." exi...
#!/bin/bash if [ $(lspci -vnnn | grep VGA | awk '{print $6}'| sed -n '1p') = "Intel" ] then systemctl start nsfminer.service touch /home/leon/.var/miner.lock else systemctl stop nsfminer.service rm /home/leon/.var/miner.lock fi
<filename>typedb/common/rpc/stub.py # # Copyright (C) 2021 Vaticle # # 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 u...
#!/usr/bin/env bash # 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 # "Lice...
#!/bin/bash riscv32-unknown-elf-gdb -ix=gdb/airisc.gdbinit --command=gdb/gdb-change-led --command=gdb/gdb-airisc-hello
package com.qht.rest; import com.github.wxiaoqi.security.common.rest.BaseController; import com.qht.biz.PkgLevelBiz; import com.qht.entity.PkgLevel; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; @Controller @RequestMapping("pkgLevel") publ...
import React from "react"; import Layout from "../components/layout"; import SEO from "../components/seo"; import propTypes from "../components/defaultPropTypes"; import AboutMDX from "../data/about.mdx"; const AboutPage = ({ location }) => ( <Layout location={location}> <SEO title="About" /> ...
package net.community.chest.net.proto.text.imap4; import java.util.Arrays; import java.util.Collection; import java.util.List; import net.community.chest.ParsableString; import net.community.chest.net.proto.text.NetServerIdentityAnalyzer; /** * <P>Copyright 2007 as per GPLv2</P> * * @author <NAME>. * @since Oct ...
<reponame>ameriar/props<filename>app/services/rankings/kudos_streak.rb module Rankings class KudosStreak pattr_initialize %i(users_repository! props_repository! organisation! time_range!) def kudos_streak kudos_streak_within end private def kudos_streak_within users_with_kudos_date ...
<filename>store/postgres/migrations/2021-01-07-004939_create_unused_deployments/down.sql drop table unused_deployments;
package main import ( "./api" "./webserver" "fmt" "os" "os/signal" "syscall" "time" ) func main() { fmt.Println("=============================================") fmt.Println("=============================================") fmt.Println("=== Docker Swarm Service Lister UI 0.2.1 ====") fmt.Println("===========...
#include <iostream> #include <chrono> #include <future> #include <string> using namespace std; class Timer { std::chrono::time_point<std::chrono::high_resolution_clock> start; std::chrono::time_point<std::chrono::high_resolution_clock> stop; public: Timer() {} void Reset() { start = std::chrono::high_resoluti...
<reponame>openstreetcam/android package com.skobbler.sensorlib; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.util.ArrayList; import java.util.Arrays; import org.opencv.android.CameraBridgeViewBase; import org.opencv.android.OpenCVLoader; import org....
# Copyright (c) 2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # What to do sign=false verify=false build=false setupenv=false # Systems to build linux=true windows=true osx=true # Other Basic v...
package views import db.{ReftoolDB, Topic} import framework.{ApplicationController, GenericView, MyAction} import db.SquerylEntrypointForMyApp._ import util.StringHelper import scala.collection.mutable.ArrayBuffer import scalafx.Includes._ import scalafx.collections.ObservableBuffer import scalafx.event.ActionEvent i...
#!/bin/bash TASK=19 MODEL=ctrl_xuniter MODEL_CONFIG=ctrl_xuniter_base TASKS_CONFIG=iglue_test_tasks_boxes36.dtu TRTASK=XVNLI TETASK=XVNLIes TEXT_PATH=/home/projects/ku_00062/data/XVNLI/annotations/es/test.jsonl PRETRAINED=/home/projects/ku_00062/checkpoints/iglue/zero_shot/xvnli/${MODEL}/${TRTASK}_${MODEL_CONFIG}/pyto...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ils = void 0; var ils = { "viewBox": "0 0 1536 1792", "children": [{ "name": "path", "attribs": { "d": "M992 624v496q0 14-9 23t-23 9h-160q-14 0-23-9t-9-23v-496q0-112-80-192t-192-80h-272v1152q0 14-9 23t-23 9h-160q-1...
#!/bin/sh DIR=`pwd` for d in $(ls -d */) do cmd='cd "$DIR/${d%%/}"' eval $cmd pwd if [ -e "${d%%/}.mp4" ] then continue fi for f in $(ls -rt *.dat) do NAME=${f%.dat} if [ -e "$NAME.avi" ] then cmd="ffmpeg -i $NAME.avi $NAME.mp4" eval $cmd fi if [ -e "$NAME.mp4" ] then cmd="ffmpeg -i $N...
set -ex python train.py \ --dataroot ./datasets/summer2winter_yosemite \ --name summer2winter_cyclegan_selfcycle_2Dis_noRecGan_SepLossIdt \ --model cycle_gan \ --pool_size 50 \ --no_dropout \ --display_port 8095 \ --gpu_ids 1 \ --lambda_identity 0.1 \ --continue_train \ --epoch_count 57
#!/bin/bash dieharder -d 12 -g 33 -S 4111330864
#!/bin/bash ############################ # .install.sh # This script creates symlinks from the home directory to any desired dotfiles in ~/dotfiles ############################ ########## Variables dir=~/dotfiles # dotfiles directory olddir=~/dotfiles_old # old dotfiles backup directory...
/* * Copyright 2002-2021 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
#include "pins.h" #include "LCD1602.h" #include "DS1302.h" #include "DS18B20.h" #include "EEPROM.h" struct time_and_date SetTime; //Infrared. //-------------------------------------------------------------------------------------- bit ir_finish = 0; //Ir flag if recieved data, set to 1, else set to 0. unsi...
/* * Copyright 2015 Textocat * * 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 la...
#!/bin/bash while true; do FQHOSTNAME=$(hostname -f) if [[ $FQHOSTNAME != 'localhost' ]] && [[ $FQHOSTNAME != 'localhost.localdomain' ]]; then break fi sleep 2 done while true; do FQHOSTNAME=$(hostname -f) echo "Setting static hostname to $FQHOSTNAME" hostnamectl set-hostname $FQHOSTNAME if [[ $...
#!/bin/sh # Copyright (c) The Diem Core Contributors # SPDX-License-Identifier: Apache-2.0 DIEM="$(git rev-parse --show-toplevel)" FRAMEWORK="$DIEM/language/diem-framework/core/sources" STDLIB="$DIEM/language/move-stdlib/sources" for config in *.toml ; do # Benchmark per function cargo run -q --release -p prover-...
$NetBSD: patch-slam.sh,v 1.2 2020/08/10 23:18:52 rjs Exp $ --- slam.sh.orig 2020-07-30 19:30:02.000000000 +0000 +++ slam.sh @@ -65,7 +65,7 @@ set -e ####################################################################### warm_option="" -if [ "$1" == --load -o "$1" == --load-with-sb-devel ]; then +if [ "$1" = --loa...
#!/bin/bash HOUNDSPLOIT_PATH="$HOME/.HoundSploit" HOUNDSPLOIT_OLD_PATH="$HOME/HoundSploit" if ! [ -f "$HOUNDSPLOIT_PATH/enable_root.cfg" ] && [ $(id -u) = 0 ] ; then echo "ERROR: This script must NOT be run as 'root'" exit 1 fi if ! [ $(uname) == "Linux" ] ; then echo "ERROR: This installation script is only fo...
docker rm $(docker stop $(docker ps -a -q --filter ancestor=web2py-rocket-ssl --format="{{.ID}}")) docker rm $(docker stop $(docker ps -a -q --filter ancestor=web2py-nginx --format="{{.ID}}")) docker rm $(docker stop $(docker ps -a -q --filter ancestor=web2py-redis --format="{{.ID}}")) docker network rm web2py-net #do...
#!/usr/bin/env python import argparse import textwrap from sys import argv import alpaca_trade_api as alpaca from colorama import init, Fore, Style def run(): init() parser = argparse.ArgumentParser( prog='paca', description='Check asset status using Alpaca Broker API', ...
#!/bin/bash -eu # Copyright 2020 Google 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 agree...
#!/bin/sh # Gold price endpoint url="https://www.freeforexapi.com/api/live?pairs=USDXAU" rate=$(curl -s -X GET $url -H "accept: application/json" | jq '.rates' | jq '.USDXAU' | jq '.rate') echo $(bc <<< "1.0/$rate")
<reponame>love-adela/algorithm<gh_stars>1-10 import collections def f(v): s=m=0 q=collections.deque() g = [False]*(N+1) g[v[0]] = True q.append(v) while q: v = q.popleft() for e in j[v[0]]: if not g[e[0]]: g[e[0]]=True q.append([e[0], ...