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 herma.common; | |
import org.codehaus.jackson.map.ObjectMapper; | |
import org.springframework.http.HttpEntity; | |
import org.springframework.http.HttpHeaders; | |
import org.springframework.http.MediaType; | |
import org.springframework.web.client.RestTemplate; | |
import java.io.IOException; | |
import java.nio.charset.Charset; |
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
#!/bin/bash | |
########################################################## | |
## Simple script to get maven dependency tree ## | |
## @author Lee, SeongHyun (Kevin) ## | |
## @veraion 0.0.1 (2013-01-17) ## | |
## ## | |
## To change the option 'include' and 'output', change ## | |
## the values of INCLUDE_NAME and OUTPUT_NAME ## | |
## respectively. ## | |
## e.g.) to change 'include' to 'inc' and 'output' to ## |
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 org.vertx.java.core.Handler; | |
import org.vertx.java.core.eventbus.Message; | |
import org.vertx.java.deploy.Verticle; | |
import java.util.concurrent.atomic.AtomicLong; | |
/** | |
* @author <a href="http://tfox.org">Tim Fox</a> | |
*/ | |
public class Manager extends Verticle { |
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 sandbox; | |
import com.sun.xml.internal.ws.policy.privateutil.PolicyUtils; | |
import org.junit.Test; | |
import java.util.ArrayList; | |
import java.util.List; | |
import static org.hamcrest.CoreMatchers.is; | |
import static org.junit.Assert.assertThat; |
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 sclass | |
/** | |
* @author Keesun Baik | |
*/ | |
class AntProgression { | |
def next(num: String): String = { | |
val charList: List[Char] = num.toList | |
var nums: Map[Char, Int] = Map() |
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 org.vertx.java.core.Handler; | |
import org.vertx.java.core.http.HttpServer; | |
import org.vertx.java.core.http.HttpServerRequest; | |
import org.vertx.java.deploy.Verticle; | |
/** | |
* @author Keesun Baik | |
*/ | |
public class Test extends Verticle { | |
@Override |
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 me.whiteship; | |
import org.vertx.java.core.Handler; | |
import org.vertx.java.core.http.HttpServer; | |
import org.vertx.java.core.http.HttpServerRequest; | |
import org.vertx.java.core.http.HttpServerResponse; | |
import org.vertx.java.deploy.Verticle; | |
/** | |
* @author Keesun Baik |
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 com.nhncorp.test; | |
import com.nhncorp.mods.socket.io.SocketIOServer; | |
import com.nhncorp.mods.socket.io.SocketIOSocket; | |
import com.nhncorp.mods.socket.io.impl.DefaultSocketIOServer; | |
import org.vertx.java.busmods.BusModBase; | |
import org.vertx.java.core.Handler; | |
import org.vertx.java.core.http.HttpServer; | |
import org.vertx.java.core.impl.VertxInternal; | |
import org.vertx.java.core.json.JsonObject; |
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
/** | |
* @author Keesun Baik | |
*/ | |
public class RegexUtils { | |
public static String[] match(String input, String regexp) { | |
Matcher matcher = Pattern.compile(regexp).matcher(input); | |
String[] results = new String[matcher.groupCount() + 1]; |
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
// **************************************************************** | |
// ViewResolver for the Thymeleaf | |
// **************************************************************** | |
@Bean | |
public ThymeleafViewResolver viewResolver(){ | |
ThymeleafViewResolver viewResolver = new ThymeleafViewResolver(); | |
viewResolver.setTemplateEngine(thymeleafEngine()); | |
return viewResolver; | |
} |