Skip to content

Instantly share code, notes, and snippets.

View Grepsy's full-sized avatar

Robert Massa Grepsy

  • The Sustainables
  • Amsterdam
View GitHub Profile
@Grepsy
Grepsy / index.html
Created March 23, 2014 19:59
3D roof tile rendering
<!DOCTYPE html>
<html>
<head>
<title>Tiles</title>
<style>
canvas {
width: 1024px;
height: 1024px;
}
img {
@Grepsy
Grepsy / program.cs
Created April 30, 2014 11:29
Bowling Kata - C#, try 1
using System;
using System.Collections.Generic;
using System.Linq;
namespace Katas {
class Frame(int index) {
public List<int> Rolls = new List<int>();
public int FrameIndex { get; } = index;
public bool Completed {
@Grepsy
Grepsy / program.fsx
Last active August 29, 2015 14:00
Bowling Kata - F#, try 1
let games = [
(0, [0; 0 ]);
(5, [0; 5 ]);
(10, [5; 5; 0; 0 ]);
(20, [5; 5; 5; 0 ]);
(10, [10; 0; 0 ]);
(20, [10; 5; 0 ]);
(20, [10; 0; 5 ]);
(30, [10; 5; 5 ]);
(300, [10; 10; 10; 10; 10; 10; 10; 10; 10; 10; 10; 10 ])
@Grepsy
Grepsy / index.html
Created January 4, 2017 09:39 — forked from ilyabo/index.html
D3 tooltip using SVG title element
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script>
</head>
<body>
<div id="chart"></div>
<script type="text/javascript">
var w = 800, h = 500;
<img style="transform: rotate(45deg)" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAIAAABMXPacAAAACXBIWXMAAABIAAAASABGyWs+AAAAcXpUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjabYzRCYAwDET/M0VGeElrrOMUquAGju9HK1T0QQiXu4vs13mIqqpqCcnLWmKLAMgtN/BKpwCOmQNp3GwMkwYw6dtjMlPtgU+5ggP59cShQpI/40FuFTUk+VSs69cAABHQSURBVHja7V15VBRntr/1VVUvGAYBgzuBCQmokWQ0DvG9SYzjQt6Yk4T4zhnzdIjZNJqM5p0TTWJyTuL8NcYFlUg3NuhMHpijEcz6giuOYtRxeaMxCi9xOcIAeYhIAKFru++Pa1earWmku6t6pn/HP6S766uv7u9u3/2W4hARIjAOzOgO/LMjQoDBiBBgMCIEGIwIAQYjQoDBCHsCVFUL60w6vAlARMY4TcPw5SC8CZBlee/efZqmchwXphyEKwGqqgLAmTNn5s6dV1lZBQARAgyAy+W6du3/tm7dAmFLQFharqZpjLGzZ7956KHJiCiKwvHjx8eMSaPPje5d/xBm3SWQ0jidzvb2NpvN1tLy45YthQCgqmrY6VP4WQCp+bfffpuRkdHe7rbb7W1trXFxsceOHbvnnnvCzgjCqa8ETdMAoKCgoK2tTRAERBRFy/Xr1wsLC/RvwwkYViAnc+FCZUxMLAAwJtjtgxgTAODOO4d+//1F/TfhgjCzAFJwl6ugublJECz0JyKKorWh4YeCgkIIOyMwWgP6AVLtqqqq+PghAMBxPACz2wdxHM/zIgAMHz7i6tVqRFQUxejO+otwsgBEBICCgoLGxmuiaEWv9EHTNFG01tXVbt68GcLLCIzWAH9B6n/1avXw4SMBgDEBgOkWwHE8RYLRoxPr6uoRUaMKkekRNhZAtQen01lX93fd+3tD0zSeF6u