Skip to content

Instantly share code, notes, and snippets.

// node_modules/.pnpm/purify-ts@2.1.2/node_modules/purify-ts/esm/Maybe.js
var Maybe = {
of(value) {
return just(value);
},
empty() {
return nothing;
},
zero() {
return nothing;
@treejadey
treejadey / ooc.js
Created November 28, 2025 14:36
ooc-experimental.js
// node_modules/.pnpm/purify-ts@2.1.2/node_modules/purify-ts/esm/Maybe.js
var Maybe = {
of(value) {
return just(value);
},
empty() {
return nothing;
},
zero() {
return nothing;
// node_modules/.pnpm/rescript@11.1.4/node_modules/rescript/lib/es6/caml_option.js
function some(x) {
if (x === void 0) {
return {
BS_PRIVATE_NESTED_SOME_NONE: 0
};
} else if (x !== null && x.BS_PRIVATE_NESTED_SOME_NONE !== void 0) {
return {
BS_PRIVATE_NESTED_SOME_NONE: x.BS_PRIVATE_NESTED_SOME_NONE + 1 | 0
};
@treejadey
treejadey / RosePine.json
Last active March 18, 2025 18:37
Rose Pine for Chatterino2
{
"colors": {
"accent": "#00aeef",
"messages": {
"backgrounds": {
"alternate": "#1d1d2a",
"regular": "#191724"
},
"disabled": "#7a1c1b2a",
"highlightAnimationEnd": "#00e6e6e6",
@treejadey
treejadey / ooc.js
Last active May 1, 2025 11:51
ooc.js
// src/Supibot.res.mjs
var prefix = "OOC_MSGS";
function getOoc() {
var data = channelCustomData.get(prefix);
if (data == null) {
return {
TAG: "Error",
_0: "NoData"
};
} else if (data.messages.length === 0) {
@treejadey
treejadey / prepend.js
Last active December 12, 2023 12:54
prepend.js
class InvalidString extends Error {
constructor(message, cause) {
super(message);
this.cause = cause;
this.name = "InvalidString"
}
}
const main = () => {
const text = args.join(" ");
@treejadey
treejadey / http.js
Last active December 17, 2024 10:00
const main = () => {
const httpCode = JSON.parse(args[0])
if ( !Number.isInteger(httpCode)) {
return "Provided arg is not an integer."
}
if (httpCode < 100) {
@treejadey
treejadey / gaben.js
Last active November 28, 2025 15:27
const main = async () => {
const cookie = await command.execute("cookie");
if ( cookie.success === false ) {
return "You don't seem to have any cookies, mind opening some cases meanwhile?";
}
const gameOptions = ["CS:GO aka CS2", "Team Fortress 2", "the Portal series", "the Half-Life series"];
//const bait_list = ["🪱", "🪰", "🦗"];
//
// Fish game:
//
// You can execute the alias to catch a fish.
// Given your current unluck percentage, which will increase over time
// you get a higher chance to catch a fish
//
//
@treejadey
treejadey / treuks.js
Last active September 12, 2022 16:59 — forked from brian6932/flanimal.js
const flags = [].concat(
[
`\u{1F1E9}`,
`\u{1F1EA}`,
`\u{1F1EB}`,
`\u{1F1EC}`,
`\u{1F1EE}`,
`\u{1F1F1}`,
`\u{1F1F2}`,
`\u{1F1F4}`,