Skip to content

Instantly share code, notes, and snippets.

@samstokes
samstokes / todo
Last active March 4, 2024 00:51
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"
@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