Skip to content

Instantly share code, notes, and snippets.

View adamsheridan's full-sized avatar

Adam Sheridan adamsheridan

View GitHub Profile

Hello World

Summary Goes Here ...this is hidden, collapsable content...
@adamsheridan
adamsheridan / tfl.py
Last active August 29, 2015 14:04
TFL TubeStatus Python CLI e.g python tfl.py 8
from BeautifulSoup import BeautifulSoup
import urllib2, sys
response = urllib2.urlopen('http://cloud.tfl.gov.uk/TrackerNet/LineStatus');
xml = response.read();
soup = BeautifulSoup(xml);
try:
lineId = sys.argv[1]
except IndexError:
[
//
// TABS (REGULAR)
//
// Tab set
{
"class": "tabset_control",
"layer0.texture": "",
@adamsheridan
adamsheridan / player.html
Last active January 2, 2016 11:29
Chromeless Youtube Player with the iFrame API - supports custom controls and events
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>YouTube iFrame API Player</title>
<script>
var player;