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
[ | |
{ "city" : "Beograd", "_id" : 11000 }, | |
{ "city" : "Beograd Vozdovac", "_id" : 11010 }, | |
{ "city" : "Beograd Čukarica", "_id" : 11030 }, | |
{ "city" : "Beograd Zvezdara", "_id" : 11050 }, | |
{ "city" : "Beograd Palilula", "_id" : 11060 }, | |
{ "city" : "Novi Beograd", "_id" : 11070 }, | |
{ "city" : "Beograd Zemun", "_id" : 11080 }, | |
{ "city" : "Beograd Rakovica", "_id" : 11090 }, | |
{ "city" : "Kaluđerica", "_id" : 11130 }, |
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
# NOTE: Change this to random numbers in range (0, 255) inclusive | |
_key = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0] | |
_vector = [0, 0, 0, 0, 0, 0, 0, 0, | |
0, 0, 0, 0, 0, 0, 0, 0] | |
from System import Array, Byte | |
from System.Text import UTF8Encoding | |
from System.IO import MemoryStream |
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
__author__ = 'Bojan Delic <[email protected]>' | |
__date__ = 'Jan 11, 2013' | |
__copyright__ = 'Copyright (c) 2013 Bojan Delic' | |
class DependencyGraphException(Exception): pass | |
class Node(object): | |
''' Represents single node in graph ''' | |
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 | |
from logging.config import dictConfig | |
# adding custom level | |
logging.VERBOSE = 5 | |
logging._levelNames.update({ | |
5: 'VERBOSE', | |
'VERBOSE': 5, | |
}) |
NewerOlder