Skip to content

Instantly share code, notes, and snippets.

View Netherdrake's full-sized avatar
🚀
Trying not to waste too many epochs

furion Netherdrake

🚀
Trying not to waste too many epochs
  • 127.0.0.1
View GitHub Profile
" not a vi
set nocompatible
set encoding=utf-8
" switch between YCM and NeoComplete
let neocomplete_mode = 1
if has("mac")
let neocomplete_mode = 0
endif
@Netherdrake
Netherdrake / frontendspec
Last active August 29, 2015 14:11
Hello!
frontend - spec.part.01
===================
This is only a part of the final spec. Next part will be drafted after completion of current tasks.
----------
Prerequisites
-------------
@Netherdrake
Netherdrake / gist:6251628
Created August 16, 2013 17:02
brew upgrade vim to 7.4
Starting make in the src directory.
If there are problems, cd to the src directory and run make there
cd src && make first
mkdir objects
CC="/usr/bin/clang -Iproto -DHAVE_CONFIG_H -DMACOS_X_UNIX -no-cpp-precomp " srcdir=. sh ./osdef.sh
/usr/bin/clang -c -I. -Iproto -DHAVE_CONFIG_H -DMACOS_X_UNIX -no-cpp-precomp -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.8 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -o objects/os_macosx.o os_macosx.m
creating auto/pathdef.c
/usr/bin/clang -c -I. -Iproto -DHAVE_CONFIG_H -DMACOS_X_UNIX -no-cpp-precomp -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.8 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -o objects/os_mac_conv.o os_mac_conv.c
cd xxd; CC="/usr/bin/clang" CFLAGS="-DMACOS_X_UNIX -no-cpp-precomp -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.8 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1" LDFLAGS="-L. -Z -L/Users/mpapis/.sm/pkg/active/lib -L/usr/lib -fPIC -Bstatic -fstack-protector -L/usr/local/lib"

Keybase proof

I hereby claim:

  • I am Netherdrake on github.
  • I am netherdrake (https://keybase.io/netherdrake) on keybase.
  • I have a public key whose fingerprint is C6B3 453D 3703 93C5 A328 3CA6 AF96 DC0A 2C91 AD78

To claim this, I am signing this object:

@Netherdrake
Netherdrake / gist:a844ebf771c96929bee8ddb446d1cfa6
Created February 25, 2017 17:21
SteemData Sample Queries
// lets see whats in block 9508058
db.getCollection('Operations').find({'block_num': 9508058})
// operation types
db.getCollection('Operations').distinct('type', {})
// find latest payments to poloniex
db.getCollection('Operations').find({type: 'transfer', to: 'poloniex'}).sort({timestamp:-1})
@Netherdrake
Netherdrake / ipython.out.py
Created April 24, 2017 17:10
Blockchain.stream_from
In [1]: from steem.blockchain import Blockchain
In [2]: b = Blockchain()
In [3]: g = b.stream_from()
In [4]: next(g)
Out[4]:
{'block': 11351325,
'op': ['vote',
@Netherdrake
Netherdrake / example-dist.json
Created June 19, 2017 06:06
example distribution
This file has been truncated, but you can view the full file.
[
{
"name": "kushed",
"vests": 103507494.90337512,
"pct_share": 0.1704740256,
"token_share": 1704.7402564523
},
{
"name": "urbanoid",
"vests": 103507494.90337512,
This file has been truncated, but you can view the full file.
Initializing daemon...
Swarm listening on /ip4/127.0.0.1/tcp/4001
Swarm listening on /ip4/192.168.0.102/tcp/4001
Swarm listening on /ip6/::1/tcp/4001
API server listening on /ip4/127.0.0.1/tcp/5001
Gateway (readonly) server listening on /ip4/127.0.0.1/tcp/8080
Daemon is ready
17:39:51.422 ERROR core/serve: invalid ipfs path: path must contain at least one component gateway_handler.go:584
Received interrupt signal, shutting down...
<iframe
width="853" height="480"
src="https://alpha.view.ly/embed/<uploader>/<identifier>?autoPlay=true"
frameborder="0" allowfullscreen>
</iframe>
In [14]: s.set_node("https://gtg.steem.house:8090/")
In [15]: s.hostname
Out[15]: 'gtg.steem.house'
In [16]: %timeit -n 1 -r 3 s.steemd.get_blocks_range(10_000_000, 10_000_100)
850 ms ± 91.7 ms per loop (mean ± std. dev. of 3 runs, 1 loop each)
In [17]: s.set_node("https://rpc.steemliberator.com/")