Skip to content

Instantly share code, notes, and snippets.

View jmgimeno's full-sized avatar

Juan Manuel Gimeno jmgimeno

View GitHub Profile

EuroClojure 2014, Krakow

Fergal Byrne, Clortex: Machine Intelligence based on Jeff Hawkins’ HTM Theory

  • @fergbyrne
  • HTM = Hierarchical Temporal Memory

big data

  • big data is like teenage sex
    • noone knows how to do it
    • everyone thinks everyone else is doing it
    • so everyone claims to be doing
<?xml version="1.0" encoding="UTF-8"?>
<keymap version="1" name="Mac OS X 10.5+ Cursive" parent="Mac OS X 10.5+">
<action id=":plugin.actions.paredit/backward">
<keyboard-shortcut first-keystroke="shift meta H" />
</action>
<action id=":plugin.actions.paredit/backward-down">
<keyboard-shortcut first-keystroke="control meta U" />
</action>
<action id=":plugin.actions.paredit/backward-up">
<keyboard-shortcut first-keystroke="shift meta U" />
(require 'package)
(add-to-list 'package-archives
'("marmalade" . "http://marmalade-repo.org/packages/"))
(package-initialize)
(defvar my-packages '(starter-kit
starter-kit-lisp
starter-kit-bindings
starter-kit-eshell
clojure-mode
{:+ {:app {}
:editor {"alt-w" [:editor.watch.watch-selection]
"alt-shift-w" [:editor.watch.unwatch]}
:editor.clj.common {
;; moving in a sea of parens - jh
"alt-right" [:subpar.move.forward]
"alt-left" [:subpar.move.backward]
"alt-down" [:subpar.move.forward-down]
"alt-up" [:subpar.move.forward-up]
@jmgimeno
jmgimeno / README.md
Created February 25, 2014 16:07 — forked from jstcki/README.md

Using D3 in a React TransitionGroup to transition elements. D3 is used purely for transitions, no data-joins are used. The distinction between entering and exiting elements is handled by the TransitionGroup component. See the React documentation for more features.

Alternative implementations only with D3 and using React without addons.

Note: This implementation is around 30% slower in processing 1000 circles than the other two. Also, componentWillEnter() only is triggered when the TransitionGroup is being re-rendered and not when it is mounted (notice the gray circle at the start).

@jmgimeno
jmgimeno / README.md
Created February 25, 2014 16:07 — forked from jstcki/README.md

Avoid restarting running transitions by either starting one just on the .enter() selection or by using selection.filter() to only select elements which are not in transit yet.

Alternative implementations combining D3 with React and React TransitionGroup.

@jmgimeno
jmgimeno / README.md
Created February 25, 2014 16:06 — forked from jstcki/README.md
; From: http://stackoverflow.com/questions/21756079/implementing-snake-with-no-state-almost-in-clojure
(ns snake-2
(:import (java.awt Color Dimension)
(javax.swing JPanel JFrame Timer JOptionPane)
(java.awt.event ActionListener KeyListener)
(java.awt.event KeyEvent)))
;Constants
(def width 80)
(ns mc-map.core
(:require [om.core :as om :include-macros true]
[om.dom :as dom :include-macros true]))
(enable-console-print!)
(def app-state (atom {:mapOptions #js {:center (google.maps.LatLng. -34.397 150.644)
:zoom 8}}))
(defn map-view [app owner]
@jmgimeno
jmgimeno / why.clj
Created January 22, 2014 05:52 — forked from brandonbloom/why.clj
;;;; Super top secret talk stuff nobody should ever see. Shhh.
(in-ns 'user)
(defmacro bench [& body]
`((re-find #"\"(.*)\"" (with-out-str (time (do ~@body)))) 1))
*ns*
(require 'clojure.walk)