Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html>
<head>
<title>Code2College - Brand Project</title>
</head>
<body>
<h1>Hi, I'm Samuel</h1>
</body>
</html>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ssaamm
ssaamm / ch3.py
Created March 27, 2017 12:56
Python addendum to Metz's Practical Object-Oriented Design in Ruby
# For original code, see "some_framework.py"
# Remove Argument-Order Dependencies
# First code example under "Use Hashes for Initialization Arguments"
class Gear(object):
def __init__(self, **kwargs):
self.chainring = kwargs['chainring']
self.cog = kwargs['cog']
self.wheel = kwargs['wheel']
@ssaamm
ssaamm / scraper.py
Last active December 20, 2022 18:48
Hacking course registration with Twilio and Python
import time
import requests
from bs4 import BeautifulSoup
from twilio.rest import Client
import redis
from secrets import twilio_account_sid, token, my_number
client = Client(twilio_account_sid, token)
<!DOCTYPE html>
<html>
<head>
<title>Unicorns Hello World</title>
</head>
<body>
<h1>Whatever you want the heading to be</h1>
<p>Write whatever you want</p>
</body>
</html>