Skip to content

Instantly share code, notes, and snippets.

Avatar
👨‍💻
Working, working, working...

Ben Peachey Potherca

👨‍💻
Working, working, working...
View GitHub Profile
@Potherca
Potherca / index.html
Created Nov 24, 2020
Warner Bros Cartoons Opening Titles
View index.html
<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 Nov 24, 2020
Implementation checklist
View implementation-checklist.md

Implementation checklist

  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 component need to be touched?

  3. How do you plan on implementing this ticket?
    Which steps do you need to take? Break it down into small chunks.

@Potherca
Potherca / compile-lynx-wasm.sh
Last active Nov 20, 2020
Steps to compile the Lynx web browser to Web Assembly
View compile-lynx-wasm.sh
# 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
View hello3.c
#include <stdio.h>
#include <emscripten/emscripten.h>
int main(int argc, char ** argv) {
printf("Hello World\n");
}
#ifdef __cplusplus
extern "C" {
#endif
View ds.sh
#!/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 Oct 21, 2020
LinkedIn Profile revision strategy
View README.md
@Potherca
Potherca / index.html
Created Aug 18, 2020
Timeline of books read by Goodreads user. Requires a GoodReads API key
View index.html
<!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 Aug 17, 2020
Output an ASCII string as SVG string in Go using https://github.com/asciitosvg/asciitosvg -- Run live at: https://play.golang.org/p/lDD5Mc3iVeU
View main.go
package main
import (
"fmt"
"github.com/asciitosvg/asciitosvg"
)
const logo = ` .-------------------------.
| |
| .---.-. .-----. .-----. |
@Potherca
Potherca / Cost.md
Last active Aug 17, 2020
The yearly costs of various online storage providers
View Cost.md

Online Storage Costs

Free

Provider TB GB € Yearly
Dropbox 0.002 2 Free
Microsoft 0.005 5 Free
Box 0.01 10 Free
@Potherca
Potherca / OIDC-core.md
Last active Aug 26, 2020
All the figures/diagrams from various OAuth2 related specs and standrds.
View OIDC-core.md

OpenID Connect Core

Abstract Flow

+--------+                                   +--------+
|        |                                   |        |
|        |---------(1) AuthN Request-------->|        |
|        |                                   |        |
|        |  +--------+                       |        |
You can’t perform that action at this time.