Skip to content

Instantly share code, notes, and snippets.

View brianwisti's full-sized avatar
🚚
State change: WA -> AZ

Brian Wisti brianwisti

🚚
State change: WA -> AZ
View GitHub Profile
---
# Settings for clean markdown on Random Geekery
# See https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md
#
# Some rules override others, but I'm not sure which.
default: True
# MD001: heading-increment
MD001: True
@brianwisti
brianwisti / notionish-dark.css
Created August 28, 2022 02:26
Quick dump of CSS output from a Notion-ish style I set up in Trilium Notes
:root {
--system-stack-sans-serif: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif;
--system-stack-serif: Iowan Old Style, Apple Garamond, Baskerville, Times New Roman, Droid Serif, Times, Source Serif Pro, serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
--system-stack-monospace: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace;
}
:root {
--notion-fg-default: rgb(255, 255, 255);
--notion-fg-gray: rgb(151, 154, 155);
--notion-fg-brown: rgb(147, 114, 100);

Keybase proof

I hereby claim:

  • I am brianwisti on github.
  • I am randomgeek (https://keybase.io/randomgeek) on keybase.
  • I have a public key ASAprXS_X-ehaquWkGbAIM7mdDAHfFy-E_DCLz2bALmnbQo

To claim this, I am signing this object:

@brianwisti
brianwisti / transform.js
Last active September 4, 2021 15:59
Use markdown-it to transform markdown files for consumption by other static site generators (Hugo specifically)
// This file processes a mess of FILE.md.txt files under Hugo `content/`,
// creating `index.html` files with HTML fragments and frontmatter.
// As far as Hugo's concerned it's just some more content, and I can prep
// for Astro or another Node-based SSG without disrupting the live site
// too much.
//
// Why? The Hugo version of my site is now SIX years old, and is a
// disorganized mishmash of formats and shortcodes. Porting it to
// anything else is what they call "non-trivial."
//
@brianwisti
brianwisti / hugo-theme-demo.py
Created December 28, 2015 02:12
First pass at previewing randomgeekery.org content with all themes in Hugo themes repository
#!/usr/bin/env python3
import os
import os.path
import subprocess
import time
from splinter import Browser
def is_theme_dir(folder, item):
#!/usr/bin/env perl
# Initial pass at massaging some Jekyll posts for rendering by Hugo
use v5.22.0;
use autodie qw(:all);
use experimental qw(signatures);
no warnings 'experimental';
use Data::Dump 'pp';
#+TITLE: ELijah's TODOs
* References
- [[https://twitter.com/sleeplessgeek/status/474191967417806848][this tweet]]
* TODO Crawl Around
* TODO Put Things In Mouth
* TODO Suck The Cat's Tail :StretchGoal:
@brianwisti
brianwisti / gist:10773065
Created April 15, 2014 20:55
brianwisti keybase.io verification
### Keybase proof
I hereby claim:
* I am brianwisti on github.
* I am brianwisti (https://keybase.io/brianwisti) on keybase.
* I have a public key whose fingerprint is A56C 53BB B0F5 A210 DCCA 416B 5656 59BA 99E3 A28A
To claim this, I am signing this object:
@brianwisti
brianwisti / vimrc.rb
Created November 26, 2013 19:05
Terrible idea: vimrc in Ruby
# A terrible idea
# Spent a couple minutes experimenting with the idea of using Ruby to initialize
# my Vim session instead of something reliable, like a .vimrc.
#
# Why? Because I love terrible ideas.
# BTW - only works for the simplest of options right now.
class VimSession
include VIM
def initialize &options
@brianwisti
brianwisti / default.coffee
Created June 11, 2012 14:46
Metro "Hello World" JavaScript, but in CoffeeScript
# Blank Metro Template, but in CoffeeScript
# Just a dumb rewrite of the default.js in
# http://msdn.microsoft.com/en-us/library/windows/apps/hh986964.aspx
buttonClickHandler = (eventInfo) ->
userName = document.getElementById("nameInput").value
greetingString = "Hello, #{userName}!"; # oh yeah, CS does string interpolation
document.getElementById("greetingOutput").innerText = greetingString
app = WinJS.Application