Skip to content

Instantly share code, notes, and snippets.

View shwilliam's full-sized avatar
🍄

William Lindvall shwilliam

🍄
View GitHub Profile
@shwilliam
shwilliam / changelog.sh
Last active July 23, 2020 18:15
🚧 Generate simple `CHANGELOG.md`
#!/bin/bash
# script to generate markdown changelog
# reference: https://gist.github.com/koraktor/258806
git_tags=(`git tag |\
sort -r -n -t . -k 3 |\
sort -r -n -t . -k 2,2 -s |\
sort -r -n -t . -k 1,1 -s`)
tag_count=`git tag | wc -l`
.' '. __
. . . (__\_
. . . -{{_(|8)
' . . ' ' . . ' (__/
__ .' '.
_/__) . . .
(8|)_}}- . . .
`\__) '. . ' ' . . '
@shwilliam
shwilliam / redwood_cheatsheet.md
Created July 8, 2020 05:14
🌲 RedwoodJS Cheatsheet
yarn rw g page About /about
yarn rw g cell SomeCell
yarn rw generate layout blog

# generate migrations
yarn rw db save

# apply migrations
yarn rw db up 
@shwilliam
shwilliam / quotes.sql
Last active August 17, 2019 06:10
📜 Sample posts to fill `quotes` WP theme
# WordPress MySQL database migration
#
# Generated: Saturday 17. August 2019 05:37 UTC
# Hostname: localhost
# Database: `quotes`
# URL: //localhost/quotes
# Path: /Applications/MAMP/htdocs/quotes
# Tables: wp_commentmeta, wp_comments, wp_links, wp_options, wp_postmeta, wp_posts, wp_term_relationships, wp_term_taxonomy, wp_termmeta, wp_terms, wp_usermeta, wp_users
# Table Prefix: wp_
# Post Types: revision, attachment, customize_changeset, nav_menu_item, page, post
@shwilliam
shwilliam / tent.sql
Last active August 17, 2019 06:03
📜 Sample posts to fill `tent` WP theme
# WordPress MySQL database migration
#
# Generated: Saturday 17. August 2019 05:36 UTC
# Hostname: localhost
# Database: `inhabitent`
# URL: //localhost/inhabitent
# Path: /Applications/MAMP/htdocs/inhabitent
# Tables: wp_cfs_sessions, wp_cfs_values, wp_commentmeta, wp_comments, wp_links, wp_options, wp_postmeta, wp_posts, wp_term_relationships, wp_term_taxonomy, wp_termmeta, wp_terms, wp_usermeta, wp_users
# Table Prefix: wp_
# Post Types: revision, adventure, attachment, cfs, nav_menu_item, page, post, product, wpcf7_contact_form
@shwilliam
shwilliam / colors.json
Last active April 22, 2019 15:32
JSON file of HEX colors with aliases (based on colors used by The Pudding)
{
"black": "#000000",
"white": "#ffffff",
"light blue": "#2074b2",
"blue": "#1d5ea1",
"navy blue": "#272a51",
"light brown": "#ad775c",
"brown": "#773f25",
"dark brown": "#462615",
"light gray": "#bfbfbf",
@shwilliam
shwilliam / reset.css
Last active October 16, 2019 06:22
✨ My CSS reset
*, *:before, *:after {
box-sizing: border-box;
}
body {
scroll-behavior: smooth;
text-rendering: optimizeSpeed;
line-height: 1.5;
}
@shwilliam
shwilliam / accessibility-notes.md
Created March 21, 2019 03:27
Notes from a course by @jkup on website accessibility