Skip to content

Instantly share code, notes, and snippets.

View millsoft's full-sized avatar
🔵
while 1

Michael Milawski millsoft

🔵
while 1
  • Millsoft
  • Germany
View GitHub Profile
@millsoft
millsoft / encode.py
Last active November 16, 2020 09:04 — forked from gasman/encode.py
Encoding a file as a Youtube video - https://www.youtube.com/watch?v=hyqLv2_zBdA
# Encode inputfile.tar.gz as a series of video frames
# Frames are written to frames/frameNNNN.png
from PIL import Image
with open('inputfile.tar.gz', 'rb') as f:
data = f.read()
WIDTH = 120
HEIGHT = 90
CHUNK_SIZE = int((WIDTH * HEIGHT) / 8)
@millsoft
millsoft / 0_reuse_code.js
Created October 13, 2016 19:41
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console