Skip to content

Instantly share code, notes, and snippets.

View couillardcharles's full-sized avatar

Charles Couillard couillardcharles

View GitHub Profile
@couillardcharles
couillardcharles / MongoSession.java
Created February 18, 2013 06:33
getAll problem
public <T> List<T> getAll(Class<T> entityType) {
checkNotNull(entityType, "Entity type was null");
state.ensureStarted();
return createExecutor(entityMapper(entityType)).execute(new BasicDBObject());
}
<dependencies>
<dependency>
<groupId>org.mongolink</groupId>
<artifactId>mongolink</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>org.mongolink</groupId>
<artifactId>mongolink-testtools</artifactId>
<version>1.0.0</version>
### Keybase proof
I hereby claim:
* I am couillardcharles on github.
* I am charlesco (https://keybase.io/charlesco) on keybase.
* I have a public key whose fingerprint is 1DDC 1D51 74DC 8117 1952 E3A5 7BDF 9DB6 6DF9 726B
To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am couillardcharles on github.
  • I am charlesco (https://keybase.io/charlesco) on keybase.
  • I have a public key whose fingerprint is 1DDC 1D51 74DC 8117 1952 E3A5 7BDF 9DB6 6DF9 726B

To claim this, I am signing this object:

Verifying that +charlesco is my blockchain ID. https://onename.com/charlesco
@couillardcharles
couillardcharles / 0_reuse_code.js
Created July 26, 2017 15:52
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
0xb72e124da3F1Fbb7C8459Bd8cdaAaB9eeFF88950 37833506766
0xa40b30b5D5b89ca54F4d7aE509Aaa7158D031E00 18916753383
0xA07e7dcBd3fF98FC4Bb9ACD5C4658939806b5aD2 1392400354156
0x7c0EA0C5A364B4c24c2309F33818FDf0A5EeD1EF 551460160263
0x1CF417f525D857d6C900c423fda4a128683c3991 696200177078
0x4912d524dd68D4191E581cd01d409C3aE8ea61B7 1016118161582
0x5f81f91e844824f70337f3A1A149EBB5713FbA2E 348100088539
0x44Ed67c2d8072399084b1Fa0F7F8742Dfb452b64 24970114465
0xc7bF6358f227DdA698A05e7aFE4f0Db4e5853272 142276951094
0xC1aAa136b3AD08B8c5e2FA165B5b0484a89AD58a 49399837359
0xA113368946E385243a0CbbB1589E4445c49e14F9 23098061573
0xa40b30b5D5b89ca54F4d7aE509Aaa7158D031E00 18938276677
0xA07e7dcBd3fF98FC4Bb9ACD5C4658939806b5aD2 1393984613417
0x7c0EA0C5A364B4c24c2309F33818FDf0A5EeD1EF 552087606144
0x1CF417f525D857d6C900c423fda4a128683c3991 696992306708
0x4912d524dd68D4191E581cd01d409C3aE8ea61B7 1017274290710
0x5f81f91e844824f70337f3A1A149EBB5713FbA2E 348496153354
0x41d4611c106aBAF51C0067E9233063e11BB7f580 35351449796
0xc7bF6358f227DdA698A05e7aFE4f0Db4e5853272 142438832392
0xC1aAa136b3AD08B8c5e2FA165B5b0484a89AD58a 49456044002

Changelog

Some timestamps have been added to user feeds and market data.

Http live endpoints

GET /v1/live/balances

{