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
Example::Application.routes.draw do | |
# TRIFORCE /youcant | |
match :youcant, to: "youcant#triforce", via: :triforce | |
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
{ | |
"salad": { | |
"meat": "carnitas", | |
"beans": null, | |
"rice": true, | |
"addons": { | |
"salsa": ["hot"], | |
"sour_cream": false, | |
"cheese": false, | |
"guacamole": true, |
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
namespace :paperclip_migration do | |
desc 'Migrate data' | |
task :migrate_s3 => :environment do | |
# Make sure that all of the models have been loaded so any attachments are registered | |
puts 'Loading models...' | |
Dir[Rails.root.join('app', 'models', '**/*')].each { |file| File.basename(file, '.rb').camelize.constantize } | |
# Iterate through all of the registered attachments | |
puts 'Migrating attachments...' |
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
headerLabel.font = FONT_ON_SCREEN_TEXT; |
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
// Base Fonts | |
#define FONT_GIRL_SCOUTS_SEMIBOLD(x) [UIFont fontWithName: @"Omnes_GirlScouts-Semibold" size: (x)] | |
#define FONT_GIRL_SCOUTS_MEDIUM(x) [UIFont fontWithName: @"Omnes_GirlScouts-Medium" size: (x)] | |
// Semantic Fonts | |
#define FONT_CELL_TEXT_LABEL FONT_GIRL_SCOUTS_MEDIUM(17.0) | |
#define FONT_CELL_DETAIL_TEXT_LABEL FONT_GIRL_SCOUTS_MEDIUM(14.0) | |
#define FONT_ON_SCREEN_TEXT FONT_GIRL_SCOUTS_MEDIUM(15.0) | |
#define FONT_ON_SCREEN_TEXT_SMALL FONT_GIRL_SCOUTS_MEDIUM(13.0) |
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
#pragma clang diagnostic push | |
#pragma clang diagnostic ignored "-Warc-retain-cycles" | |
NSAssert(FALSE, @"NSAssert uses self, which will cause a retain cycle warning under ARC"); | |
#pragma clang diagnostic pop |
NewerOlder