(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
## | |
## http://lynx.isc.org/ | |
## | |
cd /usr/local/src | |
curl -O http://lynx.isc.org/lynx2.8.7/lynx2.8.7.tar.gz | |
tar -xzvf lynx2.8.7.tar.gz | |
cd lynx2-8-7 | |
./configure --mandir=/usr/share/man | |
make |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
GIT SQUASHING (another branch): | |
ok, do work on branches branches … lalala | |
git add -A | |
git commit -m 'TEAM-XXX' | |
Switch to the master branch and make sure you are up to date: | |
git checkout master && git fetch && git pull |
DELETE LOCAL BRANCH | |
To delete the local branch use one of the following: | |
$ git branch -d branch_name | |
$ git branch -D branch_name | |
-=-=-=-=-=- | |
DELETE REMOTE BRANCH |
-- Remove the history from | |
rm -rf .git | |
-- recreate the repos from the current content only | |
git init | |
git add . | |
git commit -m "Initial commit" | |
-- push to the github remote repos ensuring you overwrite history | |
git remote add origin [email protected]:<YOUR ACCOUNT>/<YOUR REPOS>.git |
// - WAIT FOR ME! - I PROMISE. | |
// resolve NESTED promises waiting for inner promises | |
function nestedPromisesThatresolveAfter4Seconds() { | |
return new Promise(resolve => { | |
setTimeout(() => { | |
setTimeout(() => { | |
console.log('setTimeout1') | |
resolve('Promise resolved'); | |
}, 4000); | |
console.log('setTimeout2') |
// 1 | |
```javascript | |
function sum(a) { | |
return function(b) { | |
return function(c) { | |
return a + b + c; | |
}; | |
}; | |
} | |
``` |
function removeUrlParameter(url, param) { | |
if (typeof URLSearchParams !== 'undefined') { | |
// modern browsers | |
var r = new URL(url); | |
r.searchParams.delete(param); | |
return r.href; | |
} else { | |
// IE version | |
return url.replace(new RegExp('^([^#]*\?)(([^#]*)&)?' + parameter + '(\=[^&#]*)?(&|#|$)' ), '$1$3$5').replace(/^([^#]*)((\?)&|\?(#|$))/,'$1$3$4') | |
} |