Skip to content

Instantly share code, notes, and snippets.

View Zemnmez's full-sized avatar
💭
oof

Thomas Neil James Shadwell Zemnmez

💭
oof
View GitHub Profile
@Zemnmez
Zemnmez / gist:79c7b72c889ebc9fa6099906d0b3aaaa
Created August 1, 2023 04:38
x=[...document.querySelectorAll('[href^="/insights"]').map(v => [v.href, v.textContent]]
[
[
"https://www.theresearchagency.com/insights",
"Insights"
],
[
"https://www.theresearchagency.com/insights/how-australians-see-themselves",
"AustraliaNZAustraliaAUAustraliaINTAustraliaAUSAustraliaNZBrand & creativeResourceTRA MindSets: How do Australians see themselves? July 28, 2023"
],
[
coa_title_7266={
custom=yes
pattern="pattern_solid.dds"
color1=red
color2=yellow
color3=red
colored_emblem={
color1="white"
texture="ce_letter_h.dds"
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> {
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]);
});
});
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",
@Zemnmez
Zemnmez / abc.ts
Last active October 27, 2021 23:18
fuck
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);
}
}
<!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
{
"elementStacks": {
"720_520_7d4fa4bf-8abd-4d48-921c-39009c8368ad": {
"lifetimeRemaining": "0",
"lastTablePosX": "720",
"markedForConsumption": "False",
"elementId": "passion",
"lastTablePosY": "520",
"quantity": "1"
},
/*
* 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.
//
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'