- Do the hardest thing first
- Do the easiest thing first
- Choose three things to do and a reward for doing them
- Pomodoro Technique (short): 25 minutes working / 5 minute break
- Pomodoro Technique (medium): 25 minutes working / 5 minute break / repeat x 2
- Pomodoro Technique (long): 25 minutes working / 5 minute break / repeat x 4 / 25 minute break
- Do the next physically possible thing on your list
- Set timers for the Fibonacci sequence: 1, 1, 2, 3, 5, 8, 13, …
- Set timers for an exponential sequence: 1, 2, 4, 8, 16, 32, …
- Set timers for tens of minutes: 10, 20, 30, 40, 50, 60, …
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
--- /var/folders/9l/nhzkyrvj4pl76fxg50t__3nw0000gn/T/web-features-4xWkLS/data.latest.json 2024-09-11 13:10:04 | |
+++ /var/folders/9l/nhzkyrvj4pl76fxg50t__3nw0000gn/T/web-features-4xWkLS/data.HEAD.json 2024-09-11 13:10:09 | |
@@ -1156,6 +1156,10 @@ | |
{ | |
"date": "2024-07-25", | |
"version": "127" | |
+ }, | |
+ { | |
+ "date": "2024-08-22", | |
+ "version": "128" |
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
{ | |
"data": { | |
"accent_color": { | |
"id": "accent_color", | |
"name": "`accent-color`" | |
}, | |
"anchor_positioning": { | |
"id": "anchor_positioning", | |
"name": "Anchor Positioning" | |
}, |
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
import { query } from '../src/index.js'; // You'll have to sort this bit out yourself. It's the pre-TS version of https://github.com/mdn/browser-compat-data/blob/main/utils/query.ts | |
import TSV from 'tsv'; | |
const browsers = [ | |
'chrome', | |
'edge', | |
'firefox', | |
'opera', | |
'safari', | |
'samsunginternet_android', |
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
css.at-rules.media | |
https://drafts.csswg.org/mediaqueries/#media-descriptor-table | |
https://drafts.csswg.org/css-conditional-3/#at-media | |
css.at-rules.supports | |
https://drafts.csswg.org/css-conditional-4/#at-supports-ext | |
https://drafts.csswg.org/css-conditional-3/#at-supports | |
css.properties.align-content.flex_context | |
https://drafts.csswg.org/css-align/#align-justify-content | |
https://drafts.csswg.org/css-flexbox/#align-content-property | |
css.properties.align-content.grid_context |
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 assert = require('assert'); | |
const compareVersions = require('compare-versions'); | |
function isVersionAddedGreater(a, b) { | |
var a_version_added = a; | |
var b_version_added = b; | |
if ( | |
typeof a_version_added === 'string' && | |
typeof b_version_added === 'string' |
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
#!/usr/bin/env bash | |
# If you save this as `git-sync` in your PATH, then you can run `git sync` | |
# shellcheck disable=SC2034 | |
USAGE="Synchronize the local and origin \`master\` branch with \`upstream\` remote's" | |
# shellcheck source=/dev/null | |
source "$(git --exec-path)/git-sh-setup" |
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
api.DOMMatrix | |
api.DOMMatrix.DOMMatrix | |
api.DOMMatrix.worker_support | |
api.DocumentOrShadowRoot.elementsFromPoint | |
api.PaymentRequest | |
api.PaymentRequest.PaymentRequest | |
api.PaymentRequest.abort | |
api.PaymentRequest.canMakePayment | |
api.PaymentRequest.id | |
api.PaymentRequest.onshippingaddresschange |
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 visit = require('unist-util-visit') | |
function transformer(tree, file) { | |
visit(tree, 'element', (node, index, parent) => { | |
if (node.tagName === 'div' && node.properties.className && node.properties.className.includes('bc-data')) { | |
parent.children.splice(index, 1); | |
} | |
}); | |
} |
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
--- | |
type: static | |
--- | |
<!-- | |
This is the raw Markdown as you would write it for an example. Note the flags in the info string of each code block. | |
--> | |
Suppose you want to list the winners of a competition: |
NewerOlder