Philip Jama

Article Press Demo

JSON → Static HTML with code execution

2025-01-01

ArticleDemoPython

This is a demo article rendered from JSON. It supports inline code and images.

Python‑generated Image

Sine wave rendered by Python
Sine wave rendered by Python
Show Python source
import math
from PIL import Image, ImageDraw
W,H = 400, 200
img = Image.new('RGB', (W,H), (255,255,255))
draw = ImageDraw.Draw(img)
for x in range(W):
    y = int((math.sin(x/20.0)+1)*0.5*H)
    draw.point((x, H-1-y), fill=(0,0,200))
img.save('sine.png')
print('wrote sine.png')

To execute code and embed its output, set exec: true in the block above.

Collaborate

If you're exploring related work and need hands‑on help, I'm open to consulting and advisory. Contact me on LinkedIn.