git checkout <original_branch>
git merge <new_branch> --allow-unrelated-histories
git checkout next . --force --no-overlay
git commit --no-edit
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 { readFile } from "node:fs/promises"; | |
import { relative } from "node:path"; | |
import { Minimatch } from "minimatch"; | |
import subsetFont from "subset-font"; | |
import { Plugin } from "vite"; | |
export interface SubsetOptions { | |
codepointsPath: string; | |
iconsGlob: 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
import { Config } from "tailwindcss"; | |
import plugin from "tailwindcss/plugin"; | |
import { readFileSync, readdirSync } from "fs"; | |
import { dirname, join } from "path"; | |
export default { | |
// ... | |
plugins: [ | |
plugin(({ addBase, theme }) => { | |
const colors = flattenColorPalette(theme("colors")); |
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 { formatHex, oklch } from "culori"; | |
import type { Config } from "tailwindcss"; | |
import { gray } from "tailwindcss/colors"; | |
export default { | |
content: ["index.html", "./src/**/*.{ts,tsx,vue}"], | |
theme: { | |
extend: { | |
colors: { | |
gray: Object.fromEntries( |
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
abstract class Property<T = unknown> { | |
#values: readonly T[]; | |
constructor(public name: string, values: readonly T[]) { | |
this.#values = Object.freeze(values); | |
} | |
get possibleValues(): readonly T[] { | |
return this.#values; | |
} |
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 * as base64url from "https://deno.land/[email protected]/encoding/base64url.ts"; | |
export interface RsaPrivateKey { | |
n: bigint; | |
e: bigint; | |
d: bigint; | |
p: bigint; | |
q: bigint; | |
dp: bigint; | |
dq: bigint; |
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 -S deno run -A | |
// you might need to specify a different chrome executable because of a bug | |
// https://github.com/lucacasonato/deno-puppeteer/issues/65 | |
// PUPPETEER_EXECUTABLE_PATH=/usr/bin/google-chrome-stable (on my linux system) | |
import { OAuthClient } from "https://deno.land/x/[email protected]/auth/mod.ts"; | |
import puppeteer from "https://deno.land/x/[email protected]/mod.ts"; | |
const oauthClient = new OAuthClient({ |
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 lib = Deno.dlopen( | |
Deno.env.get("DENO_SSL_PATH")!, | |
{ | |
AES_set_encrypt_key: { | |
parameters: ["buffer", "u32", "buffer"], | |
result: "i32", | |
}, | |
AES_cfb8_encrypt: { | |
parameters: [ | |
"buffer", |
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
SELECT | |
year, | |
date_trunc('week', make_date(year, 1, 4))::date AS start, -- first calendar week always contains January 4th. | |
extract(week from make_date(year + 1, 1, 4) - 7) AS weeks | |
FROM generate_series(2000, 2030) t(year); |
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
input_registers: | |
- name: protocol_number | |
data_type: uint32 | |
address: 4950 | |
- name: protocol_version | |
data_type: uint32 | |
address: 4952 | |
- name: arm_software_version | |
data_type: string | |
address: 4954 |
NewerOlder