Skip to content

Instantly share code, notes, and snippets.

@tiwo
tiwo / README.md
Last active July 10, 2023 01:13
ppt2jpeg.vbs: Convert Powerpoint slides to JPEG images

ppt2vbs

export a Powerpoint presentation to JPEG images, one per slide. Used as a workaround to the broken JPEG export in Powerpoint itself, which yields only low quality images.

Usage

You can adjust the image resolution by varying the numerical argument in line 46, in the call to ExportSlides.

Just drag and drop one or more PPT or PPTX files onto the vbs script. The script will process each, showing a short message, and

@dnene
dnene / polynomial.py
Created March 21, 2012 05:26
Polynomial library
# Copied from http://pastebin.com/Vg9Reb0Z to preserve from accidental deletion
# A library for manipulating polynomials in arbitrarily many
# indeterminates and of arbitrary degree. This library is 13 lines of
# code, excluding whitespace and comments. This isn't the smartest or
# most efficient way to do things, but I thought it was a cool way to
# demonstrate the power of itertools
#
# Monomials are pairs of a coefficient and a list of exponents;
# polynomials are lists of monomials.