Skip to content

Instantly share code, notes, and snippets.

View ramon's full-sized avatar
🏠
Working from home

Ramon Soares ramon

🏠
Working from home
View GitHub Profile
module Imoby
class FormBuilder < ActionView::Helpers::FormBuilder
(field_helpers - %w(label check_box radio_button fields_for form_for hidden_field radio_sym select_sym)).each do |selector|
src = <<-end_src
def #{selector}(method, options = {})
make_default_template method,
@template.send(#{selector.inspect}, @object_name, method, objectify_options(options))
end
end_src
# Brazilian Portuguese localization for Ruby on Rails
# by Julio Santos Monteiro <[email protected]>
#
# Based on the work done by Ricardo Otero <[email protected]>
#
pt:
date:
formats:
default: "%d/%m/%Y"
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 1.0 (buildmeister@builder62) Tue Jan 6 09:44:34 PST 2009
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 1.0 (buildmeister@builder62) Tue Jan 6 09:43:54 PST 2009
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
-- Standard awesome library
require("awful")
-- Theme handling library
require("beautiful")
-- Notification library
require("naughty")
-- {{{ Variable definitions
-- Themes define colours, icons, and wallpapers
-- The default is a dark theme
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAyKFwLzptNbIzVWEcsDSMM3taGOOJEA9jcD23rEy4NVD/rLeeZaut99/yDV/0ez0nl/k125LMfxIOazVZbuV6p2gLAdGthZJ2nDL5GLRO0Anjk9bmSOuMNC+BC8PSi4an7PmYbGS0XHC5aYrDObdhugQUXfTF1b7wIuq9qSsxoM1n2aZx3X2UvAcYTIrcjNNUreXWAML/4Wbk7w/ucf2aUu6LYEcSeCFIkLJwICwJZ37/wtksI677zN4gzxk1/57vjah25cPJEPZJcxrJNCWwWcsM52XtAHzEWWVo0RDDEMENRegK3AwsnT5BumsfTpq/E+Sn5qVnH7Sp+HLyqrHbcQ== [email protected]
class CreateAddresses < ActiveRecord::Migration
def self.up
create_table :addresses do |t|
t.belongs_to :addressable, :polymorphic => true
t.integer :kind, :limit => 2
t.belongs_to :city
t.belongs_to :zone
t.string :street, :complement
t.string :number, :limit => 10
t.string :zipcode, :limit => 15
--
-- config for aewsome
-- by Ramon Soares
-- http://www.ramonsoares.com
-- eu (0) ramonsoares.com
-- Include awesome libraries
require("awful")
require("beautiful")
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAyKFwLzptNbIzVWEcsDSMM3taGOOJEA9jcD23rEy4NVD/rLeeZaut99/yDV/0ez0nl/k125LMfxIOazVZbuV6p2gLAdGthZJ2nDL5GLRO0Anjk9bmSOuMNC+BC8PSi4an7PmYbGS0XHC5aYrDObdhugQUXfTF1b7wIuq9qSsxoM1n2aZx3X2UvAcYTIrcjNNUreXWAML/4Wbk7w/ucf2aUu6LYEcSeCFIkLJwICwJZ37/wtksI677zN4gzxk1/57vjah25cPJEPZJcxrJNCWwWcsM52XtAHzEWWVo0RDDEMENRegK3AwsnT5BumsfTpq/E+Sn5qVnH7Sp+HLyqrHbcQ== [email protected]
---
gem: --no-ri --no-rdoc
:benchmark: false
:verbose: true
:backtrace: false
:update_sources: true
:sources:
- http://gemcutter.org
- http://gems.github.com/
:bulk_threshold: 1000
┌─[ramon@littleturtle] - [~] - [ruby-1.9.2-p180@global]
└─[$] free -m [8:45:10]
total used free shared buffers cached
Mem: 8004 3873 4130 0 639 2129
-/+ buffers/cache: 1104 6900
Swap: 1027 0 1027