Git

How to… Setting up Get a repo from origin git clone <REPO URL> Add remote origin git remote add origin https://<repo>.git git push -u origin master Reference: https://help.github.com/en/github/using-git/adding-a-remote Checking out latest changes git fetch git checkout origin/master References: https://stackoverflow.com/questions/3334475/git-how-to-update-checkout-a-single-file-from-remote-origin-master Force-overwrite local files https://stackoverflow.com/questions/1125968/how-do-i-force-git-pull-to-overwrite-local-files Committing View/add partial bits to the commit with a prompt yes/no git add -p verbose commit, look at changes.Recommended git commit -v...

Last updated: 2022-03-18 by JRO
Estimated read time: 1 min

Hugo

How to… Cross-link pages https://gohugo.io/content-management/cross-references/ Create a link to a page in markdown Communication Communication List nested directories https://discourse.gohugo.io/t/listing-nested-directories/7198/3 Lists of content in templates https://gohugo.io/templates/lists/ Directory structure https://gohugo.io/getting-started/directory-structure/ Password-protect a site https://gooseyman.com/post/2020-05-26_password_protect_hugo_site/ Include images in post (WIP) https://liatas.com/posts/escaping-hugo-shortcodes/ https://discourse.gohugo.io/t/page-bundle-image-references/10750 {{/* with .Resources.ByType “image” /}} {{/ range . /}} {{/ end */}} Page resources https://gohugo.io/content-management/page-resources/ https://www.regisphilibert.com/blog/2018/01/hugo-page-resources-and-how-to-use-them/ Pagination https://gohugo.io/templates/pagination/ Print a page’s path https://ro....

Last updated: 2022-03-18 by JRO
Estimated read time: 1 min

Natural Language Toolkit (NLTK)

Documents & Resources https://www.nltk.org Word Frequency Count https://stackoverflow.com/questions/14364762/counting-n-gram-frequency-in-python-nltk https://dariuslfuller.medium.com/creating-visuals-with-nltks-freqdist-ac4e667e49f3 https://gist.github.com/benhoyt/dfafeab26d7c02a52ed17b6229f0cb52

Last updated: 2022-03-18 by JRO
Estimated read time: 1 min