Show HN: AI to Arse – Chrome text replacer for the new age
github.com3 pointsby loadzero2 comments
// xref 0462
//
// This code is using the shot counter as an index into the ROM
// (where some code resides), for the purposes of random number generation.
//
// For the saucer direction logic, only bit 0 of each bytecode is used.
//
// The 256 bytes used reside at 0800 -> 08FF
//
// If you check bit 0 of each byte in that ROM section, you will find that there is no bias,
// and there are exactly 128 0's and 128 1's.
//
// It seems unlikely that this was an accident, I think Nishikado deliberately constructed
// the ROM this way, and used some well placed NOPs to achieve fair balance.
//
// E.g. these NOPs
//
// 0854: 00 00 00
// 0883: 00 00 00
//
// This information can be exploited to the player's advantage.
//
// If using the shot counting trick to get high scores, the
// expected saucer direction for the first 6 saucers (if counting),
// will be as follows:
//
// [22,37,52,67,82,97]
// [0, 1, 1, 0, 1, 1]
// [L, R, R, L, R, R] def flat_json_keys:
[leaf_paths as $path | {"key": $path | map(if (type=="string") then (if (test("([?:\\W]+)")) then "['"+.+"']" else . end) else "["+tostring+"]" end) | join(".") | gsub(".\\[";"[") , "value": getpath($path)}] | from_entries;
def ukeys:
keys_unsorted;
Use like so: cat wat.json | jq flat_json_keys Infra: AWS/Kops/K8s/Terraform/Golang
BE: NodeJS/Postgresql
FE: TypeScript/React/Maplibre/DeckGl
We are currently looking for the following roles: QA Engineer (6mo contract, junior role)
For more detail on the specific role see: https://www.birdi.io/qa-engineer Infra: AWS/Kops/K8s/Terraform/Golang
BE: NodeJS/Postgresql
FE: TypeScript/React/Maplibre/DeckGl
We are currently looking for the following roles: Senior Front End Developer (full-time)
For more detail, see our careers page : https://www.birdi.io/careers Infra: AWS/Kops/K8s/Terraform/Golang
BE: NodeJS/Postgresql
FE: TypeScript/React/Maplibre/DeckGl
We are currently looking for the following roles: DevOps (full-time)
Senior Front End Developer (full-time)
QA Engineer (6-month contract, full-time)
For more detail, see our careers page : https://www.birdi.com.au/careers