Skip to content

Instantly share code, notes, and snippets.

@sarguido
sarguido / lollapalooza.py
Last active December 15, 2015 10:19
This is a program I wrote (for a friend...) to determine if the Lollapalooza secret sale for the cheap tickets had begun. The program uses BeautifulSoup to scrape the site, checking to see if the ticket text had been changed from "SOON." If so, it would send an alert email. The program was successful and did alert my friend when the tickets went…
#!/usr/bin/python
import urllib2, time, smtplib, string
from bs4 import BeautifulSoup
# In this section, set up your information. TO - email address to send to.
# FROM - email to send from. username/password are for FROM email.
TO = ''
FROM = ''
@sarguido
sarguido / Data Preprocessing
Last active December 28, 2015 01:49
A Beginner's Guide to Machine Learning with Scikit-Learn: Preprocessing
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@sarguido
sarguido / gist:8553438
Last active January 4, 2016 02:09
A2PyLadies Intro to Python Workshop, Part 1
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@sarguido
sarguido / gist:8627109
Created January 26, 2014 02:10
A2 PyLadies Intro to Python part 2
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@sarguido
sarguido / gist:8627743
Last active January 4, 2016 13:29
A2 PyLadies Intro to Python part 3
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@sarguido
sarguido / Supervised Learning
Created February 13, 2014 04:46
A Beginner's Guide to Machine Learning with Scikit-Learn: Supervised Learning
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@sarguido
sarguido / Unsupervised Learning
Created February 13, 2014 04:48
A Beginner's Guide to Machine Learning with Scikit-Learn: Unsupervised Learning
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@sarguido
sarguido / gist:8969894
Created February 13, 2014 04:49
A Beginner's Guide to Machine Learning with Scikit-Learn: Testing and Validation
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@sarguido
sarguido / Workflow
Last active April 5, 2016 04:49
A Beginner's Guide to Machine Learning with Scikit-Learn: Workflow
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Pandas \n",
"\n",
"(If you're using the code files, please open pandas_lessons.py)\n",
"\n",