Skip to content

Instantly share code, notes, and snippets.

View nuochan's full-sized avatar

Chris Chen nuochan

  • 13:00 (UTC -07:00)
View GitHub Profile
@nuochan
nuochan / comments2xlsx.vb
Created July 26, 2023 15:26 — forked from Zmegolaz/comments2xlsx.vb
Exports comments from a MS Word document to Excel and associates them with the heading paragraphs
Sub exportComments()
' Forked from https://gist.github.com/razorgoto/cff2ffd5da93220c643c, updated to work with Library 16.0.
' This also fixes a bug where it crashed if there was a comment on the very first header.
' Exports comments from a MS Word document to Excel and associates them with the heading paragraphs
' they are included in. Useful for outline numbered section, i.e. 3.2.1.5....
' Thanks to Graham Mayor, http://answers.microsoft.com/en-us/office/forum/office_2007-customize/export-word-review-comments-in-excel/54818c46-b7d2-416c-a4e3-3131ab68809c
' and Wade Tai, http://msdn.microsoft.com/en-us/library/aa140225(v=office.10).aspx
' Need to set a VBA reference to "Microsoft Excel 16.0 Object Library". 14.0 works too.
' Go to the Tools Menu, and click "Reference"

Keybase proof

I hereby claim:

  • I am nuochan on github.
  • I am lobyc (https://keybase.io/lobyc) on keybase.
  • I have a public key ASDq2IW-ge_oboSI1yDOlUw1FKAwlerXVP2U3l71w8gPGwo

To claim this, I am signing this object:

@nuochan
nuochan / keybase.md
Created January 11, 2019 03:45
keybase.md

Keybase proof

I hereby claim:

  • I am nuochan on github.
  • I am nuochan (https://keybase.io/nuochan) on keybase.
  • I have a public key whose fingerprint is 085F 1E19 29C1 CC9F B7E9 72FA 202E DD0A 412E 036D

To claim this, I am signing this object:

function FindProxyForURL(url, host) {
var proxy_true = "PROXY 107.170.166.35";
var proxy_false = "DIRECT";
if (shExpMatch(url,"http://www.hulu.com*")){
return proxy_true;
}
if (shExpMatch(url,"*hulu.com*")){
return proxy_true;