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
| /** | |
| * Generates a random username, preferring alliteration where possible | |
| * @returns {string} A randomly generated username (e.g. "Perfect Pelican") | |
| */ | |
| export const alliterativeUsername = () => { | |
| // Initial list from https://github.com/sindresorhus/superb/blob/main/superb-words.json | |
| const adjectives = [ | |
| "ace", "amazing", "astonishing", "astounding", "awe-inspiring", "awesome", "badass", "beautiful", "bedazzling", | |
| "best", "breathtaking", "brilliant", "charming", "classy", "cool", "dandy", "dazzling", "delightful", "divine", | |
| "epic", "excellent", "exceptional", "exquisite", "extraordinary", "fabulous", "fantastic", "fantabulous", "fine", |
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
| /* | |
| So there's a critical UX flaw with most range slider implementations, whereby if | |
| both handles are on top of each other (e.g. to select a single value range like 80-80) | |
| then it's not clear to the user which handle is on top, and so dragging in a certain | |
| direction doesn't work. The user is then either bewildered or forced to drag in the | |
| opposite direction to the one they want in order to reveal the other handle. | |
| This component sets out to solve that problem by allowing the handles to pass each | |
| other, without sacrificing keyboard support (and minimising the mangling of A11y). |
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
| REM Requires 7zip or NanaZip to be installed | |
| @echo off | |
| set datestamp=%DATE:~10,4%%DATE:~4,2%%DATE:~7,2% | |
| cd C:\WSL-Backup | |
| echo "Exporting WSL image..." | |
| wsl --export Ubuntu-20.04 .\Ubuntu-20.04.tar | |
| echo "Zipping WSL export..." |
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
| /******************************* | |
| Site Overrides | |
| *******************************/ | |
| /* <meter> */ | |
| meter { | |
| /* Reset the default appearance */ | |
| // -webkit-appearance: none; /* this breaks Chrome v52+ http://blog.chromium.org/2016/06/chrome-52-beta-css-containment-simpler.html */ | |
| -moz-appearance: none; | |
| appearance: none; |
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
| Matches: | |
| subject:(-{"Direct Message"}) | |
| ( | |
| from:facebookmail.com OR | |
| from:linkedin.com OR | |
| from:foursquare.com OR | |
| from:postmaster.twitter.com OR | |
| from:twitter.com OR | |
| from:meetup.com OR | |
| from:friendfeed.com OR |
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
| Two guys are sitting at a bar. | |
| "You know why I love this bar?" asks the first one. | |
| "No," says the second guy. "Why do you love this bar?" | |
| The first guy points at the window, which is six stories above the ground. "It has a magic window," he says. "You jump out of that window, and you can fly." | |
| The second guy just shakes his head. "Shut up." |
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
| if(window.history && window.history.pushState) window.history.pushState({}, document.title, url); |
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
| Matches: (india AND (dear OR sir OR madam OR partner) AND (seo OR "web design" OR "web solution" OR "web marketing" OR outsource OR outsourcing)) | |
| Do this: Skip Inbox, Apply label "+SPAM", Never mark it as important |