Skip to content

Instantly share code, notes, and snippets.

View SanderSmeekes's full-sized avatar
🎯
Focusing

Sander Smeekes SanderSmeekes

🎯
Focusing
View GitHub Profile
body {
-apple-color-filter: invert(0.8235) hue-rotate(180deg) saturate(300%);
-apple-color-filter: apple-invert-lightness();
}
@media (prefers-dark-interface) {
body {
background-color: white !important;
-apple-color-filter: none;
}
@SanderSmeekes
SanderSmeekes / gist:4220504
Created December 5, 2012 23:32
Arduino/Processing + button = play sound
import processing.serial.*;
import ddf.minim.*;
Minim minim;
AudioPlayer mySound;
Serial port;
int val = 0;
int oldval = 0;
int playback_pos = 0;
void setup() {
/**
* Simple Read
*
* Read data from the serial port and change the color of a rectangle
* when a switch connected to a Wiring or Arduino board is pressed and released.
* This example works with the Wiring / Arduino program that follows below.
*/
@SanderSmeekes
SanderSmeekes / Play sound with Minim
Created December 5, 2012 12:42
Play sound with Minim
/**
* This sketch demonstrates how to play a file with Minim. <br />
* It's also a good example of how to draw waveforms using the sample buffers of an AudioSource.
*/
// Example by Tom I
import ddf.minim.*;
body {
background-color: rgba(200, 153, 202, 0.2) ;
font-size: 15px;
font-family: Helvetica, Arial;
color: rgba(0, 0, 0, 0.6);
padding:0 50px;
margin:0;
}
body {
background-color: rgba(2, 2, 50, 0.2) ;
font-size: 15px;
font-family: Helvetica, Arial;
color: rgba(0, 0, 0, 0.6);
padding:0 50px;
margin:0;
}
@SanderSmeekes
SanderSmeekes / contact.html
Created February 13, 2012 07:33
Windmill Windup 2012
<!doctype html>
<html>
<head>
<title>Windmill Windup 2012</title>
<meta charset="utf-8" />
</head>
<body>
@SanderSmeekes
SanderSmeekes / opdracht1.html
Created January 30, 2012 14:13
Les 1 Opdracht 1
<!doctype html>
<html>
<head>
<title>A blank HTML5 page</title>
<meta charset="utf-8" />
</head>