Kotlinで気持ちいい!と思ったけど、落選した項目
This file contains hidden or 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
{ | |
"goalTreeString": "{\"branches\":{\"master\":{\"target\":\"C2\",\"id\":\"master\",\"remoteTrackingBranchID\":null}},\"commits\":{\"C0\":{\"parents\":[],\"id\":\"C0\",\"rootCommit\":true},\"C1\":{\"parents\":[\"C0\"],\"id\":\"C1\"},\"C2\":{\"parents\":[\"C1\"],\"id\":\"C2\"}},\"tags\":{},\"HEAD\":{\"target\":\"master\",\"id\":\"HEAD\"}}", | |
"solutionCommand": "git commit", | |
"startTree": "{\"branches\":{\"master\":{\"target\":\"C1\",\"id\":\"master\",\"remoteTrackingBranchID\":null}},\"commits\":{\"C0\":{\"parents\":[],\"id\":\"C0\",\"rootCommit\":true},\"C1\":{\"parents\":[\"C0\"],\"id\":\"C1\"}},\"tags\":{},\"HEAD\":{\"target\":\"master\",\"id\":\"HEAD\"}}", | |
"name": { | |
"en_US": "Git勉強会" | |
}, | |
"hint": { | |
"en_US": "" | |
}, |
This file contains hidden or 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
http://www.jetbrains.org/intellij/sdk/docs/basics/testing_plugins.html | |
http://www.jetbrains.org/intellij/sdk/docs/basics/testing_plugins/tests_and_fixtures.html | |
* LightPlatformCodeInsightFixtureTestCase | |
* IdeaTestFixtureFactory | |
PlatformTestUtil |
This file contains hidden or 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
@Fancy(annotation = FooAnno()) | |
fun foo() { | |
@Fancy(annotation = @FooAnno()) | |
foo() | |
@Fancy2(annotation = arrayOf(FooAnno())) | |
foo() |
This file contains hidden or 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
@StaticTypeAdapter(targetType = Enum::class, serializedType = String::class) | |
class EnumAdapter { | |
companion object { | |
@JvmStatic | |
fun <T : Enum<T>> serialize(source: T): String { | |
return source.name | |
} | |
@JvmStatic |
This file contains hidden or 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
interface I { | |
fun foo() | |
} | |
object O : I { | |
override fun foo() { | |
println("Foo!!!") | |
} | |
} |
This file contains hidden or 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
export JAVA_HOME=`/usr/libexec/java_home -v "1.8"` | |
export JDK_16=`/usr/libexec/java_home -v "1.6"` | |
export JDK_17=`/usr/libexec/java_home -v "1.7"` | |
export JDK_18=`/usr/libexec/java_home -v "1.8"` | |
export JDK_9=`/usr/libexec/java_home -v "10"` |
This file contains hidden or 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
@Throws(Exception::class) | |
fun hour10minute10_answer115degree2() { | |
"10:10".let { time -> | |
GetClockHandsDegree(DegreeCalcService()).execute(time).let { | |
println("(degree-min (clock-degree (clock-str \"$time\")) -> ${it.value} == 115") | |
Assert.that(it.value == 115, | |
"$time actual:${it.value} expected:" + 115) | |
} | |
} |
I hereby claim:
- I am shiraji on github.
- I am shiraji (https://keybase.io/shiraji) on keybase.
- I have a public key ASD4HKt981CfrQZ0X25kUZNZwE2gEE3zPCWX1gXSvaYVwwo
To claim this, I am signing this object:
This file contains hidden or 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
private val place = XmlPatterns.psiElement(XmlToken::class.java) | |
.withText(DUMMY_IDENTIFIER_TRIMMED) | |
.withParent(XmlPatterns.xmlText() | |
.withParent(XmlPatterns.psiElement(XmlTag::class.java) | |
.withName(RESOURCES_TAG_NAME) | |
) | |
) |