Skip to content

Instantly share code, notes, and snippets.

View amuino's full-sized avatar

Abel Muiño amuino

View GitHub Profile
.pagination {
font-size: 12px;
}
.pagination > * {
margin-right: 0.1em;
padding: 0.3em 0.4em;
}
.pagination a:hover {
@amuino
amuino / pom.xml
Created September 3, 2009 10:01
Launching msbuild from maven and installing the exe on the repo
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<!--
Example pom for delegating maven goals to msbuild so it builds the "solution"
A solution can be a group of projects, but here we only have one.
It should also be possible to have one maven project per solution project,
and have a parent pom to deletegate the build.
-->
<parent>
<artifactId>your-artifact-id</artifactId>
Last login: Sun Dec 20 14:29:10 on ttys002
AbelBook:~ amuino$ ping -A 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 data bytes
64 bytes from 192.168.1.1: icmp_seq=0 ttl=64 time=4.740 ms
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=1.887 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=9.605 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=2.828 ms
64 bytes from 192.168.1.1: icmp_seq=5 ttl=64 time=0.905 ms
64 bytes from 192.168.1.1: icmp_seq=6 ttl=64 time=1.396 ms
64 bytes from 192.168.1.1: icmp_seq=9 ttl=64 time=2.945 ms
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
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
@amuino
amuino / README.TXT
Created October 19, 2010 08:56
Snowflake test file (with missing commas)
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.
@amuino
amuino / README.txt
Created November 30, 2010 17:33
This code used to work, but breaks in 3.0.3
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
@amuino
amuino / gist:745724
Created December 17, 2010 21:21
¿Defraudar IVA?
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…
@amuino
amuino / Plagelao's kata
Created January 30, 2011 19:22
Example of the weird magic that makes plagelao's kata work without working :-)
# 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)
@amuino
amuino / Receta.sh
Created January 31, 2011 10:57
Receta para "sincronizar" con 12meses12katas
# 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"