Skip to content

Commit

Permalink
Tiny cleanup of sinatra app, and update TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
jschementi committed Jul 2, 2010
1 parent 874674d commit 2f01112
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
3 changes: 0 additions & 3 deletions TODO
@@ -1,13 +1,10 @@
URGENT Resume page (styled, PDF download, and plain-text download)
URGENT Rewrite flickr and blog feeds to not depend on feed2js
URGENT Twitter feed (last thing I said right under my name?) URGENT Twitter feed (last thing I said right under my name?)
URGENT About page URGENT About page
URGENT more thought-through sitemap URGENT more thought-through sitemap
URGENT footer URGENT footer
Sub-navigation Sub-navigation
Project pages Project pages
My "public" appearances / talking events My "public" appearances / talking events
Move to sinatra, but generate the HTML files to disk for deployment
theme for only main page? Should I pick black or white? theme for only main page? Should I pick black or white?
Switch from blogger to a self-hosted blog engine, or make new blogger template Switch from blogger to a self-hosted blog engine, or make new blogger template
Maybe use the "J" navigation from a old 2004-2005 design Maybe use the "J" navigation from a old 2004-2005 design
Expand Down
9 changes: 2 additions & 7 deletions app.rb
Expand Up @@ -6,18 +6,13 @@
require 'json' require 'json'


get '/' do get '/' do
File.open('public/index.html'){|f| f.read} File.open('public/index.html'){ |f| f.read }
end end


get '/blog.rss' do get '/blog.rss' do
content_type 'application/xml', :charset => 'utf-8' content_type 'application/xml', :charset => 'utf-8'
url = URI.parse('http://feeds.feedburner.com/jimmy-thinking') res = Net::HTTP.start("feeds.feedburner.com", 80) { |http|
res = Net::HTTP.start(url.host, url.port) {|http|
http.get('/jimmy-thinking') http.get('/jimmy-thinking')
} }
res.body res.body
end

get '/flickr.rss' do

end end

0 comments on commit 2f01112

Please sign in to comment.