Skip to content

Instantly share code, notes, and snippets.

And I press "Save" # features/step_definitions/web_steps.rb:52
Expected(200) <=> Actual(403 Forbidden)
request => {:ssl_verify_peer=>true, :connect_timeout=>60, :scheme=>"https", :instrumentor_name=>"excon", :port=>"443", :write_timeout=>60, :ssl_ca_file=>"/Users/aadid/.rbenv/versions/ree-1.8.7-2010.02/lib/ruby/gems/1.8/gems/excon-0.13.4/data/cacert.pem", :mock=>false, :host=>"peer-development.s3.amazonaws.com", :retry_limit=>4, :query=>nil, :path=>"/reward_logos%2Flogos%2F98%2Foriginal%2Freward-64.png", :headers=>{"Authorization"=>"AWS S3_ACCESS_KEY_HERE:oAxZyFtVhguSpadu6ZMZXWcEhEE=", "x-amz-acl"=>"public-read", "Date"=>"Fri, 07 Sep 2012 18:18:21 +0000", "Content-Type"=>"image/png", "Content-Length"=>2268, "Host"=>"peer-development.s3.amazonaws.com:443"}, :method=>"PUT", :read_timeout=>60, :idempotent=>true, :expects=>200, :body=>#<File:/Users/aadid/Workspaces/efficiency20/peer/public/uploads/tmp/20120907-1118-29366-0915/rewar
@cilquirm
cilquirm / Join a Sharing Session.scpt
Created August 2, 2012 21:19
a simple applescript for quicksilver to join a sharing session
using terms from application "Quicksilver"
on process text joinCode
tell application "join.me" to activate
tell application "System Events"
tell process "join.me"
set visible to true
keystroke joinCode
click button 7 of window 1
end tell
end tell
import 'nature_nodes.pp'
node 'vagrant-default' inherits basenode {
$servergroup="test"
npgfacts::npgfact { "servergroup": val => $servergroup }
}
node 'vagrant-db' inherits basenode {
$servergroup="test"
npgfacts::npgfact { "servergroup": val => $servergroup }
@cilquirm
cilquirm / aim2gtalkonichat.scpt
Created June 1, 2011 14:29
Add Aim Contacts to Google Talk on iChat
tell application "iChat"
activate
repeat until status is available
delay 0.5
end repeat
set gtalk_service to first service whose service type is Jabber and name contains "gmail.com"
set aim_service to first service where service type is AIM
repeat until status of gtalk_service is available
delay 0.5
end repeat
#!/usr/bin/env groovy
import groovy.util.*;
def webXml = new XmlSlurper().parse( arg[0] as File )
def grabElements = { name, map, it ->
has :n, :friendships
has :n, :friends, :through => :friendships
has :n, :college_friendships, :class_name => 'Friendship', :met_in => :college
has :n, :college_friends, :class_name => 'Friend', :through => :college_friendships
$('div.group-type li.blinded').live('click',function() {
$(this).parents('div.group-type').find('li:gt(3)').slideDown().filter('li.more').toggleClass('blinded').toggleClass('unblinded')
return false;
})
$('div.group-type li.unblinded').live('click', function() {
$(this).parents('div.group-type').find('li:gt(3)').not('li.more').slideUp().end().filter('li.more').toggleClass('blinded').toggleClass('unblinded')
return false;
})
@cilquirm
cilquirm / x
Created January 21, 2009 20:02
CmdUtils.CreateCommand({
name: "delicious",
homepage: "http://ryan.codecrate.com/",
author: { name: "Ryan Sonnek", email: "[email protected]"},
contributors: ["Ryan Sonnek"],
license: "MIT",
description: "Tags the current site using delicious",
icon: "http://delicious.com/favicon.ico",
help: "Save the current url to delicious with the tags input by the user. Any selected text on the page will be recorded as the note.",
NoMethodError: undefined method `delete_constraint' for nil:NilClass
from /Users/aadid/Projects/website/gems/gems/dm-constraints-0.9.10/lib/dm-constraints/data_objects_adapter.rb:18:in `create_constraints_statements'
from /Users/aadid/Projects/website/gems/gems/dm-constraints-0.9.10/lib/dm-constraints/data_objects_adapter.rb:6:in `map'
from /Users/aadid/Projects/website/gems/gems/dm-constraints-0.9.10/lib/dm-constraints/data_objects_adapter.rb:6:in `create_constraints_statements'
from /Users/aadid/Projects/website/gems/gems/dm-constraints-0.9.10/lib/dm-constraints/data_objects_adapter.rb:96:in `auto_migrate_constraints_up'
from /Users/aadid/Projects/website/gems/gems/dm-constraints-0.9.10/lib/dm-constraints/data_objects_adapter.rb:93:in `each'
from /Users/aadid/Projects/website/gems/gems/dm-constraints-0.9.10/lib/dm-constraints/data_objects_adapter.rb:93:in `auto_migrate_constraints_up'
from /Users/aadid/Projects/website/gems/gems/extlib-0.9.10/lib/extlib/hook.rb:249:in `execute_after_auto_migrate_up_n
require 'cgi'
class Topic
include DataMapper::Resource
Source = Enum[:web,:mobile,:partner,:migrated,:admin,:testing]
property :id, Integer, :serial => true
property :subject, String, :nullable => false, :length => 200
property :coded_subject, String, :length => 200