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
import scala.collection.mutable | |
/** | |
* Code to solve a type of puzzle known as a "spelling bee" or "word hive". | |
* | |
* M I | |
* T U A | |
* N O | |
* |
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
{- | |
adapted frm https://github.com/psfblair/ConwayLife/blob/master/LifeCore/Life.fs | |
-} | |
module GameOfLife where | |
import Data.Set | |
import qualified Data.Set as Set | |
import Test.Hspec | |
import Test.HUnit |
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
/* | |
simple text emails | |
looks for environment variables for the Mandrill credentials, as on Heroku for instance | |
if not found, checks a prop file | |
*/ | |
import org.apache.commons.mail.*; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.InputStream; |
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
import java.io.*; | |
import org.apache.log4j.BasicConfigurator; | |
import org.apache.log4j.Logger; | |
import org.perf4j.LoggingStopWatch; | |
import org.perf4j.StopWatch; | |
import java.io.File; | |
import java.io.IOException; | |
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
import sun.reflect.generics.reflectiveObjects.NotImplementedException; | |
import java.io.*; | |
/* | |
* Your assignment: The DirectoryCopier class will copy all the files in one | |
* directory to another directories in series (not in parallel). Use that code | |
* as a starting point and modify this class to copy files in parallel using threads. | |
*/ | |
public class AsyncDirectoryCopier { |
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
import sun.reflect.generics.reflectiveObjects.NotImplementedException; | |
import java.util.Arrays; | |
public class Sort { | |
private Sort() { | |
super(); | |
} | |
/** |
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 | |
# list files changed by the last commit | |
# and copy them to a target dir | |
TARGET=$1 | |
MOST_RECENT=$(git log -n 1 --pretty=format:'%h') | |
PREV=$(git log --skip=1 -n 1 --pretty=format:'%h') | |
echo "Coping to $TARGET" | |
for i in $(git diff --name-only $MOST_RECENT $PREV) |