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
| # 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 => ""} } |
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
| # 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") |
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
| # 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") |
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
| sudo gem install mysql -- --with-mysql-dir=/usr/local/mysql |
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
| 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") |
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
| 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 |
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
| 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")) |
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
| # mail config | |
| mail: | |
| address: smtp.gmail.com | |
| port: 587 | |
| domain: mugasha.com | |
| authentication: :login | |
| user_name: akshay@mugasha.com | |
| password: | |
| sender: donotreply@mugasha.com | |
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
| #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; |
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
| #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; | |