J-_-L
index | github | twitter | irbtools | pws | rubykraut | ruby on ubuntu | zucker | euler | fresh
19.08.12

What's in your Gemfile?

A little #whyday project, finished at eurucamp 2012, that displays the urls and summaries of all the gems of a Gemfile. Put the code somewhere in your $PATH (I keep little helper scripts like this one in ~/r) and run gemfile from within a the project. […]

05.12.11
3 comments

Fixing a little anchor permalinks vs. pagination issue (using javascript and jekyll)

I am using the Jekyll blog generator for some projects (still not sure if I really like it..) and came across the following requirement the other day:

  • The blog should only have an index page, no (visible) sub-posts
  • This index page should use pagination
  • There should be the ability to link to a specific blog post

The problem was: I wanted to use anchor links (http://some.url/#post-identifier), but – because of the pagination – blog posts “change” their index page (e.g. in jekyll, they move from /#example to /page2/#example). […]

24.10.11
3 comments

Pass multiple blocks to methods using named procs

codebrawl · gem · gist · hints · ruby · ruby1-9

My codebrawl entry (gist) got the 5th place (out of 20). Want to use it in real life :) […]