Skip to content

Instantly share code, notes, and snippets.

Sergio Infante neosergio

Block or report user

Report or block neosergio

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@neosergio
neosergio / PY0101EN-2-4-Sets.ipynb
Created Jul 15, 2019
Created on Cognitive Class Labs
View PY0101EN-2-4-Sets.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@neosergio
neosergio / PY0101EN-2-3-Dictionaries.ipynb
Created Jul 15, 2019
Created on Cognitive Class Labs
View PY0101EN-2-3-Dictionaries.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@neosergio
neosergio / PY0101EN-2-2-Lists.ipynb
Created Jul 15, 2019
Created on Cognitive Class Labs
View PY0101EN-2-2-Lists.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@neosergio
neosergio / PY0101EN-2-1-Tuples.ipynb
Created Jul 15, 2019
Created on Cognitive Class Labs
View PY0101EN-2-1-Tuples.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@neosergio
neosergio / PY0101EN-1-2-Strings.ipynb
Created Jul 7, 2019
Created on Cognitive Class Labs
View PY0101EN-1-2-Strings.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@neosergio
neosergio / PY0101EN-1-1-Types.ipynb
Created Jul 1, 2019
Created on Cognitive Class Labs
View PY0101EN-1-1-Types.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View django_secret_key_generator
python -c 'import random; result = "".join([random.choice("abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)") for i in range(50)]); print(result)'
View Fresh_macos_installation.sh
#Install Brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Legitimately-useful utilities missing from OS X.
brew install wget watch gnu-sed coreutils unrar
# Up-to-date versions of included tools.
brew install git emacs
# Just for fun.
@neosergio
neosergio / reinstall-mbanking.sh
Last active Aug 29, 2015
Bash script to quick reinstall of a mbanking server
View reinstall-mbanking.sh
#!/bin/bash
cd ~
rm *.property*
wget https://gist.githubusercontent.com/neosergio/76b91816239f9cdab3d8/raw/74112f73280d9ce339fb32e3be30f169ccb2f252/mbanking-database-install.property
wget https://gist.githubusercontent.com/neosergio/6ab217e00fde9380c219/raw/b3c1d781585f1ea2eaee94c73ee9cd9972a61fd9/mbanking-configuration-install.property
wget https://gist.githubusercontent.com/neosergio/790f851cce9785815fd5/raw/aa109702a9ecfb7db22306f9a2d2d94f1568af20/mbanking-server-install.property
wget https://gist.githubusercontent.com/neosergio/87df7af335a65912fadc/raw/fafc8477fcc17f54c916c36a26330a1ed577cb61/mb-testharness-database.property
wget https://gist.githubusercontent.com/neosergio/8c218258c1e28e4c43dc/raw/3f21574ae03da2cac58dc6285aada88dd83eb9a6/mb-testharness-server.property
while getopts ":m:f:d" opt; do
case $opt in
@neosergio
neosergio / imagen_en_contenedor.rb
Last active Jan 1, 2016
Jugando con Ruby: Algoritmo simple sobre un contenedor y una imagen que se ajusta al tamaño del contenedor dinamicamente
View imagen_en_contenedor.rb
puts "De las siguientes opciones del tamaño del contenedor"
puts "1 - Ancho contenedor 200 - Alto contenedor 100"
puts "2 - Ancho contenedor 100 - Alto contenedor 200"
puts "3 - Dejame ingresar los valores manualmente del contenedor"
print "Elija su preferencia: "
STDOUT.flush
opcion = gets.to_i
if opcion == 1
ancho_contenedor = 200
alto_contenedor = 100
You can’t perform that action at this time.