This file contains 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
class << self | |
def image_styles | |
ActiveSupport::OrderedHash.new.tap do |styles| | |
styles[:original] = {:processors => [:slice]} | |
styles[:preview] = {:geometry => "100x100", :processors => [:thumbnail]} | |
end | |
end | |
end | |
has_attached_file :image, |
This file contains 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 | |
def dump_items(items) | |
if items.size > 1 | |
items.each_with_index do |item_to_print, i| | |
items.each_with_index do |related_item, j| | |
next if item_to_print == related_item | |
puts "#{item_to_print}:#{related_item}\t1" | |
end | |
end |
This file contains 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
var closeVolume = function(pathVolume) { | |
var firstPoint, lastPoint, points; | |
if (pathVolume === null) { | |
return null; | |
} | |
points = pathVolume.shape.points; | |
if (points.length < 2) { |
This file contains 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
// rev 452 | |
/******************************************************************************** | |
* * | |
* Author : Angus Johnson * | |
* Version : 6.1.3a * | |
* Date : 22 January 2014 * | |
* Website : http://www.angusj.com * | |
* Copyright : Angus Johnson 2010-2014 * | |
* * | |
* License: * |
This file contains 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
license: MIT |
OlderNewer