⌘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
import sys, json | |
class External(object): | |
def run(self): | |
line = sys.stdin.readline() | |
while line: | |
try: | |
response = self.process(json.loads(line.decode('utf_8'))) | |
except Exception, e: | |
response = {'code':500, 'json':{'error':True, 'reason':"Internal error processing request (%s)" % e}} |
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
# Installation: | |
# This assumes that "n98-magerun.phar" is in your path! | |
# Copy to ~/.config/fish/completions/n98-magerun.phar.fish | |
# open new or restart existing shell session | |
for cmd in (n98-magerun.phar --raw --no-ansi list | sed "s/[[:space:]].*//g"); | |
complete -f -c n98-magerun.phar -a $cmd; | |
end |
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
function _git_branch_issue_number | |
echo (git symbolic-ref HEAD ^/dev/null | sed -e 's/.*#//') | |
end | |
function hub-browse-issue | |
set -l issue_number (_git_branch_issue_number) | |
hub browse -- issues/$issue_number | |
end |
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
function showFiles | |
defaults write com.apple.finder AppleShowAllFiles YES | |
killall Finder /System/Library/CoreServices/Finder.app $argv | |
end |
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
function hideFiles | |
defaults write com.apple.finder AppleShowAllFiles NO | |
killall Finder /System/Library/CoreServices/Finder.app $argv | |
end |
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_nvm(){ | |
log_status "Installing NVM" | |
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.6/install.sh | bash | |
nvm install | |
} | |
npm_install(){ | |
local HAS_NODE_MODULES_BIN=$(find node_modules/.bin) | |
if [ -z "$HAS_NODE_MODULES_BIN" ]; then |
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
# place in ~/.config/starship-iterm.toml | |
# Don't print a new line at the start of the prompt | |
add_newline = false | |
[directory] | |
style = "" | |
disabled = true | |
[character] | |
disabled = 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
var toPatch = [ | |
{ sel: '[name="billingSameAsShipping"]' , click: true }, | |
{ sel: '[name="redeemableCode"]' , prop: 'placeholder', val: 'Enter Promo Code' }, | |
{ sel: '.ReactModalPortal [name="redeemableCode"]' , prop: 'placeholder', val: 'Enter Promo Code' }, | |
]; | |
var matchedSubscriptionItems = []; | |
function patchIt(patches) { | |
var afterElementExists = function(selector, cb) { | |
function findit() { |
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
[aws] | |
disabled = true | |
[package] | |
display_private = true | |
[env_var] | |
variable = "NPM_PACKAGE_NAME" | |
symbol = "🎁" |
OlderNewer