Skip to content

Instantly share code, notes, and snippets.


Kevin Chappell kevinchappell

Block or report user

Report or block kevinchappell

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
candidtim /
Last active Oct 14, 2019
Ubuntu AppIndicator to show Chuck Norris jokes
# This code is an example for a tutorial on Ubuntu Unity/Gnome AppIndicators:
import os
import signal
import json
from urllib2 import Request, urlopen, URLError
from gi.repository import Gtk as gtk
afeld / gist:1254889
Created Sep 30, 2011
YouTube video ID regex
View gist:1254889
# Parses YouTube URLs directly or from iframe code. Handles:
# * Address bar on YouTube url (ex:
# * Direct url (ex:
# * Full iframe embed code (ex: <iframe src="">)
# * Old <object> tag embed code (ex: <object><param name="movie" value="">...)
$5 #=> the video ID
# test it on Rubular:
You can’t perform that action at this time.