Skip to content

Instantly share code, notes, and snippets.

View indiesquidge's full-sized avatar

Austin Wood indiesquidge

View GitHub Profile
@indiesquidge
indiesquidge / pull-request-template-proposal.md
Last active March 2, 2017 00:29
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
indiesquidge / fire.html
Created December 12, 2016 06:04
first draft lo-fi fire animation
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Fire</title>
<style>
.fire-wrapper {
position: absolute;
top: 240px;
@indiesquidge
indiesquidge / angular-translate-directive-on-label.md
Last active May 6, 2016 23:09
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>

<label translate="APP.PURCHASE_ORDER_DETAILS.PURCHASE_ORDER_DETAILS_DIALOG.VENDOR_ID_INPUT_LABEL">
  <input class="vendor-id-input" type="text">
</label>
@indiesquidge
indiesquidge / angular-1-unit-testing-gotcha.md
Created February 9, 2016 23:19
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"
 gi-form-model="form"&gt;
@indiesquidge
indiesquidge / turing-network.md
Last active February 9, 2016 17:22
Turing Technical Network

Turing Technical Network

Hardware

  • So it's been mentioned that Turing upgraded to a fiber network. Can you tell us more about that?
  • What Wi-Fi hardware does Turing use?

Troubleshooting

  • I remember back when I was at Turing the network was notoriously known for being slow, dropping connection, etc.
    • What was the main issue there and how was it solved?
  • What steps did you have to take in order to narrow down the problem?
@indiesquidge
indiesquidge / learn-you-a-turing.md
Last active February 4, 2016 01:32
Increase your efficiency as a student at Turing

Learn You a Turing for Great Good!

It’s hard to keep track of everything you’re learning

  • Once a day, try and recap what you learned that day; write about it!
  • Once a week, recap the week
  • Every module, recap the module
  • Keep your "Turing environment" clean and organized

"You should sit in meditation for 20 minutes a day, unless you're too busy; then you should sit for an hour.”

@indiesquidge
indiesquidge / tmux.rb
Created October 21, 2015 18:15
Homebrew recipe for patched tmux (https://github.com/tmux/tmux/issues/150)
class Tmux < Formula
desc "Terminal multiplexer"
homepage "https://tmux.github.io/"
url "https://github.com/tmux/tmux/releases/download/2.1/tmux-2.1.tar.gz"
sha256 "31564e7bf4bcef2defb3cb34b9e596bd43a3937cad9e5438701a81a5a9af6176"
bottle do
cellar :any
sha256 "165ad1037a3993fd12c745cdf77bdd31133c0e13188ede37096532dddb5591c6" => :el_capitan
sha256 "44f62e8bed576ac82d5e2f768a6f3c6efb86fe7e45b37873d137294c8ef887b6" => :yosemite

Object Model

Bindings

  • are nodes in the stack
  • store local_variables
  • have a return value
  • have a self
@indiesquidge
indiesquidge / custom_array.rb
Last active August 29, 2015 14:20
Custom Array Flatten
# Partner: Chris Luhring, @cluhring
require_relative "custom_array"
RSpec.describe "CustomArray" do
it "can flatten some custom array of numbers" do
c = CustomArray.new([[1,2],[3,[4,5]]])
expect(c.flatten).to eq([1, 2, 3, 4, 5])
end
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')