Session resources for web developers, in order of presentation from “Moving the Web Forward with Microsoft Edge and Chromium”.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
squoosh-cli --oxipng {} ./*.png | |
squoosh-cli --mozjpeg {} ./*.jpg |
That which I often forget and frequently use. Git reference
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 |
Features, updates, and bug fixes I wish would come to products I use. Compiled because why not! Portmanteau courtesy of Rand Fitzpatrick.
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.