| Before | After |
|---|---|
![]() |
![]() |
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
| function git_remove_gone_branches() { | |
| # from https://stackoverflow.com/a/61935602/1577447, except works with squash & merge strategy. | |
| git fetch -p | |
| git branch -vv | grep ': gone]' | awk '{print $1}' | xargs git branch -D | |
| } |
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 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") |
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 { 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, |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| <?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)) { |
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:
NewerOlder

