I hereby claim:
- I am jessecurry on github.
- I am jessecurry (https://keybase.io/jessecurry) on keybase.
- I have a public key whose fingerprint is AE69 C486 9CEC 9606 4C4E C394 B08C 3BFB C402 9463
To claim this, I am signing this object:
| #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 |
| // 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) |
| headerLabel.font = FONT_ON_SCREEN_TEXT; |
| 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...' |
| { | |
| "salad": { | |
| "meat": "carnitas", | |
| "beans": null, | |
| "rice": true, | |
| "addons": { | |
| "salsa": ["hot"], | |
| "sour_cream": false, | |
| "cheese": false, | |
| "guacamole": true, |
| Example::Application.routes.draw do | |
| # TRIFORCE /youcant | |
| match :youcant, to: "youcant#triforce", via: :triforce | |
| end |
| app.filter('bytes', function() { | |
| return function(bytes, precision) { | |
| if (isNaN(parseFloat(bytes)) || !isFinite(bytes)) { | |
| return '-'; | |
| } | |
| if (typeof precision === 'undefined') { | |
| precision = 1; | |
| } |
| // | |
| // BFParallaxImageView.h | |
| // bout-osx | |
| // | |
| // Created by Jesse Curry on 8/26/14. | |
| // Copyright (c) 2014 Bout Fitness, LLC. All rights reserved. | |
| // | |
| #import <Cocoa/Cocoa.h> |
I hereby claim:
To claim this, I am signing this object:
| .directive('jcKeypress', function () { | |
| return { | |
| template: '', | |
| restrict: 'AE', | |
| scope: { | |
| keyCode: '@', | |
| keyAction: '&' | |
| }, | |
| link: function(scope, element, attrs) { | |
| attrs.altKey = attrs.altKey || false; |