GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: A simple chord viewing interface layered upon pngs of mandolin chords I found somewhere a while ago.
Clone URL: git://github.com/kjell/chords.git
Useles memoization!
kjell (author)
Sat Aug 09 20:34:02 -0700 2008
commit  db36743219be00d4d04ebee03411e1ff165bb7be
tree    afdefa80d6e9cb248cecaabf32eea6f7ea881da6
parent  e616f7cf9eee4b3d3c63f120b81b9b4c7120cf71
...
4
5
6
7
 
8
9
10
...
4
5
6
 
7
8
9
10
0
@@ -4,7 +4,7 @@ Sinatra::Application.default_options.merge!(:run => false, :env => ENV['RACK_ENV
0
 
0
 
0
 def chords
0
- @chords ||= Dir["public/mandolin/**/*.png"].map do |image_path|
0
+ @__chords ||= Dir["public/mandolin/**/*.png"].map do |image_path|
0
     name = image_path.split('/').last.gsub('.png', '')
0
     OpenStruct.new(:chord => name, :path => image_path.gsub('public', ''))
0
   end

Comments

    No one has commented yet.