Skip to content

Instantly share code, notes, and snippets.

Alexander Leitner aleitner

Block or report user

Report or block aleitner

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:8dd935a94dbd8caf1cd6fda73adf5a4f
### Keybase proof
I hereby claim:
* I am aleitner on github.
* I am aleitner (https://keybase.io/aleitner) on keybase.
* I have a public key whose fingerprint is A4CC 082A BA27 FBC7 E302 54D7 3A54 D606 64EB 79D0
To claim this, I am signing this object:
@aleitner
aleitner / gist:8743979772ee023fa6b676367c2494fc
Created Aug 25, 2017
Current Robinhood Coin contract info (Rinkeby)
View gist:8743979772ee023fa6b676367c2494fc
Robinhood Coin Json Interface
[{"constant":false,"inputs":[{"name":"_sellPrice","type":"uint256"},{"name":"_buyPrice","type":"uint256"}],"name":"setPrices","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"robberyDifficulty","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"government","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_we
View gist:5a913940d6142e0a314358e152b3c0a7
0x8b54A82a12bD5A7bA33B4842cA677E55f78a8612
@aleitner
aleitner / print_upload_state.c
Created Feb 9, 2017
Print the upload state as a json array
View print_upload_state.c
static void print_upload_state(storj_upload_state_t *state)
{
json_object *jobj = json_object_new_object();
json_object *shard_concurrency = json_object_new_int(state->shard_concurrency);
json_object_object_add(jobj,"shard_concurrency", shard_concurrency);
json_object *completed_shards = json_object_new_int(state->completed_shards);
json_object_object_add(jobj,"completed_shards", completed_shards);
json_object *total_shards = json_object_new_int(state->total_shards);
json_object_object_add(jobj,"total_shards", total_shards);
View keybase.md

Keybase proof

I hereby claim:

  • I am aleitner on github.
  • I am aleitner (https://keybase.io/aleitner) on keybase.
  • I have a public key whose fingerprint is 7427 3C36 A6CA A693 A1AF 56A8 1547 D577 2C74 15CF

To claim this, I am signing this object:

You can’t perform that action at this time.