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
#!/bin/bash | |
# this script needs a refactoring (but it works :) | |
apt-get update | |
apt-get -y git-core git-doc | |
apt-get -y build-essential | |
cd /opt | |
git clone git://github.com/APE-Project/APE_Server.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
# | |
# if you are using RVM installed system wide (root) | |
# REMEMBER: if you are using RVM system wide NEVER run sudo gem install !!!! | |
# | |
rvmsudo gem install rspec rspec-rails rspec-rails-matchers | |
# | |
# if you are using RVM only on your local user or not using RVM at all | |
# |
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
#!/bin/sh | |
# | |
# a script to convert every CAF sound file in the current | |
# directory to a corresponding AIF sound file. | |
# | |
# author: alvin alexander, devdaily.com | |
# | |
# This work is licensed under the Creative Commons Attribution-Share Alike 3.0 | |
# United States License: http://creativecommons.org/licenses/by-sa/3.0/us/ |
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
package e7r; | |
/** | |
* Simple calculator class to be used inside jruby | |
*/ | |
public class Calculator { | |
/** | |
* Adds two integer numbers | |
* @param a First value |
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
#!/usr/bin/env ruby | |
# encoding: UTF-8 | |
# | |
# Gist presenting how to access a SQL Server via JRuby | |
# | |
require 'rubygems' | |
require 'java' | |
require 'sqljdbc4' |
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
# | |
# Setting up Action Mailer to consume Gmail | |
# | |
# I've got this on an e-mail from Tiago Cunha on rails-br group at googlegroups.com | |
# | |
config.action_mailer.default_url_options = { :host => 'localhost:3000' } | |
config.action_mailer.delivery_method = :smtp | |
config.action_mailer.default_content_type = "text/html" | |
config.action_mailer.raise_delivery_errors = true |
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
% | |
% Suppose you have three vector valuated variables, u, v and w: | |
% | |
% +- -+ | |
% | u1 | | |
% u = | u2 | | |
% | u3 | | |
% +- -+ | |
% | |
% +- -+ |
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
# log4j.properties | |
# need more? go see http://wiki.apache.org/logging-log4j/Log4jXmlFormat | |
log4j.rootLogger = DEBUG, standard | |
log4j.appender.standard = org.apache.log4j.ConsoleAppender | |
log4j.appender.standard.layout = org.apache.log4j.PatternLayout |
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
" orgulhosamente copiado de http://blog.myhro.info/2011/11/instalando-e-configurando-o-vim-no-windows/ | |
" Desabilitar o mouse: | |
set mouse=a | |
" Desabilitar menus: | |
"set guioptions-=m | |
"set guioptions-=r | |
"set guioptions-=T |
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
#!/usr/bin/env ruby | |
require 'sinatra' | |
before do | |
@my_value = 'Adilson' | |
end | |
before do | |
@my_value = "#{@my_value} Carvalho" |