Skip to content

Instantly share code, notes, and snippets.

;; gorilla-repl.fileformat = 1
;; **
;;; # Alien population
;;;
;;; Code by @hobbbins, with notes added by @JonyEpsilon.
;;;
;; **
;; @@
@JonyEpsilon
JonyEpsilon / expression-1.6.0.clj
Last active August 29, 2015 14:13
Algebolic performance 1.6.0 vs 1.7.0
;; gorilla-repl.fileformat = 1
;; **
;;; # Expression performance measurements (1.6.0)
;;;
;;; Benchmarks of the performance of algebolic's core operations on expressions.
;; **
;; @@
(ns algebolic.expression-performance
@JonyEpsilon
JonyEpsilon / parser.clj
Last active November 13, 2015 02:58
Using the Stanford NLP LexicalizedParser in clojure
;; gorilla-repl.fileformat = 1
;; **
;;; # Loading a lexparser
;; **
;; @@
(ns fuscia-sunset
(:import (edu.stanford.nlp.parser.lexparser LexicalizedParser Options)))
;; @@
@JonyEpsilon
JonyEpsilon / matrix-form-test.clj
Created March 17, 2014 12:32
Matrix form test
;; gorilla-repl.fileformat = 1
;; **
;;; # Thinking about core.matrix rendering
;;;
;;; Gorilla's renderer at the moment works by dispatching the render call on type. How might this work with core.matrix, and other things that are defined by _protocol_?
;;;
;;; One idea, sketched out in this worksheet is to use a view-function, much like is done in Mathematica. Internally it will work by wrapping the matrix in a marker type, but this should be viewed as an implementation detail.
;;;
;;; In Mathematica, matrices are represented by lists-of-lists, and on the whole, the notebook doesn't do anything special with them, displaying them like flat lists-of-lists. There'a a function, `MatrixForm` whose job is to tag the data for display in the front end as a matrix.
@JonyEpsilon
JonyEpsilon / test.csv
Last active December 14, 2015 09:19
Test data for the MonkeyCruncher import tutorial.
name value
1 10
2 15
3 45
4 54
5 90
7 123
[{"name":"Angola","region":"Sub-Saharan Africa","income":[[1800,359.93],[1820,359.93],[1913,556.12],[1950,3363.02],[1951,3440.9],[1952,3520.61],[1953,3598.81],[1954,3450.82],[1955,3672.08],[1956,3549.04],[1957,3827.94],[1958,3966.42],[1959,3917.76],[1960,4006.21],[1961,4463.83],[1962,4269.28],[1963,4413.6],[1964,4826.49],[1965,5102.21],[1966,5308.14],[1967,5522.78],[1968,5346.63],[1969,5408.12],[1970,5651.88],[1971,5526.21],[1972,5473.29],[1973,5722.02],[1974,5470.21],[1975,3430.85],[1976,3050.32],[1977,3008.65],[1978,3070.82],[1979,3064.89],[1980,3074.75],[1981,2953.41],[1982,2756.95],[1983,2584.56],[1984,2527.47],[1985,2492.83],[1986,2220.61],[1987,2430.21],[1988,2728.53],[1989,2730.56],[1990,2777.42],[1991,2730.85],[1992,2627.85],[1993,1869.92],[1994,1851.45],[1995,1989.02],[1996,2157.35],[1997,2277.14],[1998,2384.48],[1999,2417.18],[2000,2446.65],[2001,2479.69],[2002,2773.29],[2003,2785.39],[2004,3007.11],[2005,3533],[2006,4069.56],[2007,4755.46],[2008,5228.74],[2009,5055.59]],"population":[[1800,1567028]