Permalink
Browse files

Initial commit

  • Loading branch information...
0 parents commit c863c5ccccaa276db781554ecaa55cbc22f8e566 @jcasimir jcasimir committed Jun 17, 2011
Showing 1,080 changed files with 18,289 additions and 0 deletions.
@@ -0,0 +1,6 @@
+source "http://rubygems.org"
+
+#gem 'jekyll', :git => "https://github.com/mojombo/jekyll.git"
+gem 'jekyll', '>=0.10.2'
+gem 'redcarpet'
+gem 'RedCloth'
@@ -0,0 +1,26 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ RedCloth (4.2.7)
+ albino (1.3.3)
+ posix-spawn (>= 0.3.6)
+ classifier (1.3.3)
+ fast-stemmer (>= 1.0.0)
+ directory_watcher (1.4.0)
+ fast-stemmer (1.0.0)
+ jekyll (0.10.2)
+ albino (>= 1.3.2)
+ classifier (>= 1.3.1)
+ directory_watcher (>= 1.1.1)
+ liquid (>= 1.9.0)
+ liquid (2.2.2)
+ posix-spawn (0.3.6)
+ redcarpet (1.17.1)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ RedCloth
+ jekyll (>= 0.10.2)
+ redcarpet
@@ -0,0 +1,16 @@
+This is the source material and Jekyll-powered site for JumpstartLab tutorials.
+
+## Setup
+
+To view/edit the tutorials:
+
+```bash
+bundle
+bundle exec jekyll
+```
+
+Then visit http://localhost:4000/tutorials/rails/components/better_views.html
+
+## Help?
+
+I can't get Pygments highlighting going, at least on my machine. The fenced code blocks show up with PRE tags and the class name set to the language, but the code content is not processed by Pygments. Any ideas?
@@ -0,0 +1,7 @@
+auto: true
+pygments: true
+markdown: redcarpet
+server: true
+
+redcarpet:
+ extensions: [:filter_html, :autolink, :fenced_code, :hard_wrap, :tables, :gh_blockcode]
@@ -0,0 +1,29 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
+ "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html>
+ <head>
+ <title>{{ page.title }}</title>
+ <link rel="stylesheet" type="text/css" href="/css/reset.css" />
+ <link rel="stylesheet" type="text/css" href="/css/print_styles.css" media="all" />
+ <link rel="stylesheet" type="text/css" href="/css/pygments.css" media="all" />
+ <!--[if IE 6]>
+ <style type="text/css" media="screen">
+ @import url("/stylesheets/ie6.css");
+ </style>
+ <![endif]-->
+
+ <!--[if IE 7]>
+ <style type="text/css" media="screen">
+ @import url("/stylesheets/ie7.css");
+ </style>
+ <![endif]-->
+
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ </head>
+ <body>
+ <div class="content-wrapper">
+ <div class="project_breadcrumbs">...</div>
+ {{ content }}
+ </div>
+ </body>
+</html>
@@ -0,0 +1,26 @@
+---
+title: "Reversible Migrations"
+---
+
+<span class="version">**Rails** 3.1</span>
+
+Migrations have always been considered one of the many killer features in Rails. And in Rails 3.1 Migrations got a new trick up their sleeve that will greatly simplify the process of maintaining both the `up` and `down` logic. If you need a little refresher on what migrations are then I suggest reading the official [Rails guide](http://guides.rubyonrails.org/migrations.html).
+
+Lets start by looking at how a typical migration looks like in Rails 3.0
+
+```ruby
+ class CreatePosts < ActiveRecord::Migration
+ def self.up
+ create_table :posts do |t|
+ t.string :title
+ t.text :body
+
+ t.timestamps
+ end
+ end
+
+ def self.down
+ drop_table :pos
+ end
+ end
+```
@@ -0,0 +1,13 @@
+---
+title: "Prettier Error Pages!"
+---
+
+This may not seem like a biggie, but we all know you haven't gotten around to prettying up your error pages yet..
+
+"The new, pretty, 404 error page":http://dev.rubyonrails.org/browser/trunk/railties/html/404.html?format=raw
+
+and
+
+"The new, pretty, 500 error page":http://dev.rubyonrails.org/browser/trunk/railties/html/500.html?format=raw
+
+It's the little things sometimes...
@@ -0,0 +1,21 @@
+<p><strong>Rails</strong> 3.1</p>
+
+<p>Migrations have always been considered one of the many killer features in Rails. And in Rails 3.1 Migrations got a new trick up their sleeve that will greatly simplify the process of maintaining both the <code>up</code> and <code>down</code> logic. If you need a little refresher on what migrations are then I suggest reading the official <a href="http://guides.rubyonrails.org/migrations.html">Rails guide</a>.</p>
+
+<p>Lets start by looking at how a typical migration looks like in Rails 3.0</p>
+
+<pre lang="ruby"><code> class CreatePosts &lt; ActiveRecord::Migration
+ def self.up
+ create_table :posts do |t|
+ t.string :title
+ t.text :body
+
+ t.timestamps
+ end
+ end
+
+ def self.down
+ drop_table :postss
+ end
+ end
+</code></pre>
@@ -0,0 +1,5 @@
+<p>This may not seem like a biggie, but we all know you haven&#8217;t gotten around to prettying up your error pages yet..</p>
+<p><a href="http://dev.rubyonrails.org/browser/trunk/railties/html/404.html?format=raw">The new, pretty, 404 error page</a></p>
+<p>and</p>
+<p><a href="http://dev.rubyonrails.org/browser/trunk/railties/html/500.html?format=raw">The new, pretty, 500 error page</a></p>
+<p>It&#8217;s the little things sometimes&#8230;</p>
@@ -0,0 +1,6 @@
+source "http://rubygems.org"
+
+#gem 'jekyll', :git => "https://github.com/mojombo/jekyll.git"
+gem 'jekyll', :path => "../jekyll"
+gem 'redcarpet'
+gem 'RedCloth'
@@ -0,0 +1,30 @@
+PATH
+ remote: ../jekyll
+ specs:
+ jekyll (0.10.0)
+ albino (>= 1.3.2)
+ classifier (>= 1.3.1)
+ directory_watcher (>= 1.1.1)
+ liquid (>= 1.9.0)
+
+GEM
+ remote: http://rubygems.org/
+ specs:
+ RedCloth (4.2.7)
+ albino (1.3.3)
+ posix-spawn (>= 0.3.6)
+ classifier (1.3.3)
+ fast-stemmer (>= 1.0.0)
+ directory_watcher (1.4.0)
+ fast-stemmer (1.0.0)
+ liquid (2.2.2)
+ posix-spawn (0.3.6)
+ redcarpet (1.17.1)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ RedCloth
+ jekyll!
+ redcarpet
@@ -0,0 +1,16 @@
+This is the source material and Jekyll-powered site for JumpstartLab tutorials.
+
+## Setup
+
+To view/edit the tutorials:
+
+```bash
+bundle
+bundle exec jekyll
+```
+
+Then visit http://localhost:4000/tutorials/rails/components/better_views.html
+
+## Help?
+
+I can't get Pygments highlighting going, at least on my machine. The fenced code blocks show up with PRE tags and the class name set to the language, but the code content is not processed by Pygments. Any ideas?
@@ -0,0 +1,48 @@
+.upcoming_classes img{float: left; padding: 0px 5px 20px 2px;}
+
+.project_breadcrumbs{padding: 5px 10px; background-color: #F6F6F6; font-size: 10pt; margin: 10px 0px; border: 1px solid #E6E6E6;}
+.aside{border: 2px dotted #F0F0F0; background: #fffacd; font-style: italic; padding: 0px 10px 0px 10px; margin: 5px -10px 5px -10px;}
+
+
+.console, .code{margin:1em 0!important;font-size:80%!important;background-color:#EbEbEb!important;border:1px solid #cbcbcb!important;padding:.5em!important;line-height:1.5em!important;color:#2E0854!important;overflow:auto!important; font: 80% Monaco,"Courier New",monospace;}
+
+code{font-size:80%!important;padding:.2em!important;color:#2E0854!important;font: 80% Monaco,"Courier New",monospace;font-weight: bold;}
+
+.page_break{page-break-after:always}
+
+body{text-align:center; padding:0px; margin:20px 0px; font-family:Georgia; font-size:10.5pt; color:#373a3c;}
+
+.content-wrapper{width:600px; text-align:left; margin:auto; margin-bottom:30px;}
+
+h1{font-weight:normal; font-style: italic; font-size:17pt;text-align:left; padding:10px 0px 2px 0px; margin:0px;border-bottom: 1px dotted #6aad44}
+h2{font-weight:normal; font-style: italic; font-size:14pt; line-height: 15pt; text-align:left;padding:2px 0px 0px 0px; margin: 18px 0px 6px 0px; border-bottom:1px dotted #6aad44;page-break-before: always;}
+h3{font-weight:normal; font-style: italic; font-size:14pt; line-height: 15pt; text-align:left;padding:8px 0px 0px 0px; margin: 18px 0px 6px 0px; border-bottom:1px dotted #6aad44;}
+h4{font-weight:bold; font-style: italic; font-size:10.5pt; line-height: 12pt; text-align:left;padding:2px 0px 0px 0px; margin: 6px 0px 3px 0px}
+
+p{line-height:1.5em;width:95%; padding:0px; margin:6px 0px 12px 0px;}
+ul{margin:4px;}
+ul li{list-style-image:url('../images/default-bullet.gif');list-style-image-position:middle left; padding:0px 0px 10px 0px; margin:0px 0px 0px 20px;line-height:1.4em;}
+ul li li{list-style-image:url('../images/med-arrow-grey.gif');list-style-image-position:middle left; padding:0px 0px 10px 0px; margin:0px 0px 0px 12px;line-height:1.4em;}
+ul.naked li{list-style-image: none; list-style-type: none; clear: left}
+ul.naked img{float:left; margin: 0px 10px 10px 0px;}
+span.listpop{font-weight: bold; display:block;}
+ol{margin:4px;}
+ol li{padding:0px 0px 10px 0px; margin:0px 0px 0px 20px;line-height:1.1em;}
+
+a img{border:none;}
+img.title {margin-top: 20px;}
+img.instructor_pic {float: right; margin: 10px 0px 10px 10px;}
+em {font-style: italic;}
+
+p.dropquote{float:left; margin: 3px 10px 10px -49px; padding: 2px 2px 5px 2px; font-size: 14pt; line-height: 14.5pt; color: #6aad44; width: 150px; font-style: italic; }
+p.dropicon{float:left; margin: 3px 10px 10px -89px; padding: 2px 2px 5px 2px; font-size: 14pt; line-height: 14.5pt; color: #6aad44; width: 76px; font-style: italic; }
+
+table {margin-top: 15px;}
+th, td {border-left: 2px solid white; border-right: 2px solid white; border-bottom: 2px solid white; border-top: 1px solid #6AAD44; padding: 1px 2px 7px 0px;}
+th {font-weight: bold;}
+
+.left .image{float:left; margin:0px;width:37%;}
+.left .image p.image-text{padding:0px; font-size:7pt;width:95%;margin:0px;}
+
+a{color:#3a8d34; text-decoration:none; font-weight: bold}
+a:hover{color:#4a8d24; text-decoration:underline;}
@@ -0,0 +1,61 @@
+.hll { background-color: #ffffcc }
+.c { color: #408080; font-style: italic } /* Comment */
+.err { border: 1px solid #FF0000 } /* Error */
+.k { color: #008000; font-weight: bold } /* Keyword */
+.o { color: #666666 } /* Operator */
+.cm { color: #408080; font-style: italic } /* Comment.Multiline */
+.cp { color: #BC7A00 } /* Comment.Preproc */
+.c1 { color: #408080; font-style: italic } /* Comment.Single */
+.cs { color: #408080; font-style: italic } /* Comment.Special */
+.gd { color: #A00000 } /* Generic.Deleted */
+.ge { font-style: italic } /* Generic.Emph */
+.gr { color: #FF0000 } /* Generic.Error */
+.gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.gi { color: #00A000 } /* Generic.Inserted */
+.go { color: #808080 } /* Generic.Output */
+.gp { color: #000080; font-weight: bold } /* Generic.Prompt */
+.gs { font-weight: bold } /* Generic.Strong */
+.gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.gt { color: #0040D0 } /* Generic.Traceback */
+.kc { color: #008000; font-weight: bold } /* Keyword.Constant */
+.kd { color: #008000; font-weight: bold } /* Keyword.Declaration */
+.kn { color: #008000; font-weight: bold } /* Keyword.Namespace */
+.kp { color: #008000 } /* Keyword.Pseudo */
+.kr { color: #008000; font-weight: bold } /* Keyword.Reserved */
+.kt { color: #B00040 } /* Keyword.Type */
+.m { color: #666666 } /* Literal.Number */
+.s { color: #BA2121 } /* Literal.String */
+.na { color: #7D9029 } /* Name.Attribute */
+.nb { color: #008000 } /* Name.Builtin */
+.nc { color: #0000FF; font-weight: bold } /* Name.Class */
+.no { color: #880000 } /* Name.Constant */
+.nd { color: #AA22FF } /* Name.Decorator */
+.ni { color: #999999; font-weight: bold } /* Name.Entity */
+.ne { color: #D2413A; font-weight: bold } /* Name.Exception */
+.nf { color: #0000FF } /* Name.Function */
+.nl { color: #A0A000 } /* Name.Label */
+.nn { color: #0000FF; font-weight: bold } /* Name.Namespace */
+.nt { color: #008000; font-weight: bold } /* Name.Tag */
+.nv { color: #19177C } /* Name.Variable */
+.ow { color: #AA22FF; font-weight: bold } /* Operator.Word */
+.w { color: #bbbbbb } /* Text.Whitespace */
+.mf { color: #666666 } /* Literal.Number.Float */
+.mh { color: #666666 } /* Literal.Number.Hex */
+.mi { color: #666666 } /* Literal.Number.Integer */
+.mo { color: #666666 } /* Literal.Number.Oct */
+.sb { color: #BA2121 } /* Literal.String.Backtick */
+.sc { color: #BA2121 } /* Literal.String.Char */
+.sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */
+.s2 { color: #BA2121 } /* Literal.String.Double */
+.se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */
+.sh { color: #BA2121 } /* Literal.String.Heredoc */
+.si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */
+.sx { color: #008000 } /* Literal.String.Other */
+.sr { color: #BB6688 } /* Literal.String.Regex */
+.s1 { color: #BA2121 } /* Literal.String.Single */
+.ss { color: #19177C } /* Literal.String.Symbol */
+.bp { color: #008000 } /* Name.Builtin.Pseudo */
+.vc { color: #19177C } /* Name.Variable.Class */
+.vg { color: #19177C } /* Name.Variable.Global */
+.vi { color: #19177C } /* Name.Variable.Instance */
+.il { color: #666666 } /* Literal.Number.Integer.Long */
@@ -0,0 +1,41 @@
+/* --------------------------------------------------------------
+
+ reset.css
+ * Resets default browser CSS.
+
+ Based on work by Eric Meyer:
+ * meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/
+
+ Icons are available for purchase at:
+ * http://www.istockphoto.com/file_closeup/arts-and-entertainment/arts-symbols/4575877-satin-icons-set-9.php?id=4575877
+
+-------------------------------------------------------------- */
+
+html, body, div, span, object, iframe,
+h1, h2, h3, h4, h5, h6, p, blockquote, pre,
+a, abbr, acronym, address, code,
+del, dfn, em, img, q, dl, dt, dd, ol, ul, li,
+fieldset, form, label, legend,
+table, caption, tbody, tfoot, thead, tr, th, td {
+ margin: 0;
+ padding: 0;
+ border: 0;
+ font-weight: inherit;
+ font-style: inherit;
+ font-size: 100%;
+ font-family: inherit;
+ vertical-align: baseline;
+}
+
+
+body { line-height: 1.5; background: #fff; margin:1.5em 0; }
+
+/* Tables still need 'cellspacing="0"' in the markup. */
+table { border-collapse: separate; border-spacing: 0; }
+caption, th, td { text-align: left; font-weight:400; }
+
+/* Remove possible quote marks (") from <q>, <blockquote>. */
+blockquote:before, blockquote:after, q:before, q:after { content: ""; }
+blockquote, q { quotes: "" ""; }
+
+a img { border: none; }
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.

0 comments on commit c863c5c

Please sign in to comment.