Skip to content

Instantly share code, notes, and snippets.

Adam Sheridan adamsheridan

View GitHub Profile
View gist:5ed8d4db7619708a57e5dc114f7f273a

Hello World

Summary Goes Here ...this is hidden, collapsable content...
@adamsheridan
adamsheridan / tfl.py
Last active Aug 29, 2015
TFL TubeStatus Python CLI e.g python tfl.py 8
View tfl.py
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:
View Spacegray Eighties.sublime-theme
[
//
// TABS (REGULAR)
//
// Tab set
{
"class": "tabset_control",
"layer0.texture": "",
@adamsheridan
adamsheridan / player.html
Last active Jan 2, 2016
Chromeless Youtube Player with the iFrame API - supports custom controls and events
View player.html
<!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;
You can’t perform that action at this time.