Over the past couple years in school, I've placed tremendous value in a few things:
- Comprehensive, single-document summaries of courses I've taken;
- Beautifully type-set reports;
- Writing the bare-minimum of LaTeX to get by.
| "$schema" = 'https://starship.rs/config-schema.json' | |
| ### | |
| # Symbol bank | |
| # Font: Hack NF FC Ligatured CCG | |
| # Font source: https://github.com/gaplo917/Ligatured-Hack | |
| # | |
| # Pipes: ╰─ ╭─ ⎩ ⎧ | |
| # Powerline symbols: | |
| # Folders: 屢 |
| class JavaUtil { | |
| /** | |
| * Runtime checks, similar to the Kotlin standard library check method. | |
| */ | |
| public static void check(boolean condition, String message) { | |
| if (!condition) { | |
| throw new IllegalStateException(message); | |
| } | |
| } |
| #!/usr/bin/env python3 | |
| # Run this script to initialize a new sub project in the scratch/ | |
| # directory of an ns-3 distribution. This should allow one to get | |
| # started with the simulator more quickly. | |
| # | |
| # author: Keefer Rourke <krourke@uoguelph.ca> | |
| # license: ISC | |
| # | |
| # Copyright 2020 Keefer Rourke |
Starting point: mozilla-central with https://phabricator.services.mozilla.com/D85296 and dependent patches applied.
First, we make this change to trigger the error.
The relevant part of the error is:
0:06.54 /home/botond/dev/projects/mozilla/central/dom/system/IOUtils.cpp:204:3: error: no matching function for call to 'InvokeAsync'
0:06.54 InvokeAsync(
0:06.54 ^~~~~~~~~~~
| /** | |
| * WorkerScope prepares a function to be run in a web worker | |
| * without needing an external JavaScript file or forcing you | |
| * to deal with event listener. | |
| * | |
| * Example usage: | |
| * | |
| * await result = new WorkerScope( | |
| * () => self.postMessage('hi!') | |
| * ).run() // 'hi' |
| #!/usr/bin/env bash | |
| # git-loccount.sh | |
| # Pretty prints the total added, removed, and contributed lines of code for a given user | |
| # in a git repository. | |
| # | |
| # Arguments: | |
| # $1 - username | |
| # $2 - directory to check |
| import org.objectweb.asm.Opcodes | |
| data class AccessModifier(val code: Int, val name: String) | |
| enum class ClassPart { | |
| CLASS, | |
| METHOD, | |
| FIELD, | |
| MODULE, | |
| MODULE_REQUIRES |
| #!/usr/bin/env bash | |
| # exit codes | |
| EX_OK=0 | |
| EX_ERR=1 | |
| EX_USAGE=64 | |
| # default argument values | |
| since_year=2015 | |
| until_year=$(date +%Y) |
| #!/bin/bash | |
| # | |
| # latexcompile | |
| # Keefer Rourke <mail@krourke.org> | |
| # | |
| # To the extent possible under law, the person who associated CC0 with | |
| # latexcompile has waived all copyright and related or neighboring rights | |
| # to latexcompile. | |
| # | |
| # See <http://creativecommons.org/publicdomain/zero/1.0/> for a copy of |