Skip to content

Instantly share code, notes, and snippets.

View neenjaw's full-sized avatar
:shipit:
Shippin' code

Tim Austin neenjaw

:shipit:
Shippin' code
View GitHub Profile
@neenjaw
neenjaw / notes_for_dive_design_patterns.md
Last active April 19, 2024 09:29
Dive Into Design Patterns

Notes for Dive Into Design Patterns

Pillars of OOP

  • Abstraction
  • Polymorphism
  • Encapsulation
  • Inheritance

Relations Between Objects

@neenjaw
neenjaw / netrw.txt
Created July 4, 2023 19:46 — forked from danidiaz/netrw.txt
Vim's netrw commands.
--- ----------------- ----
Map Quick Explanation Link
--- ----------------- ----
< <F1> Causes Netrw to issue help
<cr> Netrw will enter the directory or read the file |netrw-cr|
<del> Netrw will attempt to remove the file/directory |netrw-del|
<c-h> Edit file hiding list |netrw-ctrl-h|
<c-l> Causes Netrw to refresh the directory listing |netrw-ctrl-l|
<c-r> Browse using a gvim server |netrw-ctrl-r|
<c-tab> Shrink/expand a netrw/explore window |netrw-c-tab|
@neenjaw
neenjaw / notes_for_prag_prog.md
Last active July 2, 2023 01:09
Notes for The Pragmatic Programmer

The Pragmatic Progammer

Tips

  1. Care about your craft
  2. Think! About your work
  3. You Have Agency
  4. Provide Options, Don't Make Lame Excuses
  5. Don't Live with Broken Windows
  6. Be a Catalyst for Change
@neenjaw
neenjaw / notes_for_mythical_man_month_ch01.md
Last active December 31, 2021 01:19
Notes for the Mythical Man Month

The Mythical Man-Month

1. The Tar Pit

The goal

  • Program
    • A complete product to itself, ready to be run on the system it was dev'd on
  • Programming System
  • 3x more costly than a program
@neenjaw
neenjaw / recursivePath.js
Created September 28, 2021 01:28
Make Recursion Have a recursive path
(function drawRecursiveConnection() {
const conceptElem = document.querySelector('div[id="concept-recursion"]')
const top = conceptElem.offsetTop
const left = conceptElem.offsetLeft
const arc = `
<svg viewBox="0 0 60 60" class="connection unlocked active" data-from="recursion" data-to="recursion" style="width: 60px; height 60px; transform: translate(${left-30}px, ${top-30}px)">
<g>
<path d="M 30 55
A 25 25, 0, 1, 1, 55 30" />
@neenjaw
neenjaw / bench.php
Created April 17, 2021 14:24
bool benchmark
<?php
// derivitive of https://github.com/vanilla-php/benchmark-php/blob/master/benchmark.php
/**
* PHP Script to benchmark PHP and MySQL-Server.
*
* inspired by / thanks to:
* - www.php-benchmark-script.com (Alessandro Torrisi)
* - www.webdesign-informatik.de
*
@neenjaw
neenjaw / notes_for_refactoring.md
Last active April 4, 2021 02:36
Notes for Refactoring

Refactoring

Tests

@neenjaw
neenjaw / notes_for_ddd.md
Created April 4, 2021 02:35
Notes from Domain-Driven Design

l

@neenjaw
neenjaw / notes_for_clean_code.md
Last active April 4, 2021 02:34
Notes from Clean Code

Clean Code Summary

General Rules

  1. Follow standard conventions.
  2. Keep it simple. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@neenjaw
neenjaw / bootstrap_exercise.sh
Last active February 17, 2021 00:37
Bootstrap concept exercise
#!/usr/bin/env bash
set -euo pipefail
concept_exercise_path="/exercises/concept"
if [[ "${#}" -eq 1 ]]; then
language="ruby"
slug="${1:-}"
elif [[ "${#}" -eq 2 ]]; then