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
$ brew update | |
$ brew install rbenv ruby-build |
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
@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 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.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 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
^(?!(dalvikvm|ContextImpl|Watchdog|registerCallback)) |
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
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); | |
} | |
} | |
} |
NewerOlder