Skip to content

Instantly share code, notes, and snippets.

View figital's full-sized avatar
💭
github status lol

figital figital

💭
github status lol
View GitHub Profile
void setup() {
Serial.begin(9600);
}
void loop() {
float average = 0.00;
float c = analogRead(A5);
int sampleSize = 1000;
for (int i = 1; i <= sampleSize; i++ ) {
average = average + (0.0445 * c - 22.8) / 1000;
//average = .04 * c;
@figital
figital / mini-board.svg
Last active August 27, 2016 14:03
mini board svg test
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@figital
figital / sensors.json
Created February 13, 2016 01:15
voltage sensor format
{
"sensors": {
"V0": "12.28",
"V1": "0.00",
"V2": "0.00"
}
}
screen /dev/tty.usbserial 9600
@figital
figital / monitor-ssids.txt
Created June 13, 2015 22:04
monitor detected ssids on wlan0 (requires moreutils)
watch -n 5 "iwlist wlan0 scan | egrep 'Cell|Quality|ESSID' | pee cat 'wc -l'"
sudo iptables -t nat -A POSTROUTING -o wlan1 -j MASQUERADE
sudo iptables -A FORWARD -i wlan1 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT
sudo iptables -A FORWARD -i wlan0 -o wlan1 -j ACCEPT
select
word,
sum(word_count) as num
from
publicdata:samples.shakespeare
where
lower(word) like 'z%'
group by
word
order by
@figital
figital / copy-bookmarklet.js
Created April 14, 2015 20:36
Copy Title Bookmarklet
javascript:(function(){javascript:window.prompt("Copy to clipboard: Ctrl+C, Enter",document.title);})();
@figital
figital / spur.scad
Created April 1, 2015 17:41
OpenSCAD Spur Module
// spur(number, radius, length, width, height);
module spur(n,r,l,w,h) {
for(i=[0:n])
rotate([0,0,i*360/n])
translate([r,0,0])
cube([l,w,h]);
}
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
Year Price
1937 .19
1963 .39
2009 1.50
2015 1.79