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
{ | |
Here it is! My first attempt to do some nice 3D stuff in TMT Pascal... | |
I think it looks pretty cool. As you can see lots of procedures are | |
done in assembler, 'cause 32-bit power rules! I think that's the best | |
feature of TMT Pascal. This program is not very fast (no Pentium | |
optimizations and stuff...), but it is isn't slow too. You can find | |
some interesting procedures in it like Rotate3D, ConvertTo2D, | |
GouraudPoly, FIndColors. I think they are pretty fast. You CAN use | |
them in your own programs, I don't mind... |
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
#run this to keep the output: | |
#$ cleaner.py > cleaner.log | |
import mysql.connector | |
uuids = [] | |
class MySQLCursorDict(mysql.connector.cursor.MySQLCursor): | |
def _row_to_python(self, rowdata, desc=None): | |
row = super(MySQLCursorDict, self)._row_to_python(rowdata, desc) | |
if row: | |
return dict(zip(self.column_names, row)) |