Skip to content

Instantly share code, notes, and snippets.

View idan's full-sized avatar
💫
Prototypin'

Idan Gazit idan

💫
Prototypin'
View GitHub Profile
@idan
idan / SofleKeyboard.kbd.json
Last active November 23, 2023 22:19 — forked from mattfoster/SofleKeyboard.kbd.json
SofleKeyboard
[
{
"backcolor": "#ffffff",
"name": "SofleKeyboard",
"author": "Josef Adamcik",
"switchMount": "cherry"
},
[
{
"y": 0.2,
@idan
idan / router.ts
Last active May 20, 2023 18:00
basic router in typescript
export type Route = {
method: "*" | "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS" | "CONNECT" | "TRACE"
path: string
regexp: RegExp
handler: (request: Request, route: MatchedRoute) => Promise<Response>
}
export type MatchedRoute = Route & {
url: URL
}
@idan
idan / next_planning.md
Created March 21, 2022 06:36
Next Planning
@idan
idan / breeze.dtsi
Last active September 17, 2022 19:38
My ZMK Breeze Keymap
/*
* Copyright (c) 2022 The ZMK Contributors
*
* SPDX-License-Identifier: MIT
*/
#include <dt-bindings/zmk/matrix_transform.h>
/ {
chosen {
@idan
idan / branchclean.fish
Created September 18, 2021 18:54
A fish function which deletes all branches not called main or master
function branchclean
# delete branches that are not called 'main' or 'master'
# Invoke with -r to also delete the branches on the origin remote
# WARNING — this doesn't check if the branches are merged.
argparse 'r/remote' -- $argv
for b in (git branch | grep -v "^\*\?\s\+\(master\|main\)\$" | string trim);
git branch --delete $b;
if test -n "$_flag_r"
git push -d origin $b
@idan
idan / flat.md
Last active May 4, 2021 15:53
Flat Writeup Draft

Wandering the halls of the Internet today, it's hard to miss a certain kind of discourse on data. Big data, bigger data, biggest data. A million rows aren't cool. You know what's cool? A billion rows. Distributed data systems that slip the surly bonds of any one machine. Techniques for sampling and transforming data while it moves. Strategies for contending with a deluge of events from chatty devices. Directing those data tributaries into undifferentiated data lakes so that we may pose different queries onto the data someday. It has become almost impossible to talk about this stuff without abusing metaphors way past their safe design limits.

As a developer, all those bits occupying the proverbial lake/warehouse/refinery are as immediately useful as a grape seed is to a winery. Locality of data isn't some abstract concept when you're trying to build things on top of that data — it's the leading term of developer experiences. If I have the data, I can load it, and get to work. If I don't have the data, then

import Fiona from "https://deno.land/x/fiona/deno/index.js";
import { csvFormat, csvParse } from "https://cdn.pika.dev/d3-dsv";
const { writeTextFile, run, mkdir, stdout } = Deno;
const { now } = performance;
type Row = {
name: string;
date: Date;
bio: string;
p: number;
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: artifact-passing-
spec:
entrypoint: artifact-example
templates:
- name: artifact-example
steps:
- - name: generate-artifact
@idan
idan / decaf_slack_theme.txt
Created April 23, 2020 15:55
Decaf Slack Theme
#2D2525,#221C1C,#221C1C,#FFCB58,#221C1C,#968A8B,#99DF66,#FF935B,#221C1C,#968A8B