Skip to content

Instantly share code, notes, and snippets.

View arcturus's full-sized avatar

Francisco Jordano arcturus

View GitHub Profile
@eligrey
eligrey / README.md
Created August 11, 2011 01:41
An external resource request function for modern (i.e. BlobBuilder-supporting) browsers and FF5.

API

XMLHttpRequest request({
    String url
    // type can be buffer, blob, text, or document
    optional String type = "buffer"
    optional String|ArrayBuffer|Blob|FormData|Document data
    optional Function callback(type data)

optional Function onerror()

@erikeldridge
erikeldridge / yqlLogger.js
Created May 16, 2010 03:00
A convenience fn for adding meta data to the log in YQL
/**
* A convenience fn for adding meta data to the log in YQL
*
* Usage:
* 1) copy/paste this code into your YQL table's execute block
* 2) Edit the tableName var to match your table's name
* 3) To log the message 'aloha' on line 25, call the logger like this: logger( 'aloha', 25 );
* 4) Look in the diagnostics section of your YQL output to see the log entry
*
* License: Yahoo! BSD http://gist.github.com/375593