Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am ianmurrays on github.
  • I am ianmurrays (https://keybase.io/ianmurrays) on keybase.
  • I have a public key whose fingerprint is B767 8160 D20B C7D8 7167 5778 B74A DE12 62F5 0455

To claim this, I am signing this object:

2014-09-22 16:05:54 -0300
ant
clean
Buildfile: /private/tmp/closure-compiler-SlWtTA/closure-compiler-maven-release-v20140625/build.xml
clean:
BUILD SUCCESSFUL
@ianmurrays
ianmurrays / combinatoria.m
Created November 11, 2010 20:08
Calcula polinomio de lagrange para interpolar data.
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
@ianmurrays
ianmurrays / gist:1021992
Created June 12, 2011 21:14
Constraints
// -----------------------------------------------------------------------------------
/**
* 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++)
{
@ianmurrays
ianmurrays / I18n devise es
Created September 6, 2011 01:06 — forked from scambra/I18n devise es
devise I18n file in spanish
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}:"
@ianmurrays
ianmurrays / .gitconfig
Created October 5, 2011 20:08
Git Configuration
[color]
ui = true
[alias]
st = status
ci = commit
br = branch
co = checkout
df = diff
lg = log -p
@ianmurrays
ianmurrays / apache-site.conf
Created October 26, 2011 18:09
nginx as apache proxy
NameVirtualHost 127.0.0.1:8080
<VirtualHost 127.0.0.1:8080>
ServerAdmin webmaster@example.org
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
@ianmurrays
ianmurrays / git-blame
Created November 11, 2011 12:40
git blame doesn't lie
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
@ianmurrays
ianmurrays / faye.ru
Created March 8, 2012 22:40
Faye Private_Pub Config
# 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