Skip to content

Instantly share code, notes, and snippets.

# 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("TestISZ.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("TestJMS.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
#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
#user nobody;
worker_processes 1;
#error_log logs/error.log;
error_log logs/error.log debug;
#error_log logs/error.log info;
#pid logs/nginx.pid;