Skip to content

Instantly share code, notes, and snippets.

@icarus4
icarus4 / statuses.md
Created April 8, 2016 23:26 — forked from vkostyukov/statuses.md
HTTP status codes used by world-famous APIs
API Status Codes
[Twitter][tw] 200, 304, 400, 401, 403, 404, 406, 410, 420, 422, 429, 500, 502, 503, 504
[Stripe][stripe] 200, 400, 401, 402, 404, 429, 500, 502, 503, 504
[Github][gh] 200, 400, 422, 301, 302, 304, 307, 401, 403
[Pagerduty][pd] 200, 201, 204, 400, 401, 403, 404, 408, 500
[NewRelic Plugins][nr] 200, 400, 403, 404, 405, 413, 500, 502, 503, 503
[Etsy][etsy] 200, 201, 400, 403, 404, 500, 503
[Dropbox][db] 200, 400, 401, 403, 404, 405, 429, 503, 507
@icarus4
icarus4 / browserify_for_webpack_users.markdown
Created December 8, 2016 16:00
browserify for webpack users

browserify for webpack users

There's been a strange explosion in misinformation about browserify recently, particularly in comparisons to webpack.

Generally speaking, most of this confusion stems from how webpack is more willing to pull features into its core to ease discoverability while browserify is more likely to push features out to userland instead.

I think that longer-term, separability has more benefits from a maintenance and

Measure Mode: wall_time
Thread ID: 70326524525000
Fiber ID: 70326601297340
Total: 111.883407
Sort by: self_time
%self total self wait child calls name
13.25 14.823 14.823 0.000 0.000 1120413 Hash#initialize_copy
5.65 6.325 6.325 0.000 0.000 144 IO#wait_readable
4.02 4.503 4.503 0.000 0.000 1216459 String#to_s
@icarus4
icarus4 / init.lua
Last active January 28, 2022 03:11
Hammerspoon config for my M1 Macbook to focus specific application window
keyModal = hs.hotkey.modal.new({}, nil)
keyModal.pressed = function()
keyModal:enter()
end
keyModal.released = function()
keyModal:exit()
end