Skip to content

Instantly share code, notes, and snippets.

@LarryStanley
LarryStanley / machine.js
Last active August 17, 2021 03:20
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
// - XState (all XState exports)
Machine({
id: 'getPlate',
initial: 'show',
context: {
parking_record: null,
plate: null,
lot_code: null,
error: null,
error_msg: null
},
@LarryStanley
LarryStanley / machine.js
Last active August 4, 2021 17:04
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@LarryStanley
LarryStanley / machine.js
Last active August 5, 2021 15:52
Generated by XState Viz: https://xstate.js.org/viz
Machine({
id: 'payment',
initial: 'show',
context: {
parking_record: null,
plate: null,
lot_code: null,
error: null,
error_msg: null
},
{
"program" : "load_balance.p4",
"__meta__" : {
"version" : [2, 7],
"compiler" : "https://github.com/p4lang/p4c"
},
"header_types" : [
{
"name" : "scalars_0",
"id" : 0,

Multi Cam Setup

  • cam0 10.10.0.201
  • cam1 10.10.0.103
  • switch 10.10.0.41
  • GPU 10.10.0.30

Run the System

module.exports = Public
},{}],268:[function(require,module,exports){
this.purchase = `
<b style="color:white" class="titlepopoutrightmini ethglow-calm-down-sumpunk">Keys</b> are your stake in each round, think of them as your own personal bits of the <b class="titlepopout-right-mini-grey-shadow">private keys</b> to the contract!<br>
<br>
<br>
<b>Buying 1 or more Full Keys</b><br>
- Adds 10 seconds to the timer for every key purchased, up to a hard-cap of 1 hour.<br>
-Lets <span class=popoverrightmini>you</span> exit-scam the contract if time runs out and <span class=popoverrightmini>you</span> were the last player to buy a full key.<br>
<br>
let buyMessagesOther = [
`$name just found $amount keys in the parking lot, i hope they weren't yours`,
`$name just paid a keysmith to make them $amount keys`,
`$name just bought $amount keys to spite everyone`,
`Ooh, $name just bought $amount keys, but they're running low on eth, nows your chance!`,
`whoever $name is, they just bought $amount keys`,
`with putty and careful practice $name just made $amount keys out of molten metal!`,
]
let buyMessagesSelf = [
######## Image Object Detection Using Tensorflow-trained Classifier #########
#
# Author: Evan Juras
# Date: 1/15/18
# Description:
# This program uses a TensorFlow-trained classifier to perform object detection.
# It loads the classifier uses it to perform object detection on an image.
# It draws boxes and scores around the objects of interest in the image.
## Some of the code is copied from Google's example at
ffmpeg -y -i rtsp://localhost:8554/ -vframes 1 /home/pi/test1.jpg
scp bn@10.10.0.43:/home/bn/Downloads/tensorflow1/models/research/object_detection/
ffmpeg -i rtsp://10.10.0.103:8554/ -f image2 -update 1 /home/bn/Downloads/tensorflow1/models/research/object_detection/test0.jpg