Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am crami on github.
  • I am cramer (https://keybase.io/cramer) on keybase.
  • I have a public key ASA0m3EJtJWh19ZzjyRFIxeQMsys_pkSG-5cXt8Q5UKwuQo

To claim this, I am signing this object:

@crami
crami / ringer.py
Created July 9, 2015 08:06
Small Python Webserver to play a mp3 file (dorbell)
#!/usr/bin/python
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
import subprocess
class ringer_HTTPRequesthandler(BaseHTTPRequestHandler):
def do_GET(self):
try:
print(self.path)
subprocess.call(['/usr/bin/mpg321','-v','/mp3/doorbell.mp3'])
<?php
/**
* Array to Text Table Generation Class
*
* @author Tony Landis <tony@tonylandis.com>
* @link http://www.tonylandis.com/
* @copyright Copyright (C) 2006-2009 Tony Landis
* @license http://www.opensource.org/licenses/bsd-license.php
*/
class ArrayToTextTable