Skip to content

Instantly share code, notes, and snippets.

View carlpch's full-sized avatar

Carl Huang carlpch

  • Singapore
  • 22:50 (UTC +08:00)
View GitHub Profile
@carlpch
carlpch / PPTtoPDF.scpt
Last active November 8, 2021 18:24
Applescript for batch saving PowerPoint files into PDF
# This is an update of codes from a Reddit post. The post is locked or otherwise I will just post this there!
# https://www.reddit.com/r/osx/comments/4gg3t3/batch_converting_powerpoint_2016_to_pdf_in/
# It is recommended that you also sep up a filter (on Automator) to make sure the file format is compatible.
on run {input, parameters}
tell application "Finder"
set theItems to input
repeat with itemRef in theItems
@carlpch
carlpch / 00README.md
Created November 22, 2016 02:30 — forked from zr-tex8r/00README.md
LaTeX: CJK パッケージで日本語する
@carlpch
carlpch / mecab installation.markdown
Last active February 24, 2019 18:59
Mecab 安裝
@carlpch
carlpch / uncomtrade.markdown
Last active February 24, 2019 18:59
UN Comtrade API Request Information

(Accessing UN trade data via UNComtrade API)

Date:2016.10.11 Documentation:http://comtrade.un.org/data/doc/api/

首先是API Request Address: http://comtrade.un.org/api//refs/da/view?parameters

(The output is in JavaScript Object Notation JSON)

最棘手的是到底有哪些 parameters 要提供: