Skip to content

Instantly share code, notes, and snippets.

@jess010
jess010 / bank_account_class.py
Last active March 5, 2017 04:09
Bank account class
# Create an object of type 'BankAccount' with methods appropriate for this object
class BankAccount:
def __init__(self, initial_balance):
self.balance = initial_balance
self.fees = 0
def deposit(self, amount):
self.balance += amount
@jess010
jess010 / devstack.sh
Created September 14, 2013 18:12 — forked from etoews/devstack.sh
ssh root@<ip-address>
apt-get install -y git
git clone https://github.com/openstack-dev/devstack.git -b stable/grizzly devstack/
cd devstack/
curl -sO https://gist.github.com/everett-toews/6235684/raw/531ef32f7f55fdb5af56f01c4155e52416a18c51/localrc
nano localrc
./stack.sh
# Wait...time for Q&A