Skip to content

Instantly share code, notes, and snippets.

View tygas's full-sized avatar
🤓
Pushing blockchain with @dappradar

Crypto Tygas tygas

🤓
Pushing blockchain with @dappradar
View GitHub Profile
@tygas
tygas / mongo_select_deeper_column.js
Created September 17, 2014 11:25
Mongo select deeper column
var cursor = db.VirtualMachine.find().limit(10);//
var map = function() {
emit(this._id, this.Name);
};
var emit = function(key, value) {
print("id: " + key + " Name: " + tojson(value));
};
while (cursor.hasNext()) {
@tygas
tygas / 0_reuse_code.js
Last active August 29, 2015 14:06
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console