Best way I've found so far to show a preview thumbnail that links to a video, since you can't embed them in GitHub markdown.
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
# [ 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. |
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
git remote prune origin | |
git branch -r --merged master | egrep -iv '(master|develop)' | sed 's/origin\///g' | xargs -n 1 git push --delete origin |
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
//ARRAY ITERATION METHODS USING AN ANONYMOUS CALLBACK | |
// const addOne = function(number){ | |
// return (number + 1) | |
// } | |
const arr = [1,2,3,4,5] | |
console.log(arr.forEach(function addOne(actualItem, indexOfItem, arrayWereGoingThrough){ | |
console.log('actual item: ', actualItem, 'index of item ', indexOfItem) |
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
" 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. |
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
" 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. |
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 Ember from 'ember'; | |
export default Ember.Route.extend({ | |
model(/*params*/) { // or model: function() { } | |
return retrieveModel(); // return your model | |
} | |
// model() referred to as `model hook` because it's a specific method invoked | |
// by the Ember framework every time it needs to handle a web request. |
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
// 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.
- Open the console with
Ctrl+`
- Paste in the following:
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
# DiffMerge diff and merge tools | |
[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 |
NewerOlder