Note
This no longer works in browser!
Note
This no longer works if you're alone in vc! Somebody else has to join you!
How to use this script:
- Accept the quest under User Settings -> Gift Inventory
<?php | |
class TSGen | |
{ | |
public static function fromJSON(string $json, string $interfaceName): string | |
{ | |
try { | |
return self::generateInterface(json_decode($json, true, 512, JSON_THROW_ON_ERROR), $interfaceName); | |
} catch (JsonException $e) { | |
throw new InvalidArgumentException("Error parsing JSON: " . $e->getMessage()); |
### | |
### [2023-06-19] UPDATE: Just tried to use my instructions again on a fresh install and it failed in a number of places. | |
###. Not sure if I'll update this gist (though I realise it seems to still have some traffic), but here's a list of | |
###. things to watch out for: | |
### - Check out the `nix-darwin` instructions, as they have changed. | |
### - There's a home manager gotcha https://github.com/nix-community/home-manager/issues/4026 | |
### | |
# I found some good resources but they seem to do a bit too much (maybe from a time when there were more bugs). | |
# So here's a minimal Gist which worked for me as an install on a new M1 Pro. |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Jumping Game</title> | |
<style> | |
canvas { | |
border: 1px solid black; | |
} |
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> | |
<CodeBlocksConfig version="1"> | |
<editor> | |
<colour_sets> | |
<ACTIVE_COLOUR_SET> | |
<str> | |
<![CDATA[modnokai night shift v2]]> | |
</str> | |
</ACTIVE_COLOUR_SET> | |
<ACTIVE_LANG> |
# First setup Ubuntu 20.04 on your SD card if you haven't already | |
# I assume by this point you have the Ubuntu SD card still in your laptop/pc | |
# We need to copy the cat tool to the SD card | |
# Download the installer here: https://cat.eduroam.org/ | |
# Add the cat installer to the pi SD card; run these commands on your laptop | |
mkdir /mnt/rpi | |
# Find the block device for your SD card. Be careful here -- you can mess up your OS if you choose the wrong device! | |
lsblk # You should see something like | |
# mmcblk0 259:0 0 15.4G 0 disk |