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
,\s*?\]|,\s*?\}|,\s*?\) | |
> Regex CTRL+F | |
> Reference: https://www.codecourse.com/forum/topics/sublime-text-finding-that-trailling-comma-of-death |
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
quickAccess="C:\xampp\htdocs\\" | |
function hop { | |
if [ -z $1 ] || [ $1 == "list" ] ; then | |
cd $quickAccess; | |
ls; | |
else | |
cd $quickAccess$1; | |
fi | |
} |
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
; Remove all local branches | |
; http://stackoverflow.com/a/10610669/951517 | |
git branch -D `git branch --merged | grep -v \* | xargs` | |
; node_modules contains endless directory structure, so deep it cannot be removed. | |
; http://superuser.com/a/78436/152321 | |
npm install rimraf -g | |
rimraf <dir> | |
; Convert file using chardet & iconv |
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
<?php | |
/* | |
For an answer to: | |
http://stackoverflow.com/questions/8217769/is-there-a-way-to-download-bibtex-from-google-scholar-using-php | |
This is rate-limited / prohibited by Google | |
*/ | |
function get_page($url) { | |
$ch = curl_init(); |