Skip to content

Instantly share code, notes, and snippets.

Wez Furlong wez

Block or report user

Report or block wez

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@wez
wez / worker.js
Created Oct 20, 2009
playing with workers in titanium
View worker.js
var fs = Titanium.Filesystem;
var api = Titanium.API;
api.print("worker starting\n");
var path = fs.getResourcesDirectory() + fs.getSeparator() + 'worker.php';
api.print("PHP code is at " + path + "\n");
if (false) {
@wez
wez / sslclient.php
Created Oct 17, 2009
poor mans ssl client that reads "asynchronously" (every 100ms)
View sslclient.php
class SSLSocket {
public $s = null;
public $on_err = null;
public $on_read = null;
public $on_readComplete = null;
public $on_timeout = null;
public $on_write = null;
public $endpoint = null;
public $wbuffer = array();
public $timer = null;
You can’t perform that action at this time.