Install Package Control for easy package management.
- Open the console with
Ctrl+`
- Paste in the following:
# [ Modified from original => https://github.com/BenGitsCode/instructors.git ] | |
hanxue-mac:Github hanxue$ git clone https://github.com/AppScale/appscale.wiki.git | |
Cloning into 'appscale.wiki'... | |
remote: Counting objects: 1745, done. | |
remote: Compressing objects: 100% (1733/1733), done. | |
remote: Total 1745 (delta 1089), reused 10 (delta 4) | |
Receiving objects: 100% (1745/1745), 267.93 KiB | 35.00 KiB/s, done. | |
Resolving deltas: 100% (1089/1089), done. |
git remote prune origin | |
git branch -r --merged master | egrep -iv '(master|develop)' | sed 's/origin\///g' | xargs -n 1 git push --delete origin |
" show hidden characters in Vim | |
:set list | |
" settings for hidden chars | |
" what particular chars they are displayed with | |
:set lcs=tab:▒░,trail:▓ | |
" or | |
:set listchars=tab:▒░,trail:▓ | |
" used \u2592\u2591 for tab and \u2593 for trailing spaces in line. | |
" In Vim help they suggest using ">-" for tab and "-" for trail. |
" show hidden characters in Vim | |
:set list | |
" settings for hidden chars | |
" what particular chars they are displayed with | |
:set lcs=tab:▒░,trail:▓ | |
" or | |
:set listchars=tab:▒░,trail:▓ | |
" used \u2592\u2591 for tab and \u2593 for trailing spaces in line. | |
" In Vim help they suggest using ">-" for tab and "-" for trail. |
// Promise.all is good for executing many promises at once | |
Promise.all([ | |
promise1, | |
promise2 | |
]); | |
// Promise.resolve is good for wrapping synchronous code | |
Promise.resolve().then(function () { | |
if (somethingIsNotRight()) { | |
throw new Error("I will be rejected asynchronously!"); |
Install Package Control for easy package management.
Ctrl+`
[diff] | |
tool = diffmerge | |
[difftool "diffmerge"] | |
cmd = diffmerge \"$LOCAL\" \"$REMOTE\" | |
[merge] | |
tool = diffmerge | |
[mergetool "diffmerge"] | |
cmd = "diffmerge --merge --result=\"$MERGED\" \"$LOCAL\" \"$(if test -f \"$BASE\"; then echo \"$BASE\"; else echo \"$LOCAL\"; fi)\" \"$REMOTE\"" | |
trustExitCode = true |
People
:bowtie: |
😄 :smile: |
😆 :laughing: |
---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |
# Open up your atom's init script file and add the following lines, then restart atom. | |
path = require 'path' | |
endLine = (insertNewLine) -> | |
editor = atom.workspace.activePaneItem | |
if path.extname(editor.getPath()) is '.js' | |
editor.getCursors().forEach((cursor) -> | |
editor.moveCursorToEndOfLine() | |
line = cursor.getCurrentBufferLine().trim() |
#!/bin/sh | |
set -e | |
set -x | |
for package in $(npm -g outdated --parseable --depth=0 | cut -d: -f3) | |
do | |
npm -g install "$package" | |
done |