Skip to content

Instantly share code, notes, and snippets.

View thbourlove's full-sized avatar
💭
I may be slow to respond.

Tang Hongbo thbourlove

💭
I may be slow to respond.
View GitHub Profile
@thbourlove
thbourlove / 0_reuse_code.js
Created June 26, 2014 11:57
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
@thbourlove
thbourlove / foo.php
Last active December 22, 2015 17:09 — forked from jmikola/foo.php
<?php
$m = new MongoClient('mongodb://admin:admin@192.168.108.19:27017');
$c = $m->findone->foo;
$c->drop();
$c->insert(['_id' => 1, 'x' => str_repeat('z', 1000)]);
$c->insert(['_id' => 2, 'x' => str_repeat('z', 1000)]);
$c->insert(['_id' => 3, 'x' => str_repeat('z', 1000)]);
$c->insert(['_id' => 4, 'x' => str_repeat('z', 1000)]);
$c->insert(['_id' => 5, 'x' => str_repeat('z', 1000)]);