Skip to content

Instantly share code, notes, and snippets.

View davidhemphill's full-sized avatar
💀
WIP

Hemp davidhemphill

💀
WIP
View GitHub Profile
window.onload = function()
{
var messages = {};
var xhr = Titanium.Network.createHTTPClient();
xhr.onload = function()
{
// convert the response JSON text into a JavaScript object
var json = eval('(' + this.responseText + ')');
var optionData = [
{title:'Family Tree', "hasChild": "true"},
{title:'Faith-based Initiatives', "hasChild": "true"},
{title:'Why Am I?', "hasChild": "true"}
];
var optionSection = Titanium.UI.iPhone.createGroupedSection({header:'Message Series', type:'option', data:optionData});
// create the grouped view
var groupedView = Titanium.UI.iPhone.createGroupedView();
<html>
<head>
<style type="text/css" media="screen">
h2 {
float: left;
}
p {
float: left;
}
window.onload = function()
{
var xhr1 = Titanium.Network.createHTTPClient();
var xhr2 = Titanium.Network.createHTTPClient();
var callOne = false;
var callTwo = false;
var section1 = null;
var section2 = null;
// Run via OS X Terminal.app to block junk tweets in Tweetie.
// Info: http://atebits.posterous.com/test-filtering-in-tweetie-for-mac
defaults write com.atebits.tweetie-mac filterTerms -array "@gowalla" "http://gowal.la" "@foursquare" "http://4sq.com"
/* `HTML5 Reset
----------------------------------------------------------------------------------------------------*/
a,
abbr,
address,
article,
aside,
audio,
b,
// TinyMCE Settings.
tinyMCE.init({
extended_valid_elements: 'style',
mode: 'exact',
elements: 'id_name',
theme: 'advanced',
theme_advanced_toolbar_location: 'top',
theme_advanced_toolbar_align: 'left',
plugins: 'safari, style, table, paste, media',
theme_advanced_buttons1: 'bold, italic, underline, justifyleft, justifycenter, justifyright, justifyfull, formatselect, fontselect, fontsizeselect',
* {
font-family: Helvetica !important;
cursor: default;
}
/* The Message listing */
div.BMRW0e:nth-child(2) div.uQdvnb:nth-child(1) {
display:block;
overflow-x:hidden;
overflow-y:scroll;
// ==UserScript==
// @name iPad Gmail fix
// @namespace http://fluidapp.com
// @description Resizes the window to iPad specs
// @include *
// @author David Hemphill
// ==/UserScript==
(function () {
if (window.fluid) {
/* @override http://workshop.wpcoder.com/dan/HFM/wp-content/themes/HF&M/css/style.css */
body {
background: #FFFFFF;
color: #000000;
}
a, a:visited {
color: #000;
text-decoration: none;