Skip to content

Instantly share code, notes, and snippets.

View einsty's full-sized avatar
💭
I may be slow to respond.

Orin Fink einsty

💭
I may be slow to respond.
View GitHub Profile
@einsty
einsty / OfficeToPDF-For-Loop.md
Last active April 22, 2016 12:16
Loop over Directory of Excel Files and convert each one to PDF

#Convert Excel files to PDF

There are tons of solutions out there that will "automate" the conversion of Microsoft Office files to PDF. Unfortunately, many of them are bloated with spammy advertisements or will watermark your documents or any number of other unfriendly results.

If all that you really need to do is simply loop over a directory of say 30 or 300 or 3,000 Microsoft Office files and convert them each 1 by 1 into PDF's then a very lightweight solution can be found here.

Thanks to a conversation on Stack Overflow

@tinabeans
tinabeans / template.html
Last active February 13, 2024 09:18
A super-barebones single-column responsive email template, assuming a max-width of 540px. Read about it on the Fog Creek blog.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Single-Column Responsive Email Template</title>
<style>
@media only screen and (min-device-width: 541px) {
.content {