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 by [email protected] on 2017-5-1. | |
*/ | |
public interface CSVWritable { | |
void write(OutputStream outputStream, List<String[]> datas); | |
} |
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
public class CSVWriter { | |
private static final String UTF8_BOM = "\uFEFF"; | |
public void convert(HttpServletResponse response, List<?> datas, String name) { | |
write(response, transform(datas), name); | |
} | |
private List<String[]> transform(List<?> objects) { | |
List<String[]> dataToWrite = new ArrayList<>(); |
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
/** | |
* BizPurio 메시지 전송 class build | |
* @author by [email protected] on 2016-10-11. | |
*/ | |
public class BizSenderBuilder { | |
private BizSend bizSend; | |
private String ip; | |
private int port; |
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
@Singleton | |
@Component( | |
modules = { | |
AppModule.class | |
}) | |
public interface ApplicationComponent { | |
void inject(MainActivity target); | |
final class Initializer { |
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 | |
mvn test -Dtest={testClassName} |
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
@Component | |
public class CustomAuthenticationProvider implements AuthenticationProvider { | |
@Autowired | |
private AuthServiceImpl authService; | |
@Override | |
public Authentication authenticate(Authentication authentication) throws AuthenticationException { | |
String username = authentication.getName(); | |
String password = (String) authentication.getCredentials(); |
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
<script> | |
function onCodeChanged() { | |
var select = document.getElementById('category'); | |
var value = select.options[select.selectedIndex].value; | |
var text = select.options[select.selectedIndex].text + '선택'; | |
$.ajax({ | |
type: "POST" | |
, url: "url" | |
, data: "category=" + value | |
, success: function (response) { |
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 lombok.Data; | |
import lombok.NoArgsConstructor; | |
/** | |
* @author by [email protected] on 2016-08-01. | |
*/ | |
@Data | |
@NoArgsConstructor | |
public class PageInfo { | |
public static final int QUANTITY_OF_CONTENTS_PER_PAGE = 20; |
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 by [email protected] on 2016-05-20. | |
*/ | |
public class SimpleTextWatcher implements TextWatcher { | |
public interface AfterTextChanged { | |
void afterTextChanged(Editable s); | |
} | |
private AfterTextChanged afterTextChanged; |
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
org.gradle.daemon=true | |
org.gradle.parallel=true |