Skip to content

Instantly share code, notes, and snippets.

View alvinj's full-sized avatar

Alvin Alexander alvinj

View GitHub Profile
@alvinj
alvinj / sbtmkdirs.sh
Last active June 22, 2024 15:13
A shell script to create an SBT project directory structure
#!/bin/bash
#------------------------------------------------------------------------------
# Name: sbtmkdirs
# Version: 1.5
# Purpose: Create an SBT project directory structure with a few simple options.
# Author: Alvin Alexander, http://alvinalexander.com
# License: Creative Commons Attribution-ShareAlike 2.5 Generic
# http://creativecommons.org/licenses/by-sa/2.5/
#------------------------------------------------------------------------------
@alvinj
alvinj / CreateListOfFilenamesInOrder.sc
Created December 15, 2022 15:20
Script to list Scala Book MD filenames in their order
//> using scala "3"
/**
* This is a script to create the `SortedListOfMDFilenames` file
* from the existing MD files. It assumes that all of those
* files have a `num: nn` field.
*
* Run me like this:
* scala-cli CreateListOfFilenamesInOrder.sc
*
@alvinj
alvinj / UpdateAllMdFiles.scala
Created December 16, 2022 21:03
Script to update the next/prev/num header fields in the Scala Book markdown files
//> using scala "2.12"
//> using jar "sed_2.12-0.4.jar"
import scala.util.matching.Regex
import com.alvinalexander.sed.tostring._
import scala.io.Source
import java.io._
// RUN: scala-cli UpdateAllMdFiles.scala --main-class UpdateAllMdFiles
@alvinj
alvinj / free-video-training-courses.md
Created March 26, 2024 17:01
My free Scala and functional programming online video training courses