Skip to content

Instantly share code, notes, and snippets.

View cleitonfco's full-sized avatar

Cleiton Francisco cleitonfco

View GitHub Profile
@cleitonfco
cleitonfco / dabblet.css
Created April 14, 2012 00:26
Background Image Options (Size)
/**
* Background Image Options (Size)
*/
body {
background: #fff;
}
h2, h3 {
display:inline-block;
margin:0 20px;
width: 200px;
@cleitonfco
cleitonfco / dabblet.css
Created April 13, 2012 23:27
Circles (Box Shadow)
/**
* Circles (Box Shadow)
*/
body {
font:18px/1.3 "Helvetica Neue", sans-serif;
}
p {
clear:both;
margin: 50px 0;
@cleitonfco
cleitonfco / dabblet.css
Created April 13, 2012 23:01
Box-Shadow
/**
* Box-Shadow
*/
div {
display:inline-block;
padding:40px;
font:20px "Helvetica Neue", sans-serif;
margin:20px;
background-color:#39c;
@cleitonfco
cleitonfco / dabblet.css
Created April 13, 2012 22:11
Color Fallback (RGBa)
/**
* Color Fallback (RGBa)
*/
div {
width:32px;
padding:40px;
font:20px "Helvetica Neue", sans-serif;
margin:0 20px;
}
@cleitonfco
cleitonfco / dabblet.css
Created April 13, 2012 13:48
Button CSS
/**
* Button CSS
*/
.user-register input[type="submit"] {
border: none;
color: #FFFFFF;
font-size: 15px;
height: 35px;
margin: 0 0 20px;
@cleitonfco
cleitonfco / dabblet.css
Created April 13, 2012 09:07
Border-radius (curso HTML5 e CSS3)
/**
* Border-radius (curso HTML5 e CSS3)
*/
p {
font-family:Helvetica Neue, sans-serif;
font-size:30px;
padding:30px;
background-color:#905;
color:#fff;
width:90px;
# routes.rb
match "/admin/by_mark/:id" => "admin/models#by_mark", :as => "by_mark"
# view
<script>
$(function(){
$("#mark").change(function(){
load_model($(this).val());
@cleitonfco
cleitonfco / change_pass
Created November 26, 2010 18:44
Scripts usados para criar um subdomínio com usuário novo no Linux
#!/usr/bin/expect -f
# Password change shell script, tested on Linux and FreeBSD
# ----------------------------------
# Copyright (c) 2006 nixCraft project
# This script is licensed under GNU GPL version 2.0 or above
# -------------------------------------------------------------------------
# This script is part of nixCraft shell script collection (NSSC)
# Visit http://bash.cyberciti.biz/ for more information.
# -------------------------------------------------------------------------
# display usage
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
UNIXODBC, FREETDS, RUBYODBC, SQL SERVER AND SNOW LEOPARD
========================================================
INSTALLING
----------
(Attribution: http://hughevans.net/2009/11/05/homebrew-ruby-odbc)
$ sudo brew install unixodbc
$ sudo brew install freetds