##Adding Swift Build System
- Open Sublime Text 3
- Go To
Preferences > Browse Packages...
- Add a file named
Swift.sublime-build
insidePackages
directory. - Copy the following script in
Swift.sublime-build
file.
{
"shell_cmd": "xcrun swift $file",
# defaults commands with com.apple.iphonesimulator | |
# usage in detail will show with `defaults` without any arguments | |
# this sets default simulator device to iPhone | |
defaults write com.apple.iphonesimulator SimulateDevice -string "iPhone" | |
defaults write com.apple.iphonesimulator SimulateSDKRoot -string "${SDKROOT_iphonesimulator}" | |
# this sets default simulator device to iPad | |
defaults write com.apple.iphonesimulator SimulateDevice -string "iPad" | |
defaults write com.apple.iphonesimulator SimulateSDKRoot -string "${SDKROOT_iphonesimulator_ipad}" |
// | |
// NBResponderChainUtilities.h | |
// | |
// Created by Nicolas @ bou.io on 19/04/13. | |
// | |
#import <UIKit/UIKit.h> | |
@interface UIView (NBResponderChainUtilities) | |
- (UIView*) nb_firstResponder; // Recurse into subviews to find one that responds YES to -isFirstResponder |
[ | |
// Goto Symbol | |
{ "keys": ["ctrl+alt+r"], "command": "goto_symbol_in_index"} | |
] |
" Don't try to be vi compatible | |
set nocompatible | |
" Helps force plugins to load correctly when it is turned back on below | |
filetype off | |
" TODO: Load plugins here (pathogen or vundle) | |
" Turn on syntax highlighting | |
syntax on |
#import <UIKit/UIKit.h> | |
@interface NumberPadDoneBtn : UIView | |
@end | |
@interface NumberPadButton : UIButton | |
@end |
osascript -e 'tell application "iOS Simulator" to quit' | |
osascript -e 'tell application "Simulator" to quit' | |
xcrun simctl erase all |
/* ~/Library/KeyBindings/DefaultKeyBinding.Dict | |
This file remaps the key bindings of a single user on Mac OS X 10.5 to more | |
closely match default behavior on Windows systems. This makes the Command key | |
behave like Windows Control key. To use Control instead of Command, either swap | |
Control and Command in Apple->System Preferences->Keyboard->Modifier Keys... | |
or replace @ with ^ in this file. | |
Here is a rough cheatsheet for syntax. | |
Key Modifiers |
##Adding Swift Build System
Preferences > Browse Packages...
Swift.sublime-build
inside Packages
directory.Swift.sublime-build
file.{
"shell_cmd": "xcrun swift $file",
One file for each domain, both www.example.com and example.com need separate files:
{
"applinks": {
"apps": [],
"details": {
"9JA89QQLNQ.com.apple.wwdc": {