Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am ekelleyv on github.
  • I am ekelleyv (https://keybase.io/ekelleyv) on keybase.
  • I have a public key ASDTf8LIU5W7wtvLW-5LNqTlzR2Vi9NPRHnHk5iWTI8dfQo

To claim this, I am signing this object:

@ekelleyv
ekelleyv / hackathon.md
Last active September 18, 2015 19:35
User Attribution Survey
vagrant@precise64:/vagrant/mapnik$ export CXX="g++-4.8" && export CC="gcc-4.8";
vagrant@precise64:/vagrant/mapnik$ ./configure CXX=${CXX} CC=${CC}
scons: Reading SConscript files ...
Welcome to Mapnik...
Configuring build environment...
SCons CONFIG found: 'config.py', variables will be inherited...
Configuring on Linux in *release mode*...
Checking for freetype-config... yes
vagrant@precise64:/vagrant/mapnik$ make
python scons/scons.py -j2 --config=cache --implicit-cache --max-drift=1
scons: Reading SConscript files ...
Using previous successful configuration...
Re-configure by running "python scons/scons.py configure".
Welcome to Mapnik...
scons: done reading SConscript files.
scons: Building targets ...
vagrant@precise64:/vagrant/mapnik$ make
python scons/scons.py -j2 --config=cache --implicit-cache --max-drift=1
scons: Reading SConscript files ...
Using previous successful configuration...
Re-configure by running "python scons/scons.py configure".
Welcome to Mapnik...
scons: done reading SConscript files.
scons: Building targets ...
//Flex sensor mapping
//adapted from http://garagelab.com/profiles/blogs/tutorial-flex-sensor-with-arduino
/*
Light based laser tags.
*/
int max_val = 120;
int red = 3;
int green = 6;
[ INFO] [1349244532.436518937]: SET ~bitrate_ctrl_mode : 0.00
[ INFO] [1349244532.437762217]: SET ~max_bitrate : 4000.00
[ INFO] [1349244532.439009777]: SET ~outdoor : 0.00
[ INFO] [1349244532.441707137]: SET ~flight_without_shell : 1.00
[ INFO] [1349244532.443061697]: SET ~altitude_max : 3000.00
[ INFO] [1349244532.444378937]: SET ~altitude_min : 100.00
[ INFO] [1349244532.445763457]: SET ~enemy_colors : 2.00
[ INFO] [1349244532.447132657]: SET ~enemy_without_shell : 0.00
[ INFO] [1349244532.448422817]: SET ~control_vz_max : 850.00
[ INFO] [1349244532.449664537]: SET ~control_yaw : 1.75
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXXXXX-1']);
_gaq.push(['_trackPageview']);
_gaq.push(['_setCustomVar', 1, 'cohort_data’', {{cohortString}}, 1]);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
<?php
function getQuarter() {
$monthNumber = intval(date("m"));
return floor(($monthNumber - 1) / 3) + 1;
}
function buildWeek() {
if (date('l') == "Sunday") {
$sundayTime = time();
}