Code rippa

828 views

Published on

Experiences in building my first gem - CodeRippa ! CodeRippa is a rubygem that takes a source code folder and converts it into a beautifully themed, syntax highlighted, bookmarked PDF.

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
828
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
4
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Code rippa

  1. 1. 0r how I built my first ruby gem
  2. 2. How do you read <source code> Offline? * * you do read source code, right ?
  3. 3. Pop Quiz:How does Rails find_by_* work? I didnt bother to find out! L
  4. 4. Pop Quiz: How is it thatCoffeeScript is written in ... Coffeescript? Short Answer: Boot strapping.
  5. 5. What does it do?   {code} ↦ CodeRippa ↦ {PDF}" CodeRippa is my attempt to make source code reading a more pleasurable experience, and help programmers get better at their craft. " – Me.
  6. 6. Features1 Syntax Highlighting$ code_rippa –n c coffeescript erlang haskell java javascript ruby prolog python $ code_rippa –n | wc –l 143
  7. 7. Features2 Themes!$ code_rippa –n blackboard brilliance_black cobalt happy_happy_joy_joy_2 ir_black made_of_code monokai railscasts solarized_dark $ code_rippa –l | wc –l 84
  8. 8. Features3 Bookmarked PDF
  9. 9. How it works# syntax highlighting engine require ‘uv’ # language detection require ‘language_sniffer’
  10. 10. Getting the goods.# install texlive $ gem install code_rippa
  11. 11. I I wasonly creating a  Stuff I learnt along the way.
  12. 12. $ code_rippa -h Usage: code_rippa [options] input_file_or_directory Parses input_file or directory and outputs a file named out.tex. Unless specified, Made of Code is used as the default theme. To see all themes, type: code_rippa -l Examples: 1. code_rippa path_to_file.rb (uses default theme) 2. code_rippa -t rubyblue path_to_file.rb (with theme specified) 3. code_rippa -t rubyblue path_to_dir Then run `pdflatex -interaction=batchmode out.tex` to generate the PDF output. Options: -t, --theme THEME Selected theme -n, --list-syntax List all available syntax -l, --list-themes List all available themes -v, --version Display version number -h, --help Display this screen Building a command line tool in Ruby.
  13. 13. Best looking website Ive made.
  14. 14. Basic Insurance. http://travis-ci.org/
  15. 15. Minitest!
  16. 16. Addiction.
  17. 17. DEMO
  18. 18. In the |-lineDrag source folder ! here.!
  19. 19. In the |-lineAnyone know how tobuild a LaTeX server?  
  20. 20. /benjamintanweihao/code_rippa ben @ witsvale.com

×