Skip to content

Instantly share code, notes, and snippets.

View emleddin's full-sized avatar

Emmett Leddin emleddin

View GitHub Profile
@emleddin
emleddin / 1-Micro.md
Last active January 18, 2024 05:21
Instructions for using the 8BitDo Micro Remote with ANKI on MacOS

Using the 8BitDo Micro Remote with ANKI

The 8BitDo Micro remote is ~$25 and can be used to gamify your studying. The Micro is bigger than the Zero 2, but smaller than the SN30 Pro.

See controller image below

The controller comes with preset keybindings to buttons, which don't automatically work with ANKI. So, through the use of a key remapping software, you’ll update how your device interprets the keys!

@emleddin
emleddin / 1-SN30Pro.md
Last active December 29, 2023 16:35
Instructions for using the 8BitDo SN30 Pro Remote with ANKI on MacOS

Using the 8BitDo SN30 Pro Remote with ANKI

The 8BitDo SN30 Pro remote is ~$45 and can be used to gamify your studying. The SN30 Pro is bigger than the Zero 2, and sized like a typical gaming controller.

See controller image below

The controller comes with preset keybindings to buttons, which don't automatically work with ANKI. So, through the use of a key remapping software, you’ll update how your device interprets the keys!

@emleddin
emleddin / 1-ANKI-remote.md
Last active May 9, 2024 10:30
Instructions for using the 8BitDo Zero 2 with ANKI on Linux and MacOS

Using the 8BitDo Zero 2 Remote with ANKI

The 8BitDo Zero 2 remote is ~$20 and can be used to gamify your studying.

See controller image below

The controller comes with preset keybindings that aren’t the most helpful. So, through the use of a key remapping software, you’ll update how your device interprets the keys!

If you don’t want to download a remapper, you should be able to use an

@emleddin
emleddin / PDF-manipulation.md
Created December 3, 2022 03:32
Tips for modifying PDFs and saving images.

Modifying PDFs

PDFtk has a command-line tool for working with PDFs. It's fantastic for saving out single pages or combining files.

Ghostscript also has good features for PDFs, including being able to reduce the file size while preserving links and bookmarks.

Combining PDFs

@emleddin
emleddin / PES-graph.md
Last active May 31, 2023 21:40
Potential energy surface graph with matplotlib

PES Graph

The Python3 script in this gist will render a reaction path along a potential energy surface (PES) in 3D.

It should work with Matplotlib 1.5.0 and newer (i.e., the script was first written based on mpl 1.5.0).

Python 3.8.5
>>> np.__version__
'1.16.6'
@emleddin
emleddin / 1-transparent-vmd-movie.md
Last active September 14, 2021 01:16
A script for making a y-axis rotation GIF in VMD with a transparent background.

Transparent VMD Movies

VMD's Movie Maker is a powerful tool, but modifying a plugin can be a hassle, especially when the program is installed site-wide.

Dependencies

This script relies on installations of

@emleddin
emleddin / 1-chimera.md
Last active February 22, 2022 17:17
chmidasrc

Chimera Image Rendering

Chimera will source a ~/.chimera/midasrc or .chmidasrc file in the working directory. You often need to open the in-program command line (FavoritesCommand Line) before it is applied.

If a residue doesn't do what you would expect, it may be because Chimera named it differently.

@emleddin
emleddin / image-commands.md
Last active August 16, 2023 14:17
Common Image Needs -- VMD, PowerPoint, and ImageMagick

Higher-Quality Images

TIFFs are great because they retain image layers (which makes them decently editable). PNGs offer lossless compression and allow you to have transparent backgrounds. JPEGs/JPGs are lossy and have their uses, but you're better off avoiding them if you can.

Saving Powerpoint Images with Higher Resolution

PNGs exported from PowerPoint have 72 DPI resolution, which is not ideal for publication. Instead, export the image file as a PDF.