Skip to content

Instantly share code, notes, and snippets.

anonymous
anonymous / index.html
Created December 29, 2016 16:00
JS Bin // source http://jsbin.com/licolajowu
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
* {
box-sizing: border-box;
@attentive
attentive / goban.clj
Last active January 5, 2020 02:41
SVG goban in Hiccup
(ns goban
(:require [clojure.string :as string]
hiccup.core))
(let [CEL 5.0 ; cell dimension in SVG viewport units
BDR 3.0 ; border width
PXR 10 ; ratio of pixels to SVG vw
BOA (* CEL 18) ; board side
DIM (+ BOA (* BDR 2))] ; goban side