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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
Created on Wed Nov 14 01:39:53 2012 | |
@author: Danilo J. S. Bellini | |
""" | |
from warnings import warn, catch_warnings | |
import pytest |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# Created on Sat Oct 13 by Danilo de Jesus da Silva Bellini | |
# | |
# This code raises: | |
# TypeError: Can't instantiate abstract class A with abstract methods blablah | |
# However, it does not when class A inherits from "type" or "ABCMeta". | |
from abc import ABCMeta, abstractproperty | |
class A(object): |
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
#!/usr/bin/env python | |
import sys | |
from PyQt4 import QtGui, QtCore | |
app = QtGui.QApplication(sys.argv) | |
# Main window, sizers and widgets | |
win = QtGui.QMainWindow() | |
wd = QtGui.QWidget() | |
vb = QtGui.QVBoxLayout() |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
Created on Wed Sep 19 05:54:37 2012 | |
Eruption explosive doomsday calculation. | |
Copyright (C) 2012 Danilo de Jesus da Silva Bellini | |
This program is free software: you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
Created on Tue Sep 11 20:48:25 2012 | |
T9 Message to cell phone numbers to be pressed | |
Problem description: | |
http://dojopuzzles.com/problemas/exibe/escrevendo-no-celular/ |
NewerOlder