Skip to content

Instantly share code, notes, and snippets.

samstokes / todo
Last active Nov 2, 2018
A todo management system in a gist
View todo
#!/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 / gemver.rb
Created Sep 22, 2010
Returns the currently activated version of the named gem.
View gemver.rb
def gemver(gem); Gem.loaded_specs[gem.to_s].version; end
You can’t perform that action at this time.