Skip to content

Instantly share code, notes, and snippets.

View DanielSRS's full-sized avatar
🕵️‍♂️
Learning new stuff

Daniel Santa Rosa DanielSRS

🕵️‍♂️
Learning new stuff
View GitHub Profile
@DanielSRS
DanielSRS / zed.settings.json
Created November 25, 2025 01:21
My zed editor settings file
// Zed settings
//
// For information on how to configure Zed, see the Zed
// documentation: https://zed.dev/docs/configuring-zed
//
// To see all of Zed's default settings without changing your
// custom settings, run `zed: open default settings` from the
// command palette (cmd-shift-p / ctrl-shift-p)
{
"agent": {
@DanielSRS
DanielSRS / test.tsx
Created August 1, 2025 16:37
Experimenting rendering large element trees
import {
FlatList,
Text,
View,
type LayoutRectangle,
type ListRenderItemInfo,
} from 'react-native';
/**
* Importing an arbitrary JSON file to test rendering.
*/
@DanielSRS
DanielSRS / typescript_bundler.ts
Created April 20, 2025 03:40
Bundle a set of typescript files into a single one without modifying the source code
import ts from "typescript";
import fs from "node:fs";
import path from "node:path";
import { fileURLToPath } from "node:url";
const SKIP_THIRD_PARTY_MODULES = true;
const __dirname = path.dirname(fileURLToPath(import.meta.url));
/**
* Get the module path based on the base directory.