Skip to content

Instantly share code, notes, and snippets.

@rohitfarmer
rohitfarmer / build-singularity.md
Last active May 27, 2024 16:15
Instructions to build a singularity container with popular data science and chemistry packages, including Tensorflow.

Building a Singularity Container for Machine Learning, Data Science, & Chemistry

Learning Objectives

  1. Build a Linux based Singularity container.
    • First build a writable sandbox with essential elements.
    • Inspect the container.
    • Install additional software.
    • Convert the sandbox to a read-only SquashFS container image.
  2. Install software & packages from multiple sources.
  • Using apt-get package management system.
@mstrimas
mstrimas / chaikin-smoothing.r
Created March 8, 2018 20:27
Chaikin's corner cutting algorithm
library(tidyverse)
library(gganimate)
library(hrbrthemes)
# generate a jagged polygon
set.seed(1)
n <- 60
theta <- (runif(n) + 1:n - 1) * 2 * pi / n
radius <- rgamma(n, shape = 3)
radius <- radius / max(radius)