Skip to content

Instantly share code, notes, and snippets.

View robsondepaula's full-sized avatar

Antonio Robson de Paula robsondepaula

View GitHub Profile
@robsondepaula
robsondepaula / 1. Install python3.7 & pip3.md
Created December 22, 2019 20:18 — forked from alyssaq/1. Install python3.7 & pip3.md
Python3.7 setup on Mac 10.14 (Mojave)
  1. Install Python 3.7.x from https://www.python.org/downloads/ or via homebrew.
$ brew install python3   # Installed at /usr/local/Cellar/python3

Check that python3 has been installed by running it at the terminal:

$ python3
>>> Python 3.7.2
  1. Download get-pip.py from https://bootstrap.pypa.io/get-pip.py and install (this should already be installed if python was installed from python.org or homebrew):
@robsondepaula
robsondepaula / gist:750cfa6c4f04295b8e9a469de608d2e4
Created August 1, 2018 16:38 — forked from chenghan/gist:7456549
Instructor code that was shown on screen
import sys
salesTotal = 0
oldKey = None
for line in sys.stdin:
data = line.strip().split("\t")
if len(data) != 2:
# Something has gone wrong. Skip this line.
continue