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 zmq | |
| protocol = "tcp" | |
| host = "tidmarsh.media.mit.edu" | |
| port = "1305" | |
| host = "127.0.0.1" | |
| port = "5556" | |
| # Socket to talk to server |
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
| (function ($) { | |
| var oldUpload = $.fn.upload; | |
| jQuery.fn.upload = function( options ) { | |
| if ( this.prop('tagName') !== "INPUT" || this.attr('type') !== 'file' ) { | |
| throw new Error("Cannot call upload function for given element type. Only works for <input type='file' />"); | |
| } | |
| var files = this.prop('files'); | |
| var defaultCallback = function() { }; |
NewerOlder