This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class RegisterMail < ActionMailer::Base | |
def send_mail(client_email, username) | |
subject "Someone have signed up." | |
recipients "#{client_email}" | |
from '[email protected]' | |
charset "utf-8" | |
content_type 'text/html' | |
body "#{username}" + "have been signed up." | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
moved to http://github.com/cv/git-utils :) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" | |
"http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<title>YUI Base Page</title> | |
<link rel="stylesheet" href="http://yui.yahooapis.com/2.5.1/build/reset-fonts-grids/reset-fonts-grids.css" type="text/css"> | |
<style type="text/css" media="screen" > | |
* { padding:0; margin: 0; font-family: helvetica;} | |
body { background: margin:1em; padding:0; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[cv@bacon ~]$ curl -i http://localhost:3000/passport_applications/new.xml | |
HTTP/1.1 200 OK | |
Connection: close | |
Date: Thu, 31 Jul 2008 01:52:51 GMT | |
Set-Cookie: _webdocs_session=BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo%0ASGFzaHsABjoKQHVzZWR7AA%3D%3D--859666d5b96dd9ae67722dc0c8f410d3b6b365b6; path=/ | |
Status: 200 OK | |
X-Runtime: 0.00808 | |
ETag: "5f8af8da6299af5a000c21dc2a796e46" | |
Cache-Control: private, max-age=0, must-revalidate | |
Server: Mongrel 1.1.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# GET /passport_applications/new | |
# GET /passport_applications/new.xml | |
def new | |
@passport_application = PassportApplication.new | |
respond_to do |format| | |
format.html # new.html.erb | |
format.xml { render :xml => @passport_application } | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<passport-application> | |
<uuid>09711c30-40d5-012b-3f7b-001ec212da96</uuid> | |
<full-name nil="true"></full-name> | |
<address nil="true"></address> | |
<...> | |
</passport-application> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.bz2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Member.find(:first, :select => 'sum(performances.overall_positive_rating) as opr', :joins => :performances, :order => 'opr DESC').opr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
def update_git | |
puts `git fetch` if Dir['.git'].any? | |
end | |
def update_svn | |
puts `svn up` if Dir['.svn'].any? | |
end | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WHAT THE FUCK!? | |
>> puts x | |
<?xml version="1.0" encoding="UTF-8"?> | |
<video> | |
<id>728800</id> | |
<created-at>Fri Dec 12 14:05:58 +0100 2008</created-at> | |
<updated-at>Fri Dec 12 14:05:58 +0100 2008</updated-at> | |
<title>288</title> | |
<specs> |
OlderNewer