Skip to content

Instantly share code, notes, and snippets.

crofty / core.clj
Created Oct 2, 2018
Document serialization
View core.clj
(ns doc-serialization.core)
(def block-tags
{"h2" :h2
"h3" :h3
"h4" :h4
"p" :p})
(defn serialize-leaf [leaf]
[:span (:text leaf)])
We couldn’t find that file to show.
crofty / elevation.xml
Last active Feb 24, 2018
GDAL WMS for the Elevation dataset on AWS
View elevation.xml
<Service name="TMS">
View om-tutorial.core.cljs
(ns om-tutorial.core
(:require-macros [cljs.core.async.macros :refer [go]])
(:require [goog.dom :as gdom]
[cljs.core.async :as async :refer [<! >! put! chan]]
[clojure.string :as string]
[ :as om :refer-macros [defui]]
[om.dom :as dom])
(:import [goog Uri]
[ Jsonp]))
View application.controller.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twidsdle'
crofty / elasticsearch.conf
Created Feb 6, 2014
Upstart for elasticsearch
View elasticsearch.conf
# ElasticSearch Service
description "ElasticSearch"
start on (net-device-up
and local-filesystems
and runlevel [2345])
stop on runlevel [016]
crofty /
Last active Nov 21, 2019
Tracking Vehicles

This shows the movement of 330 vehicles travelling round the UK & Ireland over a 24hr period.


crofty / index.html
Last active Dec 19, 2015
Embedded Lookbook
View index.html
<!DOCTYPE html>
<meta charset='utf-8'>
<div class='container'>
<h2>Embedded lookbook - default</h2>
<script src='' type='text/javascript'></script>
View index.html
<!DOCTYPE html>
<meta charset='utf-8'>
<div class='container'>
<h1>Embedded lookbook - development</h1>
View Procfile
server: python -m SimpleHTTPServer
coffee: coffee -bwc *.coffee