Skip to content

Instantly share code, notes, and snippets.

View chrisdambrosio's full-sized avatar

Chris D'Ambrosio chrisdambrosio

View GitHub Profile
@chrisdambrosio
chrisdambrosio / spec.rb
Created August 26, 2016 02:23
Red-Green-Refactor by Example Excercise
# Use TDD principles to build out name functionality for a Person.
# Here are the requirements:
# - Add a method to return the full name as a string. A full name includes
# first, middle, and last name. If the middle name is missing, there shouldn't
# have extra spaces.
# - Add a method to return a full name with a middle initial. If the middle name
# is missing, there shouldn't be extra spaces or a period.
# - Add a method to return all initials. If the middle name is missing, the
# initials should only have two characters.
#
@chrisdambrosio
chrisdambrosio / rescuegroups_api_example.rb
Created January 24, 2015 00:20
RescueGroups API Request Example
require 'httparty'
API_KEY = ''
data = {
apikey: API_KEY,
objectType: "animals",
objectAction: "publicSearch",
search: {
resultStart: 0,
@chrisdambrosio
chrisdambrosio / Solarized Dark Green.alfredappearance
Created October 20, 2014 05:37
Alfred Theme - Solarized Dark (Green)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>background</key>
<data>
BAtzdHJlYW10eXBlZIHoA4QBQISEhAdOU0NvbG9yAISECE5TT2JqZWN0AIWEAWMChARm
ZmZmg8LAwDyDrawsPoPa2Fg+AYY=
</data>
<key>border</key>