View gist:454599
Unable to resolve symbol: behave in this context | |
[Thrown class java.lang.Exception] | |
Restarts: | |
0: [QUIT] Quit to the SLIME top level | |
Backtrace: | |
0: clojure.lang.Compiler.resolveIn(Compiler.java:5672) | |
1: clojure.lang.Compiler.resolve(Compiler.java:5616) | |
2: clojure.lang.Compiler.analyzeSymbol(Compiler.java:5579) |
View gist:463770
$ lein swank | |
Exception in thread "main" java.lang.IllegalArgumentException: No matching field found: getCommandLine for class org.apache.tools.ant.taskdefs.Java (NO_SOURCE_FILE:0) | |
at clojure.lang.Compiler.eval(Compiler.java:5435) | |
at clojure.lang.Compiler.eval(Compiler.java:5386) | |
at clojure.core$eval.invoke(core.clj:2370) | |
at clojure.main$eval_opt.invoke(main.clj:235) | |
at clojure.main$initialize.invoke(main.clj:254) | |
at clojure.main$script_opt.invoke(main.clj:270) | |
at clojure.main$main.doInvoke(main.clj:354) | |
at clojure.lang.RestFn.invoke(RestFn.java:458) |
View gist:463782
$ lein pom && mvn dependency:tree | |
Wrote pom.xml | |
[INFO] Scanning for projects... | |
[INFO] Searching repository for plugin with prefix: 'dependency'. | |
[INFO] org.apache.maven.plugins: checking for updates from central | |
[INFO] org.codehaus.mojo: checking for updates from central | |
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-dependency-plugin/2.0/maven-dependency-plugin-2.0.pom | |
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugins/10/maven-plugins-10.pom | |
View gist:463785
$ lein pom && mvn dependency:tree | |
Wrote pom.xml | |
[INFO] Scanning for projects... | |
[INFO] Searching repository for plugin with prefix: 'dependency'. | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Building jME | |
[INFO] task-segment: [dependency:tree] | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] [dependency:tree {execution: default-cli}] | |
[INFO] jME:jME:jar:1.0.0-SNAPSHOT |
View trailing-parens.el
;; add this to your ~/.emacs or ~/.emacs.d/init.el file | |
;; jump parens | |
(defun match-paren (arg) | |
(interactive "p") | |
(cond | |
((looking-at "\\s\(") (forward-list 1) (backward-char 1)) | |
((looking-at "\\s\)") (forward-char 1) (backward-list 1)) | |
((looking-at "\\s\{") (forward-list 1) (backward-char 1)) | |
((looking-at "\\s\}") (forward-char 1) (backward-list 1)) |
View gist:5479568
void CreatePentagon() { | |
float step = 2.0*M_PI/5, t=0; | |
Vertex Vertices[7+7+12]; | |
// pentagon[0] = vec3(0); | |
// bottom | |
vec4 color(1,0,0,1); | |
Vertices[0].normal = vec3(0,-1,0); | |
Vertices[0].color = color; | |
for (int i=1; i<7; i++, t-=step) { | |
Vertices[i].pos = vec3(cosf(t),0,sinf(t)); |
View gist:5588795
$ brew doctor | |
Warning: Unbrewed dylibs were found in /usr/local/lib. | |
If you didn't put them there on purpose they could cause problems when | |
building Homebrew formulae, and may need to be deleted. | |
Unexpected dylibs: | |
/usr/local/lib/libcdt.5.dylib | |
/usr/local/lib/libcgraph.6.dylib | |
/usr/local/lib/libchicken.dylib | |
/usr/local/lib/libcimar.dylib |
View watchme.html
<li class="icon4"> | |
<h3>AES-256 Bit Encryption + Scrypt</h3> | |
<p>Espionage uses powerful <a href="http://en.wikipedia.org/wiki/Advanced_Encryption_Standard" target="_blank">AES-256 encryption</a> | |
to protect your files and the super-computer defying <a href="http://www.tarsnap.com/scrypt.html" target="_blank">scrypt</a> | |
to protect your passwords (instead of relying on OS X's weak keychain). | |
<span id="sig-start" class="respect-and-protect-your-customers" style="display:none"> | |
-----BEGIN PGP SIGNED MESSAGE----- | |
Hash: SHA512 | |
<!-- |
View gist:6826028
var _this = this, | |
__slice = [].slice; | |
(function() { | |
var cb, options, title, _arg, _i; | |
title = arguments[0], _arg = 3 <= arguments.length ? __slice.call(arguments, 1, _i = arguments.length - 1) : (_i = 1, []), cb = arguments[_i++]; | |
options = _arg[0]; | |
}); |
View PARC.lsp
(define (Node.) | |
; for the sake of this example, let's say that this function | |
; is a "constructor" that returns a symbol pointing to a map. | |
) | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;; DECLARE "METHODS" FOR NODE ;; | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
(define (Node.set-paret this parent) |
OlderNewer