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
| // jar가 아닌 war로 패키징을 해야 JSP가 정상 동작 | |
| apply plugin 'war' | |
| // JSTL과 tomcat-japer 의존성 추가 | |
| dependence { | |
| // https://mvnrepository.com/artifact/javax.servlet/jstl | |
| compile group: 'javax.servlet', name: 'jstl', version: '1.2' | |
| // https://mvnrepository.com/artifact/org.apache.tomcat.embed/tomcat-embed-jasper | |
| compile group: 'org.apache.tomcat.embed', name: 'tomcat-embed-jasper', version: '9.0.22' |
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
| </dependencies> | |
| <!-- https://mvnrepository.com/artifact/javax.servlet/jstl --> | |
| <dependency> | |
| <groupId>javax.servlet</groupId> | |
| <artifactId>jstl</artifactId> | |
| <version>1.2</version> | |
| </dependency> | |
| <!-- https://mvnrepository.com/artifact/org.apache.tomcat.embed/tomcat-embed-jasper --> | |
| <dependency> |
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 main | |
| import ( | |
| "fmt" | |
| "html" | |
| "strconv" | |
| "strings" | |
| ) | |
| func main() { |
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 main | |
| import ( | |
| "fmt" | |
| "github.com/dgrijalva/jwt-go" | |
| ) | |
| func main() { | |
| // This token is expired |
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 main | |
| import ( | |
| "io" | |
| "log" | |
| "net/http" | |
| ) | |
| func main() { | |
| helloHandler := func(w http.ResponseWriter, req *http.Request) { |
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 main | |
| import ( | |
| "io" | |
| "log" | |
| "net/http" | |
| ) | |
| func main() { | |
| // Hello world, the web server |
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 main | |
| import ( | |
| "fmt" | |
| "net/url" | |
| "github.com/zserge/lorca" | |
| ) | |
| var inputform string = ` |
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 main | |
| import ( | |
| "fmt" | |
| termbox "github.com/nsf/termbox-go" | |
| ) | |
| func main() { | |
| err := termbox.Init() |
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
| import java.util.*; | |
| class RSTest { | |
| public static void main(String[] args) { | |
| System.out.println("Starting"); | |
| int x = 1000000; | |
| int y = x * 10; | |
| Random gen = new Random(System.currentTimeMillis()); | |
| double[] s = new double[y]; | |
| long start1 = System.nanoTime(); |
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 main | |
| import ( | |
| "fmt" | |
| "math/rand" | |
| "sort" | |
| "time" | |
| ) | |
| func main() { |