Skip to content

Instantly share code, notes, and snippets.

tanyuan tanyuan

Block or report user

Report or block tanyuan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Markdown Tools


  • CotEditor - Plain text editor with drag in support.
  • Marked 2 - Markdown previewer with custom CSS and preprocessor.

iPad Apps


  • GoodNotes (Apple Pencil) - Hand-writing Notes. Great tool for visual thinkers.

Reading PDF

  • ‎PDF Viewer Pro by PSPDFKit - Free PDF reader that integrate with iOS Files and the annotation is compatible with Preview on Mac.
  • LiquidText (Apple Pencil) - Flexible annotation using Apple Pencil for PDF.



Mac Apps

Free Apps

  • iTerm2 - The best terminal. Support Vim better. See this gist for tips and tricks.
  • CotEditor - A simple and neat plain text editor.
  • Skim - A PDF reader designed for annotating academic papers.
  • IINA - A more powerful video player.
  • The Unarchiver - Decompress RAR, 7-Zip, Tar, etc.
  • DaisyDisk (Freemium) - Examine disk usage with a pie chart.
tanyuan /
Last active May 2, 2018
Edit LaTeX and view PDF in Atom!

Edit LaTeX and view PDF in Atom (Pretty easy!)

  1. Download and install Atom.
  2. Install LaTeX for your OS.
  1. Open Atom, install packages: Go to Preferences... > Left pane Install > Search and install packages:
  • pdf-view: view PDF in Atom.
tanyuan /
Last active Feb 3, 2018
Windows applications
tanyuan /
Last active Apr 23, 2020
Elementary OS (Ubuntu) Samba Server Setup

Setup up Samba file server on Elementary OS (Ubuntu)

So you can access files from other computers (Linux, Mac, Windows) on the same network!

  1. Install Samba:
sudo apt install samba samba-common
View RecordROI.cs
using UnityEngine;
using System.Collections;
public class RecordROI : MonoBehaviour {
public GameObject highlight;
public string path;
private Vector3 mousePos;
private Vector3 spherePos;
tanyuan /
Created Jan 11, 2018
📘 Create Day One entry using simple graphical interface (Zenity) on Linux and import to Day One on Mac.
if [ "$noteDir" != "" ]
date=$(date '+%Y-%m-%d %H:%M:%S')
# Create a text box
zNewData=$(zenity --text-info --editable --width 650 --height 400)
tanyuan /
Last active Apr 28, 2019
📺 iTerm2 tips & tricks

iTerm2 (The awesome terminal for Mac)

Look and feel

  • Window theme: Preferences > Appearance Tab > Theme > Light/Dark
  • Show folder icon on window title: Preferences > Appearance Tab > Window: Show proxy icon in window title bar
  • Background transparancy and blur: Preferences > Profiles Tab > Window Tab > Transparency (a third) & Blur (Checked, full)
  • Color theme: Preferences > Profiles Tab > Colors Tab > Color Presets...

Window and tab title

tanyuan /
Created Jan 7, 2018
Python args template: read shell arguments
import argparse
if __name__ == '__main__' :
parser = argparse.ArgumentParser(description='Program description')
parser.add_argument('input', help='Input file')
parser.add_argument('-o', '--option', type=int, help='Integer option')
args = parser.parse_args()
You can’t perform that action at this time.