Skip to content

Instantly share code, notes, and snippets.

View pellegrino's full-sized avatar

Vitor Pellegrino pellegrino

View GitHub Profile
<xml>
<midia>
<callback>
/midias PUT
</callback>
<job tipo="ftp" id="1">
/dads
</job>
import java.io.IOException;
import java.lang.reflect.Method;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletResponse;
import br.com.caelum.vraptor.Get;
import br.com.caelum.vraptor.http.MutableRequest;
import br.com.caelum.vraptor.http.TypeCreator;
import br.com.caelum.vraptor.http.route.Router;
<!--
ATENÇÃO: os links estão ordenados alfabeticamente. Siga esta nomenclatura ao adicionar o seu.
-->
<h2>#horaextra</h2>
<ul id="blogroll">
<li><a href="http://tapajos.me/?utm_campaign=horaextra">Marcos Tapajós</a></li>
<li><a href="http://rafael.adm.br/?utm_campaign=horaextra">Rafael Lima</a></li>
<li><a href="http://rafael.tauil.com.br/?utm_campaign=horaextra">Rafael Tauil</a></li>
<li><a href="http://ramonpage.com/?utm_campaign=horaextra">Ramon Bispo</a></li>
<li><a href="http://mergulhao.info/?utm_campaign=horaextra">Sylvestre Mergulhão</a></li>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="en-us" />
<title>Symphony.</title>
<link rel="stylesheet" href="http://yui.yahooapis.com/3.0.0/build/cssreset/reset.css" type="text/css"/>
</head>
git :init
plugin 'rspec',
:git => 'git://github.com/dchelimsky/rspec.git',
:submodule => true
plugin 'rspec-rails',
:git => 'git://github.com/dchelimsky/rspec-rails.git',
:submodule => true
plugin 'exception_notifier',
:git => 'git://github.com/rails/exception_notification.git',
~/code/github/testing/sauronrspecexample ree-1.8.7 $ ./script/sauron
rake aborted!
/Users/vitor/.rvm/gems/ree-1.8.7-2010.02/gems/bellmyer-hydra-0.20.11/lib/hydra/runner.rb:27: syntax error, unexpected tIVAR
...ker_id == 0 ? '' :: @worker_id).to_s
^
/Users/vitor/.rvm/gems/ree-1.8.7-2010.02/gems/bellmyer-hydra-0.20.11/lib/hydra/runner.rb:28: syntax error, unexpected tIVAR
...ker_id == 0 ? '' :: @worker_id + 1).to_s
^
/Users/vitor/code/github/testing/sauronrspecexample/Rakefile:10
(See full trace by running task with --trace)
Rails requires RubyGems >= 1.3.1 (you have 1.0.1). Please `gem update --system` and try again.
10/11/15 23:25:40 javax.servlet.ServletException: Could not load Rails. See the logs for more details.
10/11/15 23:25:40 at org.jruby.webapp.RailsFactory.makeObject(RailsFactory.java:139)
10/11/15 23:25:40 at org.jruby.webapp.util.CustomObjectPool.addObjectInternal(CustomObjectPool.java:111)
10/11/15 23:25:40 at org.jruby.webapp.util.CustomObjectPool.access$200(CustomObjectPool.java:15)
10/11/15 23:25:40 at org.jruby.webapp.util.CustomObjectPool$PoolSizeManager.run(CustomObjectPool.java:193)
~/code/petrobras/bookstore jruby-1.3.0 $ gem list
*** LOCAL GEMS ***
actionmailer (2.2.2)
actionpack (2.2.2)
activerecord (2.2.2)
activerecord-jdbc-adapter (0.9.2)
activeresource (2.2.2)
activesupport (2.2.2)
<!DOCTYPE html>
<html>
<head>
<title>Exemplo tabela</title>
<style>
#container {
margin: 0 auto;
width: 800px;
background-color: #e1e1e1;
@pellegrino
pellegrino / unit cancan devise template
Created April 13, 2011 22:04
aplication template for test/unit cancan devise
# create rvmrc file
create_file ".rvmrc", "rvm gemset use #{app_name} --create"
gem "haml-rails"
gem "sass"
# hpricot and ruby_parser required by haml
gem "hpricot", :group => :development
gem "ruby_parser", :group => :development
gem "nifty-generators"
gem "simple_form"