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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<script src="http://code.jquery.com/jquery-1.8.3.min.js"></script> | |
<title>XBMC Remote</title> | |
</head> | |
<body> | |
<h2>XBMC remote</h2> |
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
{% macro button(a) %} | |
<a class="button addloading" data-xhr_url="{{a}}">{{a|title}}</a> | |
{% endmacro %} | |
{{button('intro')}} | |
{{button('modules')}} | |
{{button('search')}} | |
{{button('remote')}} | |
{{button('servers')}} | |
{{button('manage')}} |
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
{% macro inline(title, href, img) %} | |
<div class="inline"> | |
<a href="{{href}}" target="_blank"> | |
<img title="{{title}}" src="{{img}}" height="40" width="40" alt="{{title}}"> | |
<p style="font-size:75%;">{{title}}</p> | |
</a> | |
</div> | |
{% endmacro %} |
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
#!/usr/bin/env python | |
settings = { | |
'xbmc_hostname': '192.168.1.111', | |
'xbmc_port': '8080', | |
'xbmc_username': 'xbmc', | |
'xbmc_password': 'xbmc', | |
'xbmc_mac_address': '00:00:00:00:00:00', | |
'maraschino_url': 'http://127.0.0.1:7000/maraschino', | |
'maraschino_user': '', |
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
########### EDIT ME ########### | |
# Location of Maraschino source | |
mara_dir = 'D:\\mara_exe\\source\\' | |
# Where to put the build directory | |
build_dir = 'D:\\mara_exe\\build\\' | |
# Destination of compiled Maraschino | |
dest_dir = 'D:\\mara_exe\\dest\\' |
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
import datetime, getopt, sys, urllib, urllib2 | |
def main(argv): | |
try: | |
opts, args = getopt.getopt(argv, "ipsw:", ["ip=", "port=", "script_id=", "webroot=", "url="]) | |
except getopt.GetoptError: | |
sys.exit(2) | |
ip = None |
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
if WEBROOT: | |
if WEBROOT[0] != '/': | |
WEBROOT = '/' + WEBROOT | |
d = wsgiserver.WSGIPathInfoDispatcher({WEBROOT: app}) | |
else: | |
d = wsgiserver.WSGIPathInfoDispatcher({'/': app}) | |
SERVER = wsgiserver.CherryPyWSGIServer(('0.0.0.0', PORT), d) | |
# Set up webroot for .less | |
less_webroot = os.path.join(RUNDIR, 'static/less/webroot.less') |
NewerOlder