Last active
August 29, 2015 14:04
-
-
Save swmcc/d330e379ec414bb5097b to your computer and use it in GitHub Desktop.
Simple wrapper to a todo application I have.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
curl -d "task[name]=$1" -d "task[sub_type]=$2" http://XXXXXXX/tasks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# my todo thingie | |
alias tdm='todos | grep MIQ' # work | |
alias sdm='todos | grep SG' # startup | |
alias pdm='todos | grep swmcc' # personal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# encoding: utf-8 | |
require 'json' | |
require 'open-uri' | |
require 'colorize' | |
json = JSON.parse open('http://XXXXXXX/tasks.json').read | |
puts "--todos--".colorize(:green).underline | |
json.each do |task| | |
puts "%50s %04d %s".colorize(:light_red) % [ task['name'], task['id'], task['sub_type'] ] | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment