Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
oof

Thomas Neil James Shadwell Zemnmez

💭
oof
View GitHub Profile
View what the fuck.txt
coa_title_7266={
custom=yes
pattern="pattern_solid.dds"
color1=red
color2=yellow
color3=red
colored_emblem={
color1="white"
texture="ce_letter_h.dds"
View ck3_arms_gen.ts
type CKValue = { toCK(): string }
abstract class NewType<T> {
constructor(public readonly value: T) {}
}
class CKNumber extends NewType<number> {
toCK() { return this.value.toString() }
}
class CKString extends NewType<string> {
View math_test.ts
import * as matrix from './matrix';
import * as vec from './vec';
function expectMatrixSimilar(actual: matrix.Matrix, expected: matrix.Matrix) {
expect(actual.length).toBe(expected.length);
actual.forEach((row, i) => {
row.forEach((v, k) => {
expect(v).toBeCloseTo(expected[i][k]);
});
});
View gist:b703546028b8017fde35c3e1751a10fe
Argument of type '(i: readonly string[]) => Errors<readonly [Error, Error]> | (readonly [() => readonly (readonly [out: "A", newIn: readonly string[]])[] | SymbolError<"A", Expected<"A">>, string[]] | readonly [() => readonly (readonly [out: "B", newIn: readonly string[]])[] | SymbolError<...>, string[]])[]' is not assignable to parameter of type '(t: readonly string[]) => Errors<readonly [Error, Error]> | readonly (readonly [out: () => readonly (readonly [out: "A", newIn: readonly string[]])[] | SymbolError<"A", Expected<"A">>, newIn: readonly string[]])[]'.
Type 'Errors<readonly [Error, Error]> | (readonly [() => readonly (readonly [out: "A", newIn: readonly string[]])[] | SymbolError<"A", Expected<"A">>, string[]] | readonly [() => readonly (readonly [out: "B", newIn: readonly string[]])[] | SymbolError<"B", Expected<...>>, string[]])[]' is not assignable to type 'Errors<readonly [Error, Error]> | readonly (readonly [out: () => readonly (readonly [out: "A", newIn: readonly string[]])[] | SymbolError<"A",
View abc.ts
class ErrorWrapper<E extends Error> extends Error {
override get message() { return this.wraps.message }
override get name() { return this.wraps.name }
constructor(public readonly wraps: E) {
super(wraps.message);
}
}
View appleid.html
<!DOCTYPE HTML>
<title>Apple Rewards</title>
<style type="text/css">
/*
// First, we
// clear up any gives that there's
// something going on by making
// the Apple ID frame fill
// the whole page with no border
View cultist.txt
{
"elementStacks": {
"720_520_7d4fa4bf-8abd-4d48-921c-39009c8368ad": {
"lifetimeRemaining": "0",
"lastTablePosX": "720",
"markedForConsumption": "False",
"elementId": "passion",
"lastTablePosY": "520",
"quantity": "1"
},
View abc.cs
/*
* R e a d m e
* -----------
*
* In this file you can include any instructions or other comments you want to have injected onto the
* top of your final script. You can safely delete this file if you do not want any such comments.
*/
// This file contains your actual script.
//
View rendertest.tsx
import { Canvas } from '@zemn.me/math/canvas/element'
import { Drawable3D } from '@zemn.me/math/canvas'
import * as Particle from '@zemn.me/math/sim/particle'
import * as Unit from '@zemn.me/math/sim/unit'
import * as Homog from '@zemn.me/math/homog'
import * as Cart from '@zemn.me/math/cartesian'
import * as Shape from '@zemn.me/math/shape'
import * as Vec from '@zemn.me/math/vec'
import * as Matrix from '@zemn.me/math/matrix'
import React from 'react'
View abc.cs
int iBlocks=-1;
void Main (string argument) {
string Prefix;
bool Attention=false;
Prefix = "[Security]"; /*This is prefix for timer, which will be triggered*/
List<IMyTerminalBlock> Blocks = new List<IMyTerminalBlock>();
GridTerminalSystem.GetBlocksOfType <IMyTerminalBlock> (Blocks);
iBlocks=(iBlocks==-1?Blocks.Count:iBlocks);
if (Blocks.Count<iBlocks) Attention = true;
for (int i = 0; i < Blocks.Count; i++) {