Slide 1

Slide 1 text

0r how I built my first ruby gem

Slide 2

Slide 2 text

How do you read Offline? * * you do read source code, right ?

Slide 3

Slide 3 text

Pop Quiz: How does Rails find_by_* work? I didn't bother to find out! L

Slide 4

Slide 4 text

Pop Quiz: How is it that CoffeeScript is written in ... Coffeescript? Short Answer: Boot strapping.

Slide 5

Slide 5 text

{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. What does it do?

Slide 6

Slide 6 text

Features Syntax Highlighting 1 $ code_rippa –n c coffeescript erlang haskell java javascript ruby prolog python $ code_rippa –n | wc –l 143

Slide 7

Slide 7 text

Features Themes! 2 $ 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

Slide 8

Slide 8 text

Features Bookmarked PDF 3

Slide 9

Slide 9 text

# syntax highlighting engine require ‘uv’ # language detection require ‘language_sniffer’ How it works

Slide 10

Slide 10 text

# install texlive $ gem install code_rippa Getting the goods.

Slide 11

Slide 11 text

I I was only creating a   Stuff I learnt along the way.

Slide 12

Slide 12 text

$ 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.

Slide 13

Slide 13 text

Best looking website I've made.

Slide 14

Slide 14 text

Basic Insurance. http://travis-ci.org/

Slide 15

Slide 15 text

Minitest!

Slide 16

Slide 16 text

Addiction.

Slide 17

Slide 17 text

DEMO

Slide 18

Slide 18 text

In the |-line Drag source folder ! here.!

Slide 19

Slide 19 text

Anyone know how to build a LaTeX server?   In the |-line

Slide 20

Slide 20 text

/benjamintanweihao/code_rippa ben @ witsvale.com