pkg install apt-transport-https curl gnupg pkg-config clang
pkg install freetype freetype-dev libpng libpng-dev libzmq-dev libzmq
mkdir $PREFIX/etc/apt/sources.list.d
echo "deb [trusted=yes] https://its-pointless.github.io/files/ termux extras" > $PREFIX/etc/apt/sources.list.d/pointless.list
curl -O https://its-pointless.github.io/pointless.gpg
This file contains 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
extends TileMap | |
const WALKABLE = 2 | |
var cells = Vector2Array() | |
func _ready(): | |
cells = get_used_cells() | |
pass | |
func find_path(map_from, map_to): |
This file contains 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
{ | |
"dependencies": { | |
"escodegen": "^2.0.0", | |
"esprima": "^4.0.1", | |
"estraverse": "^5.3.0", | |
"minimist": "^1.2.7" | |
} | |
} |
This file contains 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
- project directory in /storage/emulated/0/Download/projects/... | |
- sshd is running in termux and storage mounted | |
- files are edited with DroidEdit through ssh: ~/storage/downloads/projects/... | |
- external Löve command: | |
cd ${path} && zip -r test.love * -x test.love && am start -t org.love2d.android -a android.intent.action.VIEW -d "file://${path}/test.love" |
Docker + WSL2 + VcXsrv
compile from WSL2:
docker run -it --rm -v ~/FPGA/_Pocket/core-template/src/fpga:/build raetro/quartus:pocket quartus_sh --flow compile ap_core.qpf
run Quartus GUI:
docker run -it --rm -v ~/FPGA/_Pocket/core-template/src/fpga:/build -e DISPLAY="$(netsh.exe interface ipv4 show addresses Wi-Fi | head -n 4 | grep -oP [0-9.]+)":0 raetro/quartus:pocket quartus
This file contains 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
# make sure it's python 2.7 | |
sudo update-alternatives --config python | |
# build ghdl | |
sudo apt install -y git make gnat zlib1g-dev | |
git clone https://github.com/ghdl/ghdl | |
cd ghdl | |
./configure --prefix=/usr/local | |
make | |
sudo make install |
curl -fsSL https://its-pointless.github.io/setup-pointless-repo.sh | bash -
apt install git clang binutils make autoconf flex bison python3
git clone http://git.veripool.org/git/verilator
cd verilator
autoconf
./configure --prefix=${PREFIX}
make
make install
This file contains 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
const Bus = () => { | |
let listeners = {} | |
return { | |
register: (event, cb) => { | |
listeners[event] = listeners[event] || [] | |
listeners[event].push(cb) | |
}, | |
emit: (event, ...payload) => { | |
listeners[event].forEach(cb => cb(...payload)) | |
} |
This file contains 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 ubuntu:latest | |
WORKDIR /home/root | |
RUN apt update | |
RUN apt install git wget unzip apt-utils -y | |
RUN apt-get install -y locales | |
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \ | |
dpkg-reconfigure --frontend=noninteractive locales && \ |
This file contains 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
// A basic Futoshiki prototype | |
let size = 5 // decrease for easier games | |
let width = 300 | |
let height = 300 | |
let padding = width*0.03 | |
let cellwidth = (width/size)-padding*2; | |
let cellheight = (height/size)-padding*2 | |
let hv = 4 // vertical helpers | |
let hh = 4 // horizontal helpers |
NewerOlder