Skip to content

Instantly share code, notes, and snippets.

View apendleton's full-sized avatar

Andrew Pendleton apendleton

  • Mapbox
  • Washington, DC
View GitHub Profile
void setup() {
pinMode (2,OUTPUT);//attach pin 2 to vcc
pinMode (5,OUTPUT);//attach pin 5 to GND
// initialize serial communication:
Serial.begin(9600);
}
void loop()
{
digitalWrite(2, HIGH);
@apendleton
apendleton / gabon_test.py
Created August 24, 2015 17:56
Link grabbing example
# first you need to make sure you have the libraries installed; I'm using pyquery and requests:
# pip install pyquery requests
import requests
from pyquery import PyQuery as pq
from urlparse import urljoin
URL = "http://www.stat-gabon.org/"
response = requests.get(URL)