The sample code can be used to add ligatures to Google colab on ChromeOS using fonts such as JetBrains Mono & Fira Code. The unpacked extension can be loaded by following the official developer guide.
This file contains hidden or 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
| # sudo apt install tmux hx htop cmake rustup | |
| # rustup default stable && rustup component add rust-analyzer | |
| # hx --grammar fetch && hx --grammar build | |
| alias bg="cargo build --release && cmake --build build && ./build/game" | |
| alias cg="cd ~/game" | |
| alias hg="hx game.c src/*" | |
| function tx { | |
| cg | |
| if tmux has-session; then |
This file contains hidden or 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
| package main | |
| import ( | |
| "crypto/aes" | |
| "crypto/cipher" | |
| "crypto/rand" | |
| "crypto/sha256" | |
| "fmt" | |
| "io" | |
| "os" |
This file contains hidden or 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
| // Pieces extracted & trimmed from https://gitlab.com/CalcProgrammer1/OpenRGB | |
| // Basic usage : g++ crgb.cc -o ledoff && ./ledoff | |
| // For turning off RAM LEDs at startup : compile in root home directory & add "@reboot /root/ledoff" to "sudo crontab -e" | |
| #include <cstring> | |
| #include <iostream> | |
| #include <linux/i2c-dev.h> | |
| #include <linux/i2c.h> | |
| #include <sys/ioctl.h> |