Skip to content

Instantly share code, notes, and snippets.

@smurphy
smurphy / file1.txt
Created March 1, 2018 22:43
the description for this gist
String file contents
@smurphy
smurphy / file1.txt
Created March 1, 2018 22:17
the description for this gist
String file contents
@smurphy
smurphy / file1.txt
Created March 1, 2018 22:08
the description for this gist
String file contents
@smurphy
smurphy / file1.txt
Created March 1, 2018 22:08
the description for this gist
String file contents
db.createCollection("points");
db.points.ensureIndex( { loc : "2d" } )
for(var x = 0; x < 10; x = x + 1) {
for(var y = 0; y < 10; y = y + 1) {
db.points.insert({"loc": [x, y]});
}
}