Skip to content

Instantly share code, notes, and snippets.

View staypufd's full-sized avatar

Sam Griffith Jr staypufd

View GitHub Profile
@staypufd
staypufd / gist:25ea1d2da98543b94a5ca2cedd259ddc
Created January 12, 2017 22:54
Playing with Om Next in Klipse
http://app.klipse.tech/?container&cljs_in.gist=viebel/69a7c0cdf289bad342fefe82fdeb7179
@staypufd
staypufd / gist:0dea840c972383162be5810e15b3d53e
Last active May 16, 2017 17:29
.bashrc that has config for virtual environments to be required and a nice little script 'eve' that tries to activate python virtualenv and if not prints a informative error
export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python2.7
MYSQL=/usr/local/mysql/bin
MYBIN=~/bin
export PATH=$PATH:$MYBIN
export PATH=$PATH:$MYSQL
export DYLD_LIBRARY_PATH=/usr/local/mysql/lib:$DYLD_LIBRARY_PATH
# Colors

Keybase proof

I hereby claim:

  • I am staypufd on github.
  • I am staypufd (https://keybase.io/staypufd) on keybase.
  • I have a public key ASCXD3EQsLw74ZdDgbVp8a8FSbdsPZTfKXFLm3H65kggqwo

To claim this, I am signing this object:

@staypufd
staypufd / fizz-buzz-with-special.clj
Created May 12, 2020 02:19
Managing Conditions across functions boundaries
```clojure
(ns specialdemo.core
(:require [special.core :refer [condition manage]])
(:gen-class))
(defn fizz-buzz [i]
(let [f (fn [n]
(for [i (range n)]
(cond
(and (= (mod i 3) 0)
initialize
| sampleCell width height n |
super initialize.
n := self cellsPerSide.
sampleCell := LOCell new.
width := sampleCell width.
height := sampleCell height.
self bounds: (5 @ 5 extent: (width * n) @ (height * n) + (2 * self borderWidth)).
cells := Array2D new: 5 tabulate: [ :i :j | self newCellAt: i at: j].