Skip to content

Instantly share code, notes, and snippets.

View k9ordon's full-sized avatar
🐙

Klemens Gordon k9ordon

🐙
View GitHub Profile
@k9ordon
k9ordon / gist:4762681
Created February 12, 2013 12:57
8tracks liked tracks to plain
$( "li.track" ).each(function( index ) {
var track = $('.t', this).text(),
artist = $('.a', this).text().replace("&","");
$(this).text(artist + ' - ' +track);
});
@k9ordon
k9ordon / gpxImport.php
Created July 16, 2012 08:35
exports nike+ runs to gpx
<pre>
strt importing gpx files ...
<?php
require_once 'lib/init.php'; // init $n stuff (login)
$dir = "import";
$runs = $n->activities();
foreach($runs->activities as $a) {
@k9ordon
k9ordon / gist:582281
Created September 16, 2010 11:21 — forked from padolsey/gist:527683
// ----------------------------------------------------------
// A short snippet for detecting versions of IE in JavaScript
// without resorting to user-agent sniffing
// ----------------------------------------------------------
// if (ie) { alert('IE ' + ie); } // else ie version is not a number;
// if(!ie) { alert ('IE is Kryptonite.'); }
var ie = (function(){
var div = document.createElement('div');