Skip to content

Instantly share code, notes, and snippets.

@samstokes
samstokes / todo
Last active January 3, 2025 01:29
A todo management system in a gist
#!/usr/bin/env bash
set -e
if [[ $# > 0 ]]; then
case "$1" in
-h | -\? | --help )
{
echo "Add a todo:"
echo " todo Reformulate the widget plans."
@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