The new hardcore

Trying some new hardcore - Assembly in Emacs 😁

How to adjust widget’ size in Qt

Decorator pattern in Python

from contextlib import contextmanager

@contextmanager
def tag(name):
    print "<%s>" % name,
    yield
    print "</%s>" % name,

with tag("h1"):
    print "moo",

print

with tag("div"):
    print "foo",
<h1>moo</h1>
<div>foo</div>
# -*-coding:utf-8 -*-
class SimpleText(object):
    def __init__(self, text):
        self.text = text

    def content(self):
        return self.text

    def __str__(self):
        return self.content()

class TagDecorator(SimpleText):
    def __init__(self, text, tag):
        super(TagDecorator, self).__init__(text)
        self.tag = tag

    def content(self):
        return '<{0}>{1}</{0}>'.format(self.tag, super(TagDecorator, self).content())

a = SimpleText('moo')
print('SimpleText: %s' % a)

b = TagDecorator('moo', 'h1')
print('TagDecorator (h1): %s' % b)

Modelling in Blender

How did I came over from that to this...

NB: this is a 3D model potentially to be used in my ShootThem! game. Inspired by the Chicken Hat from Fable:

creating some gun from a rough primitive model

Creating some gun from a rough primitive model with some texture and sculpting. Yet, trying to get some pretty materials on this...

reworked materials for my rifle

Reworked materials for my rifle

Trying sculpting in Blender

Have had some free time and tried sculpting in Blender 😜 With some other nice stuff 😁

Having fun with Blender

Just some WIP. Having fun with Blender 😊

Installing deb package with dependencies

My very first model in Blender

Playing around with Blender - rendering, modifiers and some basic texturing and materials.