24 cupcakes
- Vist https://twitter.com/settings/your_twitter_data/twitter_interests
- Open the JS console
- Run the script
let checkedInterests = [...document.querySelectorAll("input:checked")];
checkedInterests.forEach((input, index) => {
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
| const MyToggleButton = ({ isContentReady, {...props} }) => { | |
| const modelConfig = { | |
| isIntiallyToggled: true, | |
| shouldToggle: (data, state) => { | |
| if (!iContentReady) { | |
| return false; | |
| } | |
| return true; | |
| }, | |
| onToggle: (data, prevState) => { |
function eventHandler(...fns) {
return (e) => {
fns.forEach(fn => fn(e);
}
}
function Component({ onClick )) {
const handler = useClickable();
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
| // generate a random answer for a given range | |
| function setAnswer(min, max) { | |
| return Math.floor(Math.random() * (max - min + 1) + min); | |
| } | |
| // find the midpoint for a given range | |
| function getRangeMidpoint(min, max) { | |
| const count = min + max - 1; | |
| return Math.ceil(count/2); | |
| } |
Below are lists of simple cocktails to make at home that often share the same ingredients. If you're getting started, this is a great list to get some classic cocktails under your belt and practice your technique.
- Gin & Tonic - gin / tonic / fresh lime or lemon
- Gimlet - gin / simple syrup / fresh lime
Menu follows the Actions Menu pattern using aria-activedescendant. Below is table of supported keyboard shortcuts and associated actions.
| Key | Action |
|---|---|
Enter or Space |
Activates the menu item and then closes the menu |
Escape |
Closes the menu |
Up Arrow |
Moves focus to the previous menu item – if focus is on first menu i |