code
3 March 2009 | 2 Comments
Maya’s python interface leaves something to be desired, as it seems like a straight port of their existing MEL interface with no additional thought put into designing a nice OO interface. For example, here is how to set or get the ‘radius’ attribute of a sphere: s = cmds.sphere() r = cmds.sphere(s, query=True, radius=True) cmds.sphere(s, [...]
Tagged in code, criticism, maya, Programming, python, short
code,commentary,replies,utility
28 January 2009 | 3 Comments
Introduction David R. MacIver has recently written this blog post about cleaning up a set of tags. This blog post, on the other hand, is about a nice old Unix tool called ‘awk’. Awk is one of those programs that is often overlooked. It is really a small domain-specific language for processing text. In some [...]
Tagged in awk, code, inflammatory, Linux, Programming, Ruby, tutorial, Unix
code,tips
10 December 2008 | 0 Comments
Just a small tip on this: When you add an argument to a function that already exists you should check the existing usage of the function. Say you have this: f x y z = … … and you want: f x y z w = … First of all you should check the contexts [...]
Tagged in code, Functional programming, Haskell, Programming, refactoring, short, tips
code,self,university
20 November 2008 | 0 Comments
This post brought to you as part of fulfilling the requirements for Massey University’s 143.362. I thought I had posted this earlier, but it turns out I hadn’t. So, it’s here now Meteoroids Meteoroids is a simple game (the premise being an homage to the classic Asteroids-based titles), programmed in Processing. Audio is provided via [...]
Tagged in code, Game, massey, meteoroids, uni, university, Work