Skip to content

Instantly share code, notes, and snippets.

View zahardzhan's full-sized avatar

Роман Захаров zahardzhan

View GitHub Profile
;taken from clj-gae-datastore/src/example/clojure/com/freiheit/gae/datastore/example.clj
; short-cut to set-up the GAE environment for interactive programming with Clojure and GAE
(ns com.freiheit.gae.datastore.example
(:use
[clojure.contrib def])
(:import
[com.google.apphosting.api ApiProxy ApiProxy$Environment]
[java.io File]
[java.util HashMap]
# Aliases
alias la="ls -a"
alias ll="ls -l"
# Show git branch
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/[\1] /'
}