I hereby claim:
- I am mxdvl on github.
- I am mxdvl (https://keybase.io/mxdvl) on keybase.
- I have a public key ASC_nJnqoIaJM9yROJQv2TuqBn0dRiaP-Eqw4wM1zjL4tgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
<?php | |
class CacheBustingKirbyValetDriver extends KirbyValetDriver | |
{ | |
public function isStaticFile($sitePath, $siteName, $uri) | |
{ | |
$result = parent::isStaticFile($sitePath, $siteName, $uri); | |
if ($result !== false) { | |
return $result; | |
} | |
if (preg_match('/(.+)\.(?:\d+)\.(js|css|png|jpg|jpeg|gif|svg|mp3|mp4|ogg)$/i', $uri, $matches)) { |
import { writeCSV } from "https://deno.land/x/csv/mod.ts"; | |
const repos = await fetch("https://api.github.com/orgs/guardian/repos?per_page=100&sort=updated&direction=desc").then(r => r.json()) | |
const columns = ["name", "updated_at", "language"] | |
const f = await Deno.open("./guardian-repos.csv", { write: true, create: true, truncate: true }); | |
const rows = [ | |
columns, |
const user = "orgs/guardian"; | |
const repos = await fetch( | |
`https://api.github.com/${user}/repos?per_page=100&sort=updated&direction=desc`, | |
).then((r) => r.json()); | |
type Repo = Record<string, string>; | |
repos | |
.filter((repo: Repo) => repo.default_branch !== "main") |
# ZSH | |
autoload -U add-zsh-hook | |
# place default node version under $HOME/.node-version | |
load-nvmrc() { | |
DEFAULT_NODE_VERSION=`cat $HOME/.node-version` | |
if [[ -f .nvmrc && -r .nvmrc ]]; then | |
fnm use | |
elif [[ `node -v` != $DEFAULT_NODE_VERSION ]]; then | |
echo Reverting to node from "`node -v`" to "$DEFAULT_NODE_VERSION" |
File PULL_REQUEST_TEMPLATE.md
from guardian/content-atom
git.io/v7cQs
→ https://github.com/guardian/content-api/blob/master/docs/adding-a-new-field-to-capi.md/
File index.ts
from guardian/consent-management-platform
git.io/JUmoi
→ https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework/blob/master/TCFv2/IAB%20Tech%20Lab%20-%20CMP%20API%20v2.md
git.io/JUmw8
→ https://github.com/InteractiveAdvertisingBureau/GDPR-Transparency-and-Consent-Framework/blob/master/TCFv2/IAB%20Tech%20Lab%20-%20CMP%20API%20v2.md
javascript:(function()%7Bfetch(%22https%3A%2F%2Fgist.githubusercontent.com%2Fmxdvl%2Fb17f344678ed34d45683896e208ecdc1%2Fraw%2Fophan-components.css%22).then(r%20%3D%3E%20r.text()).then(css%20%3D%3E%20%7B%20const%20style%20%3D%20document.createElement(%22style%22)%3B%20style.innerHTML%20%3D%20css%3B%20document.body.appendChild(style)%3B%20%7D)%3B%7D)()%3B |
// @ts-check | |
import { scaleLinear } from "https://cdn.skypack.dev/d3-scale@4?dts"; | |
import { select } from "https://cdn.skypack.dev/d3-selection@3?dts"; | |
const button = document.querySelector("button"); | |
const list = document.querySelector("ul"); | |
const graph = select(document.querySelector("#graph")); | |
const [, , width, height] = graph.attr("viewBox").split(" "); |