Skip to content

Instantly share code, notes, and snippets.

View tmgldn's full-sized avatar
🏙️
londinium

Tom G tmgldn

🏙️
londinium
View GitHub Profile
@tmgldn
tmgldn / hard-reset.css
Created October 22, 2020 17:56
Hard Reset CSS
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
caption, article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
@tmgldn
tmgldn / fish_prompt.fish
Created December 13, 2020 00:40
af-magic for fishes
# extended from martpie/af-magic
# + uses fish built-in abbreviated paths instead of the af-magic one
# + hyphens go full width
# name: L
function _git_branch_name
echo (command git symbolic-ref HEAD 2> /dev/null | sed -e 's|^refs/heads/||')
end
function _is_git_dirty
@tmgldn
tmgldn / 1_benchmarks.md
Last active April 26, 2021 18:25
Benchmarks for CSS minifiers 2021 edition
@tmgldn
tmgldn / docker-compose.yml
Last active May 24, 2021 15:06
Figure I'll need this again
version: "3.8"
services:
db:
image: "postgres:12"
ports:
- "54320:5432"
volumes:
- ./pgdata:/var/lib/postgresql/data
environment:
- POSTGRES_USER=usrnm
@tmgldn
tmgldn / eslint.config.mjs
Created April 28, 2024 22:11
eslint config (wip)
import eslintJs from "@eslint/js";
import typescriptEslintPlugin from "@typescript-eslint/eslint-plugin";
import typescriptEslintParser from "@typescript-eslint/parser";
import disableRulesThatClashWithPrettierConfig from "eslint-config-prettier";
import eslintConfigXo from "eslint-config-xo";
import eslintPluginReact from "eslint-plugin-react";
import reactRecommended from "eslint-plugin-react/configs/recommended.js";
import eslintPluginReactHooks from "eslint-plugin-react-hooks";
import simpleImportSort from "eslint-plugin-simple-import-sort";
import eslintPluginUnicorn from "eslint-plugin-unicorn";