Categories
- Blog (101)
- Lua (13)
- Miscellaneous (46)
- Photos (6)
- Programming (31)
- Python (15)
- Sample (3)
- Web Design (3)
- Writing (2)
- Portfolio (40)
- Snippets (27)
- Blog (101)
Tag Archives: Python
Pydev: The Best Python IDE
While I don’t usually advertise, I love eclipse for all of its feature rich implementations of language specific IDE’s. Among those is Pydev, a complete first class IDE for Python.
Recently, Pydev just hit version 1.6.0 (Congratulations!) with the…
Posted in Programming, Python
Tagged eclipse, editor, ide, Programming, pydev, Python
Leave a comment
Linked Lists via ctypes in Python
from ctypes import *
class linknode(Structure):
pass
linknode._fields_ = [
("nextNode", POINTER(linknode)),
("intData", c_int),
]
class linked_list():
head_node = None
def add(self, int_data):
node_to_add = linknode(intData = c_int(int_data))
if (self.head_node == None):
self.head_node = node_to_add
else:
traverse_node
…
Posted in Programming, Python, Snippets
Tagged ctypes, linked list, pointers, Python, structure
Leave a comment
Best Hello World App Ever :D
Written in Python
See http://failboat.me/2009/cute-functions-creating-pseudo-operators-in-python/ for more details.
#Hello World
class Operator(object):
def __init__(self, func, count=2):
self._func_ = func
self._args_ = []
self._count_ = count
def __ror__(self, first_arg):
self._args_.append(first_arg)
…
Cute Functions – Creating pseudo-operators in Python
I ran across something today that I found to be extremely interesting. Basically, the authors of Should_DSL, http://pypi.python.org/pypi/should_dsl/1.2.1, have attempted and succeeded in creating pseudo-operators based on operator-functions within an object.
Let me elaborate.
The goal of Should-DSL
…
[Lua] MapParser (High Level API)
This is a Map parser library for CS2D’s lua engine. Benchmarked to process 6,000 tiles per second. (A 2,000% improvement over the older parser). This also demonstrates that it is possible to have object-orientation within a lua script
…