Skip to content

Instantly share code, notes, and snippets.

View aitor's full-sized avatar
👊
Working!

Aitor García Rey aitor

👊
Working!
View GitHub Profile
# Same result in 1.8.7 and all 1.9.x ruby versions.
> puts YAML.dump( :NO => "dew",:no => "Hey", 'no' => 12, :N => "we" )
---
"no": 12
:no: Hey
:NO: dew
:N: we
@aitor
aitor / gist:4444619
Last active December 10, 2015 13:58
Proposal for Mobile Mobile Conf 2013 (http://www.mmconf.com)

Tap to write History

Abstract

For the last 5.000 years, humans have been keeping written records of small and big events but for most of this time span creating and storing them has been expensive, difficult or even dangerous. In 2013 even the smallest details in the life of an average teenager will be recorded with higher fidelity and thoroughness that the one used for detailing Gengis Khan's conquests, and everything thanks to the mobile, the basic enabler of these hyper-detailed life logs.

Which are the implications of the quantified self from a historical perspective? Is all this data more resilient than a medieval parchment?

I'd love to talk with you about it.

@aitor
aitor / gist:4358540
Last active December 10, 2015 01:28
Entrevista para Barakaldo Digital

¿En qué colegio estudió en Barakaldo?

Padres Paúles. Estudie allí durante toda la educación básica y el bachillerato, unos 11 años, y creo que, en general, la experiencia fue muy positiva. Borraría con gusto los recuerdos de algunos profesores -especialmente los seculares- pero tambien conservo amigos y buenas memorias de mi estancia allí.

Siempre me divierte oír las teorías y prejuicios que la gente tiene sobre lo que significa ir a un "colegio de curas" por más de una década. Como persona que se declara en el limite entre el agnosticismo y el ateísmo, me hace mucha gracia las alegaciones sobre los lavados de cerebro.

¿Le gustaban los deportes o era de los alumnos empollones?

En gran medida me decanté por los deportes pero a diferencia de la tendencia generalizada que apunta siempre al fútbol, o en el menos odioso de los casos al baloncesto yo practiqué balonmano durante la mayor parte de mi estancia en Paúles.

INSERT INTO n64w022_c10 (the_geom, height, id) VALUES(
SELECT the_geom, height, id
FROM n64w021_c10
);
// ERROR: syntax error at or near "INTO"
// LINE 1: SELECT * FROM (INSERT INTO n64w022_c10 (the_geom, height, id... ^
Dear Aitor Garcia,
The modifications you requested for the domain LOSPRESUS.DE have FAILED.
Error: Parameter value policy error; (admin)
Please contact Go Daddy for assistance.
Phone: (480) 505-8877
Email: [email protected]
Online Support: http://www.godaddy.com/support/support.aspx?prog_id=GoDaddy&isc=wwbb10
@aitor
aitor / gist:4111994
Created November 19, 2012 17:11
List of female scientists before the 20th century
Extracted from http://en.wikipedia.org/wiki/List_of_female_scientists_before_the_21st_century
Aglaonike (2nd century BCE), the first woman astronomer in Ancient Greece
Agnodike (4th century BCE), the first woman physician to practice legally in Athens
Arete of Cyrene (5th–4th centuries BCE), natural and moral philosopher, North Africa
Artemisia of Caria (c. 300 BCE), botanist
Aspasia of Miletus (4th century BCE), philosopher and scientist
Cleopatra the Alchemist - identity is unclear, but her book, The Chrysopoeia of Cleopatra, is[1] first recorded as existing in the 2nd century A.D./C.E. in Alexandria.
Diotima of Mantinea (4th century BCE), philosopher and scientist, ancient Greece (sources vary as to her historicity; possibly a fictionalized character based on Aspasia of Miletus)
Enheduanna (c. 2285–2250 BCE), Sumerian/Akkadian astronomer and poet
@aitor
aitor / catch_uploaded_photo_fix.js
Created November 15, 2012 21:02
Upload photo link is ignoring selected text for Markdown and plain text/HTML users.
// TL;DR: Upload photo link is ignoring selected text for
// Markdown and plain text/HTML users.
// Go to any Tumblr account
// Create text post http://www.tumblr.com/new/text
// Write and select some text. Click on "Upload photo". See the result.
// After uploader iframe has been reloaded, it's calling the function
// "catch_uploaded_photo" with a param containing the fres link to the
// uploaded pic:
@aitor
aitor / gist:3951697
Created October 25, 2012 09:45
4.05.02.00 errors on Mac OSX 10.7.4
25/10/12 11:33:21,550 SimpleInstaller: *** process 2480 exceeded 500 log message per second limit - remaining messages this second discarded ***
@aitor
aitor / gist:3951674
Created October 25, 2012 09:41
4.05.02.00 errors on Mac OSX 10.7.4
25/10/12 11:33:25,716 [0x0-0x98098].com.novamedia.SimpleInstaller: objc[2480]: Class SimpleInstallerBasePlugIn is implemented in both /Users/aitor/Desktop/Vodafone Mobile Broadband.app/Contents/MacOS/SimpleInstaller and /Users/aitor/Desktop/Vodafone Mobile Broadband.app/Contents/Resources/CancelInstall.simInst/Contents/MacOS/CancelInstall. One of the two will be used. Which one is undefined.
25/10/12 11:33:25,826 SimpleInstaller: *** NSRunLoop ignoring exception '*** -[NSConcreteFileHandle readDataOfLength:]: Resource temporarily unavailable' that raised during posting of delayed perform with target 0x9c6ba60 and selector 'runBeforeMainBundleInstalled'
@aitor
aitor / nice_quit.py
Created October 25, 2012 09:31
Shitty 3G uninstall software from @nova_media
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
#
# This script tries to quit the app configured in app_to_quit in a nice way.
# First it checks if it is actually running.
# Then it tries to send it a quit apple event.
# If it doesn't respond (maybe because it is locked in a modal dialog)
# It will tell the User to quit it manually
#