Skip to content

Instantly share code, notes, and snippets.

View asterion's full-sized avatar
🌴
On vacation

Marcos Matamala Fernández asterion

🌴
On vacation
View GitHub Profile
@asterion
asterion / persona.rb
Last active March 20, 2017 11:15
persona
persona = {
nombre: "kyary",
edad: 24,
twitter: "twitter.pamyurin"
}
puts "desea añadir una clave y valor al hash? : "
resp = gets.chomp
if resp == "si"
puts "cual es el nombre de la nueva clave?? : "
resp_clave = gets.chomp.to_sym
@asterion
asterion / pagos.sql
Created January 23, 2017 12:54
Modelo_de_datos_Cliente_Pagos
CREATE TABLE cliente (
`id` int(11) NOT NULL,
`name` varchar(128) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
INSERT INTO cliente VALUES(1, 'Coca-Cola');
INSERT INTO cliente VALUES(3, 'IBM');
INSERT INTO cliente VALUES(4, 'Logitech');
INSERT INTO cliente VALUES(2, 'Toyota');