2017/05/20 JJUG CCC 2017 Spring JJUG CCC 2017 Spring http://www.java-users.jp/ccc2017spring/
- Abe Asami “きの子”
- 大阪のフリーランスプログラマ
- http://nocono.net/
- @aa7th
/** | |
* このPractice7もクラスです。 | |
* が、このクラスはまだみなさんに教えていない「static」という | |
* キーワードにより、インスタンスを作らなくてもメソッドを呼び出せています。 | |
* 今は深く考えないようにしてください。staticを勉強してから、 | |
* 改めてこのクラスを眺めてみてね。 | |
* | |
* この演習では、メソッドにのみ着目してください。 | |
* {} でくくられている範囲を意識するように。 | |
* |
PATH := node_modules/.bin:$(PATH) | |
all: build | |
.PHONY: all init build styles js html image clean | |
init: | |
npm init | |
npm install -D node-sass postcss-cli autoprefixer clean-css uglify-js | |
mkdir -p app/styles app/scripts app/images |
2017/05/20 JJUG CCC 2017 Spring JJUG CCC 2017 Spring http://www.java-users.jp/ccc2017spring/
import scala.annotation.tailrec | |
import scala.collection.immutable.TreeMap | |
val lines = List( | |
"- 2018年02月08日 木曜日 20:51", | |
"今日は仕事をしました", | |
"お昼にパスタをつくりました", | |
"- 2018年02月09日 金曜日 20:51", | |
"お出かけしました" | |
) |
[info] hello-scalikejdbc:hello-scalikejdbc_2.11:0.1 [S] | |
[info] +-com.github.tototoshi:play-json4s-native_2.11:0.5.0 [S] | |
[info] | +-com.github.tototoshi:play-json4s-api_2.11:0.5.0 [S] | |
[info] | | +-org.json4s:json4s-core_2.11:3.3.0 [S] | |
[info] | | +-com.thoughtworks.paranamer:paranamer:2.8 | |
[info] | | +-org.json4s:json4s-ast_2.11:3.3.0 [S] | |
[info] | | +-org.json4s:json4s-scalap_2.11:3.3.0 [S] | |
[info] | | +-org.scala-lang.modules:scala-xml_2.11:1.0.5 [S] | |
[info] | | | |
[info] | +-com.github.tototoshi:play-json4s-core_2.11:0.5.0 [S] |
play.api.UnexpectedException: Unexpected exception[CreationException: Unable to create injector, see the following errors: | |
1) Error injecting constructor, java.lang.NoSuchMethodError: scalikejdbc.NamedDB$.apply$default$2()Lscalikejdbc/SettingsProvider; | |
at scalikejdbc.PlayFixture.<init>(PlayFixtureModule.scala:38) | |
at scalikejdbc.PlayFixtureModule.bindings(PlayFixtureModule.scala:29): | |
Binding(class scalikejdbc.PlayFixture to self eagerly) (via modules: com.google.inject.util.Modules$OverrideModule -> play.api.inject.guice.GuiceableModuleConversions$$anon$1) | |
while locating scalikejdbc.PlayFixture | |
1 error] | |
at play.core.server.DevServerStart$$anonfun$mainDev$1$$anon$1$$anonfun$get$1$$anonfun$apply$1$$anonfun$1.apply(DevServerStart.scala:170) |
% sbt (git)-[develop] | |
ERROR: transport error 202: bind failed: Address already in use | |
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510) | |
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [debugInit.c:750] | |
FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197) | |
/usr/local/Cellar/sbt/1.1.6/libexec/bin/sbt-launch-lib.bash: 58 行: 1934 Abort trap: 6 "$@" |