Skip to content

Instantly share code, notes, and snippets.

Alastair Firth afirth

  • Berlin, Germany
Block or report user

Report or block afirth

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
TheDeveloper /
Created May 30, 2012
Recursive find & replace using ack
perl -i -p -e's/find/replace/g' $(ack -l --text from)
davidphasson / show.html.erb
Created Apr 8, 2009
ERB and the case statement
View show.html.erb
# Doesn't work
<% case @request.author_hosted %>
<% when "yes" %>
The school <b>has</b> hosted an author before.
<% when "no" %>
The school <b>has not</b> hosted an author before.
<% end %>
You can’t perform that action at this time.