Skip to content

Instantly share code, notes, and snippets.

View knd's full-sized avatar

Khanh Dao knd

  • UC Berkeley
  • Saigon, Vietnam
View GitHub Profile
[13:44:31]knd : ~/Code
(ツ) payman report -c 187 -d tz1Xy4k9zRjEWiK8RYwyQH4uwrWetMz9JvwG -f 0.1 -u https://mainnet.tezrpc.me
+--------------------------------------+-----------+----------+----------+----------+
| ADDRESS | SHARE | GROSS | FEE | NET |
+--------------------------------------+-----------+----------+----------+----------+
| tz1bF78Yos424C7z2FenyBxngk9qnKMFeSyR | 0.080581 | 0.003223 | 0.000322 | 0.002901 |
| tz1Xy4k9zRjEWiK8RYwyQH4uwrWetMz9JvwG | 97.381227 | 3.895249 | 0.389524 | 3.505725 |
| tz1XcgfBBRp34pxNDnvfs7bTFr9P1AMJDHPw | 0.089760 | 0.003590 | 0.000359 | 0.003231 |
| KT1WaYBh2UCMKfdPE7eauDAzRDcfP9ycXXdK | 0.060842 | 0.002433 | 0.000243 | 0.002190 |
+--------------------------------------+-----------+----------+----------+----------+

Keybase proof

I hereby claim:

To claim this, I am signing this object:

0xB6853DA52601b17016Ed6c0424a7476FAC7e07bE
0x35141c0a36D9614443DA09DA13f35896f04dd14C
0x35141c0a36D9614443DA09DA13f35896f04dd14C
@knd
knd / AccessManagerConstructor.java
Created August 11, 2014 16:33
AccessManager Contructor
@SuppressWarnings("unchecked")
private AccessManager(String backingStore, int accessTokenTtl,
TimeUnit accessTokenTtlUnit) {
this.backingStore = backingStore;
this.tokenManager = AccessTokenManager.create(
@Override
public Map<TObject, Set<Long>> browse(String key) {
Map<TObject, Set<Long>> test = Transformers.transformTreeMapSet(getSecondaryRecord(Text.wrap(key))
.browse(), Functions.VALUE_TO_TOBJECT,
Functions.PRIMARY_KEY_TO_LONG, TObjectSorter.INSTANCE);
Variables.register("=== JUST FOR FUN ", test); // test is TreeMap when use debugger to trace
// test is also TreeMap when run with StoreTest.java
return test;
}
var fetch = require( 'request' );
fetch( 'http://www.google.com', function( error, response, body ) {
if ( !error && response.statusCode == 200 ) {
console.log( body );
}
});
@knd
knd / OutlineTechcampTalk.markdown
Last active August 29, 2015 13:57
Outline at Techcamp 2014 RMIT HCM VN

How I use github.com to learn to code

Intro:

  • Who am I?
  • Some clarification for my talk today

Section 1:

  • What the hell is Git?
  • Is Github.com git?
  • What is version control out there and differences?
@knd
knd / lastContextQuest.js
Last active December 11, 2015 01:39
final quest for context and function invocation.
hellKitchen = {
cook: function(cb) {
cb();
}
}
myKitchen = {
knd: function() {
console.log(this);
}