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
$( "li.track" ).each(function( index ) { | |
var track = $('.t', this).text(), | |
artist = $('.a', this).text().replace("&",""); | |
$(this).text(artist + ' - ' +track); | |
}); |
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
<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) { |
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
// ---------------------------------------------------------- | |
// 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'); |
NewerOlder