Skip to content

Instantly share code, notes, and snippets.

View reening's full-sized avatar

Martijn Reening reening

View GitHub Profile
@reening
reening / designer.html
Last active August 29, 2015 14:12
designer
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
height: 100%;
@reening
reening / nodejs.sh
Created November 6, 2014 19:38
Build scripts
#!/bin/sh
set -e
VERSION=${VERSION:=0.10.32}
UPSTREAM="http://nodejs.org/dist/v$VERSION/node-v$VERSION.tar.gz"
ARCH="$(dpkg --print-architecture)"
OUTPUTDIR="/opt/lang/nodejs/$VERSION"
/*
* Project week 5: Introduction to the Arduino
* Night Rider-like fading LEDs
*
* Martijn Reening (s1523996)
*/
#include <SoftPWM.h>
/* Define the fade time in milliseconds */
@reening
reening / build.sh
Created February 21, 2014 17:55
Build automation script for Node.js
#!/bin/sh
VERSION="0.10.25"
UPSTREAM="http://nodejs.org/dist/v$VERSION/node-v$VERSION.tar.gz"
ARCH="$(dpkg --print-architecture)"
BUILDDIR="$PWD/build-v$VERSION"
wget $UPSTREAM -O upstream-v$VERSION.tar.gz
tar xf upstream-v$VERSION.tar.gz
@reening
reening / fix_permissions.sh
Created July 21, 2013 20:34
Quick fix for file permissions in my media folder.
#!/bin/bash
DIR=/home/martijn/Music
if [[ $EUID -ne 0 ]]; then
echo "Only root can run this script." 2>&1
exit 1
else
find $DIR -type d -print0 | xargs -0 chmod 0755
find $DIR -type f -print0 | xargs -0 chmod 0644
@reening
reening / pulse.c
Created April 9, 2012 09:48
libsndfile with Pulse Audio
#include <stdio.h>
#include <sndfile.h>
#include <pulse/pulseaudio.h>
#include <pulse/simple.h>
int main(int argc, char* argv[])
{
if (argc != 2)