Skip to content

Instantly share code, notes, and snippets.

@samstokes
samstokes / gemver.rb
Created September 22, 2010 14:06
Returns the currently activated version of the named gem.
def gemver(gem); Gem.loaded_specs[gem.to_s].version; end
@samstokes
samstokes / todo
Last active September 26, 2024 01:31
A todo management system in a gist
#!/bin/bash -e
if [[ $# > 0 ]]; then
case "$1" in
-h | -\? | --help )
{
echo "Add a todo:"
echo " todo Reformulate the widget plans."
echo "See what you have to do:"
echo " todo"