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
List<MyObject> arrayList = new ArrayList<>(); | |
if (resultMap.get("key") instanceof List) { | |
List list = (List) resultMap.get("key"); | |
for (Object item : list) { | |
if (item instanceof MyObject) { | |
arrayList.add((MyObject) item); | |
} | |
} | |
} |
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
^(?!(dalvikvm|ContextImpl|Watchdog|registerCallback)) |
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 org.json.JSONException; | |
import org.json.JSONObject; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.io.OutputStream; | |
import java.net.HttpURLConnection; | |
import java.net.URL; |
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(); |
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
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
/** | |
* @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 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 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
@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(); |
OlderNewer