Skip to content

Instantly share code, notes, and snippets.

View barak's full-sized avatar

Barak A. Pearlmutter barak

View GitHub Profile
@Eskatrem
Eskatrem / derivatives.lisp
Created November 3, 2013 15:21
Proof of concept of a program that makes the derivative operator a first class citizen.
(defparameter *maths-functions* (list))
(defmacro defun-maths (func-name args core)
"appends the code of func-name into maths-functions."
`(progn
(push (list :name (quote ,func-name) :variable (quote ,args) :core (quote ,core)) *maths-functions*)
(defun ,func-name ,args ,core)))
(defun get-source (func-name)
(car (remove-if-not (lambda (f) (eql (getf f :name) func-name)) *maths-functions*
@manzyuk
manzyuk / gist:768884
Created January 7, 2011 00:04
snow effect
// Set the number of snowflakes (more than 30 - 40 not recommended)
var snowmax=120
// Set the colors for the snow. Add as many colors as you like
var snowcolor=new Array("#b9dff5","#b9dff5","#b9dff5","#b9dff5","#b9dff5")
// Set the fonts, that create the snowflakes. Add as many fonts as you like
var snowtype=new Array("Times")
// Set the letter that creates your snowflake (recommended: * )