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
$(selector).html("text to be change"); |
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
## push文件到github时的问题 | |
fukurous-MacBook-Air:AngularJS-starter fukurou$ git push -u origin master | |
ssh: connect to host https port 22: Operation timed out | |
fatal: Could not read from remote repository. | |
Please make sure you have the correct access rights | |
and the repository exists. | |
##解决 | |
重新create了一个repo,没有initialize with a readme.file就没有出现这个问题。 |
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
https://github.com/yeoman/generator-angular/issues/1116 |
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
# using emacs 24.5 | |
1.fixing this in mac's default terminal by | |
open your Terminal app, click on the Terminal > Preferences > Settings > Keyboard, mark the option "Use option as meta key" |
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
using OS X EI Capitan 10.11.3 | |
using customization of purcell https://github.com/purcell/emacs.d | |
tried customization of prelude https://github.com/bbatsov/prelude it works. | |
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
solution: | |
touch README.md | |
git add README.md | |
git commit -m 'first commit' | |
git push -u origin master |
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
use | |
git branch --set-upstream-to=origin/master master | |
then git pull again. |
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
# delete untracked files | |
git clean -f | |
# delete untracked files as well as the directories | |
git clean -fd | |
# including gitignore file/directories (慎用,一般这个是用来删掉编译出来的 .o之类的文件用的) | |
git clean -xfd | |
# before using git clean,with -n parameter to preview the files or directories will be deleted |
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
From this link: https://www.youtube.com/watch?v=UFS7gi6LXhw&list=PLVpAurZqkV67DYxp5L8bx1g1yzE2hTe8m&index=12 | |
1. Learn language basic | |
a. Variable Types | |
b. Operators | |
c. Basic input and output | |
d. Print something on STDOUT | |
e. Basic program structure | |
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
const PENDING = 0; | |
const FULLFILLED = 1; | |
const REJECTED = 2; | |
function CustomPromise(executor) { | |
let state = PENDING; | |
let value = null; | |
let handlers = []; | |
let catches = []; | |