Skip to content

Instantly share code, notes, and snippets.

View logaan's full-sized avatar
🥔
Starchy

Logan Campbell logaan

🥔
Starchy
View GitHub Profile
(ns jumpy-monkey.core)
(defn do-stuff [name num]
(let [result (+ 7 num)]
(js/console.log "Hello" name "your number is" result)))
(do-stuff "Logan" 7)
(do-stuff "Arvind" 3)
[logaan@logair ~] curl -v http://hueyskitchen.com.au/
* Adding handle: conn: 0x7fb21b004400
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7fb21b004400) send_pipe: 1, recv_pipe: 0
* About to connect() to hueyskitchen.com.au port 80 (#0)
* Trying 205.186.139.51...
* Connected to hueyskitchen.com.au (205.186.139.51) port 80 (#0)
> GET / HTTP/1.1
(let [ny-employers (->> [jay john mike chris]
(filter (comp (partial = "new york") :current-city))
(group-by :employer))]
(update-in ny-employers ["drw.com"] (partial map :name)))
"------------------ Vundler ---------------------------------------------------
set nocompatible " be iMproved
filetype off " required!
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
Bundle 'tpope/vim-fireplace'
"------------------ Vundler ---------------------------------------------------
set nocompatible " be iMproved
filetype off " required!
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
Bundle 'tpope/vim-fireplace'
set-option -g default-command "reattach-to-user-namespace -l bash"
set-window-option -g mode-keys vi
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection
unbind C-b
set -g prefix C-d
unbind d
#!/bin/bash
#
# Modified TMUX start script from:
# http://forums.gentoo.org/viewtopic-t-836006-start-0.html
#
# Store it to `~/bin/tmx` and issue `chmod +x`.
#
# Works because bash automatically trims by assigning to variables and by
wc.api.admin.start$start.invoke(start.clj:37) (controllers/the-intermediate-step conn descriptions) =>
{:routes
["/"
{"" :index,
["events/" :id] :event,
"hosts" :hosts,
"events" :events,
["hosts/" :id] :host}],
:resources
{:event
(ns snake.core
(:use [snake.behavior.crashing :only [crash-watcher]]
[snake.behavior.eating :only [eat-food-watcher]]
[snake.behavior.moving :only [advance-snake set-direction]]
[snake.rendering :only [render]])
(:require [snake.react :as r]
[snake.directions :as d]
[snake.states :as states]))
(def state
(ns kittens.handler
(:require [compojure.core :refer :all]
[compojure.handler :as handler]
[compojure.route :as route]))
(def last-result
(atom 0))
(defroutes app-routes
(GET "/" []