Skip to content

Instantly share code, notes, and snippets.

View ptone's full-sized avatar

Preston Holmes ptone

View GitHub Profile
#!/usr/bin/env python
# encoding: utf-8
"""
Created by Preston Holmes on 2009-10-28.
preston@ptone.com
Copyright (c) 2009
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
#!/usr/bin/env python
# encoding: utf-8
"""
Created by Preston Holmes on 2009-11-18.
preston@ptone.com
Copyright (c) 2009
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
#!/usr/bin/env python
# encoding: utf-8
import sys
import os
from optparse import OptionParser,OptionGroup
from pygments import highlight
from pygments.lexers import DiffLexer
from pygments.formatters import HtmlFormatter
from subprocess import Popen, call, STDOUT, PIPE
#!/usr/bin/env python
# encoding: utf-8
"""
Created by Preston Holmes on 2010-01-07.
preston@ptone.com
Copyright (c) 2010
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
#!/usr/bin/env python
# encoding: utf-8
"""
Created by Preston Holmes on 2010-01-13.
preston@ptone.com
Copyright (c) 2010
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
#!/usr/bin/env python
# encoding: utf-8
"""
untitled.py
Created by Preston Holmes on 2009-07-14.
Copyright (c) 2009 __MyCompanyName__. All rights reserved.
The script below emulates these steps:
1) Use relative transcripts (you can convert them easily with sed if
#!/usr/bin/env python
# encoding: utf-8
"""
Created by Preston Holmes on 2010-09-14.
preston@ptone.com
Copyright (c) 2010
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
#!/bin/bash
#
FOLDER="$1"
echo $FOLDER
if [ -z "$FOLDER" ]; then
echo
echo "usage: $0 <folder>"
echo
exit 1
@ptone
ptone / basic_notes.py
Created November 26, 2010 18:33
Basic Midi input with pyportmidi
#!/usr/bin/env python
# encoding: utf-8
"""
Created by Preston Holmes on 2010-11-25.
preston@ptone.com
Copyright (c) 2010
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
@ptone
ptone / .gitignore
Created February 8, 2011 21:11
gitignore boilerplate
.DS_Store
# editor temp files
*~
tmp/**/*
*.lock
*.DS_Store
*.swp
*.out