Skip to content

Instantly share code, notes, and snippets.

View d3v1an7's full-sized avatar

Ben White d3v1an7

  • Sydney, Australia
View GitHub Profile
@d3v1an7
d3v1an7 / prettier-plugin-js-frontmatter.js
Last active December 16, 2024 23:29
Prettier plugin for formatting JS frontmatter in WebC (while keeping Tailwind CSS class sorting)
import prettier from 'prettier';
import { parsers as tailwindPluginParser } from 'prettier-plugin-tailwindcss';
import babelParser from 'prettier/plugins/babel';
const frontmatterRegex = /^---js\n([\s\S]*?)\n---\n/;
function parse(text, options) {
const match = text.match(frontmatterRegex);
if (match) {
const frontmatter = match[1];
const content = text.slice(match[0].length);
@d3v1an7
d3v1an7 / config.yaml
Last active December 9, 2024 03:34
macos-fresh-config
---
brew:
brew:
- coreutils
- jq
- mas
- poetry
- python-yq
- shellcheck
- zsh-completions
@d3v1an7
d3v1an7 / logseq-custom-priorities.css
Created November 7, 2022 07:05
Logseq theme customisation: switch A/B/C priorities to P1/P2/P3
a[priority],
a.priority {
font-size: 0px;
}
a[priority]::before {
font-size: var(--ls-page-text-size);
}
a[priority=A]::before,
a.priority[href="#/page/A" i]:before {
content: "P1";
@d3v1an7
d3v1an7 / ddr-extreme.md
Last active December 30, 2025 13:09
Setting up Stepmania to look/feel like DDR Extreme

Setting up Stepmania to look/feel like DDR Extreme

The first time I played DDR was on a 6th Mix DDR MAX cabinet, but I spent most of my time with this massive custom LED wall screen that housed DDR Extreme. So when I got a foam pad for home, I wanted to replicate what felt most comfortable.

I'm sure it's not pixel perfect, and there are probably some arcade features/behaviours I'm missing, but this setup is close enough for me!

  1. Download Beware's Stepmania Extreme build (direct)

If you don't mind using an older version of Stepmania, you're probably good to go and can ignore the rest!

@d3v1an7
d3v1an7 / gist:efa831775b37d9a39cc3548583bd3654
Created January 25, 2021 07:31
Minecraft stuff for the kiddos
# Make fun caves by walking around
# Repeat/Unconditional/Always Active
execute @a ~ ~ ~ fill ~-5 0 ~-5 ~5 250 ~5 air 0 replace stone 0
# Repeat/Unconditional/Always Active
execute @a ~ ~ ~ fill ~-5 0 ~-5 ~5 250 ~5 air 0 replace dirt 0
# Repeat/Unconditional/Always Active
execute @a ~ ~ ~ fill ~-5 0 ~-5 ~5 250 ~5 sealantern 0 replace stone 3
# Sand trap (dig a hole under the coordinates, have 2 layers of spider web after 1 block of air, then lava at the bottom)
# Activate trap
@d3v1an7
d3v1an7 / install.ps1
Last active August 1, 2022 05:08
For quick app install after a format.
<#
HOW TO USE
- Download this file
- Modify the `Install` and `Download` arrays below as required
- Find other packages here: https://winget.run
- Run `winget list` before formatting to help make your own array from scratch
- For anything you can't install via winget, get a download link, and add it to the download array
- Right click, then select 'Run with PowerShell'
WHAT WILL HAPPEN

Keybase proof

I hereby claim:

  • I am d3v1an7 on github.
  • I am d3v1an7 (https://keybase.io/d3v1an7) on keybase.
  • I have a public key whose fingerprint is B8FB 9F63 2CD1 F8EA 6581 9D2E FBCC F612 2B48 B3FC

To claim this, I am signing this object: