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
| /* | |
| Flexible Circuit Sequencer Anystream 3000 | |
| Martin Murer, Eckhard Riedenklau, Jens A. Ewald TEI 2012 | |
| */ | |
| const int testPin = A0; | |
| const int audioPin = 11; | |
| const int startPin = 2; | |
| const int endPin = startPin+8; |
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/env ruby | |
| # coding: utf-8 | |
| output = `pmset -g batt` | |
| percent_battery = output.match(/\d+\%/).to_s.gsub("%","").to_f | |
| empty = '▹' | |
| filled = '▸' | |
| color_green = '%{[32m%}' | |
| color_yellow = '%{[1;33m%}' |
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
| # =================================================== | |
| # = Generate Bytes for all 8bit Numbers for #define = | |
| # =================================================== | |
| if (typeof String.prototype.lpad != 'function') | |
| String.prototype.lpad = (padString, length) -> | |
| str = this | |
| while str.length < length | |
| str = padString + str | |
| return str |
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 -xe | |
| API_KEY="YOUR_API_KEY_GOES_HERE" | |
| FPS="10" | |
| VLC_PATH="/Applications/VLC.app/Contents/MacOS/VLC" | |
| # I don't know how this'll behave on multimon, so you might want to hard-code. | |
| # INRES='1440x900' | |
| INRES=$(osascript -e 'tell application "Finder" to get bounds of window of desktop'|sed 's/, /x/g'|cut -f3- -dx) | |
| OUTRES='1280x800' | |
| # You can change this to record microphone or something else, from man soxformat (under coreaudio): |
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/plutil -convert xml1 -o - ~/Library/Safari/Bookmarks.plist | grep -E -o '<string>http[s]{0,1}://.*</string>' | grep -v icloud | sed -E 's/<\/{0,1}string>//g' |
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
| var spawn = require('child_process').spawn; | |
| var Stream = require('stream'); | |
| /** | |
| * crops and resizes images to our desired size | |
| * @param {Stream} streamIn in stream containing the raw image | |
| * @return {Stream} | |
| */ | |
| exports.cropImage = function(streamIn){ |
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
| eventsource | |
| go-eventsource | |
| client/client |
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
| require 'rake/packagetask' | |
| namespace :my_namespace do | |
| desc "Make coffee" | |
| task :make_coffee do | |
| cups = ENV["COFFEE_CUPS"] || 2 | |
| puts "Made #{cups} cups of coffee. Shakes are gone." | |
| end | |
| # see http://rake.rubyforge.org/classes/Rake/PackageTask.html |
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
| /*jshint browser:true */ | |
| /*global DS:true, io:true, App:true */ | |
| (function() { | |
| 'use strict'; | |
| // Initializer for Models | |
| window.Models = {}; | |
| console.warn("Don't pollute the global namespace with Models!"); |
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
| -- networktest to transmit data from vvvv to codea | |
| -- jens.a.e — 18.01.2013 | |
| -- this example demostrates the connection to vvvv. it depends on a patch running | |
| -- on the remote machine. it is easy to build: | |
| -- the v4 patch contains just a lof -> asstring -> http(server) | |
| -- the server should be set to text/plain to send the least amount | |
| -- of data needed. thisna double in the patch. an int should be | |
| -- even less to trans to transmit. |