Skip to content

Instantly share code, notes, and snippets.

View SHDShim's full-sized avatar

S.-H. Dan Shim SHDShim

View GitHub Profile

Which license should I use for my open course codes

This website provides simple and quick answer for the question: https://choosealicense.com

@SHDShim
SHDShim / latexdiff_tutorial.md
Last active June 9, 2024 03:29
latex, latexdiff

Revising Overleaf/LaTeX articles using latexdiff

Preparation

  1. Go to the Overleaf website and move your original files in a new folder. For example, I would first make a folder: org and copy all the originally submitted files there. Or if you already have originally submtted files in a separate folder, I would rename it to org. These files should be not be changed, because these files will be compared with your revised files for making track changes in PDF.

  2. Make a folder for revised files. For example, I would make a new folder, named rev.

  3. Copy the files in the org folder to the rev folder. I found no straightforward way to copy files between different folders in Overleaf. So I download original files from the org folder to my hard drive, and then upload those files to the rev folder.

@SHDShim
SHDShim / gitignore_template.md
Last active May 3, 2018 23:27
git, gitignore, github

Template for gitignore

# Created by https://www.gitignore.io/api/python

# Compiled source #
###################
*.com
*.class
*.dll
@SHDShim
SHDShim / nbextensions_gone.md
Last active April 14, 2019 22:53
What to do if nbextensions tab in jupyter notebook is gone

What to do if nbextensions tab in jupyter notebook is gone

Try the following webpage:

http://localhost:8888/nbextensions

If this does not work do the following

conda uninstall jupyter_nbextensions_configurator
@SHDShim
SHDShim / pelican_elegant_theme_search.md
Created April 3, 2018 15:34
pelican, python, theme, search

How to solve the search problem for the elegant theme in Pelican

Not tested yet. But should try:

getpelican/pelican#2187

@SHDShim
SHDShim / mpfit_in_python.md
Last active April 3, 2018 17:58
mpfit, lmfit, regression, python, sherpa
@SHDShim
SHDShim / macport_minimal.md
Created April 9, 2018 20:31
macports, mactex, nano,

Macport minimal setup

I do not want to have any duplicates through macports including python. But I wanted to have nano through macports.

  1. Install nano highlight files in ./nano-highlight (download from https://github.com/serialhex/nano-highlight)
  2. Go to /usr/local/texlive/ and delete all previous versions before 2017.
  3. Clean up macports using the method in: https://guide.macports.org/chunked/using.common-tasks.html
  4. Repeat “port echo leaves” and "sudo port uninstall leaves" until remove everything I do not need.
@SHDShim
SHDShim / latex_supp_manuscript.md
Last active May 26, 2023 20:21
latex, supplementary materials,

Latex template for supplementary information

We need bibunits package.

\usepackage{bibunits}

Locate the following before abstract