The new hardcore
Trying some new hardcore - Assembly in Emacs 😁
Trying some new hardcore - Assembly in Emacs 😁
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)
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 with some texture and sculpting. Yet, trying to get some pretty materials on this...
Reworked materials for my rifle
Have had some free time and tried sculpting in Blender 😜 With some other nice stuff 😁
Just some WIP. Having fun with Blender 😊
Playing around with Blender - rendering, modifiers and some basic texturing and materials.