Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am bscofield on github.
  • I am bscofield (https://keybase.io/bscofield) on keybase.
  • I have a public key whose fingerprint is 4E8C C388 3EF7 FB5D AD8B CE4D A1FD C09A 8315 0B70

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am bscofield on github.
  • I am bscofield (https://keybase.io/bscofield) on keybase.
  • I have a public key whose fingerprint is E1A8 D273 57A4 0AC6 CFE9 F368 4B21 6817 DF8F C27A

To claim this, I am signing this object:

<% form_tag book_path(book), :method => :delete do %>
<%= content_tag :button, 'Delete', :type => 'submit' %>
<% end %>
makeSearchCommand({
name: "Flickr-CC",
url: "http://www.flickr.com/search/?q={QUERY}&w=all&l=cc&ss=0&ct=0",
icon: "http://www.flickr.com/favicon.ico",
description: "Searches <a href=\"http://www.flickr.com\">Flickr</a> for Creative Commons-licensed pictures matching your words.",
preview : function(previewBlock, inputObject){
var inputText = inputObject.text;
if(inputText.length < 1) {
previewBlock.innerHTML = "Searches for photos on Flickr.";
set :application, "forever_home"
set :repository, "git@github.com:railsrumble/leaf-on-the-wind.git"
# If you aren't deploying to /u/apps/#{application} on the target
# servers (which is the default), you can specify the actual location
# via the :deploy_to variable:
set :deploy_to, "/var/www/#{application}"
# If you aren't using Subversion to manage your source code, specify
# your SCM below:
code:
$('a').click(function() {
$.ajax({dataType: 'script', type: 'get', url: 'bucket/new'});
return false;
});
results from IE7
Processing ApplicationController#index (for 192.168.0.199 at 2009-01-07 08:06:54) [POST]
Parameters: {"_"=>"1231333515818"}
ActionController::MethodNotAllowed (Only get requests are allowed.):
- (void)viewDidLoad {
self.list = [self.data JSONValue];
[self.images removeAllObjects];
self.images = [NSMutableDictionary dictionaryWithCapacity:[self.list count]];
for (id rawItem in self.list) {
NSDictionary *item = (NSDictionary *)rawItem;
@try {
[self.images setObject:[UIImage imageWithData: [NSData dataWithContentsOfURL: [NSURL URLWithString: [item objectForKey:@"image_url"]]]] forKey:[item objectForKey:@"image_url"]];
RailsConf BoF: Teaching Rails
The Rails community has a plethora of experienced, talented developers, who have contributed a great deal of advanced work to the ecosystem. As a group, however, we've lacked a consistent and welcoming approach for newcomers, be they programming newbies or people experienced in another technology.
In this BoF, we'll get together and think about ways to improve that — we'd love to hear insights from educators using Rails in the classroom, authors, bloggers, forum and mailing list contributors, and anyone else interested in making the learning process easier and friendlier.
module Rack
class Embiggener
def initialize(app)
@app = app
end
def call(env)
status, headers, body = @app.call(env)
headers.delete('Content-Length')
class SimpleRackApp
def call(env)
[

status, # 200
headers, # {"Content-Type" => "text/html"}

body # ["<html>...</html>"]

]

end
end