⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
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
# SERVER_TYPE: | |
# options are static or server (default is static) | |
SERVER_TYPE=static | |
# SERVER_HOST: | |
# only used if SERVER_TYPE is server | |
# this will be your url to your website example: mywebsite.local | |
SERVER_HOST=localhost | |
# SERVER_LAUNCH: |
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
#!/bin/sh | |
previous_version=$(git rev-parse HEAD@{1}) | |
git submodule init | |
git submodule update | |
git whatchanged --no-commit-id --name-only -r $previous_version.. | sort | uniq | xargs -n1 chown yoursite:psacln | |
git whatchanged --no-commit-id --name-only -r $previous_version.. | sort | uniq | xargs chmod g+rw | |
find ./* -type d -exec chown yoursite:psacln {} \; |
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
#!/bin/bash -e | |
# Wordpress shell script | |
case $1 in | |
install) | |
url="http://wordpress.org/" | |
version="latest" | |
if [$2]; |
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
# Ignore Sublime specific files | |
*.sublime-* | |
# Mac Specific files | |
.DS_Store | |
# Node Modules should be ignored | |
node_modules/ | |
# Ignore all SFTP config files |
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
// ---------------------------------------------------------- | |
// A short snippet for detecting versions of IE in JavaScript | |
// without resorting to user-agent sniffing | |
// ---------------------------------------------------------- | |
// If you're not in IE (or IE version is less than 5) then: | |
// ie === undefined | |
// If you're in IE (>=5) then you can determine which version: | |
// ie === 7; // IE7 | |
// Thus, to detect IE: | |
// if (ie) {} |