Skip to content

Instantly share code, notes, and snippets.

Alex AlexanderCollins

Block or report user

Report or block AlexanderCollins

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
AlexanderCollins /
Created Jun 12, 2018
Install Flutter On Mac (Installs brew and wget as well)
# install brew if not installed
if [[ $(command -v brew) == "" ]]; then
echo "Installing Hombrew"
/usr/bin/ruby -e "$(curl -fsSL"
# check if wget is installed
if brew ls --versions myformula > /dev/null; then
AlexanderCollins /
Created Apr 26, 2018
Python Dictionary, Instance Representation
# Represents a dictionary as an instance (note: cannot yet cast bact to dict type, simple access <InstanceDict>.d
class InstanceDict:
def __init__(self, d):
self.d = d
def __getattribute__(self, item):
return self.__getattr__(item)
def __getattr__(self, key):
val = self.d[key]
You can’t perform that action at this time.