Skip to content

Instantly share code, notes, and snippets.

View archit's full-sized avatar
🏠
Working from home

Archit Baweja archit

🏠
Working from home
View GitHub Profile
@jollytoad
jollytoad / gist:4201905
Created December 4, 2012 08:44
Read a File using a FileReader returning a jQuery promise
function readFile(file) {
var reader = new FileReader();
var deferred = $.Deferred();
reader.onload = function(event) {
deferred.resolve(event.target.result);
};
reader.onerror = function() {
deferred.reject(this);
@janogarcia
janogarcia / gearman_admin.md
Created November 26, 2012 09:05
Gearman Server Administration (telnet, PHP)

Telnet

The Gearman job server supports a text-based protocol to pull information and run some administrative tasks. The following commands are supported:

  • workers
  • status
  • maxqueue
  • shutdown
  • version