Skip to content

Instantly share code, notes, and snippets.

View strongh's full-sized avatar

Homer Strong strongh

View GitHub Profile
@strongh
strongh / gist:2007594
Created March 9, 2012 17:12
print redis requests per second
redis-cli monitor | awk '{split($1,a,"."); print a[1]}' | uniq -c
@strongh
strongh / buggy.R
Created November 19, 2010 02:14
Some debugging demos for the Portland R User Group meeting
##' Portland R User Group
##'
##' Debugging in R:
##' A Worst-Case Scenario Survival guide
##' Homer Strong, Qmedtrix
##' > Debugging is twice as hard as
##' > writing the code in the first place.
##' > Therefore, if you write the
##' > code as cleverly as possible,
@strongh
strongh / dollar_log_formatting.r
Created September 15, 2010 04:00
dollar-log formatting example
## Homer Strong, September 2010
##
## This is an example of using dollar formatting with log10 scaling.
## See the commit
## http://github.com/strongh/ggplot2/commit/7402a13a8ad625a8acd3024c5726545a20ac838e
library(ggplot2)
data(diamonds)
## On the current ggplot, the formatter argument is ignored when using