Rust macro testing
rustc --test test2.rs
rustc --test test2.rs
("masternode-1", MNOutput { debug_log_line: "-rw------- 1 dash dash 10000000 Jun 12 22:55 /dash/.dashcore/testnet3/debug.log", build_version: "v0.17.0.3" }) | |
("masternode-2", MNOutput { debug_log_line: "-rw------- 1 dash dash 10000000 Jun 12 22:54 /dash/.dashcore/testnet3/debug.log", build_version: "v0.17.0.3" }) | |
("masternode-3", MNOutput { debug_log_line: "-rw------- 1 dash dash 10000000 Jun 12 22:54 /dash/.dashcore/testnet3/debug.log", build_version: "v0.17.0.3" }) | |
("masternode-4", MNOutput { debug_log_line: "-rw------- 1 dash dash 10000000 Jun 12 22:54 /dash/.dashcore/testnet3/debug.log", build_version: "v0.17.0.3" }) | |
("masternode-5", MNOutput { debug_log_line: "-rw------- 1 dash dash 10000000 Jun 12 22:55 /dash/.dashcore/testnet3/debug.log", build_version: "v0.17.0.3" }) | |
("masternode-6", MNOutput { debug_log_line: "-rw------- 1 dash dash 10000000 Jun 12 22:54 /dash/.dashcore/testnet3/debug.log", build_version: "v0.17.0.3" }) | |
("masternode-7", MNOutput { debug_log_line: "-rw------- 1 dash dash 10000000 Jun 1 |
#! /bin/bash | |
# get latest alpine linux AMI | |
aws ec2 describe-images --output text --filters Name=owner-id,Values=538276064493 Name=name,Values='alpine-ami-3.13*-x86_64*' Name=architecture,Values=x86_64 Name=state,Values=available --query 'max_by(Images[], &CreationDate).ImageId' |
use std::sync::mpsc::{channel, Sender}; | |
pub struct PPU { | |
// data... | |
cycles: u8, | |
nmi_channel: Sender<bool>, | |
} | |
impl PPU { | |
pub fn new(chan: Sender<bool>) -> Self { |
# ignore the ignore/ dir | |
ignore/ |
package main | |
import ( | |
"fmt" | |
"os" | |
"regexp" | |
"strings" | |
) | |
var reS3KeyPDFUpload = regexp.MustCompile(`^.*\/(?P<year>\d{4})\/(?P<month>\d{2})\/(?P<day>\d{2})\/.*\.pdf$`) |
; /usr/local/bin/nasm -f macho 32.asm && ld -macosx_version_min 10.7.0 -o 32 32.o && ./32 | |
global start | |
section .text | |
start: | |
push dword msg.len | |
push dword msg | |
push dword 1 | |
mov eax, 4 |
Using a fresh Ubuntu 18.04 (latest LTS) install:
# Install prerequisites
sudo apt update
sudo apt install -y bison binutils gcc make
package main | |
import ( | |
"fmt" | |
) | |
func dispByteSlice(slice []byte) { | |
for i, b := range slice { | |
if (i % 8) == 0 { | |
fmt.Printf("\n") |
This is an example using Rui Marinho's "bitcoin-core" Bitcoin daemon JSONRPC and REST client library.
npm ci