- Install dependencies
sudo apt install -y libsdl2-dev libsdl2-2.0-0 libpng-dev zlib1g-dev nasm| function useImperativeAction(action) { | |
| const [status, setStatus] = useState(1); | |
| useEffect(() => { | |
| // negative means just cancel without re-running | |
| if (status >= 0) { | |
| return action(); | |
| } | |
| }, [status]); |
sudo apt install -y libsdl2-dev libsdl2-2.0-0 libpng-dev zlib1g-dev nasm| import React, { ChangeEvent, FormEvent } from "react" | |
| import { Trigger, useActions } from './Actions' | |
| function Form(props: FormProps) { | |
| const [state, act, modify, respond] = useActions<FormState>(props) | |
| respond(Trigger.Mount, fetchCountries) | |
| respond(Trigger.Change, updateProvinceList, state.birthCountry?.countryCode) | |
| return ( |
This gist assumes you have an odroid n-2, micro sd card, usb keyboard/mouse, power cable, wired internet, HDMI cable, computer monitor, and a Windows computer (with some way to connect the micro sd card).
(See https://ameridroid.com/blogs/ameriblogs/flashing-emmc-or-microsd-card for instructions)
.img.xz extension. https://wiki.odroid.com/odroid-n2/os_images/os_images