Skip to content

Instantly share code, notes, and snippets.

Greg Slepak taoeffect

Block or report user

Report or block taoeffect

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:454599
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(
View gist:463770
$ 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(
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
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")
((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 Dec 16, 2015
creates an extruded pentagon VBO with indexing and VAO
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:
taoeffect / watchme.html
Created Sep 21, 2013
If the contents of the "Watch Zone" changes, it probably means trouble. ^_^ Details:
View watchme.html
<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 Oct 4, 2013
Equivalent CoffeeScript: (title, [options]..., cb) =>
View gist:6826028
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 Dec 24, 2015
Failed attempt to create a "Perfect Automatic Reference Counting" scheme. This file has been edited. The original attempt can be found here:
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.
(define (Node.set-paret this parent)
You can’t perform that action at this time.