View gist:4702013
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
## shell commands I used to setup mysql on my raspberryPI and enable SQLyog access to it from my laptop | |
# install mysql using these instructions | |
# http://databaseblog.myname.nl/2013/01/how-to-install-mysql-succesfully-on.html | |
# Verify the MySQL Client was installed | |
mysql --version | |
# alter the settings to enable it to be a server on your lan |
View tab2json.awk
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
NR == 1 {sep=""} | |
NR > 2 {sep=","} | |
{ | |
if (NR == 1) { | |
split($0, tags); | |
if (EC == "") EC = "\""; | |
} | |
else { | |
split($0, vals); | |
jrec = sep"{"; |
View gist:1dde65b654bf1c07ade3
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
select | |
end_SQLDATE as SQLDATE | |
, AVG_GoldsteinScale | |
from | |
( | |
SELECT | |
ending_at_day AS end_SQLDATE | |
, ROUND(AVG(SUMG),5) AS AVG_GoldsteinScale | |
, COUNT(DISTINCT SQLDATE) as C | |
FROM |