Skip to content

Instantly share code, notes, and snippets.

View Nerian's full-sized avatar

Gonzalo Rodríguez-Baltanás Díaz Nerian

View GitHub Profile
@Nerian
Nerian / Hash
Created May 24, 2011 20:06
Merger
Download the hash at:
http://dl.dropbox.com/u/834494/hash
class Tasks::EditTaskWidget < Apotomo::Widget
cache :display do |cell, course, task|
course.id.to_s + task.id.to_s
end
def display(course, task)
@course = course
@task = task
render
require 'formula'
class Redis < Formula
homepage 'http://redis.io/'
url 'https://github.com/antirez/redis/tarball/v1.3.10'
sha1 'e4d22d8b0df0e9d686069a40bff4b91219c68676'
head 'https://github.com/antirez/redis.git', :branch => 'unstable'
devel do
Hello world
.clearfix {
*zoom: 1;
}
.clearfix:before,
.clearfix:after {
display: table;
content: "";
line-height: 0;
}
.clearfix:after {
HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew install libinfinity
==> Downloading http://releases.0x539.de/libinfinity/libinfinity-0.5.2.tar.gz
Already downloaded: /Library/Caches/Homebrew/libinfinity-0.5.2.tar.gz
/usr/bin/tar xf /Library/Caches/Homebrew/libinfinity-0.5.2.tar.gz
==> Downloading patches
/usr/bin/curl -f#LA Homebrew 0.9.3 (Ruby 1.8.7-358; Mac OS X 10.8.2) https://trac.macports.org/export/92297/trunk/dports/comms/libinfinity/files/patch-infinoted-infinoted-pam.c.diff -o 000-homebrew.diff
######################################################################## 100,0%
==> Patching
/usr/bin/patch -f -p0 -i 000-homebrew.diff
➜ ~ brew doctor
Your system is raring to brew.
/* @group Base */
.chzn-container {
position: relative;
display: inline-block;
}
.chzn-container .chzn-drop {
background: #fff;
border: 1px solid #aaa;
border-top: 0;
position: absolute;
@Nerian
Nerian / .guardrc
Last active December 13, 2015 22:39
Put this in ~/.guardrc and then, once you are in Guard, you can do `doc` to switch to RSpec documentation format and 'fuu' to switch to Fuubar fornat.
Pry::Commands.block_command 'fuu', "Use fuubar formatter in rspec" do
options = ::Guard.guards(:rspec).runner.options
options[:cli] = options[:cli].sub(/\-\-format \w+/, '--format Fuubar')
output.puts "Using Fuubar as RSpec formatter."
end
Pry::Commands.block_command 'doc', "Use documentation formatter in rspec" do
options = ::Guard.guards(:rspec).runner.options
options[:cli] = options[:cli].sub(/\-\-format \w+/, '--format documentation')
output.puts "Using Documentation as RSpec formatter."
@Nerian
Nerian / .zprofile
Last active December 15, 2015 02:19
[[ -s "/Users/Nerian/.rvm/scripts/rvm" ]] && source "/Users/Nerian/.rvm/scripts/rvm" # This loads RVM into a shell session.