Skip to content

Instantly share code, notes, and snippets.

View Potherca's full-sized avatar
🤔
I wonder what this button does…

Ben Peachey Potherca

🤔
I wonder what this button does…
View GitHub Profile
@Potherca
Potherca / README.md
Last active December 30, 2020 10:39
Example JS code for https://tixy.land
@Potherca
Potherca / index.html
Created November 24, 2020 20:37
Warner Bros Cartoons Opening Titles
<base href="https://www.closinglogos.com/page/Looney_Tunes_IDs">
<h1>Warner Bros Cartoons Opening Titles</h1>
<h2><span>1st Logo</span><span>1930</span></h2>
<img src="/images/c/ca/D8GRkegIVUr5QRLPz68zug13084.jpeg"/>
<img src="/images/1/17/2534c53da7f68f8e0fe3cd03f26d3c90.jpeg"/>
<img src="/images/0/02/VwNAulJwe0fGIPCqGZbbnQ68032.png"/>
<img src="/images/3/31/0add3a153d3a8fa36c54915c89b6274a.png"/>
@Potherca
Potherca / implementation-checklist.md
Last active March 17, 2021 10:28
Plan of Attack / Work Breakdown Checklist

Plan of Attack / Work Breakdown Checklist

Before starting work on a ticket, ask yourself the following questions:

  1. Who will benefit by the implementation of the ticket?
    The end user? Other developers? Other systems?

  2. What do you need to edit in the code to implement the ticket?
    Which classes or components need to be touched?

@Potherca
Potherca / compile-lynx-wasm.sh
Last active April 13, 2024 16:05
Steps to compile the Lynx web browser to Web Assembly
# Sources used in figuring this out:
#
# - https://developer.mozilla.org/en-US/docs/WebAssembly/C_to_wasm
# - https://emscripten.org/docs/compiling/Building-Projects.html#building-projects
# Set up Emscripten SDK
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk/
./emsdk install latest
./emsdk activate latest
#include <stdio.h>
#include <emscripten/emscripten.h>
int main(int argc, char ** argv) {
printf("Hello World\n");
}
#ifdef __cplusplus
extern "C" {
#endif
#!/usr/bin/env bash
ds() {
is_command() {
[[ -x "$("${command}" -v "$1" 2> /dev/null)" ]] && return 0
return 1
}
is_command 'dos2unix' || { echo 'dos2unix is required'; exit 1; }
@Potherca
Potherca / README.md
Last active December 7, 2020 15:36
LinkedIn Profile revision strategy
@Potherca
Potherca / index.html
Created August 18, 2020 12:51
Timeline of books read by Goodreads user. Requires a GoodReads API key
<!doctype html>
<meta charset="utf-8">
<meta name=viewport content="width=device-width, initial-scale=1">
<meta name="description" content="Timeline of books read by Goodreads user" />
<meta name="twitter:site" content="@potherca">
<meta name="twitter:title" content="Goodreads Timeline">
<meta name="twitter:description" content="Timeline of books read by Goodreads user">
<meta name="twitter:creator" content="@potherca">
@Potherca
Potherca / main.go
Last active June 14, 2022 08:54
Output an ASCII string as SVG string in Go using https://github.com/asciitosvg/asciitosvg -- Run live at: https://go.dev/play/p/t2TBmJ9Rpfl
package main
import (
"fmt"
"github.com/asciitosvg/asciitosvg"
)
const logo = ` .-------------------------.
| |
| .---.-. .-----. .-----. |
@Potherca
Potherca / Cost.md
Last active August 17, 2020 13:54
The yearly costs of various online storage providers

Online Storage Costs

Free

Provider TB GB € Yearly
Dropbox 0.002 2 Free
Microsoft 0.005 5 Free
Box 0.01 10 Free