Skip to content

Instantly share code, notes, and snippets.

View jwarykowski's full-sized avatar
🇦🇺
G'day!

Jonathan Warykowski jwarykowski

🇦🇺
G'day!
View GitHub Profile

Keybase proof

I hereby claim:

  • I am jwarykowski on github.
  • I am jwarykowski (https://keybase.io/jwarykowski) on keybase.
  • I have a public key ASAUaokxod0_xCPldhiF-EBZbQ2EaacUw2xeYjXLGXqMLQo

To claim this, I am signing this object:

@jwarykowski
jwarykowski / bubble-sort-exercise.markdown
Last active June 14, 2020 07:41
Visualized Algo: Bubble Sort Exercise
@jwarykowski
jwarykowski / recursion-exercise.markdown
Last active June 14, 2020 01:48
Recursion Exercise
@jwarykowski
jwarykowski / netrw quick reference.md
Created July 25, 2018 23:49 — forked from t-mart/netrw quick reference.md
A quick reference for Vim's built-in netrw file selector.
Map Action
<F1> Causes Netrw to issue help
<cr> Netrw will enter the directory or read the file
<del> Netrw will attempt to remove the file/directory
- Makes Netrw go up one directory
a Toggles between normal display, hiding (suppress display of files matching g:netrw_list_hide) showing (display only files which match g:netrw_list_hide)
c Make browsing directory the current directory
C Setting the editing window
d Make a directory
@jwarykowski
jwarykowski / docker
Created May 5, 2017 00:59
Docker Prune Commands
As of 1.13.0, new prune commands:
docker container prune # Remove all stopped containers
docker volume prune # Remove all unused volumes
docker image prune # Remove unused images
docker system prune # All of the above, in this order: containers, volumes, images
docker system df # Show docker disk usage, including space reclaimable by pruning

Keybase proof

I hereby claim:

  • I am jonathanchrisp on github.
  • I am jonathanchrisp (https://keybase.io/jonathanchrisp) on keybase.
  • I have a public key ASD6x2lZWFdIcxQEyUSA3uHDG3ZwmRSFWXHHHfrvWlbGKwo

To claim this, I am signing this object:

# build.sh
aws s3 presign s3://my_bucket/my_key --expires-in 300 > ./pre_sign_url
docker build -t my-service .
Dockerfile looks like this:
# dockerfile
FROM node
COPY . .
@jwarykowski
jwarykowski / file_sizes_one_directory
Created December 2, 2016 09:34
Show human file sizes with a depth of 1 directory
du -h -d 1
@jwarykowski
jwarykowski / on-jsx.markdown
Created October 4, 2016 15:59 — forked from chantastic/on-jsx.markdown
JSX, a year in

Hi Nicholas,

I saw you tweet about JSX yesterday. It seemed like the discussion devolved pretty quickly but I wanted to share our experience over the last year. I understand your concerns. I've made similar remarks about JSX. When we started using it Planning Center, I lead the charge to write React without it. I don't imagine I'd have much to say that you haven't considered but, if it's helpful, here's a pattern that changed my opinion:

The idea that "React is the V in MVC" is disingenuous. It's a good pitch but, for many of us, it feels like in invitation to repeat our history of coupled views. In practice, React is the V and the C. Dan Abramov describes the division as Smart and Dumb Components. At our office, we call them stateless and container components (view-controllers if we're Flux). The idea is pretty simple: components can'

@jwarykowski
jwarykowski / rtree.js
Created July 21, 2016 14:11
Generate dependency tree for RequireJS apps
// Usage:
//
// 1. Put this in the file that gets first loaded by RequireJS
// 2. Once the page has loaded, type window.rtree.map() in the console
// This will map all dependencies in the window.rtree.tree object
// 3. To generate UML call window.rtree.toUml(). The output can be used
// here: http://yuml.me/diagram/scruffy/class/draw
requirejs.onResourceLoad = function (context, map, depMaps) {
if (!window.rtree) {
window.rtree = {};