{{post.title}}
+
+ {{ date | date: "%b %e" }}
+ {% include post/categories.html %}
+ {% if site.disqus_short_name and post.comments == true and site.disqus_show_comment_count == true %}
+ Comments
+ {% endif %}
+
+Follow @{{ site.twitter_user }}
+ {% endif %} +A little something about me.
+'+repos[i].description+'
'; + } + t.innerHTML = fragment; + } + return { + showRepos: function(options){ + $.ajax({ + url: "http://github.com/api/v2/json/repos/show/"+options.user+"?callback=?" + , type: 'jsonp' + , error: function (err) { $(options.target + ' li.loading').addClass('error').text("Error loading feed"); } + , success: function(data) { + var repos = []; + if (!data || !data.repositories) { return; } + for (var i = 0; i < data.repositories.length; i++) { + if (options.skip_forks && data.repositories[i].fork) { continue; } + repos.push(data.repositories[i]); + } + repos.sort(function(a, b) { + var aDate = new Date(a.pushed_at).valueOf(), + bDate = new Date(b.pushed_at).valueOf(); + + if (aDate === bDate) { return 0; } + return aDate > bDate ? -1 : 1; + }); + + if (options.count) { repos.splice(options.count); } + render(options.target, repos); + } + }); + } + }; +})(); diff --git a/source/javascripts/jquery.fancybox.pack.js b/source/javascripts/jquery.fancybox.pack.js new file mode 100644 index 0000000..6521c21 --- /dev/null +++ b/source/javascripts/jquery.fancybox.pack.js @@ -0,0 +1,35 @@ +/*! fancyBox v2.0.6 fancyapps.com | fancyapps.com/fancybox/#license */ +(function(s,l,d,t){var m=d(s),q=d(l),a=d.fancybox=function(){a.open.apply(this,arguments)},u=!1,k=l.createTouch!==t,o=function(a){return"string"===d.type(a)},n=function(b,c){c&&o(b)&&0The requested content cannot be loaded.
Please try again later.
',
+ lineNumbers = '', + tableMiddle = ' | ', + tableEnd = ' |
'+$('pre', code).html()+'' + tableEnd; + $(code).html(table); + }); +} + +function flashVideoFallback(){ + var flashplayerlocation = "/assets/jwplayer/player.swf", + flashplayerskin = "/assets/jwplayer/glow/glow.xml"; + $('video').each(function(video){ + video = $(video); + if (!Modernizr.video.h264 && swfobject.getFlashPlayerVersion() || window.location.hash.indexOf("flash-test") !== -1){ + video.children('source[src$=mp4]').first().map(function(source){ + var src = $(source).attr('src'), + id = 'video_'+Math.round(1 + Math.random()*(100000)), + width = video.attr('width'), + height = parseInt(video.attr('height'), 10) + 30; + video.after('
" + this.cook(it.d) + ""; + if (it.n) { + str += "" + this.cook(it.n) + "\n"; + } + if (it.t.length > 0) { + for (var i = 0; i < it.t.length; i++) { + var tag = it.t[i]; + str += " " + this.cook(tag).replace(/^\s+|\s+$/g, '') + " "; + } + } + str += "