This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import scipy.io.wavfile | |
| import numpy as np | |
| from subprocess import call | |
| import math | |
| # Extract audio from video file, save as wav auido file | |
| # INPUT: Video file | |
| # OUTPUT: Does not return any values, but saves audio as wav file | |
| def extract_audio(dir, video_file): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| from psycopg2.pool import ThreadedConnectionPool | |
| class ProcessSafePoolManager: | |
| def __init__(self, *args, **kwargs): | |
| self.last_seen_process_id = os.getpid() | |
| self.args = args | |
| self.kwargs = kwargs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <!--This page demonstrates how Livevalidation "hangs on" to elements that have been removed by jquery. | |
| Usage: Open the page in a web browser (I have used Chrome 22.0.1229.64 beta and Firefox 15.0 on Linux) | |
| Attach a validator to the e-mail field by clicking the "Add validator" link. | |
| Remove the e-mail field by clicking the "Remove e-mail" link. | |
| The form cannot be submitted. | |
| A workaround is to let livevalidation explicitly destroy the field--> |