Skip to content

Instantly share code, notes, and snippets.

@supermomonga
Created February 23, 2013 06:41
Show Gist options
  • Save supermomonga/5018736 to your computer and use it in GitHub Desktop.
Save supermomonga/5018736 to your computer and use it in GitHub Desktop.
# for test
gyazo_path = 'echo'
@@os = 'mac'
# osx logic
if @@os == 'mac'
require 'fssm'
FSSM.monitor('~/Library/Application Support/minecraft/screenshots', '**/*.png') do
create do|base, file|
`#{gyazo_path} #{base}/#{file}`
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment