Skip to content

Instantly share code, notes, and snippets.

View timpulver's full-sized avatar

Tim Pulver timpulver

View GitHub Profile
@timpulver
timpulver / Watch_Data_Directory_For_Changes.pde
Created July 8, 2014 11:29
[Processing] Watch Data Folder for Changed / Newly Created Files
import static java.nio.file.LinkOption.NOFOLLOW_LINKS;
import static java.nio.file.StandardWatchEventKinds.ENTRY_CREATE;
import static java.nio.file.StandardWatchEventKinds.ENTRY_MODIFY;
import static java.nio.file.StandardWatchEventKinds.ENTRY_DELETE;
import static java.nio.file.StandardWatchEventKinds.OVERFLOW;
import java.io.IOException;
import java.nio.file.FileSystem;
import java.nio.file.Files;
import java.nio.file.Path;
@timpulver
timpulver / SoftwareResetWithWatchdog.ino
Created June 10, 2014 11:42
[Arduino, Watchdog] Soft-Reset Arduino using Watchdog
/*
* Watchdog example
*
* Send 'r' through serial to reboot the Arduino, when it's back up, "Boot..." should appear.
*/
// include watchdog, part of avr-gcc compiler
#include <avr/wdt.h>
void setup(){
@timpulver
timpulver / upload.sh
Created June 4, 2014 07:39
[Shell, Arduino, Ino] Upload Arduino Code using Ino without creating a "src"-folder
#!/bin/sh
# Arduino-IDE-and-Ino-Side-by-sidy Helper Script
# Version: 0.1
# Author: Tim Pulver
# Ino URL: http://inotool.org
#
# Compile and upload Arduino sketches using Ino
# without moving them to a "scr"-folder, so you can still edit
# the sketch in Arduino IDE.
@timpulver
timpulver / InDesignCS6_HexColorPaste.scpt
Created November 8, 2013 11:23
[AppleScript, InDesign CS6] Hex Color Paste – Script for Adobe InDesign CS6, which converts a hex color like "A107E6" to Red: 161, Green: 7, Blue: 230 and pastes the values in the color fields.
-- Powder
-- v. 1.0
-- Applescript for InDesign (CS6).
-- Converts hex codes to decimal values and fills them
-- in the forms in InDesign's color menu
-- Usage:
-- 1) Copy a hexcode to the clipboard like "A100FF"
-- Copy a colour hex-code like
-- 2) (optional) Create a new color
@timpulver
timpulver / creative_coding_video_tutorials.md
Created October 28, 2013 22:17
[List] Creative Coding Video Tutorials [Processing
@timpulver
timpulver / relsymlink.py
Last active July 16, 2021 03:18
[Python] Creates a relative symlink based on two directories. If only one directory is passed as an argument, the symlink will be created in the current working directory [Mac, Terminal, Symbolic Link, Absolute]
@timpulver
timpulver / AppendTextToFile.pde
Created June 9, 2013 18:59
[Processing] Appends text to the end of a text file without rewriting the whole text
import java.io.BufferedWriter;
import java.io.FileWriter;
String outFilename = "out.txt";
void setup(){
// Write some text to the file
for(int i=0; i<10; i++){
appendTextToFile(outFilename, "Text " + i);
}
@timpulver
timpulver / getkey.sh
Last active December 18, 2015 02:39
This is a helper script for Yate, which calls the application KeyFinder to analyse the musical key of a track and return it. If you set up custom key codes (Camelot system) in KeyFinder, these will also be returned.
#!/bin/bash
# getkey.sh – Musical Key Analysis
#
# This is a helper script for Yate, which calls the application
# KeyFinder to analyse the musical key of a track and return it.
# If you set up custom key codes (Camelot system) in KeyFinder,
# these will also be returned.
#
# Download KeyFinder here: http://www.ibrahimshaath.co.uk/keyfinder/
@timpulver
timpulver / dayonebac
Created April 15, 2013 08:12
[Dayone, Backup Script] Creates a zipped backup of your Day One journal including all your photos. Journal will be exported as markdown-file, which can be edited in a plain text editor, and html.
#! /bin/bash
# dayonebac
# v.1.1
# Tim Pulver 2013
#
# dayonebac calls dayone_export, which needs to be installed, too.
# Download it from here: https://github.com/nathan11g/dayone_export
# place this file in /usr/local/bin and make it executable using
# chmod +x dayonebac
@timpulver
timpulver / Typografie_Shortcuts_Mac_Deutsch.md
Last active May 7, 2023 18:47
Typografie Shortcuts auf dem Mac mit kurzen Erläuterungen (deutsches Tastaturlayout)