Skip to content

Commit

Permalink
minor corrections during class
Browse files Browse the repository at this point in the history
  • Loading branch information
vosechu committed Mar 3, 2013
1 parent 401f439 commit d30eb3f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1 +1,2 @@
.DS_Store
_site
8 changes: 1 addition & 7 deletions week4/corkboard-js/app.rb
@@ -1,6 +1,5 @@
require 'rack'
require 'rack/contrib'
# require 'rack/contrib/try_static'
require 'sinatra'
require 'sinatra/reloader' if development?
require 'sinatra/json'
Expand All @@ -22,9 +21,4 @@

delete '/note/:id/?' do
head :ok
end

# use Rack::TryStatic,
# :root => File.expand_path('../public', __FILE__), # static files root dir
# :urls => %w[/], # match all requests
# :try => ['.html', 'index.html', '/index.html'] # try these postfixes sequentially
end
4 changes: 2 additions & 2 deletions week4/mini-bstshk/bstshk.js
@@ -1,5 +1,5 @@
var links = [];
var numShakes = 1;
var numShakes = 50;

// Display a link when there's an error
function noImg(obj) { $(obj).replaceWith('Imagine a video is here. Or click through to see it.'); }
Expand All @@ -16,7 +16,7 @@ $(document).ready(function(){
include_entities: 1,
count: numShakes
},
success: function () {
success: function (data) {
$.each(data, function(i, item){
var link, image_link, dupe = false;
var entity_url = item.entities.urls[0];
Expand Down

0 comments on commit d30eb3f

Please sign in to comment.