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
list1 = ['1\n', '00:04:11,588 --> 00:04:13,920\n', 'Nurse Evelyn! Nurse Evelyn!\n', '\n', '2\n', '00:04:15,024 --> 00:04:17,788\n', 'I have a message for you. In English!\n', '\n', '3\n', '00:04:35,345 --> 00:04:37,575\n'] | |
def get_strings_position_in_list(astring, alist, position): | |
for position, string in enumerate(alist): | |
if string.find(astring) != -1: | |
yield position | |
for g in get_strings_position_in_list(" --> ", list1, 0): | |
print(g) |
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 | |
'''Read fully linked TI COFF file, and generate AIS format file | |
Commandline parameters | |
enable sequential read, | |
pll and emifb configuration | |
pinmux configuration | |
enable checksums | |
'Eliot Blennerhassett' <[email protected]> |
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
# See file COPYING in this source tree | |
__copyright__ = ('\n'.join([ | |
'Copyright (c) Twisted Matrix Laboratories', | |
# https://github.com/twisted/twisted/blob/4368c0b84b82f0791f6df52dc80328f7bd493547/src/twisted/internet/_posixserialport.py | |
'Copyright 2016, EPC Power Corp.' | |
])) | |
__license__ = 'GPLv2+' | |
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
# See file COPYING in this source tree | |
__copyright__ = ('\n'.join([ | |
'Copyright (c) Twisted Matrix Laboratories', | |
# https://github.com/twisted/twisted/blob/4368c0b84b82f0791f6df52dc80328f7bd493547/src/twisted/internet/_posixserialport.py | |
'Copyright 2016, EPC Power Corp.' | |
])) | |
__license__ = 'GPLv2+' | |
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
# See file COPYING in this source tree | |
__copyright__ = ('\n'.join([ | |
'Copyright (c) Twisted Matrix Laboratories', | |
# https://github.com/twisted/twisted/blob/4368c0b84b82f0791f6df52dc80328f7bd493547/src/twisted/internet/_posixserialport.py | |
'Copyright 2016, EPC Power Corp.' | |
])) | |
__license__ = 'GPLv2+' | |
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
diff --git a/qt5reactor.py b/qt5reactor.py | |
index a76f99c..f162f9b 100644 | |
--- a/qt5reactor.py | |
+++ b/qt5reactor.py | |
@@ -1,435 +1,441 @@ | |
# -*- coding: utf-8 -*- | |
# Copyright (c) 2001-2014 | |
# Allen Short | |
# Andy Gayton | |
# Andrew Bennetts |
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
diff --git a/qt5reactor.py b/qt5reactor.py | |
index a76f99c..f162f9b 100644 | |
--- a/qt5reactor.py | |
+++ b/qt5reactor.py | |
@@ -1,435 +1,441 @@ | |
# -*- coding: utf-8 -*- | |
# Copyright (c) 2001-2014 | |
# Allen Short | |
# Andy Gayton | |
# Andrew Bennetts |
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
diff --git a/wiki2html.py b/wiki2html.py | |
index 542ed9d..f31580b 100644 | |
--- a/wiki2html.py | |
+++ b/wiki2html.py | |
@@ -17,13 +17,16 @@ import traceback | |
tree = ET.parse('your.xml', encoding='utf8') | |
root = tree.getroot() | |
-items = (['Category:', 'User talk:', 'Template:', 'User:', 'Shadowrun talk:', 'File:', 'Talk:', | |
- 'Shadowrun Wiki:', 'User blog:', 'User blog comment:']) |
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
diff --git a/wiki2html.py b/wiki2html.py | |
index 542ed9d..f31580b 100644 | |
--- a/wiki2html.py | |
+++ b/wiki2html.py | |
@@ -1,38 +1,41 @@ | |
# Wiki2html | |
# | |
# Convert a wikimedia/wikia .xml to html files | |
# where the title of the article is the name of the file | |
# |
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 logging | |
import argparse | |
import can | |
import epyqlib.busproxy | |
import epyqlib.canneo | |
import epyqlib.ticoff | |
import epyqlib.twisted.busproxy | |
import epyqlib.twisted.cancalibrationprotocol as ccp | |
import functools | |
import itertools |