Skip to content

Instantly share code, notes, and snippets.

View raulsouzalima's full-sized avatar
🤘

Raul Souza Lima raulsouzalima

🤘
View GitHub Profile
http://wordpress.org/extend/themes/clockworksimple
http://wordpress.org/extend/themes/clockworkmint
http://wordpress.org/extend/themes/wheat-lite
http://wordpress.org/extend/themes/emptiness
http://wordpress.org/extend/themes/thematic
http://wordpress.org/extend/themes/defusion
http://wordpress.org/extend/themes/greymonger-theme
http://wordpress.org/extend/themes/elegance
http://wordpress.org/extend/themes/greyville
http://wordpress.org/extend/themes/8some
#raffle numbers for the mega sena
@nums = []
def avoid_repeating(current)
if @nums.include?(current) == true or current == 0
avoid_repeating(rand(61))
else
@nums << current
end
mac-raul:dmc raulsouzalima$ git status
# On branch v206
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# modified: README.md
# modified: app/controllers/events/budgets_controller.rb
# modified: app/controllers/events/jobs_controller.rb
# modified: app/controllers/report/reportinvestments_controller.rb
# modified: app/controllers/setup/minisites_controller.rb
mac-raul:dmc raulsouzalima$ rake db:migrate
(in /Users/raulsouzalima/Sites/dmc)
no such file to load -- RMagick
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
/Users/raulsouzalima/Sites/dmc/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/raulsouzalima/Sites/dmc/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
/Users/raulsouzalima/Sites/dmc/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/raulsouzalima/Sites/dmc/vendor/gems/gruff-0.3.6/lib/gruff/base.rb:2
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
mac-raul:dmc raulsouzalima$ git status
# On branch v206_layout
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# modified: README.md
# modified: app/controllers/events/budgets_controller.rb
# modified: app/helpers/application_helper.rb
# modified: app/helpers/events/jobs_helper.rb
# modified: app/models/company.rb
mac-raul:dmc raulsouzalima$ git pull origin v206
From github.com:dmcbrazil/dmc
* branch v206 -> FETCH_HEAD
Removing app/views/events/jobs/_admin_job.erb
Removing app/views/events/jobs/_list_city.erb
Removing app/views/events/jobs/_tableHeadJobs.erb
Removing app/views/events/jobs/admin.html.erb
Removing app/views/layouts/_main_footer.erb
Removing app/views/layouts/_main_top.erb
Auto-merging config/deploy.rb
require 'rubygems'
require 'hpricot'
require 'open-uri'
html = Hpricot(open('http://ip.appspot.com/'))
ip = html.inner_html.gsub("\n",'')
puts ip
/* Draggable */
div.box_draggable { width:100%; overflow:auto; }
div.box_draggable div.column { min-height:30px; overflow:auto; float:left; }
div.box_draggable div.column2 { width:480px; min-width:480px; }
div.box_draggable div.column2:first-child { margin-right:10px; }
div.box_draggable div.column3 { width:315px; min-width:315px; }
div.box_draggable > div.column3 { margin-left:12px; }
div.box_draggable div.column3:first-child { margin-left:0; }
div.box_draggable div.item_drag { width:100%; margin:0 auto 10px auto; display:block; }
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
// Editar título bloco
$(".click_edit").click(function() {
var obj = $(this);
var text = obj.text();
obj.html('<input type="text" value="" class="test" />');
obj.find('.test').focus().select();
obj.find('.test').blur(function() {
var replace_field = $(this).val();
if (replace_field == '')
replace_field = text;