this is a minimal example of running sqlite in the browser.
this automatically persists the database in the browser.
these two files need to be placed in the same folder on a static web server.
Very sime plen nodeejs database.
Copy either racco.js
or racco.ts
straight into your project folder, depending on if you use javascript or typescript.
You must then set the DATA_DIR
variable at the top to the path to the folder which will contain the data, relative to the racco.js
file.
import microbit as mb | |
import radio | |
PHASE_SELECT_PLAYER = 1 | |
PHASE_PLAYING_GAME = 2 | |
current_phase = PHASE_SELECT_PLAYER | |
this_player = 0 | |
radio.config(channel=68, data_rate=radio.RATE_2MBIT) |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env bash | |
# Just for fun, a commandline unshortner. | |
# When googling, I found an out of date adf.ly unshortener, so I took it upon myself to create a new one | |
x=$(curl -i $1 | grep Location) | |
let "y = ${#x} - 9" | |
echo "$x" | tail -c "$y" |