Skip to content

Instantly share code, notes, and snippets.

View albertoperdomo's full-sized avatar

Alberto Perdomo albertoperdomo

View GitHub Profile
@ryanb
ryanb / spec_helper.rb
Created September 12, 2011 21:29
Focus on specific specs in RSpec
# add this to your spec helper
RSpec.configure do |config|
config.treat_symbols_as_metadata_keys_with_true_values = true
config.filter_run :focus => true
config.run_all_when_everything_filtered = true
end
# and then use the :focus tag in your specs
it "does something awesome", :focus do
@jc00ke
jc00ke / assets.rake
Created September 25, 2011 18:26 — forked from mulder/assets.rake
Monkey Patch for assets:precomple for deploying on Heroku with Mongoid
namespace :assets do
# Prepend the assets:precompile_prepare task to assets:precompile.
task :precompile => :precompile_prepare
# This task will be called before assets:precompile to optimize the
# compilation, i.e. to prevent any DB calls.
task 'precompile_prepare' do
# Without this assets:precompile will call itself again with this var set.
# This basically speeds things up.
ENV['RAILS_GROUPS'] = 'assets'
@raul
raul / retry_upto.rb
Created October 7, 2011 06:42
retry_upto.rb
# Ruby `retry` with steroids:
#
# - retry up to 5 times without waiting between them and retrying after any exception
#
# retry_upto(5) do ... end
#
# - retry up to 5 times, waiting 2 seconds between retries
#
# retry_upto(5, :wait => 2) do ... end
#
@burke
burke / 0-readme.md
Created January 27, 2012 13:44 — forked from funny-falcon/cumulative_performance.patch
ruby-1.9.3-p327 cumulative performance patch for rbenv

ruby-1.9.3-p327 cumulative performance patch for rbenv

This installs a patched ruby 1.9.3-p327 with various performance improvements and a backported COW-friendly GC, all courtesy of funny-falcon.

Requirements

You will also need a C Compiler. If you're on Linux, you probably already have one or know how to install one. On OS X, you should install XCode, and brew install autoconf using homebrew.

@jcasimir
jcasimir / build_developers.markdown
Created February 9, 2012 15:27
Build Developers

Build Developers

Brief

You cannot do it on your own. Whether you're buildings products or a consultancy, you need developers. You can't afford to outbid everyone else and, even if you do, another company will up the ante in six months. You can't rely on your network or universities to deliver fully ready Rails devs. Professional recruiters are no answer.

Your only real option is to build them. That's the situation LivingSocial faced, and in this session, we'll share lessons learned from the design, recruitment, and beginning months of Hungry Academy. Let's discuss:

  • Recruiting applicants
  • Evaluating aptitude
@albertohm
albertohm / .vimrc
Created March 14, 2012 10:05
My .vimrc
""PATHOGEN ------------------------------------
"call pathogen#runtime_append_all_bundles()
"call pathogen#helptags()
"filetype off " required!
"VUNDLE --------------------------------------
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" let Vundle manage Vundle
@ayosec
ayosec / testmd.rb
Created November 27, 2012 13:57
Client for the GitHub Markdown API
require "json"
require "net/https"
content = ARGF.read
http = Net::HTTP.new("api.github.com", 443).tap do |h|
h.use_ssl = true
end
@janogarcia
janogarcia / paymill_vs_paypal.md
Created December 10, 2012 10:09
Procesando tarjetas de crédito en tu webapp: Paymill VS PayPal

Procesando tarjetas de crédito en tu webapp: Paymill VS PayPal

TL;DR PayPal fatal. Paymill molamil.

Integración del proceso de checkout

PayPal no ofrece en España un método de pago que se integre por completo con tu webapp. La integración más básica Pago estándar consiste básicamente en redirigirte a PayPal e introducir ahí los datos de tu tarjeta. Es decir, la clásica página estándar de checkout de PayPal, con su típico look & feel.

La alternativa algo más avanzada, Pasarela integral, permite que en esa página externa de PayPal se pueda personalizar el logo... y algún que otro detalle (según PayPal "hasta 21 elementos gráficos").

@kevin-smets
kevin-smets / iterm2-solarized.md
Last active July 16, 2025 04:34
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@pedrogimenez
pedrogimenez / iOS developer.md
Created April 22, 2014 10:56
iOS developer.md

Chicisimo is looking for an iOS developer

Remote work (or based in Valencia)

What's Chicisimo?

Chicisimo is a player in the social fashion space, and we are building tools to help girls decide what to wear.

We serve an amazing community of fashion enthusiasts who spend up to 1 hour a week on our site, with engagement ratios growing 30% month over month.

We have worldclass media and ecommerce partners, and have been featured on both fashion and tech press. Also, we are lucky to have amazing investors.