Skip to content

Instantly share code, notes, and snippets.

Saulo Arruda sauloarruda

Block or report user

Report or block sauloarruda

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View profile.sql
select
a.id as course_application_id, a.student_id, s.person_id, u.id user_id, u.email, p.name, pi.`nickname`, p.phone, a.status,
pi.birthdate_on, pi.gender, pi.has_disabilities, pi.`disabilities_description`, ad.`zip_code`, ad.neighborhood, ad.city, ad.state,
ps.linkedin_url, ps.facebook_url, c.`portfolio_url`,
c.years_of_experience, c.is_employed,
c.expected_pay, c.last_pay, pi.`family_income`,
c.experience_expectations, c.`experience_expectations_other`,
c.`entrepreneurship`, fd.`process_score`, fd.`system_score`, fd.`observations`,
fs.reached_xp_through, fs.`reached_xp_through_other`, fs.`reached_xp_through_alumni`,
(select count(id) from rp_higher_education where student_id = s.id and kind="graduation" and status="completed") as qt_graduation_completed,
View index.html
<html lang="pt-br">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no"/>
<title>Cemitério de Startups</title>
<!-- CSS -->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
@sauloarruda
sauloarruda / AppProject.rb
Created May 6, 2015
Como seria nosso processo em código Ruby?
View AppProject.rb
class AppProject
def initialize(sales_project)
@sales_project = sales_project
end
def start
do_kickoff
do_sprint0
@sales_project.sprints.each do |sprint|
@sauloarruda
sauloarruda / receipt
Created Apr 30, 2012
Apple iOS in app purchase validate receipt in Ruby
View receipt
ewoJInNpZ25hdHVyZSIgPSAiQXBNVUJDODZBbHpOaWtWNVl0clpBTWlKUWJLOEVk
ZVhrNjNrV0JBWHpsQzhkWEd1anE0N1puSVlLb0ZFMW9OL0ZTOGNYbEZmcDlZWHQ5
aU1CZEwyNTBsUlJtaU5HYnloaXRyeVlWQVFvcmkzMlc5YVIwVDhML2FZVkJkZlcr
T3kvUXlQWkVtb05LeGhudDJXTlNVRG9VaFo4Wis0cFA3MHBlNWtVUWxiZElWaEFB
QURWekNDQTFNd2dnSTdvQU1DQVFJQ0NHVVVrVTNaV0FTMU1BMEdDU3FHU0liM0RR
RUJCUVVBTUg4eEN6QUpCZ05WQkFZVEFsVlRNUk13RVFZRFZRUUtEQXBCY0hCc1pT
QkpibU11TVNZd0pBWURWUVFMREIxQmNIQnNaU0JEWlhKMGFXWnBZMkYwYVc5dUlF
RjFkR2h2Y21sMGVURXpNREVHQTFVRUF3d3FRWEJ3YkdVZ2FWUjFibVZ6SUZOMGIz
SmxJRU5sY25ScFptbGpZWFJwYjI0Z1FYVjBhRzl5YVhSNU1CNFhEVEE1TURZeE5U
SXlNRFUxTmxvWERURTBNRFl4TkRJeU1EVTFObG93WkRFak1DRUdBMVVFQXd3YVVI
@sauloarruda
sauloarruda / README.md
Created Apr 17, 2012
Criando novos usuários para acesso ao servidor
View README.md

Criando novos usuários para acesso ao servidor

TL;DR Como criar usuário no servidor e como um cliente deve acessar esses servidores via ssh.

Essas instruções são aplicáveis para o seguinte ambiente:

  • Sistema Operacional: Ubuntu Server 12.04 beta2
  • Servidor: AWS EC2 usando ESB AMI: ubuntu/images-milestone/ebs/ubuntu-precise-12.04-beta2-amd64-server-20120328 (ami-b5ea34dc)

Porém, você pode usar as instruções e adaptá-las conforme sua necessidade para outras versões do ubuntu ou para outras distrbuições.

@sauloarruda
sauloarruda / 1. README.md
Created Apr 17, 2012
Configurando aplicação Rails com Nginx e Unicorn
View 1. README.md

Configurando aplicação Rails com Nginx e Unicorn

TL;DR Como configurar uma aplicação Rails usando Nginx + Unicorn + Upstart + RVM (gemset por aplicação).

Dependências: (TODO) Configuração de Servidor Nginx

Essas instruções são aplicáveis para o seguinte ambiente:

  • Sistema Operacional: Ubuntu Server 12.04 beta2
  • Servidor: AWS EC2 usando ESB AMI: ubuntu/images-milestone/ebs/ubuntu-precise-12.04-beta2-amd64-server-20120328 (ami-b5ea34dc)
@sauloarruda
sauloarruda / gist:964499
Created May 10, 2011
Modelagem de ontem
View gist:964499
class Participant < ActiveRecord::Base
has_many :points, :class => 'ParticipantPoints'
end
class ParticipantPoints < ActiveRecord::Base
attr_accessor :credit_debit
after_initialize :set_amount
after_create :update_current_points
View modelagem.php
<?
class Produto {
}
class PesquisaProdutos extends AppModel {
/**
* Busca os produtos conforme os parâmetros do filtro
* @return array de Produto
View ddd-dojo.java
class Funcionario {
private boolean logado = false;
public boolean isLogado() {
return this.logado;
}
public JornadaTrabalho getJornadaTrabalho() {
return // busca a jornada do banco de dados ou memória...
}
}
You can’t perform that action at this time.