Skip to content

Instantly share code, notes, and snippets.

View sebastianvera's full-sized avatar

Sebastián Vera sebastianvera

View GitHub Profile
Fetching: rmagick-2.13.2.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.
.../.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb
checking for Ruby version >= 1.8.5... yes
checking for clang... yes
checking for Magick-config... yes
checking for ImageMagick version >= 6.4.9... yes
int main()
{
int precio, litros;
precio = 10000;
cout << "Ingrese litros: ";
cin >> litros;
if(litros>150)
{
precio += (litros-150)*300;
@sebastianvera
sebastianvera / config.json
Created February 17, 2014 21:35
sublime users settings
{
"auto_indent": true,
"color_scheme": "Packages/Theme - Spacegray/base16-eighties.dark.tmTheme",
"drag_text": false,
"ensure_newline_at_eof_on_save": true,
"font_face": "Consolas",
"font_size": 13,
"highlight_modified_tabs": true,
"ignored_packages":
[
#!/bin/sh
diff=`git diff --name-only HEAD@{1} HEAD`
migrate=`expr "$diff" : ".*db/migrate.*"`
bundle=`expr "$diff" : ".*Gemfile*"`
app_name=`basename $PWD`
if [ ! "$bundle" -eq 0 ]
@sebastianvera
sebastianvera / es.yml
Last active August 29, 2015 13:57
Spanish i18n boilerplate
es:
date:
abbr_day_names:
- dom
- lun
- mar
- mié
- jue
- vie
- sá
\usepackage{listings}
\lstloadlanguages{C}
\lstset{
frame=lrtb,
basicstyle=\footnotesize\color{black},
backgroundcolor=\color{white}, % choose the background color; you must add \usepackage{color} or \usepackage{xcolor}
breakatwhitespace=false, % sets if automatic breaks should only happen at whitespace
commentstyle = \ttfamily\color{red},
keywordstyle=\ttfamily\color{blue},
PROMPT='
%{$FG[203]%}%n%{$reset_color%} in %{$FG[214]%}${PWD/#$HOME/~}%{$reset_color%}$(git_prompt_info)
$ '
ZSH_THEME_GIT_PROMPT_PREFIX=" on %{$FG[227]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$FG[243]%} *"
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$FG[243]%} ?"
ZSH_THEME_GIT_PROMPT_CLEAN=""
" ========================================================================
" Vundle stuff
" ========================================================================
set nocompatible "Required by vundle
filetype off "Required by vundle
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
@sebastianvera
sebastianvera / es.yml
Created January 28, 2015 01:10
Example spanish rails local yml
es:
date:
abbr_day_names:
- dom
- lun
- mar
- mié
- jue
- vie
- sáb
#include <iostream>
#include <vector>
#include <algorithm>
#define INF std::numeric_limits<int>::max()
using namespace std;
typedef struct {
int dest, weight;