Skip to content

Instantly share code, notes, and snippets.

View triptych's full-sized avatar
💭
Making web things

Andrew Wooldridge triptych

💭
Making web things
View GitHub Profile
body {
background-color: tan;
}
/** faviquest - every website is an adventure! **/
/** created by Andrew Wooldridge <[email protected]>
/** data and functions**/
var fq ={
img: {
logo: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABGdBTUEAANbY1E9YMgAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAgaSURBVHjaYmGgFQiLZOyPjQ5iY2bu/ff/v/yfv38Z/vz9x/Dn31+GX3/+HLr65EnYqpOnXwIEEAuNLGdqCw/NEOPjm6orL8fAz8UFshSK/zKcunXL7vO37xuAKh0BAoiFBpYzJNvb6Qpxc091NzRgYAQKgSyGgadv3jK8ePOGARgqFkCuMEAA0SIEWCUE+JPlREUYeDg4UCx//PoNw7k7dxj+A9k///wGqwUIIBZq+95OXU2Wi40t0UpdnYGVBWH8w1evGU7fvg30OQMDMzMzw8/fEIcBBBATtX1vr6k5zVpTk4efm5uBiZER7Ihnb98xnLh1CxTsDCzMTAzMTMzABAlxAEAAMVHR98yFHm7pUoIC7maqKkg+f8Vw5MYNhr///oF9DsLff/9i+PT9xzuQPEAAMVErywETno8QD+9kf3MzBk42NrDw/ZcvGfZdvsLwG5gFwZYzMTH8AKaJWy9eMtx4/nw9UMlvgACiPA2ERjJmuzi7i/LxLkpydmSQFBTEsBwEfvz+zXAPKPbo9ZtfQAccvvHixVag8HuAACLoAEWdIIbf7IwMf1gYGf4zMTK8PL4aLM7hE87wm5WROdvdtUyAm6st1dWFQUpICMNyEL7/8hXI8l+P3r67ev35s+M/fv85C1R2Goi/AwQQIy6LdeQCGCItXEREOPnqmf4z5Pz58/diw/1tZn9ZGH4FhzoJc3FzODIxMeZLCQr
var url = "https://"+un+":"+pw+"@twitter.com/statuses/update.json";
var xhr = Titanium.Network.createHTTPClient();
xhr.onload = function() {
// Handle response
};
xhr.open("POST",url);
xhr.send({ status:'My awesome tweet!' });
var foo = [];
$("table td.class").each(function(idx,domEl){
foo[foo.length] = domEl;
})
testing 1234
<script type="text/javascript"
src="http://yui.yahooapis.com/3.2.0/build/simpleyui/simpleyui-min.js"></script>
Y.use('dd-drag', function(Y) {
var dd = new Y.DD.Drag({
node: '#foo'
});
});
<script type="text/javascript"
src="http://yui.yahooapis.com/3.2.0/build/simpleyui/simpleyui-min.js"></script>
/**
* Sanitize URL — Validate it looks like a URL, then make it less dirty.
*
* Oddnut Software
* Copyright (c) 2010 Eric Ferraiuolo - http://eric.ferraiuolo.name
* MIT License - http://www.opensource.org/licenses/mit-license.php
*
* Examples:
*
* 'Http://WWW.example.com/' » 'http://www.example.com/'
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<script type="text/javascript"
src="http://yui.yahooapis.com/3.2.0/build/simpleyui/simpleyui-min.js"></script>
<link rel="stylesheet" type="text/css"
href="http://yui.yahooapis.com/3.2.0/build/cssreset/reset-min.css">