Handy when YQL won't work due to robots.txt blocking.
Derived from prior art by @zeuxisoo: https://gist.github.com/1016047
/* | |
* ATTENTION: | |
* | |
* This layout is now maintained in the `iosched' code.google.com project: | |
* | |
* http://code.google.com/p/iosched/source/browse/android/src/com/google/android/apps/iosched/ui/widget/DashboardLayout.java | |
* | |
*/ | |
/* |
Ti.include('lib/htmlparser.js'); | |
Ti.include('lib/soupselect.js'); | |
var select = soupselect.select; | |
var body = '<html><head><title>Test</title></head>' | |
+ '<body>' | |
+ '<img src="http://l.yimg.com/mq/i/home/HKGallery.gif" />' | |
+ '<div id="block">' | |
+ ' <div class="row">Row 1</div>' |
LOCAL_PATH := $(call my-dir) | |
include $(CLEAR_VARS) | |
LOCAL_MODULE := ffmpeg | |
include $(LOCAL_PATH)/config.mak | |
LOCAL_CFLAGS := -DHAVE_AV_CONFIG_H -std=c99 | |
/* | |
Command-line application for embedding JPEG cover art in MP3, MP4 and OGG audio files. | |
Based on taglib-1.7 (debian libtag1-dev) | |
and libb64 (http://libb64.sourceforge.net/) needed for OGG Vorbis embedded cover art | |
g++ -I/usr/local/include/taglib -L/usr/local/lib -ltag -lb64 setcover.cpp -o setcover | |
g++ -I/opt/homebrew/include/taglib -L/opt/homebrew/include/b64 -ltag -lb64 setcover.cpp -o setcover | |
*/ |
// this sets the background color of the master UIView (when there are no windows/tab groups on it) | |
Titanium.UI.setBackgroundColor('#000'); | |
// create tab group | |
var tabGroup = Titanium.UI.createTabGroup(); | |
// | |
// create base UI tab and root window | |
// |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
/* | |
* MCrypt API available online: | |
* http://linux.die.net/man/3/mcrypt | |
*/ | |
#include <mcrypt.h> |
def getBinaryStream(params) { | |
def data | |
def http = new HTTPBuilder("http://google.com/baseURI") | |
http.request(Method.GET, ContentType.BINARY) {req -> | |
//uri.path = "/a/relative/path/here" | |
uri.port = "8080" | |
uri.query = [userName: "user", password:"password"] | |
headers.'User-Agent' = 'Mozilla/5.0' | |
headers.'Accept' = 'application/octet-stream' | |
response.'200' = {resp, binary -> |
function doClick(e) { | |
alert($.label.text); | |
} | |
function showmenu(e){ | |
$.main.animate({left:200,duration:100}); | |
} | |
function hidemenu(e){ | |
$.main.animate({left:0,duration:100}); |
Handy when YQL won't work due to robots.txt blocking.
Derived from prior art by @zeuxisoo: https://gist.github.com/1016047