Skip to content

Instantly share code, notes, and snippets.

@JFickel
JFickel / error.sh
Last active December 26, 2015 19:29 — forked from anonymous/error.sh
[1] pry(main)> f = FactoryGirl.build(:tournament, :with_teams, teams: 20)
(0.3ms) BEGIN
User Exists (0.9ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = 'example1@example.com' LIMIT 1
User Exists (0.5ms) SELECT 1 AS one FROM "users" WHERE "users"."username" = 'example1' LIMIT 1
SQL (4.2ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "first_name", "last_name", "updated_at", "username") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 28 Oct 2013 18:06:58 UTC +00:00], ["email", "example1@example.com"], ["encrypted_password", "$2a$04$pQOTHk9MXOUE8ayPjkFzmOg/ZW5j0VjyEPmz0PbTgJJc0qGs5A7Ii"], ["first_name", "Maggie"], ["last_name", "Gerlach"], ["updated_at", Mon, 28 Oct 2013 18:06:58 UTC +00:00], ["username", "example1"]]
PgSearch::Document Load (0.9ms) SELECT "pg_search_documents".* FROM "pg_search_documents" WHERE "pg_search_documents"."searchable_id" = $1 AND "pg_search_documents"."searchable_type" = $2 ORDER BY "pg_search_documents"."id" ASC
@JFickel
JFickel / index.html
Last active December 19, 2015 06:29 — forked from dbc-challenges/index.html
DBC Phase 2 Practice Assessment Part 3
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="http://cdn.jsdelivr.net/normalize/2.1.0/normalize.css">
<link rel="stylesheet" href="main.css">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Lato:100,900">
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.0.2/css/font-awesome.min.css">
</head>
class Vehicle
WHEELS = 4
attr_reader :status
attr_accessor :manufacturer
def initialize(args)
@manufacturer = args[:manufacturer]
@wheels = WHEELS
end
def brake