Permalink
Browse files

initial commit

  • Loading branch information...
cjsmith committed Mar 24, 2011
0 parents commit e59783411a0aa63da31fc3fadb7781e159a3e79a
Showing with 4,527 additions and 0 deletions.
  1. BIN .DS_Store
  2. +2 −0 .bundle/config
  3. +6 −0 Gemfile
  4. +22 −0 Gemfile.lock
  5. +2 −0 config.ru
  6. +40 −0 notes.txt
  7. +114 −0 public/css/active4d.css
  8. +72 −0 public/css/all_hallows_eve.css
  9. +147 −0 public/css/amy.css
  10. +88 −0 public/css/blackboard.css
  11. +605 −0 public/css/brilliance_black.css
  12. +599 −0 public/css/brilliance_dull.css
  13. +149 −0 public/css/cobalt.css
  14. +121 −0 public/css/dawn.css
  15. +121 −0 public/css/eiffel.css
  16. +109 −0 public/css/espresso_libre.css
  17. +59 −0 public/css/highlight.css
  18. +62 −0 public/css/idle.css
  19. +80 −0 public/css/iplastic.css
  20. +73 −0 public/css/lazy.css
  21. +123 −0 public/css/mac_classic.css
  22. +104 −0 public/css/magicwb_amiga.css
  23. +188 −0 public/css/pastels_on_dark.css
  24. +63 −0 public/css/slideshow.css
  25. +85 −0 public/css/slush_poppies.css
  26. +51 −0 public/css/spacecadet.css
  27. +180 −0 public/css/sunburst.css
  28. +137 −0 public/css/twilight.css
  29. +91 −0 public/css/zenburnesque.css
  30. BIN public/images/combo_taco_bell_pizza_hut.JPG
  31. BIN public/images/sinatra_background.gif
  32. BIN public/images/sinatra_life.jpg
  33. +99 −0 public/js/jquery.hotkeys.js
  34. +167 −0 public/js/jquery.min.js
  35. +95 −0 script.txt
  36. +234 −0 slideshow.rb
  37. +19 −0 snippets/advanced_routes.rb
  38. +232 −0 snippets/electioneering.rb
  39. +35 −0 snippets/electioneering_spec.rb
  40. +19 −0 snippets/halting_and_passing.rb
  41. +3 −0 snippets/hello_world.rb
  42. +19 −0 snippets/other_stuff.rb
  43. +20 −0 snippets/routes.rb
  44. +25 −0 snippets/sessions.rb
  45. +23 −0 snippets/slideshow.rb
  46. +22 −0 snippets/spec_helper.rb
  47. +22 −0 snippets/templates.rb
BIN .DS_Store
Binary file not shown.
@@ -0,0 +1,2 @@
+---
+BUNDLE_DISABLE_SHARED_GEMS: "1"
@@ -0,0 +1,6 @@
+source :rubygems
+
+gem 'sinatra'
+gem 'haml'
+gem 'spox-ultraviolet'
+
@@ -0,0 +1,22 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ haml (3.0.25)
+ rack (1.2.2)
+ sinatra (1.2.1)
+ rack (~> 1.1)
+ tilt (>= 1.2.2, < 2.0)
+ spox-plist (3.0.1)
+ spox-textpow (0.10.3)
+ spox-plist
+ spox-ultraviolet (0.10.5)
+ spox-textpow
+ tilt (1.2.2)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ haml
+ sinatra
+ spox-ultraviolet
@@ -0,0 +1,2 @@
+require './slideshow'
+run Sinatra::Application
@@ -0,0 +1,40 @@
+notes:
+
+philosophy is start simple
+
+rails generates 72 files, it's now up to over 90 kloc
+
+not MVC. you can do whatever you want.
+
+CGI programming
+
+abstractions you don't need breed complexity
+
+minimalism breeds simplicity
+
+if rails is painting by numbers, sinatra is starting with a blank slate with some great brushes (with CSS and javasciript to do the colouring and the animation, the way it should be).
+
+no generation
+
+content_type
+
+declarative
+
+json vs xml
+
+rails:
+responds_to
+
+sinatra:
+
+get '/users.xml'
+ content_type :xml
+ @user.to_xml
+
+regexes. you can write regexes as routes and then use matches to assemble your parameters
+
+
+use sinatra.
+
+even better write your own.
+
@@ -0,0 +1,114 @@
+pre.active4d .DiffHeader {
+ background-color: #656565;
+ color: #FFFFFF;
+}
+pre.active4d .Operator {
+}
+pre.active4d .InheritedClass {
+}
+pre.active4d .TypeName {
+ color: #21439C;
+}
+pre.active4d .Number {
+ color: #A8017E;
+}
+pre.active4d .EmbeddedSource {
+ background-color: #ECF1FF;
+}
+pre.active4d {
+ background-color: #FFFFFF;
+ color: #000000;
+}
+pre.active4d .DiffInsertedLine {
+ background-color: #98FF9A;
+ color: #000000;
+}
+pre.active4d .LibraryVariable {
+ color: #A535AE;
+}
+pre.active4d .Storage {
+ color: #FF5600;
+}
+pre.active4d .InterpolatedEntity {
+ font-weight: bold;
+ color: #66CCFF;
+}
+pre.active4d .line-numbers {
+ background-color: #BAD6FD;
+ color: #000000;
+}
+pre.active4d .LocalVariable {
+ font-weight: bold;
+ color: #6392FF;
+}
+pre.active4d .DiffLineRange {
+ background-color: #1B63FF;
+ color: #FFFFFF;
+}
+pre.active4d .BlockComment {
+ color: #D33435;
+}
+pre.active4d .TagName {
+ color: #016CFF;
+}
+pre.active4d .FunctionArgument {
+}
+pre.active4d .BuiltInConstant {
+ color: #A535AE;
+}
+pre.active4d .LineComment {
+ color: #D33535;
+}
+pre.active4d .DiffDeletedLine {
+ background-color: #FF7880;
+ color: #000000;
+}
+pre.active4d .NamedConstant {
+ color: #B7734C;
+}
+pre.active4d .CommandMethod {
+ font-weight: bold;
+ color: #45AE34;
+}
+pre.active4d .TableField {
+ color: #0BB600;
+}
+pre.active4d .PlainXmlText {
+ color: #000000;
+}
+pre.active4d .Invalid {
+ background-color: #990000;
+ color: #FFFFFF;
+}
+pre.active4d .LibraryClassType {
+ color: #A535AE;
+}
+pre.active4d .TagAttribute {
+ color: #963DFF;
+}
+pre.active4d .Keyword {
+ font-weight: bold;
+ color: #006699;
+}
+pre.active4d .UserDefinedConstant {
+}
+pre.active4d .String {
+ color: #666666;
+}
+pre.active4d .DiffUnchangedLine {
+ color: #5E5E5E;
+}
+pre.active4d .TagContainer {
+ color: #7A7A7A;
+}
+pre.active4d .FunctionName {
+ color: #21439C;
+}
+pre.active4d .Variable {
+ font-weight: bold;
+ color: #0053FF;
+}
+pre.active4d .DateTimeLiteral {
+ font-weight: bold;
+ color: #66CCFF;
+}
@@ -0,0 +1,72 @@
+pre.all_hallows_eve .ClassInheritance {
+ font-style: italic;
+}
+pre.all_hallows_eve .Constant {
+ color: #3387CC;
+}
+pre.all_hallows_eve .TypeName {
+ text-decoration: underline;
+}
+pre.all_hallows_eve .TextBase {
+ background-color: #434242;
+ color: #FFFFFF;
+}
+pre.all_hallows_eve {
+ background-color: #000000;
+ color: #FFFFFF;
+}
+pre.all_hallows_eve .StringEscapesExecuted {
+ color: #555555;
+}
+pre.all_hallows_eve .line-numbers {
+ background-color: #73597E;
+ color: #FFFFFF;
+}
+pre.all_hallows_eve .StringExecuted {
+ background-color: #CCCC33;
+ color: #000000;
+}
+pre.all_hallows_eve .BlockComment {
+ background-color: #9B9B9B;
+ color: #FFFFFF;
+}
+pre.all_hallows_eve .TagName {
+ text-decoration: underline;
+}
+pre.all_hallows_eve .PreProcessorLine {
+ color: #D0D0FF;
+}
+pre.all_hallows_eve .SupportFunction {
+ color: #C83730;
+}
+pre.all_hallows_eve .FunctionArgument {
+ font-style: italic;
+}
+pre.all_hallows_eve .PreProcessorDirective {
+}
+pre.all_hallows_eve .StringEscapes {
+ color: #AAAAAA;
+}
+pre.all_hallows_eve .SourceBase {
+ background-color: #000000;
+ color: #FFFFFF;
+}
+pre.all_hallows_eve .TagAttribute {
+}
+pre.all_hallows_eve .StringLiteral {
+ color: #CCCC33;
+}
+pre.all_hallows_eve .String {
+ color: #66CC33;
+}
+pre.all_hallows_eve .Keyword {
+ color: #CC7833;
+}
+pre.all_hallows_eve .RegularExpression {
+ color: #CCCC33;
+}
+pre.all_hallows_eve .FunctionName {
+}
+pre.all_hallows_eve .Comment {
+ color: #9933CC;
+}
Oops, something went wrong.

0 comments on commit e597834

Please sign in to comment.