Skip to content

Instantly share code, notes, and snippets.

# encoding: utf-8
require 'carrierwave/processing/mini_magick'
class PicUploader < CarrierWave::Uploader::Base
include CarrierWave::MiniMagick
# Choose what kind of storage to use for this uploader
storage :grid_fs
#!/usr/bin/env ruby
require 'rubygems'
require 'daemons'
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'config', 'environment'))
Daemons.run_proc('navvy_worker', :dir => Rails.root.join('tmp/pids')) do
logger = Logger.new Rails.root.join('log/navvy.log')
@bitzesty
bitzesty / gist:379214
Created April 26, 2010 11:13
xml2json.heroku.com example with the pivotal tracker API
$.ajax({
type: "GET",
url: 'http://xml2json.heroku.com',
data:'url=https://www.pivotaltracker.com/services/v3/projects/'+projectId+'/iterations/current?token='+trackerToken,
dataType: 'jsonp',
success: function(data) {
console.log(data);
}
});