Skip to content

Instantly share code, notes, and snippets.

View ianb's full-sized avatar

Ian Bicking ianb

View GitHub Profile
import threading
try:
from Queue import Queue
except ImportError:
from queue import Queue
def fact(n, queue=None):
if n == 0 or n == 1:
if queue:
Process: firefox [57590]
Path: /Users/USER/*/Nightly.app/Contents/MacOS/firefox
Identifier: org.mozilla.nightly
Version: 19.0a1 (1912.10.17)
Code Type: X86-64 (Native)
Parent Process: bash [57588]
User ID: 501
Date/Time: 2012-10-17 18:07:25.867 -0500
OS Version: Mac OS X 10.8.2 (12C60)
function supportsWebRTC() {
return !!(
(window.mozRTCPeerConnection || window.RTCPeerConnection)
&& (navigator.mozGetUserMedia || navigator.getUserMedia)
);
}
if (window.mozRTCPeerConnection) {
RTCPeerConnection = mozRTCPeerConnection;
}
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000
[Switching to process 21612 thread 0xb803]
fsm_init_fcb (fcb=0x0, call_id=0, dcb=0x0, type=FSM_TYPE_MIN) at /Users/ianbicking/src/mozilla-central-alder/media/webrtc/signaling/src/sipcc/core/gsm/fsm.c:147
147 fcb->call_id = call_id;
Process: firefox [21212]
Path: /Users/USER/*/Nightly.app/Contents/MacOS/firefox
Identifier: org.mozilla.nightly
Version: 18.0a1 (1812.9.26)
Code Type: X86-64 (Native)
Parent Process: bash [21210]
User ID: 501
Date/Time: 2012-09-26 15:55:57.986 -0500
OS Version: Mac OS X 10.8.1 (12B19)
Process: firefox [20711]
Path: /Users/USER/*/Nightly.app/Contents/MacOS/firefox
Identifier: org.mozilla.nightly
Version: 18.0a1 (1812.9.26)
Code Type: X86-64 (Native)
Parent Process: bash [20709]
User ID: 501
Date/Time: 2012-09-26 15:33:29.839 -0500
OS Version: Mac OS X 10.8.1 (12B19)
Process: firefox [19591]
Path: /Users/USER/*/Nightly.app/Contents/MacOS/firefox
Identifier: org.mozilla.nightly
Version: 18.0a1 (1812.9.26)
Code Type: X86-64 (Native)
Parent Process: bash [5138]
User ID: 501
Date/Time: 2012-09-26 14:01:36.076 -0500
OS Version: Mac OS X 10.8.1 (12B19)
@ianb
ianb / gist:3778473
Created September 24, 2012 21:25
segfault from webrtc use
Process: firefox [13279]
Path: /Users/USER/*/Nightly.app/Contents/MacOS/firefox
Identifier: org.mozilla.nightly
Version: 18.0a1 (1812.9.21)
Code Type: X86-64 (Native)
Parent Process: bash [13277]
User ID: 501
Date/Time: 2012-09-24 16:09:34.491 -0500
OS Version: Mac OS X 10.8.1 (12B19)
function someLibraryCode(callback, dataProvider) {
dataProvider(function (error, data) {
if (error) {
callback(error);
return;
}
var newData = mungeData(data);
callback(null, newData);
});
}
storage = navigator.getDeviceStorage("pictures");
console.log(storage);
// => [object DeviceStorage]
cursor = storage.enumerate();
console.log(cursor, cursor.readyState, cursor.result);
// => [object DeviceStorageCursor] pending undefined
data = new Blob(["test file"], {type: "text/plain"});
result = storage.addNamed(data, "test.txt");
console.log(result, result.readyState);
// => [object DOMRequest] pending