Skip to content

Instantly share code, notes, and snippets.

const N = 1000;
db.items.remove({});
db.users.remove({});
db.items.createIndex({ features: 1, owner: 1 });
db.users.createIndex({ items: 1 });
db.users.createIndex({ partner: 1 });
for (let i = 0; i < N; i++) {
@alethes
alethes / .hyper.js
Created September 1, 2017 11:35
Hyper terminal configuration
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 12,
// font family with optional fallbacks
@alethes
alethes / gist:6d3cf8bbcc079c63061a
Last active August 29, 2015 14:16
JS: delete of set to undefined (void 0)?
var i,
N = 10000000;
console.log("");
console.time("delete");
var a = {};
for(i = 0; i++ < N;){
a.a = 1;