This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
get 'greet/:name', (request) -> | |
"Hello " + request.params['name'] | |
becomes | |
routes = { | |
'greet/:name': function(request){ | |
return "Hello " + request.params['name']; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print "yo, dawg" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"yo" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(fn greet-name (name) | |
(. "Hello, name!")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(fn [n] | |
(loop [a 1, b 1, xs [a b]] | |
(if (= n (count xs)) | |
xs | |
(recur b (+ a b) (conj xs (+ a b)))))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defmacro debug-block [& lines] | |
(let [debugged-lines | |
(map (fn [line] | |
(if (list? line) | |
(conj line 'debug) | |
line)) | |
lines)] | |
debugged-lines)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defmacro debug-block [& lines] | |
(map (fn [line] | |
(if (list? line) | |
(conj line 'debug) | |
line)) | |
lines)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def onMessage(name, message): | |
funcs = {} | |
if message[0] != '>': | |
return None | |
def do(st): | |
block = st.pop() | |
evaluate(block, st) | |
return st.pop() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 247bab487e38133065575ba4fe5aaa673c63a3ff Mon Sep 17 00:00:00 2001 | |
From: Tamreen Khan <tamreen@chartbeat.com> | |
Date: Mon, 7 May 2012 18:40:36 -0400 | |
Subject: [PATCH] Add patches. | |
--- | |
patches | 1 + | |
1 files changed, 1 insertions(+), 0 deletions(-) | |
create mode 100644 patches |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Could not find artifact ibdknox:clojure:pom:1.5.0-alpha1 in central (http://repo1.maven.org/maven2) | |
Could not find artifact ibdknox:clojure:pom:1.5.0-alpha1 in clojars (https://clojars.org/repo/) | |
Generating a project called tutor based on the 'default' template. |
OlderNewer