- Jump down to the plugin
- Try it on Codepen — and heart it!
- Try it on Tailwind Play
- Read my blog post about this plugin - and share it!
and star this gist!
function numsFromNumsAndRanges(numsAndRanges) { | |
const nums = new Set(); | |
const numsAtStartOfRanges = new Set(); | |
const numsAtEndOfRanges = new Set(); | |
if (!numsAndRanges.length > 0) { | |
return { nums, numsAtStartOfRanges, numsAtEndOfRanges }; | |
} | |
for (const numOrRange of numsAndRanges.split(',')) { |
and star this gist!
@mixin focus() { | |
&:focus, | |
&:hover { | |
@content; | |
} | |
} | |
$btn-saturate-default: 25%; | |
$btn-lighten-default: 4%; | |
$btn-darken-default: 5%; // see also ecomm/molecules/button.scss |
const pathnamesOfInterest = ['of-interest', 'also-of-interest']; | |
/* | |
// if IE11 didn't need to be supported | |
elsOfInterest = [...document.querySelectorAll('a')]; | |
.filter(el => { | |
let pathname = ''; | |
if (el.href) { | |
const url = new URL(el.href); |
// ==UserScript== | |
// @name GitHub Ignore Whitespace | |
// @namespace https://olets.dev/ | |
// @version 1.1 | |
// @description Add URL parameter to ignore whitespace in GitHub pull request reviews | |
// @author Nimai C. Malle, forked by Henry Bley-Vroman | |
// @match https://github.com/*/*/pull/* | |
// @grant none | |
// @downloadURL https://gist.githubusercontent.com/olets/5083dad8870a4bdb4bf1cee8f38bc14b/raw/github_ignore_whitespace.js?v=1.1 | |
// ==/UserScript== |
Netbeans requires Java but the Netbeans Homebrew formula does not include Java as a dependency so it must be installed manually first:
brew install java
Per the Netbeans formula caveats,
For the system Java wrappers to find this JDK, symlink it with
When redirecting a form with a redirect input, for example
<input type="hidden" name="redirect" value="<url>">
the browser may preserve the window hash after the redirect. For example, submitting
/** | |
* Append form data to URL | |
* Henry Bley-Vroman, 2021 | |
* | |
* Takes a URL and a form, returns a URL | |
* Use case: handling form submission with JS | |
* | |
* `url = (form.action, form)` and then use `url` | |
* `url = (url, form)` and then use `url` | |
* |
Instructions for installing zsh plugins, for a variety of plugin managers
antibody: Add <owner>/<repo>
to your plugins file. If you use static loading update the sh.
Antigen: Add antigen bundle <owner>/<repo>
to your .zshrc
.