Skip to content

Instantly share code, notes, and snippets.

💭
github status lol

figital figital

💭
github status lol
Block or report user

Report or block figital

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@figital
figital / spanish-chars-windows.txt
Created Aug 4, 2017
windows spanish character ALT codes
View spanish-chars-windows.txt
á = Alt + 0225
é = Alt + 0233
í = Alt + 0237
ó = Alt + 0243
ú = Alt + 0250
ñ = Alt + 0241
ü = Alt + 0252
¡ = Alt + 0161
¿ = Alt + 0191
View amazing-fantasy.json
{
"code": 200,
"status": "Ok",
"copyright": "© 2017 MARVEL",
"attributionText": "Data provided by Marvel. © 2017 MARVEL",
"attributionHTML": "<a href=\"http://marvel.com\">Data provided by Marvel. © 2017 MARVEL</a>",
"etag": "f7ae8704ea32cc99319512387ca51853185ff50b",
"data": {
"offset": 0,
"limit": 20,
@figital
figital / example.sql
Created Apr 18, 2017 — forked from wolever/example.sql
A simple Postgres aggregate function for calculating a trimmed mean, excluding values outside N standard deviations from the mean: `tmean(v, standard_deviations)` (for example: `tmean(rating, 1.75)`).
View example.sql
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;
@figital
figital / game7-ws.csv
Created Nov 11, 2016
starter data from initial view
View game7-ws.csv
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 8.
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
View calibration-test.ino
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 Aug 27, 2016
mini board svg test
View mini-board.svg
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 Feb 13, 2016
voltage sensor format
View sensors.json
{
"sensors": {
"V0": "12.28",
"V1": "0.00",
"V2": "0.00"
}
}
@figital
figital / monitor-ssids.txt
Created Jun 13, 2015
monitor detected ssids on wlan0 (requires moreutils)
View monitor-ssids.txt
watch -n 5 "iwlist wlan0 scan | egrep 'Cell|Quality|ESSID' | pee cat 'wc -l'"
View routing-stuff.txt
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
You can’t perform that action at this time.