Tag Archives: Programming

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 , , , , , | Leave a comment

Serializing Lua objects into Lua Code

The following little snippet allows you to ‘pickle’ Lua objects directly into Lua code (with the exception of functions, which are serialized as raw bytecode). Metatable support is on the way, but for now, it should be useful enough.

Example

Posted in Blog, Lua, Programming, Snippets | Tagged , , , , , , | 1 Comment

[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

Posted in Blog, Lua, Programming, Snippets | Tagged , , , , , , , , , , , , , | Leave a comment

Python – Abstract Function class

Python is great. It’s dynamic, it’s flexible, and best of all, for almost all major datatypes, there’s an associated abstract class from which you can over-ride and build your own object out of.

Of course, Python doesn’t treat functions in…

Posted in Programming, Python, Snippets | Tagged , , , , , , , , , , , , | Leave a comment

Auto-restart in (Python) and subprocess.Popen goodness

This is an auto-restart script for Orbited, but it can be modified to be used with other apps. This is presuming that there’s only one instance with that name running.

Basically, this script takes into account the fact that if…

Posted in Programming, Python, Snippets | Tagged , , , , , , , , , , , , , , , , , , , , , | Leave a comment

Wordfilter in Lua

I’ve been getting bored lately so I’ve decided to create a wordfilter in Lua, it’s really basic actually, but useful. The concept goes something like this. You take a list of naughty words, and filter them out of the text.…

Posted in Lua, Programming, Snippets | Tagged , , , , , , , , | Leave a comment