Skip to content

Instantly share code, notes, and snippets.

View omril1's full-sized avatar
🐣

Omri Luzon omril1

🐣
  • Autofleet
View GitHub Profile
@gioragutt
gioragutt / examples.md
Last active July 25, 2025 16:51
How do deal with rebasing multiple branches on top of one another

I had several branches in a stack:

* feature-part-4 (HEAD)
* feature-part-3
* feature-part-2
* feature-part-1
* main
@rluvaton
rluvaton / type-check.mjs
Created January 31, 2024 16:44
TypeCheck only on typescript project files
import ts from 'typescript';
import path from 'node:path';
import Debug from 'debug';
const debug = Debug('type-check-only-project-files');
// ----------------------------------------------------------------
// This file is a helper file that can be used to run type check
// only for the files that in the project and not for any other file
@ssalbdivad
ssalbdivad / ArkTypeVsZod.md
Last active August 6, 2025 08:41
ArkType/Zod Comparison

Here's a comparison between how the same simple user definition would be defined using ArkType and Zod:

image

ArkType's definition syntax is more concise (definitions are about 50% shorter on average) as well as making it more visually obvious what the inferred TypeScript type will be. The ability to infer TypeScript definitions directly is the same, but ArkType's syntax is again more concise by allowing you to use typeof on a property of arkUser directly instead of using an extra "infer" helper.

In general, we also have taken significant steps to optimize and clarify our type hints when hovering over validators. For example, in the case above, this is what you see when you mouse over "zodUser":

image

@wojtekmaj
wojtekmaj / jest-to-vitest.sh
Last active October 14, 2025 06:40
Automatically migrate Jest project to Vitest
#!/bin/bash
# Ensure we're working on the latest version of the main branch
git switch main
git fetch
git pull
# Create a new branch
git switch -c vitest
@mathdroid
mathdroid / never.gif
Last active February 11, 2024 22:25
Never
never.gif