Skip to content

Instantly share code, notes, and snippets.

View qubyte's full-sized avatar

Aura Everitt qubyte

View GitHub Profile
@qubyte
qubyte / Cargo.toml
Last active January 1, 2019 13:03
My solution to Advent of code 2018 day 10 (both parts) in Rust.
[package]
name = "task-1"
version = "0.1.0"
authors = ["Mark S. Everitt <[email protected]>"]
edition = "2018"
[dependencies]
regex = "1"
lazy_static = "1.2.0"
@qubyte
qubyte / Cargo.toml
Last active August 18, 2022 12:10
My revised solution to Advent of code 2018 day 10 (both parts) in Rust, this time using recap.
[package]
name = "task-1"
version = "0.1.0"
authors = ["Mark S. Everitt <[email protected]>"]
edition = "2018"
[dependencies]
recap = "0.1"
serde = "1.0.90"
@qubyte
qubyte / index.html
Created November 13, 2019 12:35
Conway's Game of Life. I put this together quickly as something to iterate on as a generative art project.
<!DOCTYPE html>
<html lang="en">
<head>
<script type="module" src="index.js"></script>
<title>Game of Life</title>
<meta charset="utf-8">
</head>
<body>
<h1>Game of Life</h1>
<canvas width="600" height="600"></canvas>
@qubyte
qubyte / .eslintrc.json
Created March 26, 2020 10:10
Disallow .only in mocha test files.
{
"env": {
"mocha": true
},
"rules": {
"max-nested-callbacks": ["error", 7],
"no-restricted-properties": [
"error",
{ "object": "describe", "property": "only" },
{ "object": "context", "property": "only" },
@qubyte
qubyte / uint8-array-to-base64.js
Created November 15, 2021 09:59
Convert a Uint8Array to base64.
/**
* There's no real reason to use this. Buffer is available in node:
*
* Buffer.from(typedArray.buffer).toString('base64');
*
* and the browser has atob/btoa (which are fine to use for the ascii
* characters used to represent bytes.
*/
function byteToBin(byte) {