Skip to content

Instantly share code, notes, and snippets.

View kareiva's full-sized avatar

Simonas kareiva

  • Red Hat
  • Vilnius
View GitHub Profile
{
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...
@mousavian
mousavian / openstack-cleanup-database
Created June 17, 2015 02:17
A tool to cleanup openstack nova database from all deleted instances
#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))