Updated this for the first time in awhile in late 2020.
- Enable iCloud
- Disable iCloud mail
- Display to medium
- Turn up trackpad speed
| # Here is a little recursive method that pulls in all Twitter friends using recursion | |
| require 'rubygems' | |
| require 'twitter' | |
| def get_twitter_friends_with_cursor(cursor, list, client) | |
| # Base case | |
| if cursor == 0 | |
| return list | |
| else | |
| hashie = client.friends(:cursor => cursor) |
| SIGN UP | |
| curl -H "Content-Type:application/json" -H "Accept:application/json" \ | |
| -d "{\"user\":{\"password_confirmation\":\"12345678\", \"password\":\"12345678\", \"email\":\"[email protected]\"}}" \ | |
| http://your_server.com/users | |
| SIGN IN | |
| curl -H "Content-Type:application/json" -H "Accept:application/json" \ | |
| -d "{\"user\":{\"remember_me\":\"0\", \"password\":\"12345678\", \"email\":\"[email protected]\"}}" \ | |
| http://your_server.com/users/sign_in |
| //Throw this on your UITableViewDelegate (probably your UITableViewController) to achieve the "keyboard dismisses when I tap away" effect. | |
| //Your users will thank you. A lot. | |
| - (void) scrollViewWillBeginDragging:(UIScrollView *)scrollView { | |
| [self.view endEditing:YES]; | |
| } | |
| //The endEditing: method on UIView comes to us from a category that UITextField adds to UIKit that makes the view or any subview that is the first responder resign (optionally force), that's what the "YES" bit is. |
| // | |
| // UIColor+HexColor.h | |
| // | |
| // Created by Leah Culver on 11/9/10. | |
| // | |
| #import <UIKit/UIKit.h> | |
| @interface UIColor (HexColor) |
| upstream tumblr { | |
| server 72.32.231.8:80; | |
| } | |
| server { | |
| listen 80; | |
| server_name jyorr.com; | |
| access_log /var/log/nginx/jyorr.access.log; |
| From: http://snipt.net/yonishin/about-xcode-4-project-template | |
| XCode 4 Projects and Files Template Folder: /Developer/Library/Xcode/Templates | |
| Examples: | |
| /Developer/Library/Xcode/Templates/Project Templates/Base/Other/Empty.xctemplate | |
| /Developer/Library/Xcode/Templates/Project Templates/Base/Base.xctemplate | |
| /Developer/Library/Xcode/Templates/Project Templates/Mac/Mac Base.xctemplate | |
| /Developer/Library/Xcode/Templates/Project Templates/Mac/Application/Command Line Tool.xctemplate | |
| /Developer/Library/Xcode/Templates/Project Templates/Mac/Application/Cocoa Application.xctemplate |
| # autoload concerns | |
| module YourApp | |
| class Application < Rails::Application | |
| config.autoload_paths += %W( | |
| #{config.root}/app/controllers/concerns | |
| #{config.root}/app/models/concerns | |
| ) | |
| end | |
| end |
| easterEgg.BadWorder.list={ | |
| "4r5e":1, | |
| "5h1t":1, | |
| "5hit":1, | |
| a55:1, | |
| anal:1, | |
| anus:1, | |
| ar5e:1, | |
| arrse:1, | |
| arse:1, |
| - (UIImage *)pspdf_preloadedImage { | |
| CGImageRef image = self.CGImage; | |
| // make a bitmap context of a suitable size to draw to, forcing decode | |
| size_t width = CGImageGetWidth(image); | |
| size_t height = CGImageGetHeight(image); | |
| CGColorSpaceRef colourSpace = CGColorSpaceCreateDeviceRGB(); | |
| CGContextRef imageContext = CGBitmapContextCreate(NULL, width, height, 8, width*4, colourSpace, | |
| kCGImageAlphaPremultipliedFirst | kCGBitmapByteOrder32Little); |