Skip to content

Instantly share code, notes, and snippets.

View danja's full-sized avatar

Danny Ayers danja

View GitHub Profile
Everybody gets stuck. Especially when they are working alone.
A stupid mistake. A syntax error. An idea that just won't work.
When you are concentrating, Fixes tend to be to work it through, keep pounding until it breaks.
Or sleep on it.
But often the best way through is just a fresh pair of eyes.
@danja
danja / index.html
Last active November 30, 2015 11:14
Life on the Ocean Wave
<!DOCTYPE html>
<!--
see also
http://bl.ocks.org/mbostock/raw/c66ab1426f4b8945a7ef/
https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life
-->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8">
<style>
canvas {
@danja
danja / index.html
Last active November 30, 2015 10:42
Conway's Game of Life superimposed on mbostock’s wave motion
<!DOCTYPE html>
<!-- saved from url=(0053)http://bl.ocks.org/mbostock/raw/c66ab1426f4b8945a7ef/ -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8">
<style>
canvas {
position: absolute;
}
</style>
@danja
danja / CORSFuseki.md
Last active August 29, 2015 14:27
CORS on Fuseki2

same thing in md format

Two simple steps (below)

my current setup (on Ubuntu) is starting from a script:

` export FUSEKI_HOME=../../apache-jena-fuseki-2.3.0 export FUSEKI_BASE=../../apache-jena-fuseki-2.3.0

java -Xms2048M -Xmx2048M -Xss4m -jar ../../apache-jena-fuseki-2.3.0/fuseki-server.jar --verbose --update --config ../data/schemaedit-config.ttl --port=3333

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>NewsMonitor Links</title>
<link rel="stylesheet" href="/css/bootstrap.min.css">
<link rel="stylesheet" href="/css/common.css">
<!-- link rel="stylesheet" href="/css/themes/base/jquery.ui.all.css" -->