I hereby claim:
- I am bunsenmcdubbs on github.
- I am bunsenmcdubbs (https://keybase.io/bunsenmcdubbs) on keybase.
- I have a public key ASBuF5mjsIcs5BgT00dQ9in8WR5Ip2z4EZq_tDBGjNGpRwo
To claim this, I am signing this object:
| package main | |
| import ( | |
| "fmt" | |
| "sync" | |
| ) | |
| type Subscriber struct { | |
| callback func() | |
| } |
I hereby claim:
To claim this, I am signing this object:
Installing:
On
Generally following instructions from https://hbase.apache.org/book.html#quickstart. Interesting notes and specific suggestions:
This quick guide will spin up a Postgres 12 container accessible from localhost:9432. This is NOT a durable setup and data is very likely to be lost after the database is shutdown. For demo purposes only.
In one shell, run
$ docker run -e POSTGRES_PASSWORD=postgres --publish 9432:5432 --name demo-pg12 postgres:12| type UserID int64 | |
| func export(customerID string) map[UserID]UserID { | |
| graph := fetchGraph(customerID) | |
| for src, _ := range graph { | |
| find(graph, src) // Since this function mutates the graph, we don't need to store the results separately | |
| } | |
| return graph | |
| } |
| #!/bin/bash | |
| # run this on the computer first | |
| ifconfig eth1 192.168.7.1 | |
| iptables --table nat --append POSTROUTING --out-interface wlan0 -j MASQUERADE | |
| iptables --append FORWARD --in-interface eth1 -j ACCEPT | |
| echo 1 > /proc/sys/net/ipv4/ip_forward |
| from Adafruit_I2C import Adafruit_I2C | |
| from time import sleep | |
| # initialize i2c connection to MPU6050 | |
| # i2c address is 0x68 | |
| i2c = Adafruit_I2C(0x68) | |
| # wake up the device (out of sleep mode) | |
| # bit 6 on register 0x6B set to 0 | |
| i2c.write8(0x6B, 0) |
| root@beaglebone:~# i2cdetect -y -r 1 | |
| 0 1 2 3 4 5 6 7 8 9 a b c d e f | |
| 00: -- -- -- -- -- -- -- -- -- -- -- -- -- | |
| 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- | |
| 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- | |
| 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- | |
| 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- | |
| 50: -- -- -- -- UU UU UU UU -- -- -- -- -- -- -- -- | |
| 60: -- -- -- -- -- -- -- -- 68 -- -- -- -- -- -- -- | |
| 70: -- -- -- -- -- -- -- -- |