Links:
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
function res = combinatoria(n,r) | |
% Esta es una combinatoria especial, dado que n es un | |
% polinomio y r es un escalar (para el caso de newton | |
% adelantado y atrasado) | |
res = n; % Aca almacenaremos el resultado. | |
for i=1:r-1 | |
res = res * (n - i); | |
end |
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
// ----------------------------------------------------------------------------------- | |
/** | |
* Makes sure that, if team A plays against B on a round, team B plays against team A | |
* on the same round. | |
*/ | |
bool RTTP::roundConsistency() | |
{ | |
/*for (size_t d = 0; d < (size_t)this->numberOfDays; d++) | |
{ |
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
set :test_log, "logs/capistrano.test.log" | |
namespace :deploy do | |
before 'deploy:update_code' do | |
puts "--> Running tests, please wait ..." | |
unless system "bundle exec rake > #{test_log} 2>&1" #' > /dev/null' | |
puts "--> Tests failed. Run `cat #{test_log}` to see what went wrong." | |
exit | |
else | |
puts "--> Tests passed" |
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
es: | |
errors: | |
messages: | |
not_found: 'no encontrado' | |
already_confirmed: 'ya ha sido confirmada' | |
not_locked: 'no está bloqueada' | |
expired: "ha caducado, por favor pide uno nuevo" | |
not_saved: | |
one: "1 error evitó guardar este %{resource}:" | |
other: "%{count} errores evitaron guardar este %{resource}:" |
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
[color] | |
ui = true | |
[alias] | |
st = status | |
ci = commit | |
br = branch | |
co = checkout | |
df = diff | |
lg = log -p |
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
NameVirtualHost 127.0.0.1:8080 | |
<VirtualHost 127.0.0.1:8080> | |
ServerAdmin [email protected] | |
ServerName domain.example.org | |
ServerAlias www.domain.example.org | |
DocumentRoot /path/to/docroot | |
ErrorLog /path/to/docroot/logs/error.log # Optional | |
CustomLog /path/to/docroot/logs/access.log combined # Optional | |
RPAFenable On | |
RPAFsethostname On |
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
6c71ff4d app/views/sections/show_excel.html.haml (Gonzalo S 2011-10-12 18:48:22 -0300 14) .table-container | |
c69c56a5 app/views/sections/show_excel.html.haml (Gonzalo S 2011-11-10 20:31:52 -0300 15) 97198046 |
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
# Run with: rackup faye.ru -s thin -E production | |
require "yaml" | |
require "faye" | |
begin | |
require "private_pub" | |
rescue LoadError | |
require "bundler/setup" | |
require "private_pub" | |
end |
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
es: | |
errors: | |
messages: | |
expired: "ha expirado, por favor pide una nueva" | |
not_found: "no encontrado" | |
already_confirmed: "ya fue confirmada. Intenta ingresar." | |
not_locked: "no ha sido bloqueada" | |
not_saved: | |
one: "Ha habido 1 error:" | |
other: "Han habido %{count} errores:" |
OlderNewer