Skip to content

Instantly share code, notes, and snippets.


Austin Wood indiesquidge

  • San Francisco, CA
View GitHub Profile
indiesquidge /
Last active Mar 2, 2017
Ideas around the flow of PRs, how to request reviewers, and PR templates

Pull Requests & Reviews

Brief Background

People are far less inclined to "drudge" through a review if they have no clue or context as to what they are reviewing.

Details and descriptions are paramount for PRs that include things like lots of new logic, lots of deletions, and/or new files.

indiesquidge /
Last active Aug 4, 2020
We are better off avoiding ES6 classes in JavaScript when possible

Plain JavaScript objects are better than classes when they can be used, and many popular modern frameworks have adopted their use.

Consider that in React a component can be created as either a class or as an object.

// using a class
class Welcome extends React.Component {
  render() {
    <h1>Hello, {}</h1>
indiesquidge / fire.html
Created Dec 12, 2016
first draft lo-fi fire animation
View fire.html
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
.fire-wrapper {
position: absolute;
top: 240px;
View add-eventing.js
const addEventing = function (obj) {
let events = {}
obj.on = (eventName, fn) => {
if (events[eventName]) {
} else {
events[eventName] = [fn]
indiesquidge / promise-dot-all.js
Last active May 27, 2020
Recreating Promise.all with async/await
View promise-dot-all.js
Let us re-create `Promise.all`
`Promise.all` method returns a promise that resolves when all of the promises in the iterable argument have resolved,
or rejects with the reason of the first passed promise that rejects.
Read more about `Promise.all` on MDN:
A basic example would be something like this:
indiesquidge /
Last active May 6, 2016
Limitations for the `angular-translate` directive when used on a label element with a nested input element

This may be more of a misunderstanding with my knowledge of how HTML works rather than a bug in angular-translate:

When I create a <label> that wraps an <input>

  <input class="vendor-id-input" type="text">
indiesquidge /
Last active May 1, 2020
Manual Git Flow for a Feature Branch from the CLI

Manual Git Flow for a Feature Branch from the CLI

Brief Context

Back in 2010, Vincent Driessen wrote a post called A successful Git branching model. Besides being extremely well drafted and clear in it's intention, the post goes into great detail about Git branching strategies and release management. The model that Vincent (sobriquet "nvie") came up with was popularized as git-flow.

indiesquidge /
Created Feb 9, 2016
Module Dependencies and Compiling in Unit Tests for Angular 1

Module Dependencies and Compiling in Unit Tests for Angular 1

I was writing a test that would click on a checkbox element

describe(`checkbox unchecked`, () => {
    it(`should remove the answer if the checkbox is unchecked`, () => {
        var form = angular.element(`<form name="form">
                                        <div gi-checkbox-optional="answer"
indiesquidge /
Created Jan 19, 2016
how to access subdomains locally with Rails 5

Subdomaining Localhost with Rails 5

I've been following this blog post on how to set up an api-only Rails 5 application. One of the sections talks about creating a subdomain for your api

Rails.application.routes.draw do
  constraints subdomain: "api" do
    scope module: "api" do
You can’t perform that action at this time.