Skip to content

Instantly share code, notes, and snippets.

View jheasly's full-sized avatar

John Heasly jheasly

View GitHub Profile
@jheasly
jheasly / gist:1953486
Created March 1, 2012 21:54
Jython script to connect to Caché database, export stories to a Python pickle
#! /usr/bin/env /opt/local/bin/jython
# -*- coding: utf-8 -*-
from java.lang import *
from java.sql import *
def main():
import sys, datetime, cPickle, codecs
sys.path.append('/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/')
from BeautifulSoup import BeautifulSoup
@jheasly
jheasly / jquery video
Created February 15, 2012 18:23
Pulling in remote-hosted video
<script type="text/javascript">
$(document).ready(function(){
jwplayer('mediaplayer').setup({
id: 'playerID',
width: 546,
height: 313,
file: 'http://s3.amazonaws.com/headsup.orcasinc.com/video/concussion_video.mp4',
image: 'http://s3.amazonaws.com/headsup.orcasinc.com/video/concussion_video.jpg',
modes: [
{type: 'html5'},