git checkout <original_branch>
git merge <new_branch> --allow-unrelated-histories
git checkout next . --force --no-overlay
git commit --no-edit
This file contains 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 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 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 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/std@0.164.0/encoding/base64url.ts"; | |
export interface RsaPrivateKey { | |
n: bigint; | |
e: bigint; | |
d: bigint; | |
p: bigint; | |
q: bigint; | |
dp: bigint; | |
dq: bigint; |
This file contains 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/minecraft_lib@0.0.8/auth/mod.ts"; | |
import puppeteer from "https://deno.land/x/puppeteer@16.2.0/mod.ts"; | |
const oauthClient = new OAuthClient({ |
This file contains 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 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 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 |
This file contains 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
export const MSAL_OAUTH_URL = | |
"https://login.microsoftonline.com/consumers/oauth2/v2.0"; | |
export const MSAL_OAUTH_DEVICE_AUTHORIZATION_ENDPOINT = | |
`${MSAL_OAUTH_URL}/devicecode`; | |
export const MSAL_OAUTH_TOKEN_ENDPOINT = `${MSAL_OAUTH_URL}/token`; | |
export const XBOX_AUTH_ENDPOINT = | |
"https://user.auth.xboxlive.com/user/authenticate"; |
NewerOlder