Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am holamendi on github.
  • I am holamendi (https://keybase.io/holamendi) on keybase.
  • I have a public key ASC5q3Ra2ib_lIafc8I2boGLGc7JmtCTGu1gmHp-Jo_P6Ao

To claim this, I am signing this object:

@holamendi
holamendi / card.rb
Created August 9, 2017 09:26
Ruby script for bank coordinate cards
#!/usr/bin/ruby
# 1. Replace 00 with the numbers on your card
# 2. Run the script: card a1 f2 j5
# 3. Profit
CARD = {
a: %w(00 00 00 00 00),
b: %w(00 00 00 00 00),
c: %w(00 00 00 00 00),
@holamendi
holamendi / ejemplo_liquid.rb
Last active March 17, 2016 14:18
Ejemplo Liquid
# los drops son para definir que se puede exponer en un template
class ProductDrop < Liquid::Drop
def initialize(product)
@product = product
end
def name
@product[:name]
end
@holamendi
holamendi / gist:5143590
Last active December 14, 2015 20:28
Disable SQL log in Rails Console (3.1 +)
#Turn logs off
old_logger = ActiveRecord::Base.logger
ActiveRecord::Base.logger = nil
#Turn logs on again
ActiveRecord::Base.logger = old_logger