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') |
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
########### 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
#!/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
{% 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
{% 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
<!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
#!/usr/bin/env python | |
######################################################################### | |
# Boblight config generator created by David Gray (N3MIS15) # | |
# Positioning is calculated starting at the middle bottom of screen # | |
# Only has barebone settings, any other setting should be set manually # | |
# Tested with adafruit 8806 LEDs and adalight # | |
######################################################################### |
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 | |
# | |
# Copyright (C) 2013 Garrett Brown | |
# See Copyright Notice in rominfo.py | |
import testutils | |
import unittest | |
import os | |
import 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
<?xml version="1.0" encoding="UTF-8"?> | |
<addon id="plugin.video.rate_test" version="0.0.1" name="Test Trakt Ratings" provider-name="N3MIS15"> | |
<requires> | |
<import addon="xbmc.python" version="2.1.0"/> | |
<import addon="script.module.xbmcswift2" version="2.4.0" /> | |
</requires> | |
<extension point="xbmc.python.pluginsource" library="plugin.py"> | |
<provides>video</provides> | |
</extension> | |
<extension point="xbmc.addon.metadata"> |
OlderNewer