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
@amount = 9 | |
@amount = ARGV[0].to_i if ARGV[0] | |
@randomize = rand(1000) | |
x_array = [] | |
y_array = [] | |
@amount.times do |i| | |
x_array << i+1 | |
y_array << i+1 |
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
<h1 style="text-align:center;"> Page Statistics </h1> | |
<div style="clear:both"> | |
<div style="float:left" id="stats"> | |
loading... | |
</div> | |
<div style="float:left; height:300px; width:10%" id="stats_legend"> | |
loading... | |
</div> | |
</div> |
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
require "aws/s3" | |
AWS::S3::Base.establish_connection!( | |
:access_key_id => 'KEY_GOES_HERE', | |
:secret_access_key => 'KEY_SECRET_GOES_HERE' | |
) | |
object = AWS::S3::S3Object.find 'OBJECT_NAME_GOES_HERE','BUCKET_NAME_GOES_HERE' | |
puts object.etag # MD5 SUM |
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
$here = File.expand_path(File.dirname(__FILE__)) | |
$rails_root = "#{$here}/../.." | |
$logs = "#{$rails_root}/logs/" | |
$script = "#{$rails_root}/script/autotest" | |
namespace :autotest do | |
desc "start autotest background task" | |
task :start do |
NewerOlder