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
imac:foo-integration-tests firstname.lastname$ git push | |
Counting objects: 65, done. | |
Delta compression using up to 2 threads. | |
Compressing objects: 100% (25/25), done. | |
Writing objects: 100% (37/37), 4.20 KiB, done. | |
Total 37 (delta 10), reused 0 (delta 0) | |
remote: | |
remote: *** Error while highlighting: | |
remote: UnicodeDecodeError: 'utf8' codec can't decode byte 0xa7 in position 1136: unexpected code byte | |
remote: (file "/usr/lib/python2.5/encodings/utf_8.py", line 16, in decode) |
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
➜ ~/projects/viaboxx/flurfunk/flurfunk-server/[limit-number-of-msg]✗>lein test tfnico@raist [16:56:21] | |
Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: java.lang.IllegalArgumentException: Don't know how to create ISeq from: clojure.lang.Symbol (storage.clj:11) | |
at clojure.lang.Compiler.analyze(Compiler.java:5205) | |
at clojure.lang.Compiler.analyze(Compiler.java:5151) | |
at clojure.lang.Compiler$BodyExpr$Parser.parse(Compiler.java:4670) | |
at clojure.lang.Compiler$LetExpr$Parser.parse(Compiler.java:4941) | |
at clojure.lang.Compiler.analyzeSeq(Compiler.java:5369) | |
at clojure.lang.Compiler.analyze(Compiler.java:5190) | |
at clojure.lang.Compiler.analyze(Compiler.java:5151) | |
at clojure.lang.Compiler$BodyExpr$Parser.parse(Compiler.java:4670) |
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
~/projects/agnes/[(agnes-1.5)]>mvn release:branch -DbranchName=agnes-1.5.x -DautoVersionSubmodules=true -DreleaseVersion=1.5.1 -DupdateBranchVersions=true tfnico@Thomas-Ferris-Nicolaisens-iMac [12:10:23] | |
[INFO] Scanning for projects... | |
[INFO] | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Building agnes 1.5 | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] | |
[INFO] --- maven-release-plugin:2.2.1:branch (default-cli) @ agnes --- | |
[INFO] Verifying that there are no local modifications... | |
[INFO] ignoring changes on: pom.xml.next, release.properties, pom.xml.releaseBackup, pom.xml.backup, pom.xml.branch, pom.xml.tag |
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
(ns conways.test.core | |
(:use [conways.core]) | |
(:use [clojure.test])) | |
(def world #{}) | |
(defn isALive? [world x y] (get world [x y]) ) | |
(defn setLive [world x y] (conj world [x y])) |
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
@Test(expected=NullPointerException.class) | |
public void psmThrowsNullPointerExceptionWhenCopying() { | |
Aristo a = new Aristo(); | |
Runtime r = mock(Runtime.class); | |
a.setRuntime(r); | |
a.PSMCopy("oldPSM", "newPSM"); | |
} | |
@Test(expected=IOException.class) | |
public void psmThrowsIOExceptionWhenExecuting() { |
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
public static boolean isCodeAllowed(String code) { | |
return isNotNullOrEmpty(code) && | |
onlyLettersCorrectLength(code) && | |
lettersAndNumbersCorrectLength(code) && | |
numbersOnlyNotAllowed(code) && | |
plusSignOnlyParticularity(code); | |
} |
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
grails.project.class.dir = "target/classes" | |
grails.project.test.class.dir = "target/test-classes" | |
grails.project.test.reports.dir = "target/test-reports" | |
grails.project.dependency.resolution = { | |
inherits "global" // inherit Grails' default dependencies | |
log "verbose" // log level of Ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose' | |
repositories { | |
grailsPlugins() |
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
/** | |
* Libify version 1.0 | |
* | |
* Copyright (C) 2012 Viaboxx Systems GmbH | |
* | |
* This is a copy of our base _Events.groovy script that serves in all our Grails plugins/projects. | |
* | |
* It goes into the "scripts" folder of a Grails project. | |
* | |
* NOTE: It requires a maven-ant-tasks-2.1.3.jar in your project, in a folder called "build-lib". |
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
First, check in a file on OSX: | |
➜ ~/projects/agnes/[master]>touch fæøå.txt tfnico@thomas-ferris-nicolaisens-imac [12:34:38] | |
➜ ~/projects/agnes/[master]✗>ls tfnico@thomas-ferris-nicolaisens-imac [12:34:56] | |
agnes.iml build.xml funky fæøå.txt macroman.txt pom.xml readme.txt src target | |
➜ ~/projects/agnes/[master]✗>git st tfnico@thomas-ferris-nicolaisens-imac [12:34:58] | |
# On branch master | |
# Untracked files: | |
# |
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
#! | |
cd /tmp | |
mkdir stuff | |
cd stuff | |
echo "Chapter one: it was a cold and stormful night" > essay.txt | |
cp essay.txt essay.new.txt | |
echo "Chapter two: The Commitments" >> essay.new.txt | |
cp essay.new.txt essay.txt.bob | |
echo "Chapter three: And then along came the butler" >> essay.txt.bob | |
cp essay.new.txt essay-2011.10.12.txt |