Skip to content

Instantly share code, notes, and snippets.

@maquedexiju
maquedexiju / How to Copy Slide using python-pptx
Created August 13, 2025 04:18
A snippet to copy slide using python-pptx, useful when you're creating ppt in reference of a existing file.
import copy
from pptx.enum.shapes import MSO_SHAPE_TYPE
from pptx import Presentation
namespaces = {
'p': 'http://schemas.openxmlformats.org/presentationml/2006/main',
'p14': 'http://schemas.microsoft.com/office/powerpoint/2010/main',
'a': 'http://schemas.openxmlformats.org/drawingml/2006/main',
'r': 'http://schemas.openxmlformats.org/officeDocument/2006/relationships'
}
@maquedexiju
maquedexiju / cloudSettings
Last active March 26, 2019 08:56
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-03-26T08:56:14.652Z","extensionVersion":"v3.2.7"}