Skip to content

Instantly share code, notes, and snippets.

@WFT
WFT / Robot.laf
Created September 16, 2014 21:05
Robot.laf
skeleton 0 0 0 {
vary j 1 360 1 90
sphere 1 1 1 0 0 0 0 0 0
bone 3 0 0 {
cube 1.5 1 1 0 0 0 1.5 0 0
sphere 1 1 1 0 0 0 3 0 0
bone 3 3 0 {
cube 1 1.5 1 0 0 0 3 1.5 0
sphere 1 1 1 0 0 0 3 3 0
bone 3 3 3 {
@WFT
WFT / b64_image_utils.py
Created January 27, 2014 05:30
base64 PIL processing
import Image
from cStringIO import StringIO
import base64
def combine_b64(top, bottom, x, y):
a = b64_to_Image(top)
b = b64_to_Image(bottom)
return Image_to_b64(combine(a, b, x, y))
def Image_to_b64(img):