Skip to content

Instantly share code, notes, and snippets.

View ykessler's full-sized avatar

Yarin Kessler ykessler

  • appgrinders
  • New York City
View GitHub Profile
@ykessler
ykessler / bbl_5027840004_zoning_debug.geojson
Last active June 5, 2026 13:54
BBL 5027840004 (3837 Victory Blvd) zoning debug
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ykessler
ykessler / bbl_1018770018_zoning_debug.geojson
Created June 2, 2026 19:06
BBL 1018770018 zoning debug: block 1877 geometry + lot + nearby DCM centerlines
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ykessler
ykessler / render_hardcoded_insert.rb
Created June 1, 2026 00:46
temporary render hardcoded smoke
require 'pg'
conn = PG.connect(ENV.fetch('DATABASE_URL'))
conn.exec_params("INSERT INTO _backfill_acris_legals_unit (document_id,bbl,old_address,new_unit,new_address) VALUES ($1,0,'render hardcoded','X','render hardcoded APT X') ON CONFLICT DO NOTHING", ['RENDER_HARDCODE_MARKER_1780274803'])
@ykessler
ykessler / render_insert_smoke.rb
Last active June 1, 2026 00:52
temporary render postgres smoke
require 'pg'
doc = ENV.fetch('DOC_ID')
conn = PG.connect(ENV.fetch('DATABASE_URL').sub(/^postgis/, 'postgres'))
conn.exec_params("INSERT INTO _backfill_acris_legals_unit (document_id,bbl,old_address,new_unit,new_address) VALUES ($1,0,'render marker','X','render marker APT X') ON CONFLICT DO NOTHING", [doc])
@ykessler
ykessler / render_acris_pull.rb
Last active June 1, 2026 00:52
temporary acris legals addr_unit backfill pull script
#!/usr/bin/env ruby
# Temporary Render-run ACRIS legals unit pull. No repo dependency.
# Requires DATABASE_URL in env. Writes only to _backfill_acris_legals_unit.
require 'pg'
require 'net/http'
require 'json'
require 'uri'
require 'time'
@ykessler
ykessler / lot_4130430031.geojson
Last active April 27, 2026 20:46
BBL 4130430031 - block, lot, 140th Ave centerline, intersection
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ykessler
ykessler / settings.json
Created March 19, 2026 21:40
Claude Code global permissions settings
{
"env": {
"CLAUDE_CODE_EFFORT_LEVEL": "max"
},
"permissions": {
"allow": [
"Read",
"Glob",
"Grep",
"Write",
@ykessler
ykessler / ghostty-surface-theme.sh
Last active May 12, 2026 08:22
Apply a Ghostty theme to a single surface (split/tab) without affecting others
#!/bin/bash
#
# ghostty-surface-theme.sh
# Apply a Ghostty theme to the current surface only, without affecting other
# splits, tabs, or windows. Works by reading Ghostty's built-in theme files
# and sending the equivalent OSC escape sequences to the current terminal.
#
# INSTALL
# Copy this script somewhere on your PATH and make it executable:
#
@ykessler
ykessler / jquery-shortcuts.js
Created October 23, 2022 15:37
Two jQuery shortcuts you know you want
(function($){
$.fn.id = function() {
return $(this).attr('id');
};
$.fn.name = function() {
return $(this).attr('name');
};
})(jQuery);
javascript: window.location = `http://webcache.googleusercontent.com/search?q=cache:${window.location}`;