Skip to content

Instantly share code, notes, and snippets.

View raulsouzalima's full-sized avatar
🤘

Raul Souza Lima raulsouzalima

🤘
View GitHub Profile
$("div#invite_friends a.invite_friend").bind("click", function(event){
event.preventDefault();
$.post('/postar-convite', { friend_uid: $(this).attr("rel")})
.success(function() {
alert($(this));
})
.error(function() { alert("error"); })
});
== CreateLandingPages: migrating =============================================
-- create_table(:landing_pages)
rake aborted!
An error has occurred, all later migrations canceled:
Mysql2::Error: Table 'landing_pages' already exists: CREATE TABLE `landing_pages` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `page_image` varchar(255), `page_title` varchar(255), `page_url` varchar(255), `button_image` varchar(255), `button_url` varchar(255), `button_alt` varchar(255), `enabled` tinyint(1), `show_header` tinyint(1), `show_footer` tinyint(1), `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
(See full trace by running task with --trace)
nmap -sV -p 41935 192.168.1.103
function find_git_branch {
local dir=. head
until [ "$dir" -ef / ]; do
if [ -f "$dir/.git/HEAD" ]; then
head=$(< "$dir/.git/HEAD")
if [[ $head == ref:\ refs/heads/* ]]; then
git_branch=" (${head#*/*/})"
elif [[ $head != '' ]]; then
git_branch=' (detached)'
else
#
# bash completion support for core Git.
#
# Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]>
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/).
# Distributed under the GNU General Public License, version 2.0.
#
# The contained completion routines provide support for completing:
#
# *) local and remote branch names
Vende-se Mac Mini, 10 meses de uso e sem nenhum problema. Foi comprado na própria apple store e acompanha todos os cds de instalação.
Especificações
- Processador Intel Core 2 Duo de 2.26 Ghz; 3MB de cache L2
- 2GB de DDR3 SDRAM 1066MHz
- Disco rígido Serial ATA de 160GB
- Unidade Superdrive 8x de carregamento por ranhura(DVD+-R DL/DVD+-RW/CD-RW)
- Processador gráfico NVIDIA GeForce 9400M com 256MB de DDR3 SDRAM
- Porta de saída Mini DisplayPort e mini-DVI (Adaptador mini-DVI para DVI incluso)
- Uma porta FireWire 800; cinco portas USB 2.0 de alta velocidade (+2 no teclado)
By Klaus Wuestefeld
1) Torne-se excelente.
Seja realmente bom em alguma coisa. Não fique só choramingando ou
querendo progredir às custas dos outros. Não pense q pq vc sentou 4
anos numa faculdade ouvindo um professor falar sobre software q vc
sabe alguma coisa. Jogador de futebol não aprende a jogar bola tendo
aula. Ele pratica. Instrumentistas geniais nao aprendem a tocar tendo
aula. Eles praticam. Pratique. Chegue em casa depois do trabalho e da
[raulsouzalima@~]$ sudo gem instal curb
Password:
Building native extensions. This could take a while...
ERROR: Error installing curb:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
"-arch i386 -arch x86_64 -g -Os -pipe -fno-common -DENABLE_DTRACE -fno-common -pipe -fno-common $(cflags)"
checking for curl-config... yes
checking for curlinfo_redirect_time... no
require 'smtp_tls'
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.default_content_type = "text/html"
ActionMailer::Base.smtp_settings = {
:address => "smtp.gmail.com",
:port => 587,
:authentication => :plain,
:user_name => "[email protected]", #Você pode usar o Google Apps!
:password => 'suasenha'
}
require "openssl"
require "net/smtp"
Net::SMTP.class_eval do
private
def do_start(helodomain, user, secret, authtype)
raise IOError, 'SMTP session already started' if @started
#check_auth_args user, secret, authtype if user or secret
no_args = method(:check_auth_args).arity