Skip to content

Instantly share code, notes, and snippets.

View Loksly's full-sized avatar

M Loksly Loksly

View GitHub Profile
db.comments.mapReduce(
function(){
emit(this.PostId, { Comments: [ this ]})
},
function(key, val){
var first = val.shift();
var comments = val.reduce(function(valorAnterior, valorActual){
return Array.prototype.concat.apply( valorAnterior, valorActual.Comments);
}, first.Comments );
@Loksly
Loksly / trexj.js
Last active January 12, 2018 10:36
Chrome easter egg, T-Rex for waiting rooms and so.
/*
T-Rex J.
T-Rex for waiting rooms and so.
see how it works: https://youtu.be/-D2s_9RCOrw
go this url: chrome://network-error/-106
press ctrl + shift + j