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
syntax on |
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
# Include in .bash_profile or similar | |
if [[ $platform == 'linux' ]]; then | |
alias ll='ls -alh --color=auto' | |
alias ls='ls --color=auto' | |
elif [[ $platform == 'darwin' ]]; then | |
alias ll='ls -alGh' | |
alias ls='ls -Gh' | |
fi | |
# ANSI color codes |
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
# Some found in https://github.com/nicksp/dotfiles/blob/master/osx/set-defaults.sh | |
########################### | |
### Finder improvements ### | |
########################### | |
echo "Improving Finder:" | |
# TODO: Should these commands be added to .profile or similar, or do they only need run once. | |
echo "Show ~/Library folder ..." | |
chflags nohidden ~/Library |
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
# Mac App Store Command Line Interface | |
brew 'mas' | |
brew 'maven' | |
# AWS command line interface | |
brew 'awscli' | |
cask 'google-chrome' | |
cask 'google-drive' | |
cask 'github-desktop' | |
cask 'microsoft-teams' |
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
#!/bin/bash | |
TEMP="/tmp" | |
ANACONDA_REPO="https://repo.continuum.io/archive" | |
# TODO: Update with latest installer. Updated 2018-05-30. | |
ANACONDA_BIN="Anaconda3-5.2.0-MacOSX-x86_64.sh" | |
APPLEID="email@email.com" | |
#TODO: First check if Command Line Tools are already installed: |
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
### EXERCISE: Load data set from url | |
# Load the Iris data set (directly) from it's [original source](https://archive.ics.uci.edu/ml/machine-learning-databases/iris/iris.data) | |
# using [pandas.read_csv](https://pandas.pydata.org/pandas-docs/stable/generated/pandas.read_csv.html). | |
# | |
# Verify that the data is correct by comparing output from [pandas.DataFrame.describe](https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.describe.html) | |
# on dataset you loaded with dataset loaded directly from scikit learn. | |
# SOLUTION | |
url = 'https://archive.ics.uci.edu/ml/machine-learning-databases/iris/iris.data' | |
column_names = ['sepal length', 'sepal width', 'petal length', 'petal width', 'class'] |