Skip to content

Instantly share code, notes, and snippets.


Ben Bleything bleything

Block or report user

Report or block bleything

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View flac2mp3
abort "Usage: flac2mp3 FLACFILE" if filename.nil?
`metaflac --export-tags-to=- "#{filename}"`.each_line do |s|
v=s.strip.split '=', 2
v[1].gsub! '"', '\"'
View gist:401553
module Enumerable
def frequencies
counts =
self.each{|item| counts[item] +=1}
return counts
bleything / shoes_midi_keyboard.rb
Created Nov 2, 2008 — forked from ahx/shoes_midi_keyboard.rb
A MIDI keyboard in Shoes.
View shoes_midi_keyboard.rb
# A very simple midi-keyboard with Shoes.
# No key-up Event.
# Set Keyboard layout here:
KEYBOARD_LAYOUT = :de # only :de and :us are supported, by now. See MidiKeymap#map_keys!
# You will need a midi input for this.
# On OSX you could use
# and or Garage Band
# enjoy.
You can’t perform that action at this time.