Skip to content

Instantly share code, notes, and snippets.

View ngrinkevich's full-sized avatar

Nik Grinkevich ngrinkevich

View GitHub Profile
# Some good references are:
# http://russbrooks.com/2010/11/25/install-postgresql-9-on-os-x
# http://www.paolocorti.net/2008/01/30/installing-postgis-on-ubuntu/
# http://postgis.refractions.net/documentation/manual-1.5/ch02.html#id2630392
#1. Install PostgreSQL postgis and postgres
brew install postgis
initdb /usr/local/var/postgres
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
0xb09c059533C35A0a0acb82CdE4b7BeeA25473c81
0xb09c059533C35A0a0acb82CdE4b7BeeA25473c81
0x8cbc58399A66840bA65ec7875342C7A64dc3eE44
import libp2p from 'libp2p'
import PeerInfo from 'peer-info'
import WebRTCStar from 'libp2p-webrtc-star'
import KadDHT from 'libp2p-kad-dht'
import CID from 'cids'
class MyBundle extends libp2p {
constructor (peerInfo) {
const wstar = new WebRTCStar()
const modules = {
function createNode (callback) {
PeerInfo.create((err, peerInfo) => {
if (err) {
return callback(err)
}
const peerIdStr = peerInfo.id.toB58String()
const address = `/dns4/star-signal.cloud.ipfs.team/wss/p2p-webrtc-star/ipfs/${peerIdStr}`
peerInfo.multiaddrs.add(address)
const node = new MyBundle(peerInfo)
createNode((err, node) => {
if (err) {
return console.log('Could not create the Node', err)
}
node.on('peer:discovery', (peerInfo) => {
const idStr = peerInfo.id.toB58String()
console.log('Discovered a peer:', idStr)
})
import "AssetLedger.sol";
// TODO describe rules of exchange.
// In the AF market all users benefit from a "last look" facility to prevent
// them falling foul of mechanical arb sniping by those exploiting the way
// the blockchain and smart contract data lags the real markets being tracked.
// The system proceeds through a series of batching steps, which in practice
// might correspond to some number of blocks (for example, each batching step
// corresponds to a block). Orders collected in batching step B_i are initially
// in a "pending" state although visible within the book. Orders then remain
Verifying my Blockstack ID is secured with the address 1N7FJhVSPcrJ95goyecQmaxqtJsZG8gr2P https://explorer.blockstack.org/address/1N7FJhVSPcrJ95goyecQmaxqtJsZG8gr2P

Keybase proof

I hereby claim:

  • I am ngrinkevich on github.
  • I am nikgrinkevich (https://keybase.io/nikgrinkevich) on keybase.
  • I have a public key whose fingerprint is 2010 C31E 8467 2E7B CAAD A429 B33D B6D8 3F2A 0C9B

To claim this, I am signing this object: