This file contains hidden or 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
DROP TABLE IF EXISTS foo; | |
CREATE TEMPORARY TABLE foo (x FLOAT); | |
INSERT INTO foo VALUES (1); | |
INSERT INTO foo VALUES (2); | |
INSERT INTO foo VALUES (3); | |
INSERT INTO foo VALUES (4); | |
INSERT INTO foo VALUES (100); | |
SELECT avg(x), tmean(x, 2.0), tmean(x, 1.5) FROM foo; |
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 8.
This file contains hidden or 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
side,inning,out,home_team_runs,away_team_runs,pitcher_name,batter_name,atbat_des,event,bpos,bbats,team_abbrev,bid,pid | |
TOP,1.0,0.0,0,1,"Corey Kluber","Dexter Fowler","Dexter Fowler homers (2) on a fly ball to center field. ","Home Run",CF,S,CHC,451594,446372 | |
TOP,1.0,0.0,0,1,"Corey Kluber","Kyle Schwarber","Kyle Schwarber singles on a soft ground ball to shortstop Francisco Lindor. ",Single,LF,L,CHC,656941,446372 | |
TOP,1.0,1.0,0,1,"Corey Kluber","Kris Bryant","Kris Bryant flies out to right fielder Lonnie Chisenhall. ",Flyout,3B,R,CHC,592178,446372 | |
TOP,1.0,2.0,0,1,"Corey Kluber","Anthony Rizzo","Anthony Rizzo flies out to center fielder Rajai Davis. ",Flyout,1B,L,CHC,519203,446372 | |
TOP,1.0,3.0,0,1,"Corey Kluber","Ben Zobrist","Ben Zobrist flies out to right fielder Lonnie Chisenhall. ",Flyout,2B,S,CHC,450314,446372 | |
BOTTOM,1.0,1.0,0,1,"Kyle Hendricks","Carlos Santana","Carlos Santana lines out sharply to right fielder Jason Heyward. ",Lineout,D,S,CLE,467793,543294 | |
BOTTOM,1.0,2.0,0,1,"Kyle Hendricks","Jason Ki |
This file contains hidden or 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
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; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
{ | |
"sensors": { | |
"V0": "12.28", | |
"V1": "0.00", | |
"V2": "0.00" | |
} | |
} |
This file contains hidden or 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
screen /dev/tty.usbserial 9600 |
This file contains hidden or 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
watch -n 5 "iwlist wlan0 scan | egrep 'Cell|Quality|ESSID' | pee cat 'wc -l'" |
This file contains hidden or 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
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 |
This file contains hidden or 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
select | |
word, | |
sum(word_count) as num | |
from | |
publicdata:samples.shakespeare | |
where | |
lower(word) like 'z%' | |
group by | |
word | |
order by |
This file contains hidden or 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
javascript:(function(){javascript:window.prompt("Copy to clipboard: Ctrl+C, Enter",document.title);})(); |