Permalink
Browse files

libs

  • Loading branch information...
lancejpollard committed Aug 30, 2010
1 parent d530f9b commit 05cddb8464ad6368ae7c088af2c7f8879de7cdc7
Showing with 45 additions and 9 deletions.
  1. +5 −8 _source/app.rb
  2. +2 −1 _source/run.rb
  3. +28 −0 index.html
  4. +10 −0 readme.html
View
@@ -3,10 +3,10 @@
require 'broadway'
require 'haml'
-SITE = Broadway.build(:source => "posts", :settings => "_config.yml")
+SITE = Broadway.build(:source => "_source/posts", :settings => "_source/_config.yml")
-set :public, "public"
-set :views, "views"
+set :public, "_source/public"
+set :views, "_source/views"
CACHE_ROOT = "http://cachedcommons.org"
@@ -28,19 +28,16 @@
get "/readme" do
haml :readme, :locals => {:cache_root => CACHE_ROOT,
- :content => IO.read("../README.markdown")}
+ :content => IO.read("README.markdown")}
end
get "/load-me" do
"alert('javascript loaded')"
end
-get "/test" do
- IO.read("test.html")
-end
get "/*" do
if File.extname(params["splat"].join("/")).to_s.downcase =~ /\.js/
- file = "../#{params["splat"].join("/")}".squeeze("/")
+ file = "#{params["splat"].join("/")}".squeeze("/")
if File.exists?(file)
content_type "text/javascript"
result = IO.read(file)
View
@@ -2,7 +2,7 @@
require 'open-uri'
require 'broadway'
-site = Broadway.build(:source => "posts", :settings => "_config.yml", :destination => "..")
+site = Broadway.build(:source => "_source/posts", :settings => "_source/_config.yml", :destination => ".")
def error?(response, path, whiny = true)
if !response.is_a?(Net::HTTPSuccess)
@@ -25,6 +25,7 @@ def error?(response, path, whiny = true)
next if error?(response, path, false)
#FileUtils.mkdir_p(write_to)
name = "#{write_to}.html"# File.join(write_to, "index.html")
+ puts "NAME #{name}"
File.open(name, "w") { |f| f.write(response.body) }
end
end
View
@@ -194,6 +194,14 @@ <h3>JQuery and Plugins</h3>
<li><a href="http://jdsharp.us/jQuery/plugins/AutoScroll/">Home</a></li>
<li><a href="http://jdsharp.us/jQuery/plugins/AutoScroll/demo.php">Demos</a></li>
</ul></li>
+ <li><a href="/javascripts/jquery/jquery.disqus.js" title="comments, disqus">JQuery Disqus</a>
+ <ul>
+ <li><a href="http://viatropos.com/blog/jquery-disqus-plugin">Home</a></li>
+ </ul></li>
+ <li><a href="/javascripts/jquery/jquery.picasa.js" title="picasa, images">JQuery Picasa</a>
+ <ul>
+ <li><a href="http://viatropos.com/blog/picasa-jquery-plugin">Home</a></li>
+ </ul></li>
<li><a href="/javascripts/jquery/jquery.blockUI-2.33.js" title="modal, popup, ui, alert">JQuery BlockUI</a>
<ul>
<li><a href="http://jquery.malsup.com/block/">Home</a></li>
@@ -527,6 +535,22 @@ <h3>JQuery and Plugins</h3>
<li><a href="http://plugins.jquery.com/project/metadata">Home</a></li>
<li><a href="http://github.com/jquery/jquery-metadata">Repository</a></li>
</ul></li>
+ <li><a href="/javascripts/jquery/jquery.dropshadow.js">jQuery DropShadow</a></li>
+ <li><a href="/javascripts/jquery/jquery.lazyload-1.5.js">jQuery LazyLoad</a>
+ <ul>
+ <li><a href="http://www.appelsiini.net/projects/lazyload">Home</a></li>
+ <li><a href="http://www.appelsiini.net/projects/lazyload/enabled.html">Demos</a></li>
+ </ul></li>
+ <li><a href="/javascripts/jquery/jquery.localscroll-1.2.7.js">jQuery LocalScroll</a>
+ <ul>
+ <li><a href="http://jquery.com/plugins/project/LocalScroll">Home</a></li>
+ <li><a href="http://demos.flesler.com/jquery/localScroll/">Demos</a></li>
+ </ul></li>
+ <li><a href="/javascripts/jquery/jquery.rightclick.js">jQuery RightClick</a>
+ <ul>
+ <li><a href="http://abeautifulsite.net/blog/2008/05/jquery-right-click-plugin/">Home</a></li>
+ <li><a href="http://labs.abeautifulsite.net/projects/js/jquery/rightClick/demo/">Demos</a></li>
+ </ul></li>
</ul>
</div>
</article>
@@ -711,6 +735,10 @@ <h3>Text, Text Editors, and Markup</h3>
<li><a href="http://www.undermyhat.org/blog/2009/09/list-of-brushes-syntaxhighligher/">Docs</a></li>
<li><a href="http://code.google.com/p/syntaxhighlighter/">Repository</a></li>
</ul></li>
+ <li><a href="/">MarkItUp</a>
+ <ul>
+ <li><a href="http://markitup.jaysalvat.com/home/">Home</a></li>
+ </ul></li>
</ul>
</div>
</article>
View
@@ -179,6 +179,12 @@ <h2 id='interesting_things'>Interesting things</h2>
<li><a href='http://jsbeautifier.org/'>JSBeautifier</a></li>
<li><a href='http://github.com/nje/jquery-glob'>jQuery Globalization</a></li>
+
+ <li><a href='http://www.sencha.com/'>Sencha</a></li>
+
+ <li>http://www.w3avenue.com/2010/07/26/jqueryrotate-cross-browser-image-rotation/</li>
+
+ <li>http://github.com/technoweenie/jquery.doubletap</li>
</ul>
<h2 id='tests'>Tests</h2>
@@ -191,6 +197,10 @@ <h2 id='todo'>Todo</h2>
<li>Add image and description to each one</li>
<li>http://www.distilled.co.uk/blog/conversion-rate-optimisation/using-jquery-and-google-analytics-events-to-track-form-abandonment/</li>
+
+ <li>blueprint, 960 and css frameworks</li>
+
+ <li>jquery ui</li>
</ul>
</article>
</div>

0 comments on commit 05cddb8

Please sign in to comment.