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
--colour | |
--format specdoc |
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 'rubygems' | |
require 'twitter' | |
class MyMiddleware | |
def initialize(app, config = {}) | |
@app = app | |
@config = { :app => 'myapp' }.merge(config) | |
end | |
def call(env) |
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
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 |
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
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 |
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
#!/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 |
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
# routes.rb | |
match "/admin/by_mark/:id" => "admin/models#by_mark", :as => "by_mark" | |
# view | |
<script> | |
$(function(){ | |
$("#mark").change(function(){ | |
load_model($(this).val()); |
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
/** | |
* 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; |
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
/** | |
* Button CSS | |
*/ | |
.user-register input[type="submit"] { | |
border: none; | |
color: #FFFFFF; | |
font-size: 15px; | |
height: 35px; | |
margin: 0 0 20px; |
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
/** | |
* Color Fallback (RGBa) | |
*/ | |
div { | |
width:32px; | |
padding:40px; | |
font:20px "Helvetica Neue", sans-serif; | |
margin:0 20px; | |
} |
OlderNewer