Skip to content

Instantly share code, notes, and snippets.

@indolering
indolering / WASI-Case-Folding.md
Created Oct 21, 2020
Proposal for Unicode case-folding of WASI filenames.
View WASI-Case-Folding.md

I apologize for the wall of text, there are a lot of concerns raised in the WASI case-senstivity ticket and I wanted to explain how everything works without just pointing to dense specs and code.

Case-insensitivity is important because it is required by end users: Windows, OS X, and Android all enforce some level of case-insensitivity. As a practical matter, this means Linux developers must manually enforce case-insensitivity. And despite much wailing and gnashing of teeth, even Linux has recently added support for case-insensitivity on a per-directory basis. Distros that care about usability will eventually adopt case-insensitivity, even if it is just for the home directories.

WASI’s current proposal trades Unix’s opaque bytes mo

View error-illustration.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Error Illustration</title>
<script defer>
'use strict';
if(window && !window.ACMESessionID){
View error-illustration.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Error Illustration</title>
<script defer>
'use strict';
const env = { //Some global values usually found in window or global...
@indolering
indolering / error-illustration.html
Created Sep 19, 2017
Illustration of error handling in ES6
View error-illustration.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Error Illustration</title>
<script defer>
'use strict';
class CustomError extends Error {}
@indolering
indolering / hello.js
Created Nov 19, 2016
Basic hello world.
View hello.js
console.log("Hello world!")
View Exams.js
var exams = [];
var exam = doc["Exm0"];
while(exam){
exams.push(exam);
exam = doc["Exm" + exam.length];
}
if(exams.length){
View blinker.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View hello.js
if(document){
try {
var h1 = document.createElement("h1");
var text = document.createTextNode("Hello World!");
h1.appendChild(text);
document.body.appendChild(h1);
document.title = "Hello World!";
} catch (error) {}
}
console.log("Hello World!");
View hello.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>loading</title>
</head>
<body style="width: 100%; height: 100%">
<script>
let h1 = document.createElement("h1");
let text = document.createTextNode("Hello World!");
@indolering
indolering / https-setup.md
Last active Jan 17, 2017
Shell script to generate TLS certificates for local development (.test, .example, etc)
View https-setup.md