How to embed actions within every match of a one-or-more ( rule+ ) or...
Yeah, well, the particular task is very simple if you know the solution. But when you are just getting started with ANTLR it is not that obvious what kind of things you can do within a grammar, and...
View ArticleHow to extract plain text from HTML with Nokogiri
While working at an upcoming blogpost, I encountered the problem of extracting some plain text from HTML. If I was interested the whole plain text, I could just run html2text in bash and feed it with...
View ArticleHow to ignore changes in git submodules
Recently while setting up my vimfiles for version control I encountered a problem with git submodules. The plugins are included as git submodules and loaded up with pathogen. For those interested in...
View ArticleHow to start your RSpec / Cucumber / Spork / Watchr test environment with a...
My Rails 3 test environment consists of RSpec, Cucumber, Spork and Watchr. Additonally I am running rails console and rails server. This means I have to spawn six terminals or on terminal with six...
View Article