Permalink
Browse files

Formatting.

Signed-off-by: Kurtis Rainbolt-Greene <kurtisrainboltgreene@gmail.com>
  • Loading branch information...
1 parent 8b710ee commit d1839d0ced130337779e3c5997e846b50785d229 Kurtis Rainbolt-Greene committed Jun 5, 2011
View
@@ -5,7 +5,7 @@ gem 'nanoc', '~> 3.1.7'
gem 'haml', '~> 3.1.1'
gem 'sass', '~> 3.1.1'
gem 'rdiscount', '~> 1.6.8'
-gem 'highlight', '~> 1.1.2'
+gem 'highlight', '~> 1.1.2', :require => 'simplabs/highlight'
gem 'heroku', '~> 2.1.4'
View
@@ -0,0 +1,31 @@
+LEARN YOU THE RUBY FOR AWESOME POWER
+====================================
+
+This is a book I am writing,
+called Learn You The Ruby For
+Awesome Power. Learn You The
+Ruby For Awesome Power is a
+book for those who want to
+hack with the Ruby Programming
+Language. The book attempts to
+be similar to Learn You A
+Haskell, Learn You Some Erlang,
+and Learn Python The Hard Way.
+This book also attempts to be
+funny, but never really had
+the nack for telling jokes.
+The book constantly wonders
+what life would have been like
+if things had been different.
+
+This book takes the reader from
+zero to developer by having them
+complete tasks that over time
+take what the reader has learned
+and adds new layers. This book
+also gives the reader pep talks,
+and advice concerning girls. The
+conversations get awkward and the
+book will, at times, start ranting
+about some woman called "Vickey"
+and how it all really went down.
View
@@ -5,11 +5,12 @@ compile '/style/extra/*' do
end
compile '/style/*' do
- filter :sass
+ filter :sass, { :style => :compressed }
end
compile '*' do
- filter :rdiscount
+ filter :rdiscount, { :autolink => true, :smart => true }
+ filter :colorize_syntax
layout 'default'
end
@@ -25,4 +26,4 @@ route '*' do
item.identifier + 'index.html'
end
-layout '*', :haml
+layout '*', :haml, {:ugly => true}
Oops, something went wrong.
@@ -0,0 +1,3 @@
+# Ready! Set! Hack.
+**Note: I adore notes.**
+
@@ -0,0 +1,2 @@
+The Trail To Neverland
+======================
No changes.
No changes.
@@ -0,0 +1,84 @@
+FREQUENTLY ASKED QUESTIONS
+==========================
+
+> **Q**: Is (Ruby||Programming) hard to learn?
+
+**A**: Programming is largely four things: Effort, Learning, Syntax, and Paradigms.
+This shouldn't be surprising, but the effort is the hardest part about learning how to program.
+Without the effort to work on things yourself you'll never go forward as a learner, no matter how much you read.
+The latter three are self explanitory, but here you go: You have to be willing to learn, constantly.
+Programming is a moving target even if you want to work with old stuff.
+Finally, learning any language requires learning the facets of the Paradigm and the particular syntax the language uses.
+
+
+> **Q**: Who are you?
+
+**A**: I'm a hacker, writer, designer, and father.
+I have a keen interest in pushing the programming community forward by making it easier to jump into.
+Luckily I was gifted with the ability, fortitude, and foolishness to write a learning book.
+
+
+> **Q**: Why do you like Ruby?
+
+**A**: I like Ruby because it's expressive syntax, and it's affinity for Domain Specific Languages.
+It was the first language I ever used seriously, and I hope to continue working with it.
+It also happens that I can make a lot of money developing in Ruby.
+
+
+> **Q**: Who built this website?
+
+**A**: I built this website!
+All of it.
+To elaborate I wrote the HTML with HAML, and the CSS with SASS.
+Each chapter is formatted with the Discount markdown language.
+The web site runs on Sinatra, a simple micro web framework.
+
+
+> **Q**: Why did you build this website?
+
+**A**: I built this website because I felt the tutorials out there, excluding \_why's, were dry and unapproachable.
+For a language that is as expressive and fun to develop with as Ruby, this seems like such a tragedy.
+
+
+> **Q**: Have you built any others?
+
+**A**: Other **Learn You The**'s? Not yet, but I seriously plan to.
+I look forward to finishing the LYTR website only to do a Factor, HTML/CSS, and many many more if I have the time.
+It's a rather time consuming task and I do love to bog myself down in projects.
+
+
+> **Q**: Can you help me make my own?
+
+**A**: I can and will help those who want to help others, all you have to do is contact
+me.
+
+
+> **Q**: You stole this from (LYAH || LYSE || LPTHW), didn't you!?
+
+**A**: Arrrgh, you found out my diabolical scheme...
+Actually, no it's more like "I was incredibly inspired by that book."
+The creators seem to enjoy my book, and that's really awesome for me.
+
+
+> **Q**: Is this website available in Russian?
+
+**A**: No, sadly it isn't available in Russian...Yet!
+I plan to have this work translated into as many languages as I possibly can.
+At the very least provide links to Google Translate.
+Because I'm lazy and poor, and that is easy and free.
+
+
+> **Q**: What's with the duck and Soviet theme then?
+
+**A**: That's actually a good question.
+It's a rather obscure joke that I will attempt to explain:
+You see, Ruby is a Duck-Typed language, right?
+And Ruby, the precious gem, is red (So is the color, obviously)!
+...Which is the primary color in Soviet Russia!
+So you see, it all makes sense:
+*In Soviet Ruby, Duck Types You!*
+
+
+> **Q**: Are you a Socialist/Communist/Leninist?
+
+**A**: I do sport an awesome goatee.
@@ -0,0 +1,39 @@
+Copyright
+============
+This work is split into two parts: Literature and Source Code.
+Each part has a different license attached.
+
+
+Literature
+----------
+
+ Learn You The Ruby For Awesome Power[0] by Kurtis Rainbolt-Greene[1] is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License[2].
+
+ Based on a work at learnyoutheruby.org[3].
+
+ [0]: http://learnyoutheruby.org
+ [1]: http://krainboltgreene.github.com/resume
+ [2]: http://creativecommons.org/licenses/by-sa/3.0/
+ [3]: http://learnyoutheruby.org/source.tar.gz
+
+Source Code
+-----------
+
+ Copyright (c) 2011 Kurtis Rainbolt-Greene
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ THE SOFTWARE.
@@ -0,0 +1,47 @@
+Table Of Contents
+=================
+
+1. [And Then There Was Ruby](/book/chapter/1)
+ * [HCP: Hackers, Code, And Programming](/book/chapter/1#section-one)
+ * [def ruby](/book/chapter/1#section-two)
+ * [The Ruby Revolution & Renaissance](/book/chapter/1#section-three)
+ * [Rock Out To The Rock Star](/book/chapter/1#section-four)
+ * [The Cherry Kool-Aid](/book/chapter/1#section-five)
+ * [Credits & License](/book/chapter/1#section-six)
+ * [How This Book Works](/book/chapter/1#section-seven)
+
+2. [Ready! Set! Hack.](/book/chapter/2)
+ * [Task 0 - Installing](/book/chapter/2#section-one)
+ * [Task 1 - Puts and Strings](/book/chapter/2#section-two)
+ * [Task 2 - Print, Comments, and Backslash Characters](/book/chapter/2#section-three)
+ * [Task 3 - Numbers, Math, and Interpolation](/book/chapter/2#section-four)
+ * [Task 4 - ](/book/chapter/2#section-five)
+ * [Task 5 - ](/book/chapter/2#section-six)
+ * [Task 6 - ](/book/chapter/2#section-seven)
+ * [Task 7 - ](/book/chapter/2#section-eight)
+ * [Task 8 - ](/book/chapter/2#section-nine)
+ * [Task 9 - ](/book/chapter/2#section-ten)
+
+3. [The Trail To Neverland](/book/chapter/3)
+ * [Task 10 - ](/book/chapter/3#section-one)
+ * [Task 11 - ](/book/chapter/3#section-two)
+ * [Task 12 - ](/book/chapter/3#section-three)
+ * [Task 13 - ](/book/chapter/3#section-four)
+ * [Task 14 - ](/book/chapter/3#section-five)
+ * [Task 15 - ](/book/chapter/3#section-six)
+ * [Task 16 - ](/book/chapter/3#section-seven)
+ * [Task 17 - ](/book/chapter/3#section-eight)
+ * [Task 18 - ](/book/chapter/3#section-nine)
+ * [Task 19 - ](/book/chapter/3#section-ten)
+
+4. [It's Rubies All The Way Down](/book/chapter/4)
+ * [Task 20 - ](/book/chapter/4#section-one)
+ * [Task 21 - ](/book/chapter/4#section-two)
+ * [Task 22 - ](/book/chapter/4#section-three)
+ * [Task 23 - ](/book/chapter/4#section-four)
+ * [Task 24 - ](/book/chapter/4#section-five)
+ * [Task 25 - ](/book/chapter/4#section-six)
+ * [Task 26 - ](/book/chapter/4#section-seven)
+ * [Task 27 - ](/book/chapter/4#section-eight)
+ * [Task 28 - ](/book/chapter/4#section-nine)
+ * [Task 29 - ](/book/chapter/4#section-ten)
@@ -0,0 +1,3 @@
+Learn You The Ruby For Awesome Power
+====================================
+![In Soviet Russia, Duck Types You!](/image/soviet-duck.png "In Soviet Russia, Duck Types You!")
@@ -1,3 +1 @@
@import "extra/mixins", "extra/variables", "extra/reset"
-h1
- color: red
@@ -12,18 +12,19 @@
%meta{ name: 'viewport', content: 'width=device-width, initial-scale=1.0' }/
%link{ href: '/image/icon/favicon.png', rel: 'shortcut icon', type: 'image/png' }/
%link{ href: '/style.css', rel: 'stylesheet', type: 'text/css' }
+ %script{ src: '/script.js', rel: 'javascript', type: 'text/javascript' }
%body
%header
- %h1 = @item[:title]
+ %h1= @item[:title]
%article
= yield
%footer
%p Copyright 2011 <a href="mailto:kurtisrainboltgreene@gmail.com">Kurtis Rainbolt-Greene</a>
- %script{type: 'text/javascript'}
+ %script{ type: 'text/javascript' }
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA--1']);
_gaq.push(['_trackPageview']);
Oops, something went wrong.

0 comments on commit d1839d0

Please sign in to comment.