Skip to content

Instantly share code, notes, and snippets.

View ninewise's full-sized avatar

Felix Van der Jeugt ninewise

View GitHub Profile
@ninewise
ninewise / index.html
Created August 29, 2017 14:43
Chitin 1 (raw)
<html>
<head>
<title>Treeview example</title>
<!-- Jquery -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<!-- D3 -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js"></script>

Keybase proof

I hereby claim:

  • I am ninewise on github.
  • I am noctua (https://keybase.io/noctua) on keybase.
  • I have a public key whose fingerprint is 68FF 5611 37C3 8F96 18E9 7339 AF25 A2C2 862A A368

To claim this, I am signing this object:

@ninewise
ninewise / bracket.js
Created November 7, 2014 16:42
Easy tournament bracket, double elimination
function Node() {
this.left = undefined;
this.right = undefined;
this.person = undefined;
};
function makeWinners(people, size) {
var root = new Node();
if(people.length === 1 && (size === 1 || size === 2)) {
@ninewise
ninewise / gist:5936193
Created July 5, 2013 18:04
A delaying queue for string not containing newlines.
new() {
size=$1
echo "${size}"
}
push() {
new="$1"
queue="$2"
max="$(echo "$queue" | sed '1!d')"
els="$(echo "$queue" | sed '1d')"
@ninewise
ninewise / tictactoe.sed
Created June 9, 2012 09:14
Just a quick sed tictactoe
#!/bin/sed
# Game initialization.
1 {
x
s/^.*$/---|---|---=X/
x
}
# Check is game is going.