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 styleElement = document.createElement("style"); | |
| document.head.append(styleElement); | |
| const classes = {}; | |
| let lastIds = 0n; | |
| export const css = (src, ...values) => src.map((x, i) => x + (i < values.length ? CSS.escape("" + values[i]) : "")).join(""); | |
| export const style = (name, code) => { | |
| const cls = classes[name] = CSS.escape(`--cssinjs-${lastIds++}`); |
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
| - alias: tiken | |
| name: tiken_chiken |
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
| 名前 | 座標 | 場所 | |
|---|---|---|---|
| メサ | 37 ~ -271 | 生活 | |
| トラップタワー | 118 ~ 308 | 資源 | |
| 森(オークと白樺) | 433 ~ 244 | 生活 | |
| 古代都市(メサの地下) | 714 ~ 1455 | 資源 |
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 type Result<T, E> = ResultImpl<T, never> | ResultImpl<never, E>; | |
| export const Result = class { | |
| static ok(value: void): Result<void, never>; | |
| static ok<T>(value: T): Result<T, never>; | |
| static ok<T>(value: T): Result<T, never> { | |
| return new ResultImpl(true, value as {}) as Result<T, never>; | |
| } | |
| static err(value: void): Result<never, void>; | |
| static err<E>(value: E): Result<never, E>; |
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 And<A extends boolean, B extends boolean> = (A | B) extends true ? true : false; | |
| type Or<A extends boolean, B extends boolean> = true extends (A | B) ? true : false; | |
| type Not<A extends boolean> = A extends false ? true : false; | |
| type Xor<A extends boolean, B extends boolean> = boolean extends (A | B) ? true : false; |
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 BinaryTypes = { | |
| EOO: 0, | |
| Null: 1, | |
| NumberF64: 2, | |
| NumberF32: 3, | |
| NumberI32: 4, | |
| NumberU32: 5, | |
| BoolTrue: 6, | |
| BoolFalse: 7, | |
| String: 8, |
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
| cmp_version_le(){ \ | |
| v1=($(echo -n $1 | xargs -d.)) \ | |
| ; v2=($(echo -n $2 | xargs -d.)) \ | |
| ; if [ ${#v1[*]} -lt ${#v2[*]} ]; then \ | |
| t=$v1 \ | |
| ; v1=$v2 \ | |
| ; v2=$t \ | |
| ; fi \ | |
| ; for i in ${!v1[*]}; do \ | |
| if [ ${#v2[$(($i + 1))]} = 0 ]; then \ |
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 Pattern<T> = (i: number, s: string) => null | [number, T] | |
| interface TokenBase { | |
| type: string | |
| } | |
| interface NumberToken extends TokenBase { | |
| type: "number", | |
| value: number | |
| } |
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 createEnum = <T extends string|number>(a:readonly T[]|T[]): {[K in T]: K} => Object.fromEntries<T>(a.map(x => [x,x])) as any; |
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
| javascript:(()%3D%3E%7Bconst%20p%3Ddocument.querySelector(%22video%5Bid*%3Dvjs_video%5D%22)%3Bp.disablePictureInPicture%3Dfalse%3Bp.requestPictureInPicture()%7D)() |