This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $.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); | |
| } | |
| }); |
OlderNewer