I hereby claim:
- I am robertpostill on github.
- I am robertpostill (https://keybase.io/robertpostill) on keybase.
- I have a public key whose fingerprint is 4CA9 5B2B 82FF D9AE 1DA7 D5A3 9C5B F2D8 B307 F66B
To claim this, I am signing this object:
#!/bin/sh | |
# Shmaelessly ripped from http://www.robbyonrails.com/articles/2008/12/11/lighthouse-tickets-and-git-branching | |
# | |
# Will append the current pivotal tracker ticket number to the commit message automatically | |
# when you use the PT_* branch naming convention. | |
# | |
# Drop into .git/hooks/commit-msg | |
# chmod +x .git/hooks/commit-msg |
(define (largest-of-the-two x y) | |
(if (>= x y) | |
x | |
y)) |
(* (cond ((> a b) a) | |
((< a b) b) | |
(else -1)) | |
(+ a 1)) |
(define (largest-of-the-two? x y) | |
(if (= (largest-of-the-two x y) x) | |
true | |
false)) | |
(define (larger-than-thou x y z) | |
(if (and | |
(largest-of-the-two? x y) | |
(largest-of-the-two? x z)) |
(define (smallest-of-the-two x y) | |
(if (<= x y) | |
x | |
y)) | |
(define (smallest-of-the-two? x y) | |
(if (= (smallest-of-the-two x y) x) | |
true | |
false)) |
(define (sum-of-the-larger-two a b c) | |
(define remainder (min a b c)) | |
(define subtotal (apply + (list a b c))) | |
(- subtotal remainder)) |
(define exercise1-2 | |
(/ | |
( + 5 4 | |
(- 2 | |
(-3 | |
(+ 6 0.8)))) | |
(* 3 | |
(- 6 2) | |
(- 7 2)))) |
I hereby claim:
To claim this, I am signing this object:
#+BEGIN_HTML | |
--- | |
layout: post | |
--- | |
#+END_HTML |
#+BEGIN_HTML | |
{% highlight ruby %} | |
def show | |
@widget = Widget(params[:id]) | |
respond_to do |format| | |
format.html # show.html.erb | |
format.json { render json: @widget } | |
end | |
end |