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
| http://streamhacker.com/ | |
| http://www.cse.unsw.edu.au/~billw/nlpdict.html |
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
| https://code.google.com/p/micropendous/wiki/SerialPortUsageWindows | |
| http://processors.wiki.ti.com/index.php/Teraterm_Scripts | |
| http://ttssh2.sourceforge.jp/manual/en/ |
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
| http://www.geeksforgeeks.org/understanding-extern-keyword-in-c/ | |
| http://stackoverflow.com/questions/2198186/purpose-of-ifndef-filename-endif-in-header-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
| Installation instructions | |
| +++++++++++++++++++++++++ | |
| * download .dmg file for Mac and install Google AppEngineLauncher | |
| * allow symlinks to be setup | |
| * e.g. symlink --> /usr/local/google_appengine/dev_appserver.py | |
| Setting up and running your first app | |
| +++++++++++++++++++++++++++++++++++++ |
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
| # Python demo of the use of Decorators | |
| def makeBold(func): | |
| def wrapped(): | |
| return '<b>' + func() + '</b>' | |
| return wrapped | |
| def makeItalic(func): |
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
| # Python calls __init__() during instantiation to define additional behavior that should occur | |
| # when a class is instantiated, basically setting up some beginning values for that object or | |
| # running a routine required on instantiation. | |
| For instance if I have a Point class... that has two objects which are the x and y coordinates i can do this: | |
| class Point(): | |
| pass |
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
| # rankdir='LR' ==> graph|tree prints from left to right | |
| tree = pgv.AGraph(directed=True, strict=True, rankdir='LR') | |
| # edges are flat | |
| tree = pgv.AGraph(directed=True, strict=True, splines=False) | |
| # edges are squared | |
| tree = pgv.AGraph(directed=True, strict=True, splines='ortho') | |
| # multiple edges between two nodes | default --> strict=True (when nothing is specified) | |
| tree = pgv.AGraph(directed=True, strict=False) |
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
| pyuic4 gets installed with PyQt4 | |
| $ pyuic4 /Users/arun/QtProjects/foo.ui > /Users/arun/Desktop/foo.py | |
| Now,we can import foo.py in our python code | |
| as .. | |
| from foo import Ui_Foo # Ui_Foo is class name in C++ class generated with foo.ui | |
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
| from pictureflow import * | |
| from PyQt4.QtGui import * | |
| import QtPoppler | |
| import sys | |
| app = QApplication(sys.argv) | |
| w = PictureFlow() | |
| d = QtPoppler.Poppler.Document.load('sample.pdf') | |
| d.setRenderHint(QtPoppler.Poppler.Document.Antialiasing and QtPoppler.Poppler.Document.TextAntialiasing) | |
| page = 0 | |
| pages = d.numPages() - 1 |
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 | |
| class Node(object): | |
| def __init__(self): | |
| self.next_node = {} | |
| self.word_marker = False | |
| def addItem(self, string): | |
| """ |