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
/** | |
* BizPurio 메시지 전송 class build | |
* @author by dotkebi@gmail.com on 2016-10-11. | |
*/ | |
public class BizSenderBuilder { | |
private BizSend bizSend; | |
private String ip; | |
private int port; |
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
@Singleton | |
@Component( | |
modules = { | |
AppModule.class | |
}) | |
public interface ApplicationComponent { | |
void inject(MainActivity target); | |
final class Initializer { |
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
#!/bin/bash | |
mvn test -Dtest={testClassName} |
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
@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 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 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 dotkebi@gmail.com on 2016-08-01. | |
*/ | |
@Data | |
@NoArgsConstructor | |
public class PageInfo { | |
public static final int QUANTITY_OF_CONTENTS_PER_PAGE = 20; |
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
/** | |
* @author by dotkebi@gmail.com on 2016-05-20. | |
*/ | |
public class SimpleTextWatcher implements TextWatcher { | |
public interface AfterTextChanged { | |
void afterTextChanged(Editable s); | |
} | |
private AfterTextChanged afterTextChanged; |
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
org.gradle.daemon=true | |
org.gradle.parallel=true |
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
$ brew update | |
$ brew install rbenv ruby-build |
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
@DatabaseTable() | |
public class SomeEntity() { | |
@ForeignCollectionField() | |
private Collection<DetailEntity> detailEntities = new HashSet<>(); | |
} | |
@DatabaseTable() | |
public class DetailEntity() { | |
@DatabaseField(foreign = true, foreignAutoRefresh = true) | |
private SomeEntity someEntity = new SomeEntity(); |