Skip to content

Instantly share code, notes, and snippets.

View alexhemard's full-sized avatar

alex hemard alexhemard

  • New Orleans, LA
View GitHub Profile
(def init-data
{:universe
{:size js/Infinity
:beings [{:name "John"}
{:name "Mary"}]}})
(defui Being
static om/Ident
(ident [this {:keys [name]}]
@alexhemard
alexhemard / flac.sh
Last active December 5, 2016 04:19
convert all flac files in a folder to mp3
for f in *.flac; do ffmpeg -i "$f" -acodec libmp3lame -ab 320k "${f%.flac}.mp3"; done
#!/usr/bin/env ruby
require 'open-uri'
require 'json'
puts JSON.parse(open('https://raw.github.com/ChaseFlorell/jQuery.ProfanityFilter/master/swearWords.json').read).sample
@alexhemard
alexhemard / ruby.sh
Last active December 11, 2015 14:38
mountain lion problems
~ $ /usr/bin/ruby -v
ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0]
~ $ /usr/bin/ruby swag.rb
794
~ $ ruby -v
ruby 1.9.3p362 (2012-12-25 revision 38607) [x86_64-darwin12.2.0]
~ $ ruby swag.rb
787
@alexhemard
alexhemard / gist:3241084
Created August 2, 2012 22:06
Cool Dancing Baby Bookmarket
javascript:(function(){a=document.getElementsByTagName('img');for(i in a){a[i].src="http://cache.ohinternet.com/images/a/ab/Dancing_baby.gif";}})();