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
| package org.mikeneck.twr.api; | |
| import org.mikeneck.twr.exception.*; | |
| /** | |
| * @author : mike | |
| * @since : 12/12/26 | |
| */ | |
| public enum ExecutionPatterns { |
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
| package httpserver; | |
| import java.io.ByteArrayOutputStream; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.io.OutputStream; | |
| import java.io.OutputStreamWriter; | |
| import java.io.Writer; | |
| import java.net.InetSocketAddress; | |
| import java.net.ServerSocket; |
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
| System.setOut(new PrintStream(new OutputStream() { | |
| @Override | |
| public void write(int b) throws IOException { | |
| throw new RuntimeException("Assert使え(#゚Д゚)ゴルァ!!"); | |
| } | |
| })); |
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
| // こちらは以前試していた失敗作 | |
| class DoWhile { | |
| def proc | |
| def _do(Closure proc) { | |
| this.proc = proc | |
| return this | |
| } | |
| def _while(Closure cond) { | |
| 10.times { | |
| println cond() |
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
| new File("src").eachFileRecurse(groovy.io.FileType.FILES) { | |
| def s = it.text.replaceAll(/\r\n?/,'\n') | |
| it.withWriter("UTF-8") {it << s} | |
| } |