Skip to content

Instantly share code, notes, and snippets.

View rileydutton's full-sized avatar

Riley Dutton rileydutton

  • Overland Park, KS
View GitHub Profile
@rileydutton
rileydutton / setheaders.rb
Created May 20, 2011 14:00
Easy way to set cache control and public read permissions on all files in an S3 bucket (in Ruby)
AWS::S3::Base.establish_connection!(
:access_key_id => "YOUR KEY ID",
:secret_access_key => "YOUR ACCESS KEY"
)
finished = false
lastkey = nil
while(!finished)
objects = AWS::S3::Bucket.objects('YOUR BUCKET NAME', :marker => lastkey)
@rileydutton
rileydutton / collabsablerows.js
Created April 28, 2011 16:03
Collapsable/Expandable Table View Rows in Titanium Mobile
var container = Ti.UI.createView({backgroundColor: "white", layout: "vertical"});
var layout = [
{
title: "Parent 1",
isparent: true,
opened: false,
sub: [
{