This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for file in `ls *.zip` ; do | |
mkdir "$file-map" | |
mv "$file" "$file-map" | |
cd "$file-map" | |
unzip "$file" | |
cd .. | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// change this if you use another port or if your lights work with 32 instead of 64 baud | |
SPI1.setup({baud:6400000, mosi:A7}); | |
var rgb = new Uint8Array(25*3); // 25 x RGB lights | |
// turn off board leds | |
digitalWrite(LED1,0); | |
digitalWrite(LED2,0); | |
digitalWrite(LED3,0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// constructor | |
function Person(name) { | |
// public member, accesible from inside and outside | |
this.name = name; | |
// private member, not accesible from outside and public functions | |
var secret = 3; | |
// By convention, we make a private that variable. | |
// This is used to make the object available to the private methods. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Canvas animatie</title> | |
<script src="script.js"></script> | |
<link rel="stylesheet" href="style.css"> | |
</head> | |
<body> | |
<canvas id="animatie" width="640" height="480"></canvas> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax on | |
set tabstop=2 " The width of a TAB is set to 4. | |
" Still it is a \t. It is just that | |
" Vim will interpret it to be having | |
" a width of 4. | |
set shiftwidth=2 " Indents will have a width of 4 | |
set softtabstop=2 " Sets the number of columns for a TAB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Canvas animatie</title> | |
<script src="script.js"></script> | |
<link rel="stylesheet" href="style.css"> | |
</head> | |
<body> | |
<canvas id="animatie" width="640" height="480"></canvas> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.onload = init; | |
// variabelen | |
var canvas; | |
var x = 10; | |
var y = 10; | |
// init wordt eenmalig uitgevoerd om alles op te bouwen | |
function init() { |