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
(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) |
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
[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 |
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
(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))) |
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
"------------------ Vundler --------------------------------------------------- | |
set nocompatible " be iMproved | |
filetype off " required! | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
Bundle 'gmarik/vundle' | |
Bundle 'tpope/vim-fireplace' |
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
"------------------ Vundler --------------------------------------------------- | |
set nocompatible " be iMproved | |
filetype off " required! | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
Bundle 'gmarik/vundle' | |
Bundle 'tpope/vim-fireplace' |
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
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 |
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
#!/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 |
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
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 |
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
(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 |
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
(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 "/" [] |
OlderNewer