Skip to content

Instantly share code, notes, and snippets.

@rborn
rborn / google-weather-api-conditions.xml
Created July 14, 2012 18:19 — forked from bzerangue/google-weather-api-conditions.xml
Google Weather API Conditions List
<?xml version="1.0" encoding="UTF-8"?>
<!--Google Weather API Conditions. Compiled by Dennis Delimarsky, http://dennisdel.com/content/conditions.xml-->
<!--Tweaked by Brian Zerangue, February 1, 2011-->
<conditions>
<type handle="partly-sunny">Partly Sunny</type>
<type handle="scattered-thunderstorms">Scattered Thunderstorms</type>
<type handle="showers">Showers</type>
<type handle="scattered-showers">Scattered Showers</type>
<type handle="rain-and-snow">Rain and Snow</type>
<type handle="overcast">Overcast</type>
@rborn
rborn / app.js
Created July 16, 2012 13:26 — forked from kosso/app.js
titanium tiws module example
// ****************************************************************************************************************
// ****************************************************************************************************************
// test value can be 'raw' | 'socket.io' | 'nowjs'
var test = 'raw',
// ****************************************************************************************************************
// ****************************************************************************************************************
// REMEMBER to change this with your data
@rborn
rborn / csv-to-json.php
Created July 17, 2012 14:19 — forked from robflaherty/csv-to-json.php
Convert CSV to JSON
<?php
/*
* Converts CSV to JSON
* Example uses Google Spreadsheet CSV feed
* csvToArray function I think I found on php.net
*/
header('Content-type: application/json');
// Set your CSV feed
@rborn
rborn / csv-to-json.php
Created July 20, 2012 09:04 — forked from robflaherty/csv-to-json.php
Convert CSV to JSON
<?php
/*
* Converts CSV to JSON
* Example uses Google Spreadsheet CSV feed
* csvToArray function I think I found on php.net
*/
header('Content-type: application/json');
// Set your CSV feed
@rborn
rborn / app.js
Created July 24, 2012 22:01 — forked from viezel/app.js
Customize the look of the tab bar in iOS Appcelerator Titanium
Ti.include('overrideTabs.js');
/*
This is a typical new project -- a tab group with three tabs.
*/
var tabGroup = Ti.UI.createTabGroup();
/*
Tab 1.
@rborn
rborn / app.js
Created July 24, 2012 22:02 — forked from pec1985/app.js
movable header
var win = Ti.UI.createWindow();
// image found at
// http://f.cl.ly/items/3F2Z0j112l3r0x2Z0215/background.png
var bgImage = Ti.UI.createImageView({
width:320,
height:320,
image: 'background.png',
top:-100
@rborn
rborn / draggable.js
Created July 25, 2012 08:45 — forked from dawsontoth/draggable.js
Draggable Code Explained, Somewhat
var U = require('utils');
var VBN = require('viewBasedNavigator');
exports.applyTo = function(args) {
args = args || {};
U.def(args, {
id: null,
view: null,
anchor: 'left',
expanded: 320,
@rborn
rborn / app.js
Created July 27, 2012 17:56
titanium tiws module example
// ****************************************************************************************************************
// ****************************************************************************************************************
// test value can be 'raw' | 'socket.io' | 'nowjs'
var test = 'raw',
// ****************************************************************************************************************
// ****************************************************************************************************************
// REMEMBER to change this with your data
@rborn
rborn / app.js
Created July 31, 2012 11:54 — forked from dezinezync/app.js
Tweetie like TiUITableView cells
var data = [];
var t1;
var win = Ti.UI.createWindow({
width: Ti.UI.FILL,
height: Ti.UI.FILL,
backgroundColor: '#ffffff'
});
var tableView = Ti.UI.createTableView({
@rborn
rborn / ActionBarView.js
Created July 31, 2012 16:10 — forked from Mode54/ActionBarView.js
Action Bar Module for Titanium Mobile
/*
* Android API Guide
* http://developer.android.com/guide/topics/ui/actionbar.html
* Android Design Guide
* http://developer.android.com/design/patterns/actionbar.html
* Titanium Mobile will support someday
* https://jira.appcelerator.org/browse/TIMOB-2371
*/
var osName = Ti.Platform.osname,
isAndroid = osName==='android',