Skip to content

Instantly share code, notes, and snippets.

# Amazon FPS Plugin
require 'net/https'
require 'time'
require 'openssl'
require 'base64'
require 'yaml'
module AWS_FPS
# Load AWS config
path = File.expand_path "#{RAILS_ROOT}/config/amazon_fps.yml"
# ECE 486 Project 1
# PDP 8 Benchmarking tool
#
f = File.open("add01.obj","r")
lines = f.readlines
f.close
prog_data = Hash.new { |hash, key| hash[key] = {:addr => "", :data => ""} }
ins = 0
# ECE 486 Project 1
# PDP 8 Benchmarking tool
#
class PDP8
f = File.open("add01.obj","r")
lines = f.readlines
f.close
prog_data = Hash.new { |hash, key| hash[key] = {:addr => "", :data => ""} }
# ECE 486 Project 1
# PDP 8 Benchmarking tool
#
require 'PDP8_stats'
class PDP8
# Read the object file and load it to
f = File.open("TestJMS.obj","r")
# ECE 486 Project 1
# PDP 8 Benchmarking tool
#
require 'PDP8_stats'
class PDP8
# Read the object file and load it to
f = File.open("TestISZ.obj","r")
sudo gem install mysql -- --with-mysql-dir=/usr/local/mysql
http://api.bandsintown.com/events/search?artists[]=Super8%20and%20Tab&artists[]=OceanLab&artists[]=Super8%20and%20Tab&artists[]=OceanLab&artists[]=Super8%20and%20Tab&artists[]=OceanLab&artists[]=Super8%20and%20Tab&artists[]=OceanLab&artists[]=Super8%20and%20Tab&artists[]=OceanLab&artists[]=Super8%20and%20Tab&artists[]=OceanLab&artists[]=Super8%20and%20Tab&artists[]=OceanLab&format=xml
url = URI.parse("http://api.bandsintown.com/events/search?artists[]=Super8 and Tab&artists[]=OceanLab&artists[]=Super8 and Tab&artists[]=OceanLab&artists[]=Super8 and Tab&artists[]=OceanLab&artists[]=Super8 and Tab&artists[]=OceanLab&artists[]=Super8 and Tab&artists[]=OceanLab&artists[]=Super8 and Tab&artists[]=OceanLab&artists[]=Super8 and Tab&artists[]=OceanLab&format=xml")
http://api.bandsintown.com/events/search?artists[]=Trance Around the World&artists[]=DJ Tatana&artists[]=Rank 1 Jochen Miller&artists[]=Cressida&artists[]=Jaytech&artists[]=Kiholm&artists[]=Lange Sarah Howells&artists[]=Wippenberg&artists[]=Andy Moor&artists[]=Nitrous Oxide&artists[]=The Thrillseekers Fisher&artists[]=Oliver Smith&artists[]=Signalrunners and Julie Thompson&artists[]=Super8 and Tab Alyna&artists[]=David Newsum&artists[]=Bart Claessen and Dave Schiemann&artists[]=OceanLab&artists[]=Signalrunners&artists[]=OceanLab&artists[]=Super8 and Tab&artists[]=OceanLab&format=json&limit=5
public_path = File.expand_path("public") + "/assets/sets"
if(!File.directory?(public_path+"/#{@dj_set.podcast.alias}"))
Dir.mkdir(public_path+"/#{@dj_set.podcast.alias}")
end
if(!File.file?(public_path+"/#{@dj_set.podcast.alias}/#{@dj_set.setTitle}.xml"))
xml_file = File.new(public_path+"/#{@dj_set.podcast.alias}/#{@dj_set.setTitle}.xml","w")
xml_file.puts @dj_set.to_xml(@dj_set)
xml_file.close
end
if(!File.file?(public_path+"/#{@dj_set.podcast.alias}/#{@dj_set.setTitle}.json"))
# mail config
mail:
address: smtp.gmail.com
port: 587
domain: mugasha.com
authentication: :login
user_name: akshay@mugasha.com
password:
sender: donotreply@mugasha.com