- Attendee navigates to event page
- TODO System checks for and removed expired ticket reservations
- System shows event view with available tickets
- Attendee selects ticket(s) from page
- System warns/prevents selecting unavailable tickets
- Attendee starts checkout process
- TODO System marks selected tickets as reserved
- System shows ticket information screen (collect attendee info)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: -- -- -- -- -- -- -- -- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} |
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.
- Docker
In one shell, run
$ docker run -e POSTGRES_PASSWORD=postgres --publish 9432:5432 --name demo-pg12 postgres:12
Installing:
- HBase 2.3.4 (current stable version)
On
- MacOS 10.14
- Homebrew is available
- Java 8 and 11 installed (either system Java and/or installed via homebrew... not sure...)
Generally following instructions from https://hbase.apache.org/book.html#quickstart. Interesting notes and specific suggestions:
- seems like Java 8 is preferred. 11 is ok as well. https://hbase.apache.org/book.html#java
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:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"sync" | |
) | |
type Subscriber struct { | |
callback func() | |
} |