Skip to content

Instantly share code, notes, and snippets.

View lezi's full-sized avatar
:octocat:

Osvaldo Júnior "mwanalezi" lezi

:octocat:
View GitHub Profile
@lezi
lezi / css_positioning_index.html
Created August 15, 2010 22:34
DIcas de posicionamento em CSS
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Posicionamento com CSS</title>
<link rel="stylesheet" type="text/css" href="styles.css" />
</head>
@lezi
lezi / gist:556867
Created August 30, 2010 00:50 — forked from cmilfont/gist:556585
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
@lezi
lezi / feature
Created September 18, 2010 18:36 — forked from radar/feature
Given there are movies:
| title | year |
| Sunshine | 2007 |
class String
def camelize
self.split(/[^a-z0-9]/i).map{|w| w.capitalize}.join
end
end
rake features FEATURE=features/[seu arquivo].feature:10
# mongo_template.rb
# remove unneeded defaults
run "rm public/index.html"
run "rm public/images/rails.png"
run "rm public/javascripts/controls.js"
run "rm public/javascripts/dragdrop.js"
run "rm public/javascripts/effects.js"
run "rm public/javascripts/prototype.js"
pt:
errors:
messages:
not_found: "não encontrado"
already_confirmed: "já foi confirmado"
not_locked: "não foi bloequeado"
devise:
failure:
unauthenticated: 'Para continuar, deve fazer login ou registrar-se.'
@lezi
lezi / isPrime.rb
Last active September 26, 2015 00:38
detect is a number is prime
#verify is a number is prime
def is_prime(n)
("1" * n) !~/^1?$|^(11+?)\1+$/
end
@lezi
lezi / Gemfile
Created June 16, 2011 13:12 — forked from wesgarrison/Gemfile
gem 'ruby_parser'
gem 'hpricot'
gem 'haml'
@lezi
lezi / jdk.bat
Created November 13, 2011 20:39 — forked from thesurlydev/jdk.bat
@echo off
echo Installing JDK...
start /w C:\temp\jdk-1_5_0_12-windows-i586-p.exe /s /v"/qn INSTALLDIR=d:\bin\Java\jdk1.5.0_12 REBOOT=Suppress"