Skip to content

Instantly share code, notes, and snippets.

/*
* Escribir un shell minimalista usando Rust.
* Dicho shell debe:
* Tomar de entrada estándar el comando a ejecutar del sistema opeativo
* Ejectuar el comando del sistema operativo
* Mostrar el resultado
*
* El tipo de comando a ejecutar es:
* * Un comando basico (ls)
* * Comando con opciones (ls -l por ejemplo)
/*
* Escribir un shell minimalista usando Rust.
* Dicho shell debe:
* Tomar de entrada estándar el comando a ejecutar del sistema opeativo
* Ejectuar el comando del sistema operativo
* Mostrar el resultado
*
* El tipo de comando a ejecutar es:
* * Un comando basico (ls)
* * Comando con opciones (ls -l por ejemplo)
@chillicoder
chillicoder / gist:5d6f22f14931b671266d7fbee29930fe
Last active February 27, 2018 22:10 — forked from anonymous/gist:b82960cf9fad5df2a534d22d9a1a3804
Libros leídos en el club de lectura de Aprendices
Clean Architecture, Robert C. Martin (2018)
Understanding the Four Rules of Simple Design, Corey Haines (2017)
Peopleware: Productive Projects and Teams, Tom DeMarco, Timothy Lister (2017)
Extreme Programming Explained: Embracing Change, Kent Beck (2017)
The Nature of Software Development, Ron Jeffries (2017)
The senior software engineer, David Copeland (2016)
Infrastructure as Code, Kief Morris (2016)
Release It, Michael T. Nygard (???)
Building Microservices, Sam Newman (2016)
Structure and Interpretation of Computer Programs (1ª parte), Hal Abelson, Gerald Jay Sussman (2015)
stations = {
"Constitución de 1917": { line: ["8"], point: { lng: -99, lat: 19, alt: 0 }},
"Atlalilco": { line: ["8","12"], point: { lng: -99, lat: 19, alt: 0 }},
"Zapata": { line: ["3","12"], point: { lng: -99, lat: 19, alt: 0 }},
"Mixcoac": { line: ["12","7"], point: { lng: -99, lat: 19, alt: 0 }},
"Hidalgo": { line: ["3","2"], point: { lng: -99, lat: 19, alt: 0 }},
"Indios Verdes": { line: ["3"], point: { lng: -99, lat: 19, alt: 0 }},
"Pantitlán": { line: ["1","9","A","5"], point: { lng: -99, lat: 19, alt: 0 }}
}
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "AWS in Action: chapter 2",
"Parameters": {
"KeyName": {
"Description": "Key Pair name",
"Type": "AWS::EC2::KeyPair::KeyName",
"Default": "mykey"
}
},
# This is the script that will be run by a cron task every X time
#!/bin/sh
/usr/bin/wget "localhost/wordpress" --timeout 30 -O - 2>/dev/null | grep "WordPress Deploy" || echo "Site down!" | /usr/bin/mail -s "WordPress deploy is down" help@regalii.com
var song = {
name: "Perfect day",
artist: "Lou Reed",
genre: "Rock",
length: "3:44",
start: function() {
alert("And now, " + this.artist + " singing " + this.name);
},
stop: function() {
alert("Hope you enjoyed " + this.name + " singed by " + this.artist);
var me = {
firstName: "Martin",
lastName: "Trejo",
livesAt: "Mexico City, Mexico",
occupation: "Sinior Inyinier",
likesTo: "Read a lot, wash dishes and eat eggs",
dislikes: "noise, heat and fish"
};
var message = "Hi, I'm " + me.firstName + " " + me.lastName + ". I live in " + me.livesAt + ". I'm a " + me.occupation + " who likes to " + me.likesTo + " but I don't like " + me.dislikes;
var toyota = {
make: "Toyota",
model: "Corolla",
year: 2015,
color: "white",
passengers: 5,
convertible: false,
mileage: 58000,
fuel: 0,
addFuel: function(litres) {
// list quotes
var quotes = [
"Be water my friend","Los hombres de verdad desayunan huevos todos los días",
"¿por qué no?", "Real men use command line", "keep it up"
];
// open spaces for answers
var like = [];
var love = [];
var angry = [];