Add some sinppets for ruby, tex and html

Please see the diff.