I hereby claim:
- I am trengrj on github.
- I am trengrj (https://keybase.io/trengrj) on keybase.
- I have a public key whose fingerprint is 3366 CBCB C47B 352E 6BB3 64C5 ECD9 D7B0 15D9 1226
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| # Vagrant on AWS Example | |
| # Provisioning script | |
| provision_script = <<SCRIPT | |
| #!/bin/bash | |
| SYNC_DIRECTORY=/home/ubuntu/sync | |
| sudo apt-get update |
| library(ggplot2) | |
| library(wordcloud) | |
| p <- ggplot(subset(wf, freq>40), aes(word, freq)) | |
| p <- p + geom_bar(stat="identity") | |
| p | |
| wordcloud(names(freq), freq, min.freq=10) |
| library(tm) | |
| docs = Corpus(VectorSource(places$title)) | |
| docs <- tm_map(docs, removePunctuation) | |
| docs <- tm_map(docs, tolower) | |
| docs <- tm_map(docs, removeWords, c("bad","words")) | |
| docs <- tm_map(docs, removeWords, stopwords("english")) | |
| docs <- tm_map(docs, stripWhitespace) | |
| docs <- tm_map(docs, PlainTextDocument) |
| library(DBI) | |
| library(RSQLite) | |
| con <- dbConnect(SQLite(), "places.sqlite") | |
| alltables = dbListTables(con) | |
| hosts = dbGetQuery( con,'select * from moz_hosts order by frecency desc' ) | |
| places = dbGetQuery( con,'select * from moz_places order by visit_count desc' ) |
| [trengrj@home ~]$ todo add "write this blog post" | |
| [trengrj@home ~]$ todo add "add colours to todo" | |
| [trengrj@home ~]$ todo | |
| 1 write this blog post [] | |
| 2 add colours to todo [] | |
| [trengrj@home ~]$ todo complete 1 | |
| [trengrj@home ~]$ todo | |
| 1 write this blog post [x] | |
| 2 add colours to todo [] | |
| [trengrj@home ~]$ todo delete 1 |
| #!/bin/bash | |
| TODOFILE=~/.plan | |
| case "$1" in | |
| add) | |
| printf '%s\n' a "$2 []" . w | ed -s $TODOFILE | |
| ;; | |
| delete) | |
| printf '%s\n' "$2d" w | ed -s $TODOFILE | |
| ;; |
| 22 serialization::archive 12 0 3 0 1 0 0 0 0 0 0 7 0 0 0 5 1 0 | |
| 0 0 1 1 0 | |
| 1 0 0 1 1 0 1 10 1 5 | |
| 2 0 0 117 1 0 1 0.00000000000000000e+00 6.33011834037708332e-02 0.00000000000000000e+00 6.33011834037708332e-02 0.00000000000000000e+00 6.33011834037708332e-02 0.00000000000000000e+00 6.33011834037708332e-02 4.32869311569750170e-03 6.75822492130261354e-02 8.65828485981845475e-03 7.18637643364932188e-02 1.29869779755159565e-02 7.61452794599602467e-02 1.73156710912134582e-02 8.04263452692156044e-02 2.16452628353344112e-02 8.47078603926826323e-02 2.59739559510319129e-02 8.89889262019379901e-02 3.03035476951528659e-02 1.01833022258127404e-01 3.46322408108504232e-02 1.27521214370506286e-01 3.89609339265479249e-02 1.66053502539074638e-01 4.76192187863663796e-02 2.21711401887299431e-01 5.62775036461848344e-02 2.77368851921312498e-01 6.49348898775798378e-02 3.15901140089880794e-01 7.35931747373982925e-02 3.75840554561572671e-01 8.22514595972167473e-02 4.57186196707964621e-01 9.52384375727327592e-02 5.17125161865444771e-01 1. |
| var calendar = new CalHeatMap(); | |
| calendar.init({ | |
| data: "/data/moves.json", | |
| start: new Date(2014, 9, 9), | |
| domain : "day", | |
| subDomain : "hour", | |
| itemName: ["step","steps"], | |
| range : 7, | |
| }); |