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
/* Texto elevado */ | |
.elevado { | |
color: white; | |
text-shadow: 0 1px 4px rgba(0, 0, 0, 0.68); | |
} | |
/* Texto hundido (grabado) */ | |
.hundido { | |
color: #243748; | |
text-shadow: 0 1px 1px rgba(255, 255, 255, 0.33); |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
"http://www.w3.org/TR/html4/loose.dtd"> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>untitled</title> | |
<meta name="generator" content="TextMate http://macromates.com/"> | |
<meta name="author" content="Abel Muiño Vizcaino"> | |
<!-- Date: 2011-02-14 --> |
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 'rspec' | |
class Fixnum | |
ROMANS = { M: 1000, CM: 900, D: 500, CD: 400, C: 100, XC: 90, L: 50, XL: 40, X: 10, IX: 9, V: 5, IV: 4, I: 1 } | |
def to_roman | |
remaining_number = self | |
ROMANS.inject ("") do | roman_str, current_number | | |
times,remaining_number = remaining_number.divmod current_number[1] | |
roman_str + current_number[0].to_s * times |
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
# Repo de 12meses12katas añadido como "upstream" | |
git remote add upstream https://github.com/12meses12katas/Enero-String-Calculator.git | |
# Obtener última versión (sin modificar working tree) | |
git fetch upstream | |
# Mezclar los commits de 12meses12katas en nuestro working tree | |
git merge upstream/master | |
## OPCIONALMENTE, se puede hacer git merge --squash upstream/master para "comprimir" |
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
# Open irb on the kata directory | |
ruby-1.9.2-p0 > require "./string_calculator_spec" | |
=> true | |
ruby-1.9.2-p0 > s = Separator.new("//[**][+++]\n") | |
=> /,| | |
|["**|+++"]/ | |
ruby-1.9.2-p0 > #Ojo al último patrón! Eso matchea cualquier caracter dentro de [] | |
ruby-1.9.2-p0 > "1++2***3".split(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
Compro 1 queso por 10€+IVA(4%) y 100 botellas de vino por 1000€+IVA(18%). | |
Total IVA soportado: 0.40€ + 180€ = 180.04€ | |
Vendo 1 queso por 1010€+IVA(4%) y regalo 100 botellas de vino. | |
Total IVA repercutido: 40.40€ | |
Balance: Hacienda me tiene que devolver 140.04€. Gano dinero incluso sin incluir margen de beneficio en la venta… |
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
Something in rails 3.0.3 broke mysql2. | |
It seems to also break some other gems: | |
https://github.com/ProtectedMethod/restful_acl/issues/issue/9 |
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 file comes form http://groups.google.com/group/twitter-api-announce/browse_thread/thread/6a16efa375532182?hl=en | |
The original is missing a couple of commas near the 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
require File.dirname(__FILE__) + '/../test_helper' | |
require 'signup_controller' | |
# Re-raise errors caught by the controller. | |
class SignupController; def rescue_action(e) raise e end; end | |
# | |
# Adivinen pq falla el assert_not_nil current_user, cuando no debería :-) | |
# | |
class SignupControllerTest < ActionController::TestCase |
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
pantalla:~/dev/nilistics/Plant/pom-converter | |
amuino$ ping 192.168.1.2 | |
PING 192.168.1.2 (192.168.1.2): 56 data bytes | |
64 bytes from 192.168.1.2: icmp_seq=5 ttl=64 time=4105.769 ms | |
64 bytes from 192.168.1.2: icmp_seq=6 ttl=64 time=3155.822 ms | |
64 bytes from 192.168.1.2: icmp_seq=13 ttl=64 time=104.651 ms | |
64 bytes from 192.168.1.2: icmp_seq=14 ttl=64 time=480.029 ms | |
64 bytes from 192.168.1.2: icmp_seq=15 ttl=64 time=963.999 ms | |
64 bytes from 192.168.1.2: icmp_seq=16 ttl=64 time=11.477 ms | |
64 bytes from 192.168.1.2: icmp_seq=19 ttl=64 time=5145.009 ms |