Skip to content

Instantly share code, notes, and snippets.

View higby's full-sized avatar
💜

branden higby higby

💜
View GitHub Profile
@higby
higby / stars.js
Created September 17, 2023 03:51
function star(input) {
if (typeof input !== 'number') throw new Error(`Requires number`)
let stars = ''
let floor = Math.floor(input)
for (let i = 0; i < floor; i++) stars += '★'
if (input - floor == 0.5) stars += '½'
@higby
higby / settings.json
Created August 2, 2023 01:31
VS Code Settings
{
// Appearance
"workbench.colorTheme": "Moonlight II Italic",
"workbench.iconTheme": "bearded-icons",
"editor.fontFamily": "MonoLisa",
"editor.fontSize": 14,
"editor.tabSize": 2,
"editor.lineHeight": 0,
"editor.fontLigatures": true,
"terminal.integrated.fontFamily": "MonoLisa",
@higby
higby / index.css
Created July 6, 2023 16:45
Consistent Pre & Code Font-Sizing
pre, code {
font-size: .95em;
}
pre code {
font-size: inherit;
}
@higby
higby / pgpFingerprint.txt
Created September 10, 2022 20:09
PGP Fingerprint
1028 DF1A 8C12 585A 36C4  2BAC 652B 8C7D 91BC 4895
const fs = require("fs");
module.exports = {
layout: (data) => {
if (data.page.outputFileExtension == "css") {
return null;
}
return data.layout || "base.njk";
},
directoryCSS: (data) => {
@higby
higby / short-url.js
Created May 19, 2021 20:01
Automate new Short Links
// Menu: New Short Link
// Modified version of https://github.com/dealingwith's 'new-post.js'
let worked = "Short link added"
let link = await arg('Link to?')
let slug = await arg('Slug?')
let file_slug = slug.toLowerCase().replaceAll(' ', '-')
let redirect_path = '(( path to redirects folder))'
let file_path = redirect_path + file_slug + '.md'
@higby
higby / higby.html
Last active May 1, 2021 16:48
higby
<!--
@C5%@mg
@#M## `7@p
^# @M
1##M @b
` ,#
#C sm,
,##e#W###
,,emM5"|`
,sm#M57@#