This file contains hidden or 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
| componentDidMount() { | |
| } | |
| componentDidUpdate() { | |
| } | |
| componentWillUnmount() { |
This file contains hidden or 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 reset --merge | |
| https://stackoverflow.com/a/60444590 |
This file contains hidden or 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 the last N commits from a certain author: | |
| $ git log -n number --author=author | |
| For example: | |
| # (changes in latest commit) | |
| $ git log --stat -n 1 | |
| # git-whatchanged show little more detail of all changes happened | |
| $ git whatchanged |
This file contains hidden or 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 $(pwd) instead of $PWD because $PWD is just a variable for display purpose | |
| # not actually change (cd) current working directory | |
| ~/dev/MyRepo$ PWD=~/dev/ | |
| ~/dev$ | |
| ~/dev$ $PWD | |
| bash: /home/Nashu/dev/: Is a directory | |
| ~/dev$ pwd |
This file contains hidden or 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
| let arr1 = ["it's Sunny in", "", "California"]; | |
| arr1.map(x => x.split(" ")); | |
| // [["it's","Sunny","in"],[""],["California"]] | |
| arr1.flatMap(x => x.split(" ")); | |
| // ["it's","Sunny","in", "", "California"] |
This file contains hidden or 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
| <?php register_nav_menus( [ 'primary' => __( 'Primary Menu' ) ] ); ?> |
NewerOlder