Skip to content

Instantly share code, notes, and snippets.

View melanierichards's full-sized avatar

Melanie Richards melanierichards

View GitHub Profile
@melanierichards
melanierichards / moving-the-web-forward.md
Last active September 13, 2020 01:57
"Moving the Web Forward with Microsoft Edge and Chromium": Session Resources
@melanierichards
melanierichards / eleventy-md-responsive-img.js
Last active October 17, 2020 22:36
Eleventy Markdown shortcode I use for responsive images
// Shortcode for responsive images in blog posts
eleventyConfig.addShortcode("responsiveImage", function(baseSrc, ext, max, alt, classes) {
let fullBaseSrc = '/assets/images/content/' + baseSrc;
var sources = '<source media="(min-width: 501px)" srcset="' + fullBaseSrc + '-m.' + ext + '">';
if (max !== 'm') {
sources = '<source media="(min-width: 801px)" srcset="' + fullBaseSrc + '-l.' + ext + '">' + sources;
}
if (max === 'xl') {
sources = '<source media="(min-width: 1201px)" srcset="' + fullBaseSrc + '-xl.' + ext + '">' + sources;
}
@melanierichards
melanierichards / squoosh-cli.txt
Last active October 6, 2022 05:09
My standard commands for the Squoosh CLI
squoosh-cli --oxipng {} ./*.png
squoosh-cli --mozjpeg {} ./*.jpg
@melanierichards
melanierichards / git.md
Last active August 28, 2022 17:32
Git commands

Git commands

That which I often forget and frequently use. Git reference

History

Purpose Command
Rebase git rebase -i HEAD~{n}, enter into editing mode in vim and save, git push --f
Reset to a previous commit after pushing changes git reset --hard {commit}, git push -f
@melanierichards
melanierichards / product-wishgist.md
Last active June 7, 2023 19:35
Product Wishlist

Product Wishgist

Features, updates, and bug fixes I wish would come to products I use. Compiled because why not! Portmanteau courtesy of Rand Fitzpatrick.

Miro

Following a Miro link to a specific board when signed out takes me to the "login" screen instead of the "signup" screen, so I can reduce number of clicks to participate in a board.

Notion