From f338b31bd5073004cbd1d1b0535b51e11cbe0679 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 9 Dec 2013 22:08:05 -0800 Subject: Remove a bunch of unused files. --- _posts/2008-08-16-my-lifestream-page.md | 57 --------------------------------- 1 file changed, 57 deletions(-) delete mode 100644 _posts/2008-08-16-my-lifestream-page.md (limited to '_posts') diff --git a/_posts/2008-08-16-my-lifestream-page.md b/_posts/2008-08-16-my-lifestream-page.md deleted file mode 100644 index 46a33a8..0000000 --- a/_posts/2008-08-16-my-lifestream-page.md +++ /dev/null @@ -1,57 +0,0 @@ ---- -layout: post -title: my lifestream page -summary: In which I write a simple lifestream page in javascript ---- - -For a while I've wanted to mash-up the different services I use on a single page. My first attempt was with plagger, and publishing all the information on my google calendar. That wasn't really interesting, as I don't need to archived all this stuff. After this one, I've tried to make a static page, using the yahoo! library interface stuff. A page with tabs, each tabs for a service. The content was generated with Plagger and Template Toolkit. It was working fine, but I had to do some HTML, check why some some stuff were not working, etc. And as I'm not a designer, and as I'm incapable to think a good user interface, I was quickly fed up with this solution. - -I use yahoo! pipes for mashing some feeds, and saw that you can get a result from your feed in JSON. I've started to think about a simple page with just some javascript, a simple css, and using the JSON result. So I've created a feed that combine the services that I use (the pipe is here), created a simple HTML page, read some jquery documentation on how to read a JSON file, and created this page. The code is really simple. For the flickr stream, I use the code generated from the badge generator. I've done some modifications, like removing the table, removing some classes, altering the css, ... The remaining code is - - -{% highlight html %} -
-
-{% endhighlight %} - -For displaying the result of the JSON feed, I've found some simple code, that I've modified a bit to feet my purpose. - -{% highlight javascript %} -$(function(){ - var CssToAdd = new Object(); - $.getJSON('http://pipes.yahoo.com/pipes/pipe.run?_id=NMLU4MNq3RGDW_8fpwt1Yg&_render=json&_callback=?', - function(data){ - $('div#loading-area').hide('fast'); - $.each(data.value.items, function(i,item){ - var a_class; - - try { - if (item.link.match(/last/)) { - a_class = 'lastfm'; - }else if (item.link.match(/pownce/)) { - a_class = 'lastfm'; - }else if (item.link.match(/breizhdev/)) { - a_class = 'blog'; - }else if (item.id.content.match(/google/)) { - a_class = 'greader'; - }else{ - a_class = 'delicious'; - } - }catch(err){ - a_class = 'delicious'; - } - - $('').attr('href',item.link).text(item.title).addClass(a_class).appendTo('#sample-feed-block'); - }); - $('#sample-feed-block a').wrapAll('