Skip to content

Instantly share code, notes, and snippets.

View markjholmes's full-sized avatar

Mark Holmes markjholmes

View GitHub Profile
@rajeshkumaravel
rajeshkumaravel / steps.md
Created December 7, 2023 13:38
Installing a Font in WSL (Windows Subsystem for Linux)

Installing a Font in WSL (Windows Subsystem for Linux)

To install a font in WSL, follow these steps:

  1. Check Font Location: Confirm that the font file (e.g., VictorMono.ttf) is located in a directory accessible from your WSL instance. You can copy the font file to your WSL home directory for simplicity.

  2. Install Font: You can use the fc-cache command to update the font cache in WSL and make the font available. Open a terminal in your WSL instance and run the following commands:

sudo cp /mnt/c/path/to/VictorMono.ttf /usr/local/share/fonts/

@AndrewLJackson
AndrewLJackson / point-cloud-to-polygon
Created July 18, 2017 09:56
use chull to order points correctly for creating polygons.
theta <- seq(0, 2*pi, length = 360)
Z <- data.frame(x = cos(theta), y = sin(theta))
par(mfrow = c(2,2))
# points in order
plot(y~x, data = Z, type = "l", main = "Made in order", asp = 1)