This file contains hidden or 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
#!/usr/bin/python | |
# Script for generating a software version code(hex) from a version string. | |
# | |
# Usage e.g $ python CreateVersionNumber.py 1.4.2" | |
# | |
# Peter Vasil | |
# Date: 2011-02-15 | |
from optparse import OptionParser |
This file contains hidden or 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
#!/usr/bin/python | |
# Script for adding ignore rules to gitignore files. | |
# | |
# Peter Vasil | |
# Date: 2011-03-11 | |
import sys | |
from optparse import OptionParser |
This file contains hidden or 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
// Url for Berlin | |
String url = "http://www.google.com/ig/api?weather=Berlin+DE"; | |
XMLElement rss; | |
String windStr; | |
String windDirStr; | |
int windSpeed; | |
PFont font; | |
void setup() { |
This file contains hidden or 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
import processing.opengl.*; | |
import codeanticode.gsvideo.*; | |
//import processing.video.*; | |
PImage img, screenCap; | |
float deg=1; | |
int level=0; | |
int levelMax=3; | |
//Capture cam; |
This file contains hidden or 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
import ddf.minim.*; | |
//String location_string = "San+Francisco+CA"; | |
//String location_string = "New+York+NY"; | |
String location_string = "Berlin+DE"; | |
//String location_string = "Havertown+PA"; | |
//String location_string = "Tokyo+Japan"; | |
String weather_url = "http://www.google.com/ig/api?weather=" + location_string; | |
String geo_url = "http://maps.googleapis.com/maps/api/geocode/xml?address=" +location_string+"&sensor=false"; |
This file contains hidden or 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
#!/bin/sh | |
# Build Zsh from sources on Ubuntu. | |
# From http://zsh.sourceforge.net/Arc/git.html and sources INSTALL file. | |
# Some packages may be missing | |
sudo apt-get install -y git-core gcc make autoconf yodl libncursesw5-dev texinfo | |
git clone git://zsh.git.sf.net/gitroot/zsh/zsh | |
cd zsh |
This file contains hidden or 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
//http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/Level-meter-disappearing-td2714612.html | |
( | |
SynthDef(\bell, { |amp = 0.1, out = 0, azim=30, elev=1,id=10,noisy=22| | |
var freq = id.linexp(1,30,200,800); | |
var vol_id = id.linlin(1,20,0.6,0.3); | |
// var xVal = noisy.linexp(0, 50, 1000, 10000); | |
// var yVal = elev.linexp(0, 40, 1000, 10000); | |
This file contains hidden or 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
#!/bin/sh | |
BASEDIR=$(dirname $0) | |
cd $BASEDIR | |
echo $BASEDIR |
This file contains hidden or 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
/* | |
* Integrator.h | |
* | |
* Created on: Feb 5, 2012 | |
* Author: Peter Vasil | |
* | |
* Original version see Processing milkteacoffee example. | |
*/ | |
#ifndef INTEGRATOR_H_ |
This file contains hidden or 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
/*======================================================= | |
Copyright (c) Peter Vasil, 2011 | |
=======================================================*/ | |
#ifndef _PVLOGGER_H_ | |
#define _PVLOGGER_H_ | |
#ifdef _WIN32 | |
# define WIN32_LEAN_AND_MEAN | |
# include <windows.h> |