Skip to content

Instantly share code, notes, and snippets.

View jordanbrauer's full-sized avatar

Jordan Brauer jordanbrauer

View GitHub Profile
@jordanbrauer
jordanbrauer / README.md
Last active February 27, 2024 13:42
Runes.txt (Diablo II)

Runes.txt

Ladder only runewords, by default, are not able to be used in Single Player in Diablo II: Lord of Destruction.

  1. Download the Runes.txt file below.
  2. Place the Runes.txt file into your Diablo II directory under Diablo II\data\global\excel.
    Please note, these folders may need to be created!
  3. Right click on your Diablo 2 shortcut → properties → Add -direct -txt in the target line after ...\Diablo II\Diablo II.exe
  4. Test runewords!
@jordanbrauer
jordanbrauer / citylights-slack
Created April 9, 2021 22:12
City lights slack edition
#1F252B,#4F565C,#2F95F6,#FFFFFF,#333F49,#BAC5D1,#5EAD85,#C55E6B,#1F252B,#BAC5D1
@jordanbrauer
jordanbrauer / Earthfile
Created August 6, 2021 18:11
Earthly PHP Example
FROM php:8.0-fpm-alpine
WORKDIR /var/www
build:
COPY index.php .
SAVE ARTIFACT index.php /index.php
docker:
COPY +build/index.php .
ENTRYPOINT php /var/www/index.php
{
"require": {
"leocavalcante/siler": "^1.7",
"zendframework/zend-diactoros": "^2.2",
"zendframework/zend-httphandlerrunner": "^1.1"
}
}
@jordanbrauer
jordanbrauer / between.php
Created September 16, 2019 21:22
determine if a value is within range
/**
* Determine if a numeric value is within range
*
* @return bool
*/
function between($subject, $min, $max): bool {
if (!is_numeric($subject) {
throw new LogicException;
}
@jordanbrauer
jordanbrauer / thanos.sh
Last active July 27, 2019 03:09
perfectly balanced, as all things should be
#!/usr/bin/env bash
echo 'ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBgYC4tLTo6Ojo6LS0tLS5gYCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYC0tLy8vKysrKysrKysvLy8vLzo6Oi0uYCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBgLS8rK
// Hexadecimal Alpha Colour function
@function hda($hexdec: null, $alpha: 1)
{
@if $hexdec == null {
// throw error if no value supplied for $hexdec
@error "$hexdex cannot be null: was, NULL";
} @else {
// evaluate input
@if $alpha >= 1 {
// return plain hexadecimal value if $alpha is greater than or equal to 1.
@jordanbrauer
jordanbrauer / workflow.md
Created November 13, 2017 20:49 — forked from stuartsaunders/workflow.md
Versioning and Git Workflow

Semantic Versioning

Details:

Versions are denoted using a standard triplet of integers: MAJOR.MINOR.PATCH. The basic intent is that MAJOR versions are incompatible, large-scale upgrades of the API. MINOR versions retain source and binary compatibility with older minor versions, and changes in the PATCH level are perfectly compatible, forwards and backwards.

@jordanbrauer
jordanbrauer / megamenu.bulma.html
Last active October 19, 2017 17:58
Bulma 0.6 implementation of the megamenu extension https://github.com/hunzaboy/bulma-megamenu
<nav class="navbar">
<div class="navbar-brand">
<div class="navbar-burger burger" data-target="navMenubd-example">
<span></span>
<span></span>
<span></span>
</div>
</div>
@jordanbrauer
jordanbrauer / prealoadImages.js
Created July 24, 2017 01:07
Preload images on page
preloadImages() {
let i = 0;
const arr = [...Backgrounds, ...Images];
return new Promise(resolve => {
arr.map(filename => {
const img = new Image();
img.src = filename;
img.onload = () => (++i == arr.length) ? resolve() : 1;
});
});