I hereby claim:
- I am drunkensouljah on github.
 - I am exon (https://keybase.io/exon) on keybase.
 - I have a public key whose fingerprint is 85F9 404B 2900 FBD4 F95F B18A 8A7D 7600 7330 542B
 
To claim this, I am signing this object:
| # 1. Add some necessary libraries | |
| import scraperwiki | |
| import urllib2, lxml.etree | |
| # 2. The URL/web address where we can find the PDF we want to scrape | |
| url = 'http://cdn.varner.eu/cdn-1ce36b6442a6146/Global/Varner/CSR/Downloads_CSR/Fabrikklister_VarnerGruppen_2013.pdf' | |
| # 3. Grab the file and convert it to an XML document we can work with | |
| pdfdata = urllib2.urlopen(url).read() | 
| #!/usr/bin/env python | |
| """Script that I keep in a Git repository along with my dotfiles. In the | |
| repository, the files don't have the dot prefix so I can see them more easily. | |
| Running the script symlinks all the files to ~/.<filename>, checking allowing | |
| you to cancel if the file exists. | |
| """ | |
| import os | |
| import glob | 
| #! /usr/bin/python | |
| import smtplib | |
| from optparse import OptionParser | |
| from email.mime.multipart import MIMEMultipart | |
| from email.mime.text import MIMEText | |
| from email.mime.image import MIMEImage | |
| from email.mime.application import MIMEApplication | 
| jQuery(function($) { | |
| $('form[data-async]').live('submit', function(event) { | |
| var $form = $(this); | |
| var $target = $($form.attr('data-target')); | |
| $.ajax({ | |
| type: $form.attr('method'), | |
| url: $form.attr('action'), | |
| data: $form.serialize(), | 
| @font-face{font-family:'FontAwesome';src:url('http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/fonts/fontawesome-webfont.eot?v=4.2.0');src:url('http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/fonts/fontawesome-webfont.eot?#iefix&v=4.2.0') format('embedded-opentype'),url('http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/fonts/fontawesome-webfont.woff?v=4.2.0') format('woff'),url('http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/fonts/fontawesome-webfont.ttf?v=4.2.0') format('truetype'),url('http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/fonts/fontawesome-webfont.svg?v=4.2.0#fontawesomeregular') format('svg');font-weight:normal;font-style:normal} | |
| #tag_cloud{display:none} | |
| #timer{display:none;} | |
| #logo{margin-left:120px;} | |
| #pinboard{width:100%;padding:0 !important;margin:0 !important;background-color:#f9f9f9 !important;} | |
| #banner{background:rgb(15,128,255) !important;width:100% !important;min-width:1100px;position:fixed;left:0;padding:15px 0 16px 0 !important;z-index:10;font-family:"Avenir Next Condensed";} | |
| # | 
| #!/usr/bin/env python | |
| import fcntl, termios, struct, os | |
| import random | |
| import time, sys | |
| def ioctl_GWINSZ(fd): | |
| ''' Get terminal size, by giving the proper file descriptor ''' | |
| try: | |
| cr = struct.unpack('hh', fcntl.ioctl(fd, termios.TIOCGWINSZ, '1234')) | 
| javascript:(function(){var p=document.createElement("p");p.innerHTML="<strong>Loading…</strong>";p.id="loadingp";p.style.padding="20px";p.style.background="#fff";p.style.left="20px";p.style.top=0;p.style.position="fixed";p.style.zIndex="9999999";p.style.opacity=".85";document.body.appendChild(p);document.body.appendChild(document.createElement("script")).src="https://gist.github.com/ttscoff/5834741/raw/grablinks.js?x="+(Math.random());})(); | 
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/python | |
| # | |
| # from http://www.pythonforbeginners.com/feedparser/using-feedparser-in-python | |
| # installed feedparser with `pip`, after installing pip with apt-get | |
| # | |
| import feedparser | |
| import time | |
| from subprocess import check_output | 
| from lxml import html | |
| import os | |
| import random | |
| import requests | |
| import string | |
| unsplash = requests.get("https://unsplash.com/") | |
| html_tree = html.fromstring(unsplash.text) | |
| # Collects picture source as URL |