(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.
(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.
/* | |
* Bearer strategy for token authentication when accessing API endpoints | |
*/ | |
passport.use(new BearerStrategy( | |
function(token, done){ | |
try { | |
//we attempt to decode the token the user sends with his requests | |
var decoded = jwt.decode(token, tokenSecret); | |
//TODO: must check the token expiry and ensure the token is still valid |
module.exports = function liveReload(opt) { | |
var opt = opt || {}; | |
var port = opt.port || 35729; | |
var excludeList = opt.excludeList || ['.woff', '.js', '.css', '.ico']; | |
function getSnippet() { | |
/*jshint quotmark:false */ | |
var snippet = [ | |
"<!-- livereload script -->", | |
"<script type=\"text/javascript\">document.write('<script src=\"http://'", |
As configured in my dotfiles.
start new:
tmux
start new with session name: