Skip to content

Instantly share code, notes, and snippets.

@joshleitzel
joshleitzel / dump_foursquare_categories.rb
Created January 23, 2013 16:34
Fetch Foursquare categories from the Foursquare API and dump them to a JSON file
require 'foursquare2' # https://github.com/mattmueller/foursquare2
file = 'foursquare_categories.json'
client_id = 'client_id'
client_secret = 'client_secret'
client = Foursquare2::Client.new(:client_id => client_id, :client_secret => client_secret)
File.open(file, 'w') { |file| file.write(JSON.pretty_generate(client.venue_categories)) }
@joshleitzel
joshleitzel / guatamela_telecommunicaiones.md
Created November 22, 2012 02:50
Texto de la Reforma a la Ley de Telecomunicaciones de Guatemala

Comisión de Comunicaciones, Transporte y Obras Públicas Congreso de la República Guatemala, C. A.

Aprobada 20/11/12


DECRETO NÚMERO…

EL CONGRESO DE LA REPÚBLICA DE GUATEMALA

@joshleitzel
joshleitzel / pull_to_refresh.coffee
Created August 19, 2012 21:29
Pull to Refresh on a TableView with Appcelerator Titanium
# (This is CoffeeScript. The compiled JavaScript is below.)
# Pull to Refresh in a TableView on Appcelerator Titanium
# Create an instance of the PullToRefresh class and set it as the table's pullView
# This class is based on code from http://developer.appcelerator.com/blog/2010/05/how-to-create-a-tweetie-like-pull-to-refresh-table.html
# Appcelerator Titanium SDK version 2.1.0.GA, tested only with iOS
class PullToRefresh
constructor: ->
@render()