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
View markdown-tools.md

Markdown Tools

Mac

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

iPad Apps

Note-taking

  • 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.

Drawing

View mac-apps.md

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
tanyuan / atom-latex.md
Last active May 2, 2018
Edit LaTeX and view PDF in Atom!
View atom-latex.md

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
tanyuan / windows-apps.md
Last active Feb 3, 2018
Windows applications
View windows-apps.md
@tanyuan
tanyuan / samba-elementary-os.md
Last active Nov 23, 2018
Elementary OS (Ubuntu) Samba Server Setup
View samba-elementary-os.md

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
tanyuan / create-day-one-entry.sh
Created Jan 11, 2018
📘 Create Day One entry using simple graphical interface (Zenity) on Linux and import to Day One on Mac.
View create-day-one-entry.sh
#!/bin/bash
noteDir="$1"
if [ "$noteDir" != "" ]
then
date=$(date '+%Y-%m-%d %H:%M:%S')
# Create a text box
zNewData=$(zenity --text-info --editable --width 650 --height 400)
@tanyuan
tanyuan / iterm2.md
Last active Apr 28, 2019
📺 iTerm2 tips & tricks
View iterm2.md

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
tanyuan / python_args.py
Created Jan 7, 2018
Python args template: read shell arguments
View python_args.py
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.