This blog covers some of the projects that I went through. Hope you get something out of this.
Drawing Gemstones With ggplot
Composition of irregular and complex patterns can be simplified with ggplot; graphical package used in R. This project aims to recreate various crystallic shapes via random sampling from uniform and standard normal distribution. Additional to the ggplot2 package there are two more dependencies; cowplot and RColorBrewer. cowplot is required for importing the theme_nothing() function(minimal theme without any legends or axis) and the plot_grid() function which enables plotting multiple ggplot objects in a single page....
Git Revert and Reset Simplified
“If you travel back into your own past, that destination becomes your future, and your former present becomes the past, which can’t now be changed by your new future.” -Hulk from Avengers: Endgame Revert and Reset are git commands that come in handy when you need to organize commits or delete them permanently. I will compare these commands how they differ and when they might become useful for a project....
Add Comments and Chatbots to Your Hugo Website
INTRO If you’ve started hosting a static site for blog posts or as an portfolio website, you can implement dynamic features such as comment sections and chat services by delegating these functions to service providers such as Disqus or Drift. In this article I’ll walk you through how I’ve implemented these features on my website built with Hugo. Disqus and Drift Disqus Disqus offers the comment plugin feature for your website....
Cronjob With Conda
How to setup a python cronjob with conda UNIX based machine users can easily setup automated tasks using the default cronjob module. However, if your using conda environments, it might not just work auto-magically out of the box. After fiddling around with system path variables this is how I made my automated task work. TL;DR: Don’t try to use conda activate <env name>. Set PATH to /opt/anaconda3/envs/<env name>/bin in your crontab....
R Tips and Tricks
Intro Over the past few years studying statistics, I’ve learned a few tips and tricks with R and RStudio. Import multiple libraries at once Since R has some object-oriented goodness, importing multiple libraries all at once is possible in the following way. 1 2 pkgs <- c("ggplot2", "dplyr", "sp", "sf", "reticulate", ...) lapply(library, pkgs, character.only = TRUE) Also note that importing tidyverse package can come in handy....