30 Dec '12, 5am

これ便利というかrubyで文字列作るなら必須だけどいつもググる。

Strips indentation in heredocs. For example in if options [ :usage ] puts <<- USAGE . strip_heredoc This command does such and such. Supported options are: -h This message ... USAGE end the user would see the usage message aligned against the left margin. Technically, it looks for the least indented line in the whole string, and removes that amount of leading whitespace.

Full article: http://apidock.com/rails/String/strip_heredoc

Tweets

Animated holiday wreath from a string of LED lights

Animated holiday wreath from a string of LED li...

hackaday.com 23 Dec '12, 8pm

He started with a string individually addressable LEDs. These are the 12mm variety like what Adafruit sells (we’ve seen th...