Skip to content

Instantly share code, notes, and snippets.

@calebhearth
calebhearth / f.diff
Last active December 22, 2015 22:39
diff --git a/apps/suds/app/helpers/md_honors_helper.rb b/apps/suds/app/helpers/md_honors_helper.rb
index 730cdc6..f7c2a1f 100644
--- a/apps/suds/app/helpers/md_honors_helper.rb
+++ b/apps/suds/app/helpers/md_honors_helper.rb
@@ -21,7 +21,7 @@ module MdHonorsHelper
attr_reader :view_context, :text, :email, :source, :options
def login_url
- "http://www.mdhonors.com/signin/default.aspx?source=#{source}&email=#{email_param}"
+ "http://www.mdhonors.com/signin/default.aspx?source=#{source}&email=#{email_param}".html_safe
let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""'
let g:ctrlp_use_caching = 700
++ history -a
++ __meaningful
++ git rev-parse --git-dir
+++ basename /Users/caleb/code/formulaic
+++ __git
++++ __git_ps1
++++ local pcmode=no
++++ local detached=no
++++ local 'ps1pc_start=\u@\h:\w '
++++ local 'ps1pc_end=\$ '

Caleb has braved the winters of Alaska and the deserts of Arizona. He has fired a Mosin-Nagant without blinking, fought the Red Menace, built Battleship Couch, and killed a bear and wore its pelt.

He enjoys fine wines, craft beers, and punching comets.

def self.with_no(join_association, by_hash)
unless by_hash.respond_to?(:has_key?) && by_hash.has_key?(:by)
raise ArgumentError.new('You must pass `:by` to `with_no` with the record that should not be included')
end
through_association = by_hash.delete(:by)
includes(join_association)
.references(join_association)
.where.not(join_association => { foreign_key_for(through_association) => through_association.id })
class SectionsController < ApplicationController
def update
section = course.sections.find(params[:id])
section.update(section_params)
render section_json(section)
end
private
---
title: External Posts in Jekyll
layout: post
external: http://robots.thoughtbot.com/post/55507617156/external-posts-in-jekyll
description: |
If you contribute to more than one blog, you may want to have all of your posts show up in a single stream, even if they aren't hosted on that same site.
---
{{ post.description }}
commit fb1751b5de594f64d04ad7c5cfe5080f20027cfa
Author: Caleb Thompson <[email protected]>
Date: Mon Jul 8 08:24:53 2013 -0400
wip - Don't validate Users when resetting password
There are plenty of reasons other than that the password was not
entered that validation might fail, such as when new validations have
been added since the person's last log in.
@calebhearth
calebhearth / .gitconfig
Last active August 29, 2015 13:57
GFL replacement
[color]
ui = auto
diff = auto
[color "branch"]
current = green reverse
local = green
remote = yellow
plain = blue
[color "diff"]
meta = yellow bold