Permalink
Browse files

initial commit with readme and code samples

  • Loading branch information...
0 parents commit 0a4b0e6201f876928a629a5442ce415c2e4ac50b @derickbailey committed Aug 9, 2012
Showing with 24,684 additions and 0 deletions.
  1. +3 −0 .gitignore
  2. +10 −0 1-jquery-to-backbone/Gemfile
  3. +60 −0 1-jquery-to-backbone/Gemfile.lock
  4. +9 −0 1-jquery-to-backbone/Rakefile
  5. +12 −0 1-jquery-to-backbone/app.rb
  6. +2 −0 1-jquery-to-backbone/config.ru
  7. +314 −0 1-jquery-to-backbone/public/css/imagegallery.css
  8. BIN 1-jquery-to-backbone/public/images/Select Image.png
  9. BIN 1-jquery-to-backbone/public/images/comment.png
  10. BIN 1-jquery-to-backbone/public/images/island.jpeg
  11. BIN 1-jquery-to-backbone/public/images/mountain.jpeg
  12. BIN 1-jquery-to-backbone/public/images/tools.jpeg
  13. BIN 1-jquery-to-backbone/public/images/tree.jpeg
  14. +1,158 −0 1-jquery-to-backbone/public/javascript/backbone.js
  15. +115 −0 1-jquery-to-backbone/public/javascript/backbone.memento.js
  16. +477 −0 1-jquery-to-backbone/public/javascript/backbone.modelbinding.js
  17. +33 −0 1-jquery-to-backbone/public/javascript/imagegallery.js
  18. +18 −0 1-jquery-to-backbone/public/javascript/jquery.min.js
  19. +486 −0 1-jquery-to-backbone/public/javascript/jquery.tmpl.js
  20. +480 −0 1-jquery-to-backbone/public/javascript/json2.js
  21. +839 −0 1-jquery-to-backbone/public/javascript/underscore.js
  22. +15 −0 1-jquery-to-backbone/spec/javascripts/helpers/SpecHelper.js
  23. +40 −0 1-jquery-to-backbone/spec/javascripts/helpers/backbone.helpers.js
  24. +21 −0 1-jquery-to-backbone/spec/javascripts/helpers/imagelist.js
  25. +288 −0 1-jquery-to-backbone/spec/javascripts/helpers/jasmine-jquery.js
  26. +83 −0 1-jquery-to-backbone/spec/javascripts/support/jasmine.yml
  27. +23 −0 1-jquery-to-backbone/spec/javascripts/support/jasmine_config.rb
  28. +32 −0 1-jquery-to-backbone/spec/javascripts/support/jasmine_runner.rb
  29. +39 −0 1-jquery-to-backbone/templates.txt
  30. +56 −0 1-jquery-to-backbone/views/layout.erb
  31. +10 −0 2-routing-and-navigation/Gemfile
  32. +60 −0 2-routing-and-navigation/Gemfile.lock
  33. +9 −0 2-routing-and-navigation/Rakefile
  34. +12 −0 2-routing-and-navigation/app.rb
  35. +2 −0 2-routing-and-navigation/config.ru
  36. +314 −0 2-routing-and-navigation/public/css/imagegallery.css
  37. BIN 2-routing-and-navigation/public/images/Select Image.png
  38. BIN 2-routing-and-navigation/public/images/comment.png
  39. BIN 2-routing-and-navigation/public/images/island.jpeg
  40. BIN 2-routing-and-navigation/public/images/mountain.jpeg
  41. BIN 2-routing-and-navigation/public/images/tools.jpeg
  42. BIN 2-routing-and-navigation/public/images/tree.jpeg
  43. +1,158 −0 2-routing-and-navigation/public/javascript/backbone.js
  44. +115 −0 2-routing-and-navigation/public/javascript/backbone.memento.js
  45. +477 −0 2-routing-and-navigation/public/javascript/backbone.modelbinding.js
  46. +94 −0 2-routing-and-navigation/public/javascript/imagegallery.js
  47. +18 −0 2-routing-and-navigation/public/javascript/jquery.min.js
  48. +486 −0 2-routing-and-navigation/public/javascript/jquery.tmpl.js
  49. +480 −0 2-routing-and-navigation/public/javascript/json2.js
  50. +839 −0 2-routing-and-navigation/public/javascript/underscore.js
  51. +15 −0 2-routing-and-navigation/spec/javascripts/helpers/SpecHelper.js
  52. +40 −0 2-routing-and-navigation/spec/javascripts/helpers/backbone.helpers.js
  53. +21 −0 2-routing-and-navigation/spec/javascripts/helpers/imagelist.js
  54. +288 −0 2-routing-and-navigation/spec/javascripts/helpers/jasmine-jquery.js
  55. +83 −0 2-routing-and-navigation/spec/javascripts/support/jasmine.yml
  56. +23 −0 2-routing-and-navigation/spec/javascripts/support/jasmine_config.rb
  57. +32 −0 2-routing-and-navigation/spec/javascripts/support/jasmine_runner.rb
  58. +39 −0 2-routing-and-navigation/templates.txt
  59. +68 −0 2-routing-and-navigation/views/layout.erb
  60. +10 −0 3-app-structure/Gemfile
  61. +60 −0 3-app-structure/Gemfile.lock
  62. +9 −0 3-app-structure/Rakefile
  63. +12 −0 3-app-structure/app.rb
  64. +2 −0 3-app-structure/config.ru
  65. +320 −0 3-app-structure/public/css/imagegallery.css
  66. BIN 3-app-structure/public/images/Select Image.png
  67. BIN 3-app-structure/public/images/comment.png
  68. BIN 3-app-structure/public/images/flower.jpeg
  69. BIN 3-app-structure/public/images/islands.jpeg
  70. BIN 3-app-structure/public/images/mountain.jpeg
  71. BIN 3-app-structure/public/images/wrench.jpeg
  72. +1,158 −0 3-app-structure/public/javascript/backbone.js
  73. +163 −0 3-app-structure/public/javascript/backbone.marionette.js
  74. +115 −0 3-app-structure/public/javascript/backbone.memento.js
  75. +477 −0 3-app-structure/public/javascript/backbone.modelbinding.js
  76. +272 −0 3-app-structure/public/javascript/imagegallery.js
  77. +18 −0 3-app-structure/public/javascript/jquery.min.js
  78. +486 −0 3-app-structure/public/javascript/jquery.tmpl.js
  79. +480 −0 3-app-structure/public/javascript/json2.js
  80. +839 −0 3-app-structure/public/javascript/underscore.js
  81. +15 −0 3-app-structure/spec/javascripts/helpers/SpecHelper.js
  82. +40 −0 3-app-structure/spec/javascripts/helpers/backbone.helpers.js
  83. +21 −0 3-app-structure/spec/javascripts/helpers/imagelist.js
  84. +288 −0 3-app-structure/spec/javascripts/helpers/jasmine-jquery.js
  85. +83 −0 3-app-structure/spec/javascripts/support/jasmine.yml
  86. +23 −0 3-app-structure/spec/javascripts/support/jasmine_config.rb
  87. +32 −0 3-app-structure/spec/javascripts/support/jasmine_runner.rb
  88. +76 −0 3-app-structure/views/layout.erb
  89. +10 −0 4-persistence/Gemfile
  90. +60 −0 4-persistence/Gemfile.lock
  91. +9 −0 4-persistence/Rakefile
  92. +99 −0 4-persistence/app.rb
  93. +2 −0 4-persistence/config.ru
  94. +344 −0 4-persistence/public/css/imagegallery.css
  95. BIN 4-persistence/public/images/Select Image.png
  96. BIN 4-persistence/public/images/comment.png
  97. BIN 4-persistence/public/images/flower.jpeg
  98. BIN 4-persistence/public/images/islands.jpeg
  99. BIN 4-persistence/public/images/mountain.jpeg
  100. BIN 4-persistence/public/images/wrench.jpeg
  101. +1,158 −0 4-persistence/public/javascript/backbone.js
  102. +328 −0 4-persistence/public/javascript/backbone.marionette.js
  103. +115 −0 4-persistence/public/javascript/backbone.memento.js
  104. +477 −0 4-persistence/public/javascript/backbone.modelbinding.js
  105. +248 −0 4-persistence/public/javascript/imagegallery.js
  106. +18 −0 4-persistence/public/javascript/jquery.min.js
  107. +486 −0 4-persistence/public/javascript/jquery.tmpl.js
  108. +480 −0 4-persistence/public/javascript/json2.js
  109. +839 −0 4-persistence/public/javascript/underscore.js
  110. +15 −0 4-persistence/spec/javascripts/helpers/SpecHelper.js
  111. +40 −0 4-persistence/spec/javascripts/helpers/backbone.helpers.js
  112. +21 −0 4-persistence/spec/javascripts/helpers/imagelist.js
  113. +288 −0 4-persistence/spec/javascripts/helpers/jasmine-jquery.js
  114. +83 −0 4-persistence/spec/javascripts/support/jasmine.yml
  115. +23 −0 4-persistence/spec/javascripts/support/jasmine_config.rb
  116. +32 −0 4-persistence/spec/javascripts/support/jasmine_runner.rb
  117. +128 −0 4-persistence/views/layout.erb
  118. +10 −0 5-complete/Gemfile
  119. +60 −0 5-complete/Gemfile.lock
  120. +9 −0 5-complete/Rakefile
  121. +99 −0 5-complete/app.rb
  122. +2 −0 5-complete/config.ru
  123. +344 −0 5-complete/public/css/imagegallery.css
  124. BIN 5-complete/public/images/Select Image.png
  125. BIN 5-complete/public/images/comment.png
  126. BIN 5-complete/public/images/flower.jpeg
  127. BIN 5-complete/public/images/islands.jpeg
  128. BIN 5-complete/public/images/mountain.jpeg
  129. BIN 5-complete/public/images/wrench.jpeg
  130. +1,158 −0 5-complete/public/javascript/backbone.js
  131. +328 −0 5-complete/public/javascript/backbone.marionette.js
  132. +159 −0 5-complete/public/javascript/backbone.memento.js
  133. +364 −0 5-complete/public/javascript/imagegallery.js
  134. +18 −0 5-complete/public/javascript/jquery.min.js
  135. +486 −0 5-complete/public/javascript/jquery.tmpl.js
  136. +480 −0 5-complete/public/javascript/json2.js
  137. +839 −0 5-complete/public/javascript/underscore.js
  138. +15 −0 5-complete/spec/javascripts/helpers/SpecHelper.js
  139. +40 −0 5-complete/spec/javascripts/helpers/backbone.helpers.js
  140. +21 −0 5-complete/spec/javascripts/helpers/imagelist.js
  141. +288 −0 5-complete/spec/javascripts/helpers/jasmine-jquery.js
  142. +83 −0 5-complete/spec/javascripts/support/jasmine.yml
  143. +23 −0 5-complete/spec/javascripts/support/jasmine_config.rb
  144. +32 −0 5-complete/spec/javascripts/support/jasmine_runner.rb
  145. +128 −0 5-complete/views/layout.erb
  146. +100 −0 readme.md
@@ -0,0 +1,3 @@
+*.swp
+*.swo
+*.origin
@@ -0,0 +1,10 @@
+source :rubygems
+
+gem 'sinatra'
+gem 'sinatra-content-for'
+gem 'json'
+
+group :development do
+ gem 'jasmine'
+ gem 'sinatra-reloader'
+end
@@ -0,0 +1,60 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ backports (2.3.0)
+ childprocess (0.2.2)
+ ffi (~> 1.0.6)
+ diff-lcs (1.1.3)
+ ffi (1.0.9)
+ jasmine (1.0.2.1)
+ json_pure (>= 1.4.3)
+ rack (>= 1.1)
+ rspec (>= 1.3.1)
+ selenium-webdriver (>= 0.1.3)
+ json (1.6.0)
+ json_pure (1.5.4)
+ spruz (~> 0.2.8)
+ monkey-lib (0.5.4)
+ backports
+ rack (1.3.2)
+ rspec (2.6.0)
+ rspec-core (~> 2.6.0)
+ rspec-expectations (~> 2.6.0)
+ rspec-mocks (~> 2.6.0)
+ rspec-core (2.6.4)
+ rspec-expectations (2.6.0)
+ diff-lcs (~> 1.1.2)
+ rspec-mocks (2.6.0)
+ rubyzip (0.9.4)
+ selenium-webdriver (2.5.0)
+ childprocess (>= 0.2.1)
+ ffi (>= 1.0.7)
+ json_pure
+ rubyzip
+ sinatra (1.2.6)
+ rack (~> 1.1)
+ tilt (>= 1.2.2, < 2.0)
+ sinatra-advanced-routes (0.5.1)
+ monkey-lib (~> 0.5.0)
+ sinatra (~> 1.0)
+ sinatra-sugar (~> 0.5.0)
+ sinatra-content-for (0.2)
+ sinatra
+ sinatra-reloader (0.5.0)
+ sinatra (~> 1.0)
+ sinatra-advanced-routes (~> 0.5.0)
+ sinatra-sugar (0.5.1)
+ monkey-lib (~> 0.5.0)
+ sinatra (~> 1.0)
+ spruz (0.2.13)
+ tilt (1.3.2)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ jasmine
+ json
+ sinatra
+ sinatra-content-for
+ sinatra-reloader
@@ -0,0 +1,9 @@
+
+begin
+ require 'jasmine'
+ load 'jasmine/tasks/jasmine.rake'
+rescue LoadError
+ task :jasmine do
+ abort "Jasmine is not available. In order to run jasmine, you must: (sudo) gem install jasmine"
+ end
+end
@@ -0,0 +1,12 @@
+require 'sinatra'
+require 'sinatra/content_for'
+require 'erb'
+require 'json'
+require 'sinatra/reloader' if development?
+
+set :public, File.dirname(__FILE__) + '/public'
+
+get '/' do
+ erb :layout
+end
+
@@ -0,0 +1,2 @@
+require './app'
+run Sinatra::Application
Oops, something went wrong.

0 comments on commit 0a4b0e6

Please sign in to comment.