Skip to content

Instantly share code, notes, and snippets.

View Alhadis's full-sized avatar
💭
Sick of this AI hysteria

John Gardner Alhadis

💭
Sick of this AI hysteria
View GitHub Profile
@Alhadis
Alhadis / SHA256
Last active May 29, 2025 08:03 — forked from amolofos/modern.ie.vms.json
modern.ie json dataset
605a3d100dc072c3b19d8b7d5ee804b9ccf284b8b5e4b3ead5370e151a3cff45 release_notes_license_terms_8_1_15.pdf
17b5b0d4903540ff244dd5d454b3f449a88b320c5aa137f271914cd990d28f8e IE6.XP.For.Windows.HyperV_2008R2.txt
a5c78ee51f256c9003ccf030486bae4aef2738ca9ee245ea9432e3613e469433 IE6.XP.For.Windows.HyperV_2008R2.zip
689bc6625b0d79f9109ec860628745bacca04f88931de2cdd5e4b1047fde81ca IE6.XP.For.Windows.HyperV_2008R2.zip.md5.txt
96cc9912da14e2c9a28a69e0d1ec12c19e2885a2fba5ec5e5a58c505f44c0a75 IE6.XP.For.Windows.HyperV_2008R2.zip.001
a0f48016670d8170159c5b43b8d51478a9107b245ab375e120e7681804ef938b IE6.XP.For.Windows.HyperV_2008R2.zip.001.md5.txt
e3e36d9a6d0da06d7a74defcf6d4110eef19a6fb603f31fdf739265bb53b1f08 IE6.XP.For.Windows.HyperV_2008R2.zip.002
adbb18da2b16342c36feecdf0963eebe661371d6b33928616a0fcc0e0adff3be IE6.XP.For.Windows.HyperV_2008R2.zip.002.md5.txt
07a4e6a52036ed098abd35e65c32bc3bd180fee8a1ab009579d3e286e46e2f71 IE7.Vista.For.Windows.HyperV_2008R2.txt
4ec7f739f0b4ee78d29b1ce754d7cd254e228303432af7bb5243
@Alhadis
Alhadis / efirestool.c
Created April 9, 2021 21:25 — forked from stek29/efirestool.c
efirestool -- tool to work with APPL efires archives
#include <sys/types.h>
#include <unistd.h> // write
#include <fcntl.h> // open, close
#include <stdio.h> // fprintf
#include <string.h> // strerror, strdup, strchr
#include <stdlib.h> // free, EXIT_*
#include <sys/mman.h> // mmap, munmap
#include <sys/stat.h> // fstat
#include <errno.h> // errno
#include <dirent.h> // DIR, dirent, opendir, readdir
@Alhadis
Alhadis / fraction-fever.fea
Created August 31, 2020 15:50
Fraction Fever
# Source: http://web.archive.org/web/20130325033504/http://talleming.com/2009/10/01/fraction-fever-2/
@figures = [
zero
one
two
three
four
five
six
seven
@Alhadis
Alhadis / Makefile
Created May 1, 2020 15:21
Installing Snack for Tcl on macOS
DEST = $(HOME)/Library/Tcl
TCL = /System/Library/Frameworks/Tcl.framework
TK = /System/Library/Frameworks/Tk.framework
X = /Developer/SDKs/MacOSX10.6.sdk/usr/X11/include
all: ../unix/Makefile
cd ../unix && $(MAKE) && $(MAKE) install
../unix/Makefile:
cd ../unix && ./configure --disable-stubs --with-tcl=$(TCL) --with-tk=$(TK) CPPFLAGS=-I$(X)
@Alhadis
Alhadis / match.mjs
Created April 29, 2020 17:26
Balanced recursive match example
#!/usr/bin/env node
// Recursive match example
let input = `$(foo $(bar $(baz) qux) qul $(quz) 1) $(almost lisp`;
const matches = [];
const stack = [];
const {length} = input;
for(let i = 0; i < length; ++i){
let char = input[i];
@Alhadis
Alhadis / Makefile
Created March 28, 2020 05:04
Stupid compilation test
BIN = ../../var/bin
LIB = ../../var/lib
SRC-MAIN = print-status.mjs
SRC-QJS = qjs-entry.mjs
NAME = git-status
TMP = $(TMP-MAIN) $(TMP-QJS)
TMP-MAIN = $(LIB)/$(SRC-MAIN)
TMP-QJS = $(LIB)/$(SRC-QJS)
BUNDLE = $(LIB)/$(NAME).mjs
@Alhadis
Alhadis / ieee-754.mjs
Last active February 27, 2020 13:01
IEEE 734.mjs
#!/usr/bin/env node
export const qNaN = Symbol("qNaN");
export const sNaN = Symbol("sNaN");
/**
* Convert a binary floating-point representation to a number.
*
* Source: IEEE 754-2008, table 3.5 “Binary interchange format parameters”
"use strict";
const {TextBuffer, TextEditor, Range, Point} = require("atom");
const ScreenLineBuilder = loadFromCore("text-buffer/lib/screen-line-builder");
const {emitText} = ScreenLineBuilder.prototype;
const exoticNewlines = "\r";
ScreenLineBuilder.prototype.emitText = function(...args){
const {buffer} = this.displayLayer;
const [char] = args;
@Alhadis
Alhadis / config.json
Created June 18, 2019 19:30
JSDoc helpers
{
"source": {
"includePattern": "\\.+(mjs|js(on|x)?)$"
}
}
@Alhadis
Alhadis / index.html
Created May 29, 2019 12:29
select-file.js
<!DOCTYPE html>
<html lang="en-AU">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="initial-scale=1, minimum-scale=1" />
<title>Cross-browser/Electron file selection</title>
</head>