Skip to content

Instantly share code, notes, and snippets.

View airhorns's full-sized avatar
🎯
Workin' on Gadget at https://gadget.dev

Harry Brundage airhorns

🎯
Workin' on Gadget at https://gadget.dev
View GitHub Profile

Step 0:

Get Homebrew installed on your mac if you don't already have it

Step 1:

Install highlight. "brew install highlight". (This brings down Lua and Boost as well)

Step 2:

@airhorns
airhorns / core.clj
Last active December 10, 2015 14:28 — forked from anonymous/core.clj
(ns snapper.core
(:require [ring.adapter.jetty :as jetty]
[clojure.java.io :as io]
[ring.util.io :as ringio])
(:gen-class))
(defn handler
"Respond with a stream"
[request]
class SpracticeClient.AppController extends Batman.Controller
question_list: null
step: 0
current: null
options: null
answer_text: null
step_message: null
index: ->
Question.load (error, questions) =>
# model
class GiftIdea
has_many :images
end
# in the view (say app/views/gift_ideas/show.html.erb)
# say we are rendering html about one GiftIdea object, found in the @gift_idea variable
..
..
<div class="gift_idea">