Skip to content

Instantly share code, notes, and snippets.

@ap0llo
ap0llo / Export-Presentation.ps1
Last active June 10, 2025 12:14
Powershell script to export Powerpoint Presentations to pdf using the Powerpoint COM API
# Powershell script to export Powerpoint Presentations to pdf using the Powerpoint COM API
# Based on a VB script with the same purpose
# http://superuser.com/questions/641471/how-can-i-automatically-convert-powerpoint-to-pdf
function Export-Presentation($inputFile)
{
# Load Powerpoint Interop Assembly
[Reflection.Assembly]::LoadWithPartialname("Microsoft.Office.Interop.Powerpoint") > $null
[Reflection.Assembly]::LoadWithPartialname("Office") > $null
@yumminhuang
yumminhuang / CaligraphyPaper.tex
Created June 27, 2016 02:13
TikZ制作稿纸、田字格、米字格、作文纸
\documentclass{ctexart}
\usepackage[a4paper,hmargin={4cm},vmargin={4cm}]{geometry}
\usepackage{fancyhdr}
\pagestyle{empty}
\fancyhf{}
\usepackage{tikz}
\usetikzlibrary{shapes,snakes}
\begin{document}
%书法用纸效果:田字格(10*14)、米字格
@PKHG
PKHG / RPNCalculator.py
Created December 9, 2012 14:53
RPN Calculat.py for Pythonista
#version 1.2 8 dec. 2012 PKHG
#---------
#inverse sin etc. deg <-> rad
#4 12 2012 prgramming preparations
#UNDO partly done
from scene import *
from random import random
from string import ascii_lowercase
from math import *
from random import random