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
/* | |
* Available context bindings: | |
* COLUMNS List<DataColumn> | |
* ROWS Iterable<DataRow> | |
* OUT { append() } | |
* FORMATTER { format(row, col); formatValue(Object, col); getTypeName(Object, col); isStringLiteral(Object, col); } | |
* TRANSPOSED Boolean | |
* plus ALL_COLUMNS, TABLE, DIALECT | |
* | |
* where: |
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
import com.intellij.database.model.DasTable | |
import com.intellij.database.psi.DbColumnImpl | |
import com.intellij.database.util.Case | |
import com.intellij.database.util.DasUtil | |
/* | |
* Available context bindings: | |
* SELECTION Iterable<DasObject> | |
* FILES files helper | |
*/ |
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
import java.security.KeyStore | |
import java.security.Signature | |
// KeyStoreを使用して証明書をロード | |
KeyStore keyStore = KeyStore.getInstance("PKCS12"); | |
FileInputStream stream = new FileInputStream("certificate.p12"); | |
keyStore.load(stream, "password".chars); | |
stream.close(); | |
// 秘密鍵と公開鍵を取得するためのalias |
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
sut.getProjectManager().createProject { | |
projectId = "kotlin-sql" | |
projectName = "kotlinでSQL実行できる的ななにか" | |
projectType = ProjectType.Gradle | |
codeReviewIdPattern = "kot-{}" | |
vcsSettings { | |
+vcs(id = "kotlin-sql", vcs = Vcs.git, url = "https://github.com/siosio/kotlin-sql") | |
} | |
} |
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 ex; | |
import java.io.IOException; | |
import java.io.PrintWriter; | |
import javax.servlet.Servlet; | |
import javax.servlet.ServletException; | |
import javax.servlet.annotation.WebServlet; | |
import javax.servlet.http.HttpServlet; | |
import javax.servlet.http.HttpServletRequest; |
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
FileEditorManagerEx ex = FileEditorManagerEx.getInstanceEx(element.getProject()); | |
VirtualFile file = ex.getCurrentFile(); |
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 problem1 | |
fun main(args: Array<String>) { | |
println((1..999).filter { it % 3 == 0 || it % 5 == 0 }.fold(0) { total, n -> total + n }) | |
} |
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 siosio | |
import org.jboss.logging.Logger | |
import java.util.concurrent.ExecutorService | |
import java.util.concurrent.Executors | |
import java.util.concurrent.TimeUnit | |
import javax.batch.operations.JobOperator | |
import javax.batch.runtime.BatchRuntime | |
import javax.batch.runtime.BatchStatus | |
import javax.batch.runtime.Metric |
NewerOlder