Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Making minor changes.

Signed-off-by: Kurtis Rainbolt-Greene <kurtisrainboltgreene@gmail.com>
  • Loading branch information...
commit c75989088022a8f3d559295ba8f009fb8db4496a 1 parent 017280a
Kurtis Rainbolt-Greene authored
View
3  .gems
@@ -1,3 +0,0 @@
-sinatra
-haml
-rdiscount
View
47 .rvmrc
@@ -1 +1,46 @@
-rvm 1.9.2@learn-you-the-ruby
+#!/usr/bin/env bash
+
+# This is an RVM Project .rvmrc file, used to automatically load the ruby
+# development environment upon cd'ing into the directory
+
+# First we specify our desired <ruby>[@<gemset>], the @gemset name is optional.
+environment_id="ruby-1.9.2-p136@learn-you-the-ruby"
+
+#
+# First we attempt to load the desired environment directly from the environment
+# file, this is very fast and efficicent compared to running through the entire
+# CLI and selector. If you want feedback on which environment was used then
+# insert the word 'use' after --create as this triggers verbose mode.
+#
+if [[ -d "${rvm_path:-$HOME/.rvm}/environments" \
+ && -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]] ; then
+ \. "${rvm_path:-$HOME/.rvm}/environments/$environment_id"
+else
+ # If the environment file has not yet been created, use the RVM CLI to select.
+ rvm --create "$environment_id"
+fi
+
+#
+# If you use an RVM gemset file to install a list of gems (*.gems), you can have
+# it be automatically loaded, uncomment the following and adjust the filename if
+# necessary.
+#
+# filename=".gems"
+# if [[ -s "$filename" ]] ; then
+# rvm gemset import "$filename" | grep -v already | grep -v listed | grep -v complete | sed '/^$/d'
+# fi
+
+#
+# If you use bundler and would like to run bundle each time you enter the
+# directory you can uncomment the following code.
+#
+# # Ensure that Bundler is installed, install it if it is not.
+# if ! command -v bundle ; then
+# printf "The rubygem 'bundler' is not installed, installing it now.\n"
+# gem install bundler
+# fi
+#
+# # Bundle while redcing excess noise.
+# printf "Bundling your gems this may take a few minutes on a fresh clone.\n"
+# bundle | grep -v 'Using' | grep -v 'complete' | sed '/^$/d'
+#
View
58 Gemfile
@@ -0,0 +1,58 @@
+source 'http://rubygems.org'
+
+# GEMS for Development Productivity:
+## Ruby Addons
+gem 'i18n'
+gem 'chronic'
+gem 'bundler'
+#gem 'thor'
+#gem 'ore'
+#gem 'nokogiri'
+#gem 'hpricot'
+
+## IRB Addons
+gem 'looksee'
+gem 'wirble'
+gem 'hirb'
+gem 'awesome_print'
+gem 'utility_belt'
+
+## Web Development
+#gem 'rails'
+#gem 'sinatra'
+#gem 'haml'
+#gem 'yui-compressor'
+#gem 'rails_best_practices'
+#gem 'thin'
+gem 'rdiscount'
+gem 'highlight'
+
+## Database ORMs
+#gem 'sequel'
+#gem 'mongoid'
+#gem 'ohm'
+
+## Testing
+gem 'rspec'
+#gem 'rspec-rails'
+#gem 'cucumber'
+gem 'steak'
+gem 'launchy'
+gem 'delorean'
+
+## Deployment
+#gem 'git'
+#gem 'github'
+#gem 'gist'
+gem 'heroku'
+#gem 'capistrano'
+#gem 'capistrano_colors'
+
+## System Tools
+#gem 'teamocil'
+#gem 'tmuxinator'
+#gem 'qwandry'
+#gem 'tick'
+#gem 'projmgr'
+gem 'rocco'
+gem 'rake'
View
76 Gemfile.lock
@@ -0,0 +1,76 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ Platform (0.4.0)
+ activesupport (3.0.4)
+ awesome_print (0.3.2)
+ aws-s3 (0.6.2)
+ builder
+ mime-types
+ xml-simple
+ builder (3.0.0)
+ chronic (0.3.0)
+ configuration (1.2.0)
+ delorean (0.2.1)
+ chronic
+ diff-lcs (1.1.2)
+ heroku (1.17.10)
+ json (~> 1.4.6)
+ launchy (~> 0.3.2)
+ rest-client (>= 1.4.0, < 1.7.0)
+ highlight (1.1.2)
+ activesupport (>= 2.0.0)
+ hirb (0.3.6)
+ i18n (0.5.0)
+ json (1.4.6)
+ launchy (0.3.7)
+ configuration (>= 0.0.5)
+ rake (>= 0.8.1)
+ looksee (0.2.1)
+ mime-types (1.16)
+ mustache (0.12.0)
+ rake (0.8.7)
+ rdiscount (1.6.8)
+ rest-client (1.6.1)
+ mime-types (>= 1.16)
+ rocco (0.5)
+ mustache
+ rdiscount
+ rspec (2.5.0)
+ rspec-core (~> 2.5.0)
+ rspec-expectations (~> 2.5.0)
+ rspec-mocks (~> 2.5.0)
+ rspec-core (2.5.1)
+ rspec-expectations (2.5.0)
+ diff-lcs (~> 1.1.2)
+ rspec-mocks (2.5.0)
+ steak (1.1.0)
+ rspec (>= 1.3)
+ utility_belt (1.1.0)
+ Platform (>= 0.4.0)
+ aws-s3 (>= 0.4.0)
+ wirble (>= 0.1.2)
+ wirble (0.1.3)
+ xml-simple (1.0.14)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ awesome_print
+ bundler
+ chronic
+ delorean
+ heroku
+ highlight
+ hirb
+ i18n
+ launchy
+ looksee
+ rake
+ rdiscount
+ rocco
+ rspec
+ steak
+ utility_belt
+ wirble
View
37 TODO
@@ -1,37 +0,0 @@
-Todo
-====
-
-Writing
--------
-* Write 50 general tasks.
-* Write 10 tasks using the Sinatra gem.
-* Write 10 tasks using the Treetop gem.
-* Write 10 tasks using the Nokogiri gem.
-* Write 10 tasks using the Shoes gem.
-* Have a Project Why type thing for Euler type questions.
-
-Art
----
-* Get at least 1 piece of art for each task, and each chapter heading.
-
-Styling
--------
-* Restyle the web interface to be easier on the eyes.
-* Proof read each chapter.
-* Work on the mobile styles.
-* Work on the Printer style.
-* Work on the paperback version.
-* Make the H3 styles less inset. Maybe italics?
-* The results code needs a black background, bigger font.
-* Add NEXT CHAPTER and PREV CHAPTER navigation elements at top&&bottom.
-
-Programming
------------
-* Build a Ruby web console. Perhaps to the side or bottom?
-
-Notes
-=====
-
-build-essential bison openssl libreadline6 libreadline6-dev
-curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0
-libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf
View
5 default.gems
@@ -1,5 +0,0 @@
-# default.gems generated gem export file. Note that any env variable settings will be missing. Append these after using a ';' field separator
-sinatra
-rdiscount
-haml
-highlight
View
6 rakefile
@@ -9,7 +9,7 @@ task :compile do
tasks = Dir.glob("./book/tasks/*.md").sort
chapters = Dir.glob("./book/chapters/*.md").sort
destination = './web/views/'
-
+
for image in images
puts 'Copying ' + image + ' to ./web/public/image/'
system "cp #{image} ./web/public/image/"
@@ -18,12 +18,12 @@ task :compile do
puts 'Copying ' + extra + ' to ' + destination
system "cp #{extra} #{destination}"
end
-
+
for chapter in chapters
puts 'Putting ' + chapter + ' in ' + destination
system "cp #{chapter} #{destination}"
end
-
+
for task in tasks
number = task.match(/\d/).to_s.to_i
case number
View
86 web/public/javascript/plugins.js
@@ -1,43 +1,43 @@
-
-// remap jQuery to $
-(function($){
-
-
-
-
-
-
-
-
-
-
-
-})(window.jQuery);
-
-
-
-// usage: log('inside coolFunc',this,arguments);
-// paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
-window.log = function(){
- log.history = log.history || []; // store logs to an array for reference
- log.history.push(arguments);
- if(this.console){
- console.log( Array.prototype.slice.call(arguments) );
- }
-};
-
-
-
-// catch all document.write() calls
-(function(){
- var docwrite = document.write;
- document.write = function(q){
- log('document.write(): ',q);
- if (/docwriteregexwhitelist/.test(q)) docwrite(q);
- }
-})();
-
-
-// background image cache bug for ie6. www.mister-pixel.com/#Content__state=
-/*@cc_on @if (@_win32) { document.execCommand("BackgroundImageCache",false,true) } @end @*/
-
+
+// remap jQuery to $
+(function($){
+
+
+
+
+
+
+
+
+
+
+
+})(window.jQuery);
+
+
+
+// usage: log('inside coolFunc',this,arguments);
+// paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
+window.log = function(){
+ log.history = log.history || []; // store logs to an array for reference
+ log.history.push(arguments);
+ if(this.console){
+ console.log( Array.prototype.slice.call(arguments) );
+ }
+};
+
+
+
+// catch all document.write() calls
+(function(){
+ var docwrite = document.write;
+ document.write = function(q){
+ log('document.write(): ',q);
+ if (/docwriteregexwhitelist/.test(q)) docwrite(q);
+ }
+})();
+
+
+// background image cache bug for ie6. www.mister-pixel.com/#Content__state=
+/*@cc_on @if (@_win32) { document.execCommand("BackgroundImageCache",false,true) } @end @*/
+
Please sign in to comment.
Something went wrong with that request. Please try again.