Skip to content

Instantly share code, notes, and snippets.

@crofty
crofty / gist:faa68b817ec27b39b8989ee77ad44efd
Created September 27, 2022 10:20
bettermotherfuckingwebsite css
/* Originally from http://bettermotherfuckingwebsite.com */
@import url('https://fonts.googleapis.com/css?family=Inconsolata|Inter&display=swap');
body {
margin: 40px auto;
max-width: 900px;
line-height: 1.6;
font-size: 16px;
color: #444;
padding: 0 10px;
font-family: 'Inter', sans-serif;;
@crofty
crofty / core.clj
Created October 2, 2018 14:22
Document serialization
(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
crofty / elevation.xml
Last active February 24, 2018 20:58
GDAL WMS for the Elevation dataset on AWS
<GDAL_WMS>
<Service name="TMS">
<ServerUrl>https://s3.amazonaws.com/elevation-tiles-prod/geotiff/${z}/${x}/${y}.tif</ServerUrl>
</Service>
<DataWindow>
<UpperLeftX>-20037508.34</UpperLeftX>
<UpperLeftY>20037508.34</UpperLeftY>
<LowerRightX>20037508.34</LowerRightX>
<LowerRightY>-20037508.34</LowerRightY>
<TileLevel>14</TileLevel>
(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]
[om.next :as om :refer-macros [defui]]
[om.dom :as dom])
(:import [goog Uri]
[goog.net Jsonp]))
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twidsdle'
});
@crofty
crofty / elasticsearch.conf
Created February 6, 2014 10:03
Upstart for elasticsearch
# ElasticSearch Service
description "ElasticSearch"
start on (net-device-up
and local-filesystems
and runlevel [2345])
stop on runlevel [016]
@crofty
crofty / README.md
Last active November 21, 2019 02:45
Tracking Vehicles

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

More

@crofty
crofty / index.html
Last active December 19, 2015 19:38
Embedded Lookbook
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<title>Embedded</title>
</head>
<body>
<div class='container'>
<h2>Embedded lookbook - default</h2>
<script src='http://lookbook.rapha.cc/aw13-cx/en/embed' type='text/javascript'></script>
@crofty
crofty / index.html
Last active December 19, 2015 04:49
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<title>Embedded</title>
</head>
<body>
<div class='container'>
<h1>Embedded lookbook - development</h1>