Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: c8ab177f71

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
cheatsheet
.gitignore
000_setup.md
00_1_intro.md
00_2_ruby_for_programmers.md
01_1_bootstrapping.md
01_2_test_first_teaching.md
02_classes.md
03_objects.md
04_1_modules.md
04_2_methods.md
05_scope.md
06_control.md
06b_iterators.md
06c_exceptions.md
07_essentials.md
08a_strings.md
08b_symbols.md
08c_numbers.md
08d_time.md
09_collections.md
10_iterators.md
11_regexp.md
12_io.md
13_object_individuation.md
14_callables.md
15_callbacks.md
README
array_indexing.png
method_definition.png
outlines.txt
rails_logo.jpg
ruby-logo.jpg
self1.png
self2.png
shrink.js

README

# Ruby Notes

Alex's notes and slides for teaching Ruby

## Author

Alex Chaffee <alex@stinky.com>

# Showing the slides

We use a Ruby app called `showoff` to generate and serve the slides.

Alex has been improving showoff; until his latest patches get accepted and released, you will have to download and install his version, as follows:

    git clone git://github.com/alexch/showoff.git
    cd showoff
    bundle install --without optional
    rake gem:install
    
After installing, run

    showoff serve

This will launch a local Sinatra server on port 9090. Open your browser to `localhost:9090`. On a Mac you can run:

    open http://localhost:9090

Use arrow keys to navigate slides. Press '?' to see a help window.

# Editing slides

Slides are in [Markdown](http://daringfireball.net/projects/markdown/syntax) format. Showoff will read all `.md` files in alphabetical order.

You can also add custom `.css`, `.scss`, and `.js` files, which will get imported into all slide sections.

Images should be in, or relative to, the current directory.

# Printing slides

Try this: first `gem install pdfkit`, then visit

    http://localhost:9090/pdf

but I make no guarantees!

## Based upon and/or inspired by

* [Ruby Quickstart for Refugees](https://gist.github.com/190567)
* [ruby for programmers]() from Railsbridge Open Workshops
* _The Well-Grounded Rubyist_ by David A. Black
* _Learn to Program_ by Chris Pine

# LICENSE

This project is under an open source license. We're not sure exactly which one... probably MIT.

Gill Sans is under copyright. It's a great slide font and it comes with all recent Macs (and Gill Sans MT comes with MS Office).

Here is Gill Sans licensing info
  <http://www.fontslive.com/font/gill-sans-family.aspx>
  <http://www.ascendercorp.com/font/gill-sans/>

"The Gill Sans stack should work on most all computers. Gill Sans comes on all
Macs and Gill Sans MT is installed with Microsoft Office, and Calibri (which
is a good stand-in for Gill Sans) is one the core Vista fonts and is installed
with both Office Windows and Office Mac. And lastly, if all else fails, use
Trebuchet" - <http://www.artsiteframework.com/guide/fontstacks.php> -- the stack
he's talking about is

    "Gill Sans", "Gill Sans MT", GillSans, Calibri, "Trebuchet MS", sans-serif

Something went wrong with that request. Please try again.