Hey, I'm Dima Sabanin and I love programming.
I work on Beanstalk for Wildbit.
Installation instruction are in the header of the link. For the lazy it’s:
$ cd ~; wget [link]
$ echo 'source bash-git-completion.sh' >> ~/.bashrc
The script is just awesome, it’s very thorough and proivdes completion for commands, commands options, branch names, and all kinds of stuff.
The link to a file I posted points to my server, but if it’s down for some reason you can always get latest copy of this script at git contrib repository.
Taken from http://cheat.errtheblog.com/s/git and post-processed to be easier on eyes when printed.
Wraps Tidy gem into String for easier usage. Allows you to clean up portions of HTML code in strings, without any effort.
Requires Tidy gem and Tidy C lib (which is installed on Mac and most Unixes by default).
Defines String#tidy(options={})There’s also some other stuff on my github page, check it out.
Following code forbids commit to repository if tests don’t pass. Script for rspec, but should probably work with anything else - just replace rake spec with rake test.
“We live in illusion and the appearance of things. There is a reality. We are that reality.
When you understand this, you see that you are nothing,
and being nothing, you are everything.
That is all.”
~ Kalu Rinpoche
My plugin to handle YAML configuration files in Rails apps.
For most cases just YAML::load will work, but in my case I needed string interpolation, so I decided to make a little plugin out of that.
Here’s simple usage pattern:
Feel free to fork and do whatever you want with this.
Update:
Forgot the link to plugin itself: http://github.com/railsmonk/configuration-file-plugin
“Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.”
~ Quote of the Day