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
user=> (defstruct message :sender :text) | |
#'user/message | |
user=> (def messages (ref ())) | |
#'user/messages | |
user=> (defn add-message [msg] (dosync (alter messages conj msg))) | |
#'user/add-message | |
user=> (add-message "test") | |
("test") | |
user=> (add-message "test2") | |
("test2" "test") |
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
class Hoge {} | |
trait Hoger { var hoge = "test"; def change(v : String) = {hoge = v}} | |
// trait付きで生成、通る | |
val a = new Hoge with Hoger | |
a.hoge | |
a.change("changed") | |
a.hoge | |
// 通らない |
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
package slim3.controller.wordcount; | |
import java.io.PrintWriter; | |
import org.apache.hadoop.conf.Configuration; | |
import org.apache.hadoop.mapreduce.InputFormat; | |
import org.apache.hadoop.mapreduce.Mapper; | |
import org.apache.hadoop.mapreduce.Reducer; | |
import org.slim3.controller.Controller; | |
import org.slim3.controller.Navigation; |
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
marblejenka:example-business marblejenka$ /usr/local/Cellar/maven/3.0.3/bin/mvn assembly:single antrun:run | |
[INFO] Scanning for projects... | |
[INFO] | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Building Example Business 0.1.0-SNAPSHOT | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] | |
[INFO] --- maven-assembly-plugin:2.2.1:single (default-cli) @ example-business --- | |
[INFO] Reading assembly descriptor: src/main/assembly/asakusa-install-dev.xml | |
[INFO] Building tar : /Users/marblejenka/development/source/asakusafw-examples/example-business/target/example-business-0.1.0-SNAPSHOT-asakusa-install-dev.tar.gz |
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
<jvmarg value="-DASAKUSA_MODELGEN_JDBC=${env.ASAKUSA_HOME}/bulkloader/conf/asakusa-jdbc.properties" /> | |
<jvmarg value="-DASAKUSA_TESTTOOLS_CONF=src/test/resources/testtools.properties" /> |
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
java.lang.IllegalStateException: 環境変数"ASAKUSA_TESTTOOLS_CONF"が設定されていません | |
at com.asakusafw.testtools.Configuration.findVariable(Configuration.java:231) | |
at com.asakusafw.testtools.Configuration.loadConfigurationFromEnvironment(Configuration.java:185) | |
at com.asakusafw.testtools.Configuration.getInstance(Configuration.java:38) | |
at com.asakusafw.testtools.excel.ExcelUtils.getModelClass(ExcelUtils.java:385) | |
at com.asakusafw.testtools.excel.ExcelUtils.createDatalList(ExcelUtils.java:449) | |
at com.asakusafw.testtools.excel.ExcelUtils.getTestDataHolder(ExcelUtils.java:926) | |
at com.asakusafw.testtools.TestUtils.init(TestUtils.java:117) | |
at com.asakusafw.testtools.TestUtils.<init>(TestUtils.java:76) | |
at com.asakusafw.testdriver.TestDriverBase.initialize(TestDriverBase.java:191) |
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
marblejenka:example-business marblejenka$ /usr/local/Cellar/maven/3.0.3/bin/mvn clean test | |
[INFO] Scanning for projects... | |
[INFO] | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Building Example Business 0.1.0-SNAPSHOT | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] | |
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ example-business --- | |
[INFO] Deleting /Users/marblejenka/development/source/asakusafw-examples/example-business/target | |
[INFO] |
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
marblejenka:a marblejenka$ mvn test | |
[INFO] Scanning for projects... | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Building Batch Application Template (change it.) | |
[INFO] task-segment: [test] | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] [properties:read-project-properties {execution: default}] | |
[INFO] [build-helper:add-source {execution: add-source}] | |
[INFO] Source directory: /Users/marblejenka/tmp/a/target/generated-sources/annotations added. | |
[INFO] Source directory: /Users/marblejenka/tmp/a/target/generated-sources/modelgen added. |
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
require 'formula' | |
class Hadoop0202Cdh3b < Formula | |
url 'http://archive.cloudera.com/cdh/3/hadoop-0.20.2-CDH3B4.tar.gz' | |
homepage '' | |
md5 '18652c52229390752f354b0667e075d6' | |
def shim_script target | |
<<-EOS.undent | |
#!/bin/bash |
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
marblejenka:target marblejenka$ java -cp appengine-remote-scala-0.0.1-SNAPSHOT.jar com.marble.remote.Main | |
Failed to initialize compiler: object scala not found. | |
** Note that as of 2.8 scala does not assume use of the java classpath. | |
** For the old behavior pass -usejavacp to scala, or if using a Settings | |
** object programatically, settings.usejavacp.value = true. | |
Welcome to Scala version 2.9.0.RC2 (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_22). | |
Type in expressions to have them evaluated. | |
Type :help for more information. |
OlderNewer