Skip to content

Instantly share code, notes, and snippets.

@rkrdo
rkrdo / keybase.md
Created December 19, 2018 15:31
Keybase

Keybase proof

I hereby claim:

  • I am rkrdo on github.
  • I am ricardo_cruz (https://keybase.io/ricardo_cruz) on keybase.
  • I have a public key ASCm6BugVFY4FdJ6E2Qc-kqW08g0pVcK_2nYIMjs_1BQlAo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am rkrdo on github.
  • I am ricardo_cruz (https://keybase.io/ricardo_cruz) on keybase.
  • I have a public key ASCmIZkwqWXQNk3AFnsneLUQ2_c0d0JtCJwD7CXWxwUBwgo

To claim this, I am signing this object:

@rkrdo
rkrdo / esnextbin.md
Created April 28, 2016 20:44
esnextbin sketch
@rkrdo
rkrdo / active_record_spec_helper.rb
Created February 11, 2015 20:50
ar spec helper
# Require this if you want to run isolated specs (specs without loading rails) for any model
# https://gist.github.com/coreyhaines/2068977
require 'active_record'
require 'yaml'
#add /app to the load path
app_dir = File.expand_path(File.join(File.dirname(__FILE__), '../app'))
$:.unshift app_dir
connection_info = YAML.load_file("config/database.yml")["test"]
@rkrdo
rkrdo / vimrc
Created March 8, 2014 05:12
Vundle plugins
Bundle 'gmarik/vundle'
Bundle 'vim-scripts/CSApprox'
Bundle 'vim-scripts/ColorX'
Bundle 'scrooloose/nerdcommenter'
Bundle 'scrooloose/nerdtree'
Bundle 'rking/ag.vim'
Bundle 'lilydjwg/colorizer'
Bundle 'kien/ctrlp.vim'
Bundle 'mattn/emmet-vim'
Bundle 'tpope/vim-endwise'
@rkrdo
rkrdo / application.html.erb
Created March 8, 2013 17:09
Layout for the example blog application for the Rails Course
<!DOCTYPE html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7 ]> <html class="ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]> <html class="ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]> <html class="ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--> <html lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8" />
<!-- Uncomment to make IE8 render like IE7 -->
@rkrdo
rkrdo / functions.sh
Created February 13, 2013 02:50
ZSH functions
function railsdir() {
cd ~/rails/$1
}
function makedir() {
mkdir $1
cd $1
}
function gitadd() {