This file contains hidden or 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
    
  
  
    
  | require 'active_record' | |
| require 'lib/seeder' | |
| namespace :seed do | |
| # | |
| # All | |
| # | |
| task(:all => :environment) do | 
  
    
      This file contains hidden or 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
    
  
  
    
  | /* | |
| Sets up any compass imports, as well as variables used throughout css files. This way all files can access the libraries, but without | |
| adding additional code to every css file. | |
| */ | |
| //////////////////////////////////////////////// | |
| // Import Blueprint defaults | |
| //////////////////////////////////////////////// | |
| @import "blueprint/grid"; | |
| @import "blueprint/typography"; | 
  
    
      This file contains hidden or 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
    
  
  
    
  | def convert_to_brightness_value(background_hex_color) | |
| (background_hex_color.scan(/../).map {|color| color.hex}).sum | |
| end | |
| def contrasting_text_color(background_hex_color) | |
| convert_to_brightness_value(background_hex_color) > 382.5 ? '#000' : '#fff' | |
| end | 
  
    
      This file contains hidden or 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
    
  
  
    
  | #---------------------------------------------------------------------------- | |
| # Git Setup | |
| #---------------------------------------------------------------------------- | |
| file '.gitignore', <<-FILE | |
| .DS_Store | |
| log/*.log | |
| tmp/**/* | |
| config/database.yml | |
| db/*.sqlite3 | |
| public/uploads/* |