Skip to content

Instantly share code, notes, and snippets.

View taoeffect's full-sized avatar

Greg Slepak taoeffect

View GitHub Profile
Unable to resolve symbol: behave in this context
[Thrown class java.lang.Exception]
0: [QUIT] Quit to the SLIME top level
0: clojure.lang.Compiler.resolveIn(
1: clojure.lang.Compiler.resolve(
2: clojure.lang.Compiler.analyzeSymbol(
$ lein swank
Exception in thread "main" java.lang.IllegalArgumentException: No matching field found: getCommandLine for class (NO_SOURCE_FILE:0)
at clojure.lang.Compiler.eval(
at clojure.lang.Compiler.eval(
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(
$ 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
$ 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
;; add this to your ~/.emacs or ~/.emacs.d/init.el file
;; jump parens
(defun match-paren (arg)
(interactive "p")
((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))
taoeffect / gist:5479568
Last active December 16, 2015 18:39
creates an extruded pentagon VBO with indexing and VAO
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));
$ 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:
taoeffect / watchme.html
Created September 21, 2013 22:37
If the contents of the "Watch Zone" changes, it probably means trouble. ^_^ Details:
<li class="icon4">
<h3>AES-256 Bit Encryption + Scrypt</h3>
<p>Espionage uses powerful <a href="" target="_blank">AES-256 encryption</a>
to protect your files and the super-computer defying <a href="" 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">
Hash: SHA512
taoeffect / gist:6826028
Created October 4, 2013 13:35
Equivalent CoffeeScript: (title, [options]..., cb) =>
var _this = this,
__slice = [].slice;
(function() {
var cb, options, title, _arg, _i;
title = arguments[0], _arg = 3 <= arguments.length ?, 1, _i = arguments.length - 1) : (_i = 1, []), cb = arguments[_i++];
options = _arg[0];
taoeffect / PARC.lsp
Last active December 24, 2015 18:59
Failed attempt to create a "Perfect Automatic Reference Counting" scheme. This file has been edited. The original attempt can be found here:
(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.
(define (Node.set-paret this parent)