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
/* | |
* 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) |
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
/* | |
* 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) |
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
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) |
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
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 }} | |
} |
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
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "AWS in Action: chapter 2", | |
"Parameters": { | |
"KeyName": { | |
"Description": "Key Pair name", | |
"Type": "AWS::EC2::KeyPair::KeyName", | |
"Default": "mykey" | |
} | |
}, |
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 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 |
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
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); |
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
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; |
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
var toyota = { | |
make: "Toyota", | |
model: "Corolla", | |
year: 2015, | |
color: "white", | |
passengers: 5, | |
convertible: false, | |
mileage: 58000, | |
fuel: 0, | |
addFuel: function(litres) { |
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
// 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 = []; |
NewerOlder