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 Person | |
attr_accessor :name | |
end | |
class ReceivePerson | |
attr_accessor :person | |
def initialize(person) | |
self.person = person | |
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
Como é o Lucas em sua vida pessoal? | |
Quando alguém precisa da ajuda ou quer que o Lucas faça alguma coisa, ele pensa antes de agir. | |
Veja, ele acredita profundamente na liberdade pessoal e na responsabilidade individual. Lucas | |
acha que é vital que as pessoas aprendam a cuidar de si mesmas para que não se tornem dependentes | |
dos outros. Lucas acredita que as ações têm consequências e que as pessoas precisam aceitar as | |
consequências de suas ações se quiserem aprender com os erros e crescer. Lucas acredita que não | |
estaria fazendo favor a ninguém se tirar alguém de um problema, eles nunca vão aprender a resolver | |
seus problemas se o Lucas continuar a salvá-los. Se continuar dando às pessoas uma segunda, terceira, | |
quarta chance, o Lucas já viu que as pessoas raramente desenvolvem o caráter de que precisam para |
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
cd /tmp | |
wget http://nginx.org/download/nginx-1.3.7.tar.gz | |
tar zxf nginx-1.3.7.tar.gz | |
sudo /usr/bin/passenger-install-nginx-module --nginx-source-dir=/tmp/nginx-1.3.7 --prefix=/opt/nginx --auto --extra-configure-flags=--with-http_stub_status_module |
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
unless Rails.env.production? | |
require "rspec/core/rake_task" | |
namespace :spec do | |
desc "spec presenters" | |
Rspec::Core::RakeTask.new(:presenters) do |t| | |
t.pattern = "./spec/presenters/**/*_spec.rb" | |
end | |
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
//Lucas Renan TP072167 | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <dos.h> | |
float CalculaPeso(float Altura, float Peso) | |
{ | |
float Calcula; | |
Calcula = Peso / (Altura * Altura); |
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 DealersMailer < ActionMailer::Base | |
default from: "[email protected]" | |
def notify_admin(dealer) | |
@dealer = dealer | |
mail :to => "[email protected]", :subject => "novo revendedor cadastrado" | |
end | |
def send_confirmation(dealer) |
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
// server | |
var net = require("net") | |
, server | |
; | |
server = net.createServer(function(socket){ | |
// socket.end("bye\n"); | |
socket.on("connect", function(){ | |
console.log("conectou\n"); |
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
scp ~/.ssh/id_rsa.pub user@server:~/.ssh/authorized_keys |
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
require "benchmark" | |
require "mongoid" | |
require "./lib/perf/models" | |
Mongoid.configure do |config| | |
config.master = Mongo::Connection.new("localhost", 27017).db("embedded_referenced_development") | |
end | |
Mongoid.purge! | |
puts "Creating indexes..." |
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
-- juliana | |
- não comprar bolachas, o povo não come muito, mas bolo em compensação... foi destruído em questão de minutos; | |
- quanto mais quente a época, mais o pessoal consome líquidos; | |
- ainda que sobre pouca coisa, é melhor sobrar do que faltar! | |
- variedade é tudo o que importa, se tiver variedade de coisas a se servir... a galera come, nem que seja de um em um; | |
- não dá pra perder (muito) tempo em busca de patrocínio, senão as coisas ficam corridas demais. Ou dá a DDL na primeira semana, ou faz sem patrocínio mesmo. | |
-- priscila |