Skip to content

Instantly share code, notes, and snippets.

@fitnr
fitnr / buildingclasscode.csv
Last active January 8, 2021 14:47
NYC Pluto building class codes and land uses. From: http://www.nyc.gov/html/dcp/pdf/bytes/pluto_datadictionary.pdf
id name
A0 ONE FAMILY DWELLINGS: Cape Cod
A1 ONE FAMILY DWELLINGS: Two Stories Detached (Small or Moderate Size, With or Without Attic)
A2 ONE FAMILY DWELLINGS: One Story (Permanent Living Quarters)
A3 ONE FAMILY DWELLINGS: Large Suburban Residence
A4 ONE FAMILY DWELLINGS: City Residence
A5 ONE FAMILY DWELLINGS: Attached or Semi-Detached
A6 ONE FAMILY DWELLINGS: Summer Cottages/Mobile Homes/Trailers
A7 ONE FAMILY DWELLINGS: Mansion Type
A8 ONE FAMILY DWELLINGS: Bungalow Colony/Land Coop Owned
@squarism
squarism / iterm2.md
Last active December 19, 2025 17:52
An iTerm2 Cheatsheet

In the below keyboard shortcuts, I use the capital letters for reading clarity but this does not imply shift, if shift is needed, I will say shift. So + D does not mean hold shift. + Shift + D does of course.

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
@FrancesCoronel
FrancesCoronel / sampleREADME.md
Last active December 14, 2025 15:38
A sample README for all your GitHub projects.

Repository Title Goes Here

Frances Coronel

INSERT GRAPHIC HERE (include hyperlink in image)

Subtitle or Short Description Goes Here

ideally one sentence >

@PurpleBooth
PurpleBooth / README-Template.md
Last active December 22, 2025 14:58
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@lestoni
lestoni / gist:8c74da455cce3d36eb68
Last active November 4, 2025 17:41
vim folding cheatsheet

via (https://www.linux.com/learn/tutorials/442438-vim-tips-folding-fun)

  • zf#j creates a fold from the cursor down # lines.
  • zf/string creates a fold from the cursor to string .
  • zj moves the cursor to the next fold.
  • zk moves the cursor to the previous fold.
  • zo opens a fold at the cursor.
  • zO opens all folds at the cursor.
  • zm increases the foldlevel by one.
  • zM closes all open folds.
@Miserlou
Miserlou / cities.json
Created April 30, 2015 06:58
1000 Largest US Cities By Population With Geographic Coordinates, in JSON
[
{
"city": "New York",
"growth_from_2000_to_2013": "4.8%",
"latitude": 40.7127837,
"longitude": -74.0059413,
"population": "8405837",
"rank": "1",
"state": "New York"
},
@eupharis
eupharis / states_by_fips.json
Last active January 19, 2022 19:36
State FIPS JSON (Abbreviation and Name)
{
"01": {
"abbreviation": "AL",
"name": "Alabama"
},
"02": {
"abbreviation": "AK",
"name": "Alaska"
},
"03": {
@TobiasWooldridge
TobiasWooldridge / gist:22f0cdca75190b9a473f
Last active September 20, 2025 20:15
How to Unbrick a Kindle Paperwhite

How to unbrick an Amazon Kindle Paperwhite™

This guide instructs you in how to unbrick an Amazon Kindle Paperwhite. The consequences of following it are your own responsibility. This method (opening the Kindle and using the serial interface) should be a last resort and should only be considered if other methods fail

The Guide

  1. Pry open Kindle using a prying tool
  2. Unscrew the screen and remove it from the base. Note that there's a screw hidden under the adhesive at the top in the middle
  3. Solder tin wire to serial ports on the bottom
  4. Attach tin wire to USB TTY device (order is ground, RX, TX, from the kindle's perspective, where GND is the smallest pad) and plug USB TTY device into your computer
  5. Open Putty on your computer in serial mode, with the serial port specified as your USB device and baud configured to 115200
@brson
brson / gist:9dec4195a88066fa42e6
Last active October 28, 2025 08:57
A Rust Syntax Guide

A Guide to Rust Syntax

A very brief guide to Rust syntax. It assumes you are already familiar with programming concepts.

This was written in 2014. It is not a good reference for Rust today, though the content is still correct.

cheats.rs looks like a good alternative.

Assert macro

@kevin-smets
kevin-smets / iterm2-solarized.md
Last active December 23, 2025 00:49
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k