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://"+xboxIP+"/xbmcCmds/xbmcHttp?command=playfile¶meter="+mediaUrls |
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
| #!perl | |
| use v5.10; | |
| use MIME::Base64; | |
| my $EMBED; | |
| my $fir=q{prunus\\}; | |
| $fir =~ s/\\/\\\\/g; | |
| my $dir= $EMBED? '': "'file:///$fir' +"; |
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
| from aqt import mw | |
| from aqt.utils import showInfo | |
| from aqt.qt import * | |
| import re | |
| def strictDuplicate(): | |
| all_words=dict() | |
| for id in mw.col.findNotes("deck:Japanese::Vocabulary"): | |
| note=mw.col.getNote(id) | |
| word=note.fields[0] |
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
| from codecs import open | |
| from collections import defaultdict | |
| import re | |
| """ | |
| To use, export decks so that | |
| Core2k: core2k.txt | |
| Core6k: core6k.txt | |
| Vocabulary (including both user-generated; CorePlus; and Core2-6K): out.txt | |
| Before export, tag non-leech suspended notes with "rololo" |
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 urllib2 | |
| import re | |
| uid='xv3f6f' | |
| f = urllib2.urlopen('http://www.dailymotion.com/embed/video/%s' % uid).read() | |
| url=re.findall('"stream_h264_url":"(.*?)",', f, re.DOTALL) | |
| resolved_url=url[0].replace('\\','') | |
| print resolved_url |
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 xbmc | |
| import shutil | |
| ass_subtitle='special://temp/%s' % xbmc.Player().getSubtitles() | |
| shutil.copy(ass_subtitle, 'Q:\\scripts\\') |
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
| #!perl | |
| use v5.12; | |
| use strict; | |
| use warnings; | |
| use utf8; | |
| use Unicode::UCD 'charinfo'; | |
| my $SENTENCE = ''; |
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
| """ | |
| A HTTP server that proxies GET requests to a FTP server | |
| """ | |
| import ftplib | |
| from mimetypes import guess_type | |
| import BaseHTTPServer | |
| from urllib2 import unquote | |
| from optparse import OptionParser |
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
| """ | |
| Recursivly traverses a FTP directory, picking a random user-given number of files and outputting them in the format | |
| {image: http://<filename>} | |
| """ | |
| import ftplib | |
| import random | |
| from optparse import OptionParser | |
| def traverse(ftp, depth=0): | |
| """ |
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
| """ | |
| ass2srt.py | |
| Converts the currently set .ass subtitle to .srt and sets it as the subtitle for the current video | |
| """ | |
| import re | |
| import xbmc | |
| from os.path import basename, splitext | |
| from datetime import time | |
| import traceback | |
| import codecs |