Skip to content

Instantly share code, notes, and snippets.

View chubas's full-sized avatar

Rubén Medellín chubas

View GitHub Profile
ul.menu a {color: #fff !important;}
pre, .section .gist .gist-file .gist-data pre {
font-family: 'Consolas',sans-serif !important;
letter-spacing: -1px !important;
color: #eee !important;
background-color: #000 !important;
}
div.gist-file, .gist-syntax, .gist-data{
line-height: 1.5 !important;
font-family: 'Consolas',sans-serif !important;
@chubas
chubas / gist:1213102
Created September 13, 2011 04:16
Centering floated elements
#container {
float:right;
position:relative;
left:-50%;
}
#container ul {
list-style:none;
position:relative;
left:50%;
}
@chubas
chubas / about.md
Created March 19, 2012 18:31 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
@chubas
chubas / neon_test.js
Created June 25, 2012 01:19
Neon test
if(typeof require !== 'undefined') { // We are in Node, need to require the file
console.log("Requiring neon from file");
var Neon = require('../neon.js');
console.log(Neon);
// In Coffeescript, the following construct is recommended
// { Class, Module, Interface } = require('neon')
var Class = Neon.Class;
Cuiki = function() {
this.makeChoice = function() {
setTimeout(function() {
return Chameleon.Color.random();
}, 5 * 60 * 1000);
}
return this;
}
@chubas
chubas / Gemfile
Created September 28, 2012 15:27 — forked from ivanacostarubio/Gemfile
ICANHAZTYPOS
source :rubygems
gem 'levenshtein-ffi', :require => 'levenshtein'
gem "rspec"
@chubas
chubas / ruby_differences.rb
Created October 10, 2012 02:01
(Some) differences between ruby versions.
#!/bin/env ruby
# encoding: utf-8
# Differences between Ruby versions
code = case ARGV[0]
when "1"
puts "- Local block variables"
@chubas
chubas / tmux-cheatsheet.markdown
Created November 30, 2015 16:46 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@chubas
chubas / cas-bot.md
Last active December 10, 2015 19:02
Cards Against Slack

GDLJS Monthly Challende #2 - Cards Against Slack

CAH

The task for this month is to create a simple Hubot script to play Cards Against Humanity on Slack. Yay productivity!

Rules

The rules for the challenge will be the minimum set of rules of the game (full rules), only using the house rule of public voting (God is Dead rule)

@chubas
chubas / Chubascasts.xml
Created May 22, 2013 16:10
Theme configuration file for Rubymine (4.0). Derived from Railscasts
<?xml version="1.0" encoding="UTF-8"?>
<scheme name="Chubascasts" version="1" parent_scheme="Default">
<option name="LINE_SPACING" value="0.85" />
<option name="EDITOR_FONT_SIZE" value="12" />
<option name="CONSOLE_FONT_NAME" value="Monaco" />
<option name="CONSOLE_LINE_SPACING" value="1.0" />
<option name="EDITOR_FONT_NAME" value="Consolas" />
<colors>
<option name="ANNOTATIONS_COLOR" value="3399" />
<option name="ANNOTATIONS_MERGED_COLOR" value="6666" />