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
<?xml version="1.0" encoding="UTF-8"?> | |
<scheme name="siosioColor" version="1" parent_scheme="Default"> | |
<option name="LINE_SPACING" value="1.0" /> | |
<option name="EDITOR_FONT_SIZE" value="14" /> | |
<option name="CONSOLE_FONT_NAME" value="Monospaced" /> | |
<option name="CONSOLE_LINE_SPACING" value="0.9" /> | |
<option name="EDITOR_QUICK_DOC_FONT_SIZE" value="MEDIUM" /> | |
<option name="EDITOR_FONT_NAME" value="Monaco" /> | |
<colors> | |
<option name="ANNOTATIONS_COLOR" value="bfbfbf" /> |
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 mail; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.InputStream; | |
import java.security.KeyStore; | |
import java.security.KeyStoreException; | |
import java.security.PrivateKey; | |
import java.security.cert.X509Certificate; | |
import java.util.ArrayList; |
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
public add()V | |
L0 | |
LINENUMBER 14 L0 | |
BIPUSH 10 | |
ISTORE 1 | |
L1 | |
LINENUMBER 15 L1 | |
BIPUSH 20 | |
ISTORE 2 | |
L2 |
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.createpackageinfo; | |
import com.intellij.openapi.actionSystem.AnAction; | |
import com.intellij.openapi.actionSystem.AnActionEvent; | |
import com.intellij.openapi.actionSystem.DataContext; | |
import com.intellij.openapi.actionSystem.PlatformDataKeys; | |
import com.intellij.openapi.application.ApplicationManager; | |
import com.intellij.openapi.project.Project; | |
import com.intellij.openapi.roots.ProjectFileIndex; | |
import com.intellij.openapi.roots.ProjectRootManager; |
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
with nums as | |
( | |
select v1.col1 + (v2.col1 * 10) + 1 col1 | |
from | |
( | |
select 0 col1 from dual | |
union select 1 from dual | |
union select 2 from dual | |
union select 3 from dual | |
union select 4 from dual |
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 jojo | |
fun main(args: Array<String>) { | |
jojoIterator() forEach {println(it)} | |
} | |
fun jojoIterator(): java.util.Iterator<Any> { | |
fun next(number: Int): Any { | |
if (number == 1) { | |
number |
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
declare | |
function isPrime(input pls_integer) return boolean | |
is | |
begin | |
if input = 1 then | |
return false; | |
elsif input = 2 then | |
return true; | |
elsif mod(input, 2) = 0 then | |
return false; |
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 mail | |
import oracle.security.crypto.core.AlgID | |
import oracle.security.crypto.smime.SmimeCapabilities | |
import oracle.security.crypto.smime.SmimeMultipartSigned | |
import java.security.KeyStore | |
import javax.activation.CommandMap | |
import javax.activation.DataHandler | |
import javax.activation.FileDataSource |
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 |