Skip to content

Instantly share code, notes, and snippets.

View TobyRet's full-sized avatar
:octocat:
Tappy tappy

Toby Retallick TobyRet

:octocat:
Tappy tappy
View GitHub Profile
#courses/show.html.erb
<% if permitted_referrer? %>
<%= content_for(:before_content) do %>
<%= govuk_back_link_to(build_back_link, "Back to search results") %>
<% end %>
<% end %>
#
def govuk_back_link_to(url, link_text = "Back")

Keybase proof

I hereby claim:

  • I am tobyret on github.
  • I am tobyret (https://keybase.io/tobyret) on keybase.
  • I have a public key ASAT2ZbhsLexgqiN6fxVsl8rH0A0oJBqkFjT44Do1qkH0go

To claim this, I am signing this object:

var architectSessions = {
"all": [
{
"start-date": "2016-02-23T14:30",
"end-date": "2016-02-23T15:30"
},
{
"start-date": "2016-02-23T09:30",
"end-date": "2016-02-23T10:00"
},
var sessions = {
"all": [
{
"title": "Ask an Architect",
"type": "oneToOne",
"topic": "architecture",
"summary": "Bacon ipsum dolor amet capicola t-bone hamburger salami chicken meatball drumstick pork loin. Beef pancetta ball tip turducken. Cow brisket andouille, fatback pork chop strip steak meatball jowl tri-tip venison cupim meatloaf pig pancetta. Shankle fatback shoulder kielbasa, flank pancetta andouille filet mignon beef ribs tongue.",
"start-date": "2016-02-16T10:30",
"end-date": "2016-02-16T12:30"
},
@TobyRet
TobyRet / songs
Created September 22, 2015 14:06
{
"data": [
{
"id": 69914992,
"readable": true,
"title": "Malemilemy",
"title_short": "Malemilemy",
"title_version": "",
"link": "http:\/\/www.deezer.com\/track\/69914992",
"duration": 318,
@TobyRet
TobyRet / gist:db5f73286ddc99bcb1e4
Created June 18, 2015 10:31
System Test - Deezer Meta
package me.crowdmix.media
import javax.ws.rs.client.Client
import javax.ws.rs.client.ClientBuilder
import com.fasterxml.jackson.databind.ObjectMapper
import com.github.tomakehurst.wiremock.junit.WireMockRule
import com.jayway.awaitility.groovy.AwaitilityTrait
import me.crowdmix.media.tracks.SourceTrackId
import me.crowdmix.media.tracks.TrackMetadata
import me.crowdmix.media.tracks.matching.deezer.*
import org.junit.Rule
{
"tracks": [
{
"track": {
"trackId": "6cbd64d0-ff9c-11e4-bb73-57d04e612f20",
"title": "Wishing You Were Somehow Here Again",
"artistName": "Original London Cast & Michael Reed",
"artworkUrlTemplate": "http://is5.mzstatic.com/image/pf/us/r30/Features/46/36/99/dj.edyjsfkd.%dx%d-75.jpg",
"sources": [
{
@TobyRet
TobyRet / updateCrowdmixZsh
Created April 9, 2015 12:39
Zsh function to update all your Crowdmix repos - add to your .zshrc file
updatecrowdmix() {
for dir in $(ls); do
(cd $dir && echo && echo $dir && git status && git pull);
done
}