This file contains 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
import urllib2 | |
import re | |
url="http://www.hearthpwn.com/deckbuilder/warrior#1:2;69:2;103:2;130:2;182:2;261:2;324:2;345:1;632:2;637:2;638:2;674:1;27215:1;33132:2;35204:2;49624:1;49759:2" | |
site = urllib2.urlopen(url) | |
html = site.read() | |
links = re.findall('"((http|ftp)s?://.*?)"', html) | |
for link in links: | |
print "Link is: ", link[0] |
This file contains 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
'******************************************************************** | |
' | |
' NewVideoPlayer -- Example Multi-Level Roku Channel | |
' | |
' Copyright (c) 2015, belltown. All rights reserved. See LICENSE.txt | |
' | |
'********************************************************************* | |
' | |
' Read and parse an Xml document |
This file contains 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
'******************************************************************** | |
' | |
' NewVideoPlayer -- Example Multi-Level Roku Channel | |
' | |
' Copyright (c) 2015, belltown. All rights reserved. See LICENSE.txt | |
' | |
'********************************************************************* | |
' | |
' Parse a Roku <feed> Xml document. |
This file contains 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
'******************************************************************** | |
' | |
' NewVideoPlayer -- Example Multi-Level Roku Channel | |
' | |
' Copyright (c) 2015, belltown. All rights reserved. See LICENSE.txt | |
' | |
'********************************************************************* | |
' | |
' Source files: | |
' Main.brs - This file |
This file contains 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
'******************************************************************** | |
' | |
' NewVideoPlayer -- Example Multi-Level Roku Channel | |
' | |
' Copyright (c) 2015, belltown. All rights reserved. See LICENSE.txt | |
' | |
'********************************************************************* | |
' | |
' Parse a Roku <feed> Xml document. |
This file contains 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
'******************************************************************** | |
' | |
' NewVideoPlayer -- Example Multi-Level Roku Channel | |
' | |
' Copyright (c) 2015, belltown. All rights reserved. See LICENSE.txt | |
' | |
'********************************************************************* | |
' | |
' Parse a Roku <feed> Xml document. |
This file contains 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 http = require('http'); | |
var fs = require('fs'); | |
var body = []; | |
var formData; | |
//Create an HTTP server with a callback function | |
//Callback calls displayForm with res passed (so response can be sent back to client) | |
var server = http.createServer(function (req, response) { |
This file contains 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
#!/bin/bash | |
# Script to test all options for PA4 | |
count=0 | |
args=(-h -u -d -D -c -i -s -S -x -sc) | |
inputfile="test.txt" | |
echo "\n------------------- BEGIN SCRIPT ---------------------" |