Skip to content

Instantly share code, notes, and snippets.

View joemasilotti's full-sized avatar
📱
Helping Rails developers build iOS and Android apps with Turbo Native.

Joe Masilotti joemasilotti

📱
Helping Rails developers build iOS and Android apps with Turbo Native.
View GitHub Profile
@joemasilotti
joemasilotti / Gemfile
Last active October 25, 2022 08:40
How To Test PDFs with Capybara Blog post with details: http://pivotallabs.com/test-pdfs-with-capybara/
group :test do
gem 'rspec-rails'
gem 'capybara'
gem 'pdf-reader'
end
@joemasilotti
joemasilotti / XcodeCheatSheet.md
Last active August 13, 2018 17:17
Xcode Cheat Sheet

##Xcode Locations

###Xcode Provisioning Profiles:

~/Library/MobileDevice/Provisioning\ Profiles

###Xcode Font and Color Schemes:

~/Library/Developer/Xcode/UserData/FontAndColorThemes
@joemasilotti
joemasilotti / killsim.sh
Last active October 17, 2020 11:28
Kill iOS Simulator Zombie Processes
ps aux | grep _sim | grep -v grep | awk '{print $2}' | xargs kill -9 2>/dev/null
@joemasilotti
joemasilotti / rm_conflicted.sh
Last active August 29, 2015 13:57
Remove Dropbox Conflicted Files
find . -type f -name "* conflicted *" -exec rm -f {} \;
@joemasilotti
joemasilotti / remove_tag
Created May 11, 2014 13:11
Git: Remove remote tag
git tag -d 12345
git push origin :refs/tags/12345
@joemasilotti
joemasilotti / About.md
Last active March 26, 2020 09:35
Building NSURL Queries with NSURLQueryItems and NSURLComponents
@joemasilotti
joemasilotti / About.md
Last active February 25, 2016 22:16
NSDate Manipulation in iOS 8

This gist accompanies the blog post NSDate Manipulation Made Easy in iOS 8.

Apple quietly introduced a whole new suite of public API methods to NSCalendar in iOS 8 titled “Calendrical Calculations”. For some reason they seemed to have forgotten to include them in the public documentation on their developer site. Fortunately, digging in to the header file in Xcode reveals lots of descriptive comments about how to use these powerful new ways of interacting with NSDate objects.

@joemasilotti
joemasilotti / .gitconfig
Created June 23, 2015 11:41
git yesterday
[alias]
yesterday = log --graph --decorate --oneline --after='yesterday' --until='today midnight’
@joemasilotti
joemasilotti / ABVFormatter.h
Last active August 29, 2015 14:23
How to format ABV% in Objective-C.
#import <Foundation/Foundation.h>
@interface ABVFormatter : NSObject
- (NSString *)formattedABV:(NSNumber *)abv;
@end
@joemasilotti
joemasilotti / Backgrounder.h
Created July 7, 2015 16:16
Completion Blocks in Cedar
typedef void(^BackgroundCompletion)();
@interface Backgrounder : NSObject
- (void)executeInBackground:(BackgroundCompletion)completion;
@end