Skip to content

Instantly share code, notes, and snippets.

@zambon
zambon / hash.rb
Last active August 29, 2015 14:06 — forked from jodosha/hash.rb
class Hash
def deep_has_key?(key)
self.has_key?(key) || any? {|k, v| v.deep_has_key?(key) if v.is_a? Hash}
end
alias :deep_include? :deep_has_key?
alias :deep_key? :deep_has_key?
alias :deep_member? :deep_has_key?
def deep_has_value?(value)
self.has_value?(value) || any? {|k,v| v.deep_has_value?(value) if v.is_a? Hash}
0 - Additional Products
707 - 600 GB iSCSI SAN Snapshot Space
4426 - Citrix NetScaler VPX 10.1 200Mbps Platinum
4513 - Dedicated Load Balancer with High Availability and SSL - 150,000 Connections
4612 - 6500 GB iSCSI SAN Replication
4184 - 750GB EVault Disk to Disk Enterprise Backup
4427 - Citrix NetScaler VPX 10.1 200Mbps Standard
902 - CDN Pay as You Go Storage
4028 - .com - 9 year
703 - 350 GB iSCSI SAN Snapshot Space
#
# The BootstrapBreadcrumbsBuilder is a Bootstrap compatible breadcrumb builder.
# It provides basic functionalities to render a breadcrumb navigation according
# to Bootstrap's conventions.
#
# You can use it with the :builder option on render_breadcrumbs:
# <%= render_breadcrumbs builder: ::BootstrapBreadcrumbsBuilder %>
#
# Note: You may need to adjust the autoload_paths in your config/application.rb
# file for rails to load this class:
Fonte: http://gohorseprocess.wordpress.com
1- Pensou, não é XGH.
XGH não pensa, faz a primeira coisa que vem à mente. Não existe
segunda opção, a única opção é a mais rápida.
2- Existem 3 formas de se resolver um problema, a correta, a errada e
a XGH, que é igual à errada, só que mais rápida.
@zambon
zambon / Gemfile
Created October 14, 2012 02:14 — forked from veesahni/Gemfile
Integrating Padrino w/ Mongoid & delayed_job on Heroku
gem 'delayed_job'
gem 'delayed_job_mongoid'
gem 'thin'
gem 'heroku'
@zambon
zambon / gist:3802160
Created September 28, 2012 21:26 — forked from mmassaki/gist:3763257
Ruby debugger hack
puts "Start typing away."
while (line = STDIN.readline).strip != ""
puts eval(line)
end