<>
represents data or script{}
represents data that must prefixed by OP_PUSHDATA[]
represents multiple{}
PubKey (pay-to-pubkey / P2PK)
Address: N/A
scriptPubKey: {pubKey} OP_CHECKSIG
// get by struct | |
use std::collections::HashSet; | |
#[derive(Hash, Eq, PartialEq, Debug)] | |
struct City { | |
name: String, | |
population: usize, | |
} | |
fn main() { |
// You can run a single test by passing the name of that test to `cargo test` | |
#[test] | |
fn does_stuff() { | |
let t: bool = true; | |
t | |
} | |
// To run this test from the command line: | |
// cargo test does_stuff |
use std::sync::Arc; | |
use std::thread; | |
fn main() { | |
let five: Arc<i32> = Arc::new(5); | |
for _ in 0..10 { | |
let five: Arc<i32> = Arc::clone(&five); | |
thread::spawn(move || { |
<?php | |
trait WP_Widget_Inputs { | |
public function form_input_text( array $args = array() ) { | |
if ( !empty ( $args ) ) { | |
$id = esc_attr( $args['id'] ); | |
printf( |
#define digitalvaluesize 50 | |
int digitalVoltage[digitalvaluesize]; // array for storing Voltage ADC values | |
int digitalMinusVoltage[digitalvaluesize]; // array for storing MinusVoltage ADC values | |
int digitalACAmps[digitalvaluesize]; // array for storing ACAmps ADC values | |
int digitalMinusAmps[digitalvaluesize]; // array for storing MinusAmps ADC values | |
int digitalvalueindex = 0; // where are we in the indices | |
unsigned long digitalvalueadder; //this is used to sum each array before division | |
void getVoltages(){ |