flowchart TD
updatePerson* --> resolveAvatarAndBanner
createPerson* --> resolveAvatarAndBanner
createPerson* --> validateActor
updatePerson* --> validateActor
updatePerson* --> analyzeAttachments
createPerson* --> analyzeAttachments
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
Windows Registry Editor Version 5.00 | |
[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer] | |
"DisableSearchBoxSuggestions"=dword:00000001 |
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
export function* separate( | |
data: Uint8Array, | |
bitLength: number | |
): Generator<number> { | |
let bufferBitLength = 0; | |
let buffer = 0; | |
for (const chunk of data) { | |
bufferBitLength += 8; | |
buffer = (buffer << 8) | chunk; |
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 Seq<T extends number, V extends number[] = []> = V["length"] extends T | |
? V | |
: Seq<T, [...V, V["length"]]>; | |
type Add<T extends number, U extends number> = [...Seq<T>, ...Seq<U>]["length"]; | |
type Sub< | |
T extends number, | |
U extends number, | |
V extends never[] = [] |
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
class Software { | |
local Semver = (str: String) -> | |
str.matches(Regex(#"^\#(IntStr)\.\#(IntStr)\.\#(IntStr)$"#)) | |
local IntStr = #"(0|[1-9]\d*)"# | |
local function greet(name: String): String = "Hello, \(name) world!" | |
name: String(length > 0) | |
version: String(Semver) | |
message: String = greet(name) |
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
Document | |
= meta:XMLDecl? elements:Element* { | |
return { meta, elements } | |
} | |
XMLDecl | |
= tag:DeclarationTag Whitespace { | |
return tag; | |
} | |
DeclarationTag | |
= '<?xml' attributes:Attribute* Whitespace '?>' { |
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
// ==UserScript== | |
// @name msec_override for misskey.io | |
// @namespace https://misskey.okayurisotto.net/@okayurisotto | |
// @version 0.5 | |
// @description ノートの投稿時刻をミリ秒単位で表示 | |
// @author @[email protected] | |
// @match https://misskey.io/* | |
// @grant none | |
// @license MIT | |
// ==/UserScript== |
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
// admin/roles/assign.ts | |
export const accessDenied = {"message":"Only administrators can edit members of the role.","code":"ACCESS_DENIED","id":"25b5bc31-dc79-4ebd-9bd2-c84978fd052c"} as const; | |
// admin/roles/unassign.ts | |
export const accessDenied_ = {"message":"Only administrators can edit members of the role.","code":"ACCESS_DENIED","id":"24636eee-e8c1-493e-94b2-e16ad401e262"} as const; | |
// channels/update.ts | |
export const accessDenied__ = {"message":"You do not have edit privilege of the channel.","code":"ACCESS_DENIED","id":"1fb7cb09-d46a-4fdf-b8df-057788cce513"} as const; | |
// drive/files/delete.ts | |
export const accessDenied___ = {"message":"Access denied.","code":"ACCESS_DENIED","id":"5eb8d909-2540-4970-90b8-dd6f86088121"} as const; | |
// drive/files/show.ts | |
export const accessDenied____ = {"message":"Access denied.","code":"ACCESS_DENIED","id":"25b73c73-68b1-41d0-bad1-381cfdf6579f"} as const; |
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 Item = StringItem | NumberIntem; | |
type StringItem = { key: "string"; value: string }; | |
type NumberIntem = { key: "number"; value: number }; | |
type ObjectUnionToEntryUnion<T extends Item> = T extends unknown | |
? [T["key"], T["value"]] | |
: never; | |
type Entry = ObjectUnionToEntryUnion<Item>; | |
const items: Item[] = [ |
NewerOlder