Skip to content

Instantly share code, notes, and snippets.

View ebaxt's full-sized avatar

Erik Bakstad ebaxt

View GitHub Profile
➜ .lein cat .profiles
{:user
{:dependencies {clj-stacktrace "0.2.4"}
:injections [(let [orig (ns-resolve (doto 'clojure.stacktrace require)
'print-cause-trace)
new (ns-resolve (doto 'clj-stacktrace.repl require)
'pst)]
(alter-var-root orig (constantly @new)))]
:plugins [[lein-midje "2.0.0-SNAPSHOT"]
[lein-pprint "1.1.1"]]}}%
@ebaxt
ebaxt / radio_mustach_example.html
Created March 4, 2012 19:09
Checking radio with Mustache
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
<script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="js/mustache.js"></script>
</head>
<body>
<div id="formWrapper">
@ebaxt
ebaxt / gist:951405
Created May 2, 2011 10:13
js-model with Plugin.Format
/* js-model JavaScript library, version 0.10.1
* (c) 2010-2011 Ben Pickles
*
* Released under MIT license.
*/
var Model = function(name, func) {
// The model constructor.
var model = function(attributes) {
this.attributes = this.setAttributeValues(Model.Utils.extend({}, attributes))
this.changes = {};
@ebaxt
ebaxt / gist:910112
Created April 8, 2011 15:32
Heroku_mongo_sync
heroku plugins:install http://github.com/pedro/heroku-mongo-sync.git