An anagram of Matthew Obert
The evolution of multisets in Python
A lightning talk by Gary Bernhardt from CodeMash 2012
For more Gary Bernhardt, see Destroy All Software Screencasts and Extra Cheese.
import time
import sys
import os
def sleep(z):
for n in range(z):
print
time.sleep(0.25)
def hack(s):
for c in s:
sys.stdout.write( '%s' % c )
sys.stdout.flush()
time.sleep(0.25)
time.sleep(3)
print
def repeat(r):
for duration in range(r):
sleep(r)
os.system("clear")
sleep(r)
hack(" dc401.org")
hack(" sleep. hack. repeat.")
repeat(6)
This dc401.py script does the job, but I think it would benefit from some old-fashioned code bumming. For example, I wonder whether I could rewrite the sleep() function to accept multiple arguments in such a way that I could avoid extra time.sleep() and print statements in the hack() function.
But there is an additional constraint: everything should be accomplished in the three named functions, which are a DC401 slogan of sorts. It’s like those “Perl poetry“ competitions — only cooler, because it’s Python poetry. (No offense intended to my Perl-monger friends.)
Cast Party (2012) by Matthew Obert
Graphite, GIMP
My dear friend Vicky just broke her arm, which inspired me to create this pencil drawing / faux-silkscreen digital illustration for a homemade D.I.Y. get-well card.
The caption inside the card reads: “CONGRATULATIONS on your big break! When is the cast party?”
At the risk of giving away the secret recipe to my special sauce (dude, it’s ketchup and mayonnaise!) I figured I’d post a little GIMP tutorial.
You can use Photoshop instead, if that’s how you choose to live your life — just be aware that your menus and dialogs will not be identical to those in this tutorial.
Once you know the trick, you can make any line drawing look like a silkscreen!