start new:
tmux
start new with session name:
tmux new -s myname
| data Position = Position Int Int Direction | |
| deriving (Show, Eq, Read) | |
| data Direction = N | E | W | S | |
| deriving (Show, Eq, Enum, Bounded, Read) | |
| data Command = L | R | M | |
| deriving (Show, Eq, Enum, Bounded, Read) | |
| data DeltaPosition = DeltaPosition Int Int deriving (Show) | |
| data State = State { |
Use Dropbox for a git repository in the cloud. I use it for backup purposes.
It's important to use --bare to create a bare repo (without working copy) instead of a normal one, because git will complain about pushing to the working branch otherwise.
References:
| {- | |
| A German blog post translating Java code for the build tool Ant to Scala | |
| http://funktionale-programmierung.de/2013/02/26/scala-java-ant.html | |
| made me translate the Scala code to Haskell. I added combinators for binary | |
| composition of mappers as well as a unit mapper for one of them. The code is | |
| still shorter. I find the Haskell version more readable because expressions | |
| and their types are separate rather than interleaved as in Scala. |
(Also see [remarkable][], the markdown parser created by the author of this cheatsheet)
| mvn clean install -Dmaven.surefire.debug=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_shmem,server=y,address=Maven,suspend=n | |
| # In Netbeans Debug/attachDebugger with | |
| # connector : SharedMemory | |
| # Name : Maven | |
| # Timeout : 10 000 |
| protected MavenProject buildProjectModel(ArtifactInfo artifactInfo) throws Exception { | |
| try { | |
| ProjectBuildingRequest configuration = new DefaultProjectBuildingRequest(); | |
| configuration.setLocalRepository( localRepository ); | |
| configuration.setValidationLevel( ModelBuildingRequest.VALIDATION_LEVEL_MINIMAL ); | |
| configuration.setProcessPlugins( false ); | |
| configuration.setRepositoryMerging( ProjectBuildingRequest.RepositoryMerging.REQUEST_DOMINANT ); | |
| Properties properties = new Properties( ); | |
| for ( String key : session.getSystemProperties( ).keySet() ){ | |
| properties.put( key, session.getSystemProperties().get(key) ); |