Skip to content

Instantly share code, notes, and snippets.

Avatar

Junichi Kajiwara kjunichi

View GitHub Profile
View 20221002.md

IntelliJ IDEA では、プロジェクト出力のレイアウトはアーティファクトを介して定義

View 20221001.md

java.lang.RuntimeException: com.intellij.execution.ExecutionException: The Module Root specified is not a module according to Intellij at com.poratu.idea.plugins.tomcat.conf.TomcatCommandLineState.createJavaParameters(TomcatCommandLineState.java:153) at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:865) at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:61) at com.intellij.execution.configurations.JavaCommandLineState.getJavaParameters(JavaCommandLineState.java:44) at com.intellij.execution.impl.DefaultJavaProgramRunner.patchJavaCommandLineParams(DefaultJavaProgramRunner.java:137) at com.intellij.execution.impl.DefaultJavaProgramRunner.lambda$doExecute$3(DefaultJavaProgramRunner.java:127) at com.intellij.execution.runners.JavaProgramPatcher.lambda$patchJavaCommandLineParamsUnderProgress$2(JavaProgramPatcher.java:43) at com.intellij.openapi.progress.impl.CoreProgressManager$2.run(CoreProgressManager.java:298) at com.intellij.openapi.progre

View 20220119.md

JUnit

ImmutableMapを比較

Assersions.assertEqualsでいけそう

@Testと@ParameterizedTestは一緒に書いてはダメ

怒られた。

View gist:8f1562afefa5c41f12b9100bb8799c05
dpkg: error processing archive /var/cache/apt/archives/opam_2.1.0~rc2-0ppa1~focal_amd64.deb (--unpack):
trying to overwrite '/usr/bin/opam-installer', which is also in package opam-installer 2.0.5-1ubuntu1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/opam_2.1.0~rc2-0ppa1~focal_amd64.deb
View 20210702.md

rustを久しぶりに触った

camtypers

自作のrustのコードを動かそうとしてすこしトラブった。

.cargo配下の依存ライブラリの不具合を修正して対応

学び

View 20210321.md

AWSをローカルで動かす

docker pull localstack/localstack
docker run --rm -p 4566:4566 -p 4571:4571 localstack/localstack
View gist:5d73d26941721a2d597fd74dedc07a81
# MySQLの照合順序は要注意
alter tableしてcharset指定した列はテーブルに指定した照合参照とは異なる照合順序を指定することがある
# VSCodeでDiffができる
Shift+Ctrl+P compare
View euroBeatCode01.rb
use_bpm 112
live_loop :beat1 do
sample :drum_heavy_kick
sleep 1
sample :drum_snare_hard
sleep 1
sample :drum_heavy_kick
sleep 1
sample :drum_snare_hard
View nightBGM01.rb
use_bpm 90
use_synth :piano
live_loop :beat1 do
sample :drum_cymbal_closed, amp: 0.1
sleep 0.5
end
live_loop :beat2 do
View gist:f003bc19e26985b678af0c7a25b62e4d
../cycmap.py:61: RuntimeWarning: More than 20 figures have been opened. Figures created through the pyplot interface (`matplotlib.pyplot.figure`) are retained until explicitly closed and may consume too much memory. (To control this warning, see the rcParam `figure.max_open_warning`).
fig = plt.figure()