- Apple
- System Preferences
- Desktop/Screen Saver
- Hot corners button
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
trait WP_Widget_Inputs { | |
public function form_input_text( array $args = array() ) { | |
if ( !empty ( $args ) ) { | |
$id = esc_attr( $args['id'] ); | |
printf( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 || { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// get by struct | |
use std::collections::HashSet; | |
#[derive(Hash, Eq, PartialEq, Debug)] | |
struct City { | |
name: String, | |
population: usize, | |
} | |
fn main() { |