- lein2 version (grabbed prior to adding plugins to profiles.clj): Leiningen 2.0.0-preview1 on Java 1.6.0_26 Java HotSpot(TM) 64-Bit Server VM
- this same setup works on one machine and not another
- swap [lein-swank "1.4.3"] for [lein-immutant "0.5.2"] or any other clojars artifacts and it still fails
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
/* | |
* @fileoverview Externs for backbone-0.9.1.js | |
* | |
* built with http://www.dotnetwise.com/Code/Externs/index.html | |
* see also: http://blog.dotnetwise.com/2009/11/closure-compiler-externs-extractor.html | |
* via: http://code.google.com/p/closure-compiler/wiki/FAQ#How_do_I_write_an_externs_file? | |
* | |
* Note: when building via that page, you first need to load in underscrore.js, as that's a dependency. | |
* also, after running the extern for Backbone, you need to manually run it for: |
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 pom2proj | |
(:require [clojure.xml :as xml] | |
[clojure.zip :as zip] | |
[clojure.java.io :as io] | |
[clojure.data.zip.xml :as zx]) | |
(:use [clojure.pprint :only [pprint]])) | |
(defn- text-attrs | |
[loc ks] | |
(map (fn [k] |
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
var fs = require('fs'); | |
var vm = require('vm'); | |
var emberjs = fs.readFileSync('public/javascripts/vendor/ember-0.9.5.min.js', 'utf8'); | |
var templatesDir = 'templates'; | |
var destinationDir = 'public/javascripts/templates'; | |
function compileHandlebarsTemplate(templatesDir, fileName) { | |
var file = templatesDir + '/' + fileName; |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>test</groupId> | |
<artifactId>test</artifactId> | |
<packaging>jar</packaging> | |
<version>0.1.0-SNAPSHOT</version> | |
<name>test</name> | |
<description>FIXME: write description</description> | |
<url>http://example.com/FIXME</url> |
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
;; Datomic example code | |
(use '[datomic.api :only (db q) :as d]) | |
;; ?answer binds a scalar | |
(q '[:find ?answer :in ?answer] | |
42) | |
;; of course you can bind more than one of anything | |
(q '[:find ?last ?first :in ?last ?first] | |
"Doe" "John") |
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
;; Datomic example code | |
;; Demonstrates using datalog with Clojure defrecords | |
(use '[datomic.api :only [q db] :as d]) | |
;;; http://www.lshift.net/blog/2010/08/21/some-relational-algebra-with-datatypes-in-clojure-12 | |
(defrecord Supplier [number name status city]) | |
(defrecord Part [number name colour weight city]) | |
(defrecord Shipment [supplier part quantity]) | |
;; sample data |
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 dinesman | |
(:refer-clojure :exclude [==]) | |
(:use clojure.core.logic)) | |
(defne aboveo [x y l] | |
([_ _ [y . r]] | |
(membero x l)) | |
([_ _ [z . r]] | |
(!= z y) | |
(aboveo x y r))) |
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
;; An implementation of the rock-paper-scissors variant - | |
;; rock-paper-scissors-lizard-spock - based on Alex Miller's core.async | |
;; implementation. | |
;; - http://tech.puredanger.com/2013/07/10/rps-core-async/ | |
;; - https://gist.github.com/puredanger/5965883 | |
;; - https://github.com/relevance/labrepl/blob/master/src/solutions/rock_paper_scissors.clj | |
;; - http://www.imdb.com/title/tt1256039/quotes?item=qt0493730 | |
(require 'clojure.core.async :refer :all) |
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
;; Works with nrepl-0.1.6.el | |
(defun my-form-printing-handler (buffer form) | |
(lexical-let ((form form)) | |
(nrepl-make-response-handler buffer | |
(lambda (buffer value) | |
(nrepl-emit-result buffer (format "%s" form) t) | |
(nrepl-emit-result buffer (format "%s" value) t)) | |
(lambda (buffer out) | |
(nrepl-emit-output buffer out t)) |
OlderNewer