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
for file in `ls *.zip` ; do
mkdir "$file-map"
mv "$file" "$file-map"
cd "$file-map"
unzip "$file"
cd ..
done
@nielsdoorn
nielsdoorn / index.html
Created February 8, 2014 08:41
Decimaal naar binair, hexadecimaal en octaal
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Binaire calculator</title>
<link rel="stylesheet" href="style.css">
<script src="script.js"></script>
</head>
<body>
<div id="wrapper">
@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 / footer.php
Last active August 29, 2015 13:56
Basis voor een WordPress theme zoals tijdens de les gemaakt
function LeapLander() {
var canvas;
var c;
var width;
var height;
var roll;
var viewPort = { x: 0, y: 0};
var explosions = [];
this.BG_WIDTH = 2000;
// 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'];
// 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'];
#wrap {
display: table;
width: 800px;
margin: 0 auto;
background-color: lightyellow;
}
.col {
display: table-cell;
width: 250px;
body {
font-family: sans-serif;
}
.button {
display: inline-block;
width: 120px;
height: 32px;
line-height: 32px;
background: linear-gradient(0deg, rgb(41, 0, 97), rgb(241,158,51));
#container {
width: 80%;
margin: 0 auto;
}
#header {
width: 100%;
background-color: blue;
height: 120px;
}