Archive for the ‘Ruby’ Category


Snipplr Ruby Gem, Bringing Snipplr Into the Command Line


Published in: Bash, RubyPosted by narkisr on 07/16/08


Command Line Interface (CLI) has long been my favorite interface when handling code, it makes it easy to edit, search and traverse your code base with tools like vim, find and grep.

Common CLI usage includes the copy and pasting of code snippets. However, keeping track of all those snippets isn’t easy , Snipplr makes the storage and retrieval of snippets easy as pie but requires a Web browser. The Snipplr Ruby Gem is intended to bridge the gap with a simple unified interface. Let’s take for example a scenario on which we would want to get a specific snippet that contains Spring in its title and add it to a file:

Read the rest of this entry »