Skip to content

Instantly share code, notes, and snippets.

View errrzarrr's full-sized avatar
💭

Roberto errrzarrr

💭
  • Dominican Republic
  • 19:08 (UTC -03:00)
View GitHub Profile
@errrzarrr
errrzarrr / ex.sh
Created May 1, 2020 02:07
ex - archive extractor
# put this into your ~/.bashrc file
# or ~/.bash_functions file
#
# # ex - archive extractor
# # usage: ex <file>
ex () {
if [ -f $1 ] ; then
case $1 in
*.tar.bz2) tar xjf $1 ;;
*.tar.gz) tar xzf $1 ;;
@errrzarrr
errrzarrr / The_Shipping_Metaphor.md
Last active August 15, 2019 01:48
The Shipping Metaphor. From the *Using Docker* book, by Adrian Mouat

The Shipping Metaphor

The Docker philosophy is often explained in terms of a shipping container metaphor, which presumably explains the Docker name. The story normally goes something like this:

When goods are transported they have to pass through a variety of different means, possibly including trucks, forklifts, cranes, trains and ships. These means have to be able to handle a wide variety of goods of different sizes and with different requirements (e.g., sacks of coffee, drums of hazardous chemicals, boxes of electronic goods, fleets of luxury cars and racks of refrigerated lamb). Historically, this was a cumbersome and costly process requiring manual labor, such as dock workers to load and unload items by hand at each transit point.

The transport industry was revolutionized by the introduction of the intermodal container. These containers come in standard sizes and are designed to be moved between modes of transport with a minimum of manual labor. All transport machinery is designed to handle th

ELECCIONES ESPAÑOLAS 2019

INTRODUCCION

Eric: El pasado domingo 28 de abril la nación española se presentó a Elecciones Generales para elegir representación en el congreso de los diputados y del senado. El sistema español funciona de tal manera que el partido con mayoría absoluta en el congreso elige quién preside el poder ejecutivo. De lo contrario, de un partido no lograr esa mayoría absoluta, le toca a los partidos negociar entre ellos para formar gobierno o de lo contrario llamar a elecciones nuevamente en en unos meses.

Roberto: Sucedió lo último, el votante español fraccionó el voto y no le dió la mayoría absoluta a ningún partido en específico. Entonces ¿Qué sucederá con el gobierno de España? ¿lograrán pactar para formar gobierno ejecutivo o tendrán que acudir a elecciones nuevamente?

EL CONGRESO

Carlos: Los resultados al congreso fueron los siguientes:

// Esta clase genera instrucciones de control y formateo de texto
namespace Print {
class EscPosHandler {
private const string ESC = "\u001B";
private const string GS = "\u001D";
private const string LineFeed = "\u000A";
private const string CarriageReturn = "\u000D";
/**********************************************************
*
* PROYECTO FINAL - Calcula Índice
*
* Roberto Miñagorri
* Matrícula:27436
*
* Introducción a la Programación
* Profesor Guillermo Hernández
* Grupo 3-