Here are links to my free Scala and functional programming online video training courses:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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/ | |
#------------------------------------------------------------------------------ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//> 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 | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//> 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 |