Skip to content

Instantly share code, notes, and snippets.

// fetched from binance here: https://api.binance.com/api/v3/depth?limit=10&symbol=BTCUSDT
// top 10 bids on binance
const orderbook = {
"lastUpdateId":17087314354,
"bids":[
["44127.87000000","0.20199000"],
["44127.55000000","0.00401000"],
["44127.53000000","0.10323000"],
["44127.17000000","0.04000000"],
["44126.73000000","0.04000000"],
@southbite
southbite / test.js
Created September 1, 2021 10:15
who'se your daddy algorithm, furry braaas funny PaaS
let organisations = [
{ id: 1, name: "grandaddy", parentId: null },
{ id: 2, name: "daddy", parentId: 1 },
{ id: 3, name: "sister", parentId: 2 },
{ id: 4, name: "brother", parentId: 2 }
]
const myChildId = 4;
function findChild(id) {
047cbc7ed5de394ba0e93d8f99b893a5239cec34883967d9293db64406e9847779cee9237af5a9d71b2769ef7a5765d0764716847e2677ffa85796a531ebed10b0
@southbite
southbite / gist:cc7802f76a6affbfc0b590a31e31d03f
Last active May 30, 2018 05:49
set IPFS up as a service in ubuntu 14.04

create the file /etc/init/ipfs.conf, with the following contents:

description "ipfs-daemon"
author      "Joe Bloggs"

start on started mountall
stop on shutdown

# automatically respawn