This file contains hidden or 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
# simple capistrano task for wordpress deploy | |
# just replace the content to fit your app path and names | |
# and run cap deploy:setup && cap deploy | |
# you can also run a cap wordpress:upload_config to copy the local config-sample.php to remote shared folder | |
# warning: this recipe don't create the database | |
# APP SETTINGS | |
set :application, "your_app_name" | |
set :domain_name , "yourdomain.com.br" |
This file contains hidden or 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
module PagseguroHelper | |
def pagseguro_form(order) | |
content_tag(:form, :id => "pagseguro", :target => 'pagseguro', :method => 'post', :action => 'https://pagseguro.uol.com.br/security/webpagamentos/webpagto.aspx') do | |
result = "" | |
result << hidden_field_tag(:email_cobranca, '[email protected]') | |
result << hidden_field_tag(:tipo, 'CP') # Chumbado | |
result << hidden_field_tag(:moeda, 'BRL') # Chumbado | |
result << hidden_field_tag(:ref_transacao, order.id) | |
result << hidden_field_tag(:encoding, 'utf-8') | |
result << hidden_field_tag(:tipo_frete, 'SD') # Sedex - pro pagseguro calcular o frete automagicamente |
This file contains hidden or 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
set :application, "myapp" | |
set :keep_releases, 5 | |
# git options | |
set :scm, "git" | |
set :repository, "git://github.com/georgeguimaraes/myapp.git" | |
set :branch, "master" | |
set :deploy_via, :remote_cache | |
# deploy credentials |
This file contains hidden or 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
<html> | |
<head> | |
<title></title> | |
<META NAME="DESCRIPTION" CONTENT=""> | |
<META NAME="KEYWORDS" CONTENT=""> | |
<script type="text/javascript" src="jquery-1.3.2.min.js"></script> | |
<script type="text/javascript"> | |
$(document).ready(function(){ | |
var total1 = 0; |
NewerOlder