Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Laying the soil for a couple projects...

Amara's Law analyticascent

🎯
Laying the soil for a couple projects...
View GitHub Profile
@jeetsukumaran
jeetsukumaran / extract-pdf-pages.py
Created Mar 24, 2012
PDF Page Extraction/Selection in Python Using PyPDF
View extract-pdf-pages.py
#! /usr/bin/env python
###############################################################################
##
## Copyright 2012 Jeet Sukumaran.
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 3 of the License, or
## (at your option) any later version.
@elssar
elssar / grab_pdfs.py
Created Mar 14, 2013
Download all the pdf files linked in a given webpage.
View grab_pdfs.py
#!/usr/bin/env python
"""
Download all the pdfs linked on a given webpage
Usage -
python grab_pdfs.py url <path/to/directory>
url is required
path is optional. Path needs to be absolute
@yanofsky
yanofsky / tweet_dumper.py
Last active Aug 13, 2020
A script to download all of a user's tweets into a csv
View tweet_dumper.py
#!/usr/bin/env python
# encoding: utf-8
import tweepy #https://github.com/tweepy/tweepy
import csv
#Twitter API credentials
consumer_key = ""
consumer_secret = ""
access_key = ""
@spencercarter
spencercarter / model_web_service_flask_post_p1.py
Last active Nov 16, 2018
Gists containing code to run the Models as a Web Service blog post
View model_web_service_flask_post_p1.py
# Part 1: Model
import sklearn as sk
import numpy as np
from sklearn.datasets import load_boston
from sklearn.linear_model import LassoCV
import pandas as pd
from flask import Flask
from flask import request
import requests
You can’t perform that action at this time.