Skip to content

Instantly share code, notes, and snippets.

View RobAWilkinson's full-sized avatar

Rob Wilkinson RobAWilkinson

  • @oddballio
  • Austin, TX
View GitHub Profile
@RobAWilkinson
RobAWilkinson / Ninja_+spec.rb
Created January 28, 2015 18:53
Ninja_spec.rb
require 'rails_helper'
RSpec.describe Ninja, :type => :model do
let(:subject1) { Ninja.new(secret_name: "Joe") }
let(:subject2) { Ninja.new(name: "Akira")}
it "responds to name" do
expect(subject1).to respond_to(:name)
end
it "is invalid without a name" do

#Big O notation

##Learning Objectives

  • understand what big O notation is
  • understand examples of
    • O(1)
    • O(n)
    • O(n^2)
    • O(log n)

#Big O notation

##Learning Objectives

  • understand what big O notation is
  • understand examples of
    • O(1)
    • O(n)
    • O(n^2)
    • O(log n)

#Sort algorithms

##Learning Objectives

  • Understand what sort algorithms do and how computers sort things
  • build a bubble sort and understand its Big O notation
  • build a merge sort and understand its Big O notation

Whats sorting got to do with it?

#Binary Search Trees/Recursion

###Learning Objectives

  • Binary Search Tree Theory
  • Creating a Binary Search Tree
  • Recursion definition
  • Sweet, sweet, Recursion

#Binary Search Trees/Recursion

###Learning Objectives

  • Binary Search Tree Theory
  • Creating a Binary Search Tree
  • Recursion definition
  • Sweet, sweet, Recursion
require 'httparty'
require_relative './passwords'
# blank array to hold usernames
usernames = []
#create blank array to hold HTTParty get threads
username_threads = []
(32..34).each do |num|

#Scaling a rails app

##Learning Objectives

  • n+1 querys

#Intro to Golang

###What is go

  • statically typed
  • functional language
  • with concurrency built right in

###set up

#Intro to Golang

###What is go

  • statically typed
  • functional language
  • with concurrency built right in

###set up