Skip to content

Instantly share code, notes, and snippets.

View micheljansen's full-sized avatar

Michel Jansen micheljansen

View GitHub Profile
portal.acm.org
scopus.com
/* Delayless Analog Read to LED
* ------------------
*
* Snappier version of "Analog Read to LED" example
* found on http://arduino.cc/en/Tutorial/BlinkWithoutDelay
* This implementation does not use delay() so it is quicker
* in picking up changes to the potmeter value.
*
* Turns on and off a light emitting diode(LED) connected to digital
* pin 13. The amount of time the LED will be on and off depends on
#!/bin/sh
# Convenience script for operations on class files
[[ -n "$1" ]] || {
echo "Convenience script for operations on class files";
echo
echo "Usage: $0 [list of classes]";
echo "For Example:"
echo "git add \`$0 MyClass OtherClass sub/YetAnotherClass\`"
exit 0 ;
#include <QDebug>
#include "DummyProcessor.h"
#include "Pin.h"
#include "OpenCVImage.h"
#include <opencv/cv.h>
using namespace plv;
#define INPUT_PIN_NAME "input"
Running build steps for project parlevision-all...
Starting: /usr/bin/make clean -w
make: Entering directory `/Users/dawuss/Projects/parlevision-all-build'
cd src/ && /usr/bin/make -f Makefile clean
make[1]: Entering directory `/Users/dawuss/Projects/parlevision-all-build/src'
cd plvcore/ && /usr/bin/make -f Makefile clean
make[2]: Entering directory `/Users/dawuss/Projects/parlevision-all-build/src/plvcore'
rm -f moc_Pin.cpp moc_PipelineElement.cpp moc_Pipeline.cpp moc_Scheduler.cpp
rm -f Types.o Application.o Pin.o PinConnection.o PipelineElement.o PipelineElementFactory.o PipelineProducer.o RefCounted.o PipelineProcessor.o Pipeline.o PipelineLoader.o Scheduler.o Plugin.o CvMatData.o CvMatDataPin.o Enum.o Util.o moc_Pin.o moc_PipelineElement.o moc_Pipeline.o moc_Scheduler.o
rm -f *~ core *.core
#include "helloworldprocessor.h"
#include <QDebug>
#include "HelloWorldProcessor.h"
#include <plvcore/Pin.h>
#include <plvcore/CvMatData.h>
#include <plvcore/CvMatDataPin.h>
#include <opencv/cv.h>
@micheljansen
micheljansen / templates.html
Created December 20, 2011 12:26
Example Underscore Templates
<script type="text/template" id="listing_template">
<li class="listing">
<a href="#">
<div class="image_wrapper">
<img src="<%= img_url %>" />
</div>
<h3><%= title %></h3>
<div class="metadata">
<p>
<%= summary %>
Searched for London on www.airbnb.co.uk
Not logged in
using Google Chrome 18.0.1025.142 on Mac OS X 10.7.
(works fine on Safari)
Uncaught TypeError: Object #<Object> has no method 'getQueryParams'
AirbnbSearch.shouldUpdateLocationInURL page2.js:1
AirbnbSearch.loadNewResults page2.js:1
AirbnbSearch.init page2.js:1
(anonymous function) search:888
<div class="progressitem gifsolution">
</div>
function encodeRGB(r,g,b) {
return encode_triplet(0,r,g)+encode_triplet(b,255,255);
}
function encode_triplet(e1, e2, e3) {
var keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
enc1 = e1 >> 2;
enc2 = ((e1 & 3) << 4) | (e2 >> 4);
enc3 = ((e2 & 15) << 2) | (e3 >> 6);
enc4 = e3 & 63;