This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Store all solarized files in one place - :) | |
mkdir ~/.solarized | |
cd ~/.solarized | |
# http://www.webupd8.org/2011/04/solarized-must-have-color-paletter-for.html | |
git clone https://github.com/seebi/dircolors-solarized.git | |
eval `dircolors ~/.solarized/dircolors-solarized/dircolors.256dark` | |
ln -s ~/.solarized/dircolors-solarized/dircolors.256dark ~/.dir_colors | |
git clone https://github.com/sigurdga/gnome-terminal-colors-solarized.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
layout: nil | |
--- | |
<?xml version="1.0" encoding="utf-8"?> | |
<feed xmlns="http://www.w3.org/2005/Atom"> | |
<title type="text" xml:lang="en">{{ site.root_desc }}</title> | |
<link type="application/atom+xml" href="http://paulstamatiou.com/feed/" rel="self"/> | |
<link type="text" href="http://paulstamatiou.com" rel="alternate"/> | |
<updated>{{ site.time | date_to_xmlschema }}</updated> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# features/step_definitions/api_steps.rb | |
# These steps are very deeply inspired in the Anthony Eden (@aeden) API steps. | |
# See http://vimeo.com/30586709 | |
# Given | |
Given /^I send and accept JSON$/ do | |
header 'Accept', 'application/json' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Load in rails via: | |
# config/initializers/core_extensions.rb | |
#Forcibly require our core extensions after rails has loaded | |
Dir.glob(Rails.root.join('lib', 'core_ext', '*.rb')).each { |extension| require extension } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
es: | |
errors: | |
messages: | |
not_found: "no encontrado" | |
already_confirmed: "ya ha sido confirmado" | |
not_locked: "no está bloqueado" | |
devise: | |
sessions: | |
link: 'Ingresar' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# acid-template.rb | |
git :init | |
gitignore = run("curl https://gist.github.com/raw/3875160/5d2745ee9bcae0bb4addf4bc701d3fa9a48ce187/.gitignore") | |
file ".gitignore", gitignore | |
if yes?("Do you use RVM? (yes|no") | |
if yes?("Do you want to create a .rvmrc file for the project? (yes|no)") | |
# RVM | |
current_ruby = %x{rvm list}.match(/^=>\s+(.*)\s\[/)[1].strip | |
desired_ruby = ask("Which RVM Ruby would you like to use? [#{current_ruby}]") |