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
require 'rubygems' | |
require 'active_support' | |
require 'set' | |
a = [ 'q1', 'q2', 'q3', 'q4' , 'q5', 'q6'] #, 'q3', 'q4', 'q5'] #, 'q3', 'q4' ] | |
new_test = [] | |
a.each_with_index do |item, index| |
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
# Install hook code here | |
puts "Rails.root.nil? => #{Rails.root.nil?}" | |
puts "Rails.env #{Rails.env}" |
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
class CiJoe < Thor | |
include Thor::Actions | |
desc "instal_ci_for [project] [git_clone_url]", "install project for cijoe.\nYou must be builder directory (just for now)" | |
def install_ci_for(project, clone_url) | |
if File.exists? "cijoe-repos" | |
empty_directory "cijoe-repos/#{project}/public" | |
clone project, clone_url | |
build_links project |
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
Arguments | |
"notify" | |
{"class"=>"Array", "value"=>"BAhbCCIJd29vdCIXYW5kcmVoanJAZ21haWwuY29tIg1jZjQ2YzQ0Ng=="} | |
Exception | |
NameError | |
Error | |
uninitialized constant DebtorInvitationMailer |
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
#user staff; | |
worker_processes 1; | |
error_log logs/error.log; | |
#error_log logs/error.log notice; | |
#error_log logs/error.log info; | |
pid logs/nginx.pid; | |
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
addEvent(window, 'load', initCorners); | |
function initCorners() { | |
var settings = { | |
tl: { radius: 10 }, | |
tr: { radius: 10 }, | |
bl: { radius: 10 }, | |
br: { radius: 10 }, | |
antiAlias: true | |
} | |
curvyCorners(settings, ".box"); |
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
$ sudo htpasswd -c -d /opt/nginx/conf/htpasswd andrehjr |
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
# This is only happening in production | |
# :/ | |
# Any Ideas how to fix? | |
Loading production environment (Rails 3.0.4) | |
ruby-1.9.2-p136 :001 > BigDecimal.new("0.33") | |
=> #<BigDecimal:73fc940,'0.33E0',9(18)> | |
ruby-1.9.2-p136 :002 > BigDecimal.new("0.33").to_yaml |
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
# rvm-install added line: | |
if [[ -s /Users/andrehjr/.rvm/scripts/rvm ]] ; then source /Users/andrehjr/.rvm/scripts/rvm ; fi | |
export RUBYOPT="-ropenssl" | |
rvm use ruby-1.9.2-p136 | |
alias ss='script/server' | |
alias sc='script/console' | |
alias rs='rails s' |
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
brew link libxml2 | |
gem install nokogiri -- --with-xml2-include=/usr/local/Cellar/libxml2/2.7.8/include/libxml2 --with-xml2-lib=/usr/local/Cellar/libxml2/2.7.8/lib |
OlderNewer