This file contains 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
javascript:(function(){ if (window.location.host == "connect.garmin.com") { var pathArray = window.location.pathname.split( '/' ); if ( pathArray[1] == "course" ) { open('http://connect.garmin.com/proxy/course-service-1.0/gpx/course/' + pathArray[2]); } } }()); |
This file contains 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
sudo yum update | |
sudo yum groupinstall "Development Tools" | |
sudo yum install git pcre pcre-devel gcc make zlib zlib-devel openssl openssl-devel sqlite-devel | |
git clone git://github.com/sstephenson/rbenv.git .rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile | |
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile | |
mkdir -p ~/.rbenv/plugins | |
cd ~/.rbenv/plugins |
This file contains 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
// have jQuery and history.js already loaded | |
// | |
// this works with hyperlinks and back/forward buttons | |
// and anywhere you use History.pushState | |
$(function() { | |
// run after page is loaded | |
ajaxifyLinks(); |
This file contains 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
<?php | |
class CSV implements IteratorAggregate { | |
// this is where we will store the rows | |
protected $rows = array(); | |
function __construct($csv) | |
{ |