Skip to content

Instantly share code, notes, and snippets.

View nielsdoorn's full-sized avatar
🏗️
Building better software testing education

Niels Doorn nielsdoorn

🏗️
Building better software testing education
View GitHub Profile
@JoeyBurzynski
JoeyBurzynski / 55-bytes-of-css.md
Last active May 3, 2024 13:01
58 bytes of css to look great nearly everywhere

58 bytes of CSS to look great nearly everywhere

When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:

main {
  max-width: 38rem;
  padding: 2rem;
  margin: auto;
}
@nielsdoorn
nielsdoorn / footer.php
Last active August 29, 2015 13:56
Basis voor een WordPress theme zoals tijdens de les gemaakt
@jurgenvinju
jurgenvinju / gist:8972255
Last active February 16, 2017 06:32
Example code to compute flow graphs for Java and some basic UML diagramming for TU Eindhoven students
module FlowGraphsAndClassDiagrams
import analysis::flow::ObjectFlow;
import lang::java::flow::JavaToObjectFlow;
import List;
import Relation;
import lang::java::m3::Core;
import IO;
import vis::Figure;
@nielsdoorn
nielsdoorn / index.html
Created February 8, 2014 10:41
subnetmaskcalculator
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Subnetmask calculator</title>
<link href="style.css" rel="stylesheet">
<script src="script.js"></script>
<script src="subnetmaskCalculator.js"></script>
<body>
<div id="page">
@nielsdoorn
nielsdoorn / animationPolyfill.js
Last active December 28, 2020 01:06
Eyes that follow your mouse cursor. Using HTML5 canvas.
// Paul Irish animation loop polyfill
// https://gist.github.com/paulirish/1579671
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];
for(var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) {
window.requestAnimationFrame = window[vendors[x]+'RequestAnimationFrame'];
window.cancelAnimationFrame = window[vendors[x]+'CancelAnimationFrame']
|| window[vendors[x]+'CancelRequestAnimationFrame'];
@koenveldhuizen
koenveldhuizen / dabblet.css
Created February 17, 2012 22:51
Very simple css3 polaroid styling
/**
* Very simple css3 polaroid styling
*/
body{
background: #f06;
background: linear-gradient(45deg, orange, yellow);
min-height:100%;
}
div#container{
width:900px;
@koenveldhuizen
koenveldhuizen / dabblet.css
Created February 17, 2012 22:12
Very simple css3 polaroid styling
/**
* Very simple css3 polaroid styling
*/
body{
background: #f06;
background: linear-gradient(45deg, orange, yellow);
min-height:100%;
}
#photo{
width:200px;
@paulirish
paulirish / rAF.js
Last active March 22, 2024 00:00
requestAnimationFrame polyfill
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel
// MIT license
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];