Skip to content

Instantly share code, notes, and snippets.

@sjorsrijsdam
sjorsrijsdam / d-bug.mjs
Last active November 28, 2023 19:14
Custom Enhance element to be able to debug view state
// Custom Enhance element to debug/inspect the `state` property
// that is passed to Enhance views.
//
// Optional `key` attribute can be used to inspect from
// a desired depth.
//
// Default styling is Monokai Midnight, but can be overridden
// by changing the various custom properties.
//
// Usage:
@alexpchin
alexpchin / restful_routes.md
Last active May 2, 2024 13:40
7 Restful Routes
URL HTTP Verb Action
/photos/ GET index
/photos/new GET new
/photos POST create
/photos/:id GET show
/photos/:id/edit GET edit
/photos/:id PATCH/PUT update
/photos/:id DELETE destroy
@dedy-purwanto
dedy-purwanto / gist:11312110
Created April 26, 2014 05:00
Bulk remove iTerm2 color schemes.
# There was a day where I have too many color schemes in iTerm2 and I want to remove them all.
# iTerm2 doesn't have "bulk remove" and it was literally painful to delete them one-by-one.
# iTerm2 save it's preference in ~/Library/Preferences/com.googlecode.iterm2.plist in a binary format
# What you need to do is basically copy that somewhere, convert to xml and remove color schemes in the xml files.
$ cd /tmp/
$ cp ~/Library/Preferences/com.googlecode.iterm2.plist .
$ plutil -convert xml1 com.googlecode.iterm2.plist
$ vi com.googlecode.iterm2.plist
@devinhunt
devinhunt / gist:8417997
Last active May 17, 2023 13:23
Coffee Shop Workplaces in London

Place to Drink Coffee and Work in London

East

100 Shoreditch High Street, London E1 6JQ

  • Coffee Espresso is great. Filter shots... not so much.
  • Wifi Free and quick.
  • Other Notes It's in the Ace Hotel, so great for meetings and easy to spread out.