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
| var closeVolume = function(pathVolume) { | |
| var firstPoint, lastPoint, points; | |
| if (pathVolume === null) { | |
| return null; | |
| } | |
| points = pathVolume.shape.points; | |
| if (points.length < 2) { |
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
| // 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 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
| license: MIT |
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 | |
| 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 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
| 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 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
| rds.create_db_snapshot( | |
| :db_snapshot_identifier => 'test-snap', | |
| :db_instance_identifier => '[production-instance]' | |
| ) | |
| rds.restore_db_instance_from_snapshot( | |
| :db_snapshot_identifier => 'test-snap', | |
| :db_instance_identifier => 'clone', | |
| :db_instance_class => 'db.m1.small' | |
| ) |
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
| > mysqldump old_db -u user -p > inventables.sql | |
| > mysql rds_db -u user -p -h [RDS_connection_string] < inventables.sql |
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
| db = rds.create_db_instance(:db_instance_identifier => "[FILTERED]", :allocated_storage => 100, :db_instance_class => "db.m1.small", :engine => "MySQL5.1", :master_username => '[FILTERED]', :master_user_password => '[FILTERED]', :db_name => '[FILTERED]', :availability_zone => 'us-east-1c') |
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
| db = rds.create_db_instance( | |
| :db_instance_identifier => "[FILTERED]", | |
| :allocated_storage => 100, | |
| :db_instance_class => "db.m1.small", | |
| :engine => "MySQL5.1", | |
| :master_username => '[FILTERED]', | |
| :master_user_password => '[FILTERED]', | |
| :db_name => '[FILTERED]', | |
| :availability_zone => 'us-east-1c' | |
| ) |
NewerOlder