This file contains 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
[ | |
{ "keys": ["alt+super+["], "command": "swap_line_up" }, | |
{ "keys": ["alt+super+]"], "command": "swap_line_down" }, | |
{ "keys": ["ctrl+i"], "command": "reindent", "args": {"single_line": false}}, | |
{ "keys": ["alt+0"], "command": "toggle_side_bar" }, | |
{ "keys": ["super+alt+left"], "command": "fold" }, | |
{ "keys": ["super+alt+right"], "command": "unfold" }, | |
{ "keys": ["alt+l"], "command": "show_overlay", "args": {"overlay": "goto", "text": ":"} }, | |
{ "keys": ["alt+shift+j"], "command": "reveal_in_side_bar"}, | |
{ "keys": ["alt+shift+o"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} }, |
This file contains 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
extension URL { | |
/// Use `let url = URL.placeholderImageUrl` | |
static var placeholderImageUrl: URL? { | |
let size = Int.random(in: 150..<800) | |
return placeholderImageUrl(with: CGSize(width: size, height: size)) | |
} | |
/// Use `let url = URL.placeholderImageUrl(with: CGSize(width: 200, height: 200))` | |
static func placeholderImageUrl(with size: CGSize) -> URL? { | |
let services = [ |
This file contains 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
/* Hide Reddit username new design (2018-) */ | |
div[class*="s1ilcdod-18 dsBbYg"] { | |
visibility: hidden; | |
} | |
/* Hide Reddit username old design (pre-2018) */ | |
span[class="user"] { | |
visibility: hidden !important; | |
} |
This file contains 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
// Swift 2.2 | |
// Xcode Version 7.3 (7D175) | |
// 1 | |
do { | |
try coordinator.addPersistentStoreWithType(NSSQLiteStoreType, configuration: nil, URL: url, options: nil) | |
} catch { | |
var dict = [String: AnyObject]() | |
// Build warning: |
This file contains 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
# install class-dump | |
brew install class-dump | |
# dump the frameworks you're interested in | |
class-dump -H -o UIKit /Applications/Xcode5-DP.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework | |
class-dump -H -o SpringBoardUI /Applications/Xcode5-DP.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/PrivateFrameworks/SpringBoardUI.framework |
This file contains 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
// Playground - noun: a place where people can play | |
import UIKit | |
import XCPlayground | |
XCPSetExecutionShouldContinueIndefinitely(continueIndefinitely: true) | |
let path = "http://www.reddit.com/r/simpleios.json" | |
let session = NSURLSession(configuration: NSURLSessionConfiguration.defaultSessionConfiguration()) | |
let url = NSURL(string: path) |
Resources outside of the software development process: submission, reviewing sales, marketing, etc.
- Provisioning information - Provisioning profiles explained.
- Provisioning app - A Quick Look plug-in for .mobileprovision files
- What's My UDID?
- .CLR files
~/Library/Colors
- Adobe Kuler - Color palette generator from Adobe.
- Color Picker -
- Prepo - Generate all icon sizes from an original.
- Glyphicons - library of precisely prepared monochromatic icons and symbols
- The Big Nerd Ranch blog has several posts on Swift. - http://www.bignerdranch.com/blog/categories/swift.html
- Apple's Swift blog is another resource I've started to reference. - https://developer.apple.com/swift/blog/
- NSHipster has a section on Swift at the bottom of the page. - http://nshipster.com/
- Erica Sadun's blog has several posts on Swift. - http://ericasadun.com/category/swift/
- Follow Christ Lattner, creator of Swift, on the Apple's developer forums. - https://devforums.apple.com/people/ChrisLattner
- Github's Swift style guide. - https://github.com/github/swift-style-guide
NewerOlder