Skip to content

Instantly share code, notes, and snippets.

View riordanpawley's full-sized avatar

Riordan riordanpawley

View GitHub Profile
/** biome-ignore-all lint/suspicious/noExplicitAny: <necessary for lib> */
/** biome-ignore-all lint/complexity/noBannedTypes: <schema did it> */
import { BrowserObservability } from "@chefy-services/otel/browser";
import {
Array as A,
Context,
Effect,
Equal,
type Exit,
import { FileSystem } from "@effect/platform";
import {
NodeContext,
NodeFileSystem,
NodeRuntime,
} from "@effect/platform-node";
import { Array as A, Effect } from "effect";
// in this file we will codegen a massive project that makes use of store builder and test the tsc performance.
// we will first create a codegen function that takes number of slices, number of events per slice and number of handlers per event
@riordanpawley
riordanpawley / store-builder.ts
Last active June 1, 2025 06:59
Effect/React store builder
/** biome-ignore-all lint/suspicious/noExplicitAny: <shrug> */
import {
Effect,
Layer,
Logger,
ManagedRuntime,
ParseResult,
PubSub,
Ref,
Schema,
/** biome-ignore-all lint/suspicious/noExplicitAny: <explanation> */
import { neonConfig } from "@neondatabase/serverless";
import { PrismaNeon } from "@prisma/adapter-neon";
import type {
ITXClientDenyList,
Operation,
TypedSql,
} from "@prisma/client/runtime/library";
import {
#!/usr/bin/env node
const { exec } = require('child_process');
const fs = require('fs');
const { join } = require('path');
const args = process.argv.slice(2).join(' ');
console.log({ args });
const removeArg = (argKey, args) => {
const newArgs = args.replace(argKey, '');
@riordanpawley
riordanpawley / react-native-reanimated+2.0.0-alpha.7.patch
Created September 30, 2020 01:10
patch which replaces plugin.js with transpiled version
diff --git a/node_modules/react-native-reanimated/plugin.js b/node_modules/react-native-reanimated/plugin.js
index 0ac2c44..2ee0f3b 100644
--- a/node_modules/react-native-reanimated/plugin.js
+++ b/node_modules/react-native-reanimated/plugin.js
@@ -1,115 +1,133 @@
-'use strict';
+"use strict";
+
+function _defineProperty(obj, key, value) {
+ if (key in obj) {