View things.java
byte[][] combinations = { | |
{ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 } | |
}; | |
List<Long> crcList = new ArrayList<>(); | |
for (byte[] combination : combinations) { | |
crcList.add(this.crc32(combination)); | |
} | |
Log.i(TAG, "combos:" + crcList); |
View anoter-idea.lua
local STATE_SELECT_SONG = 0 | |
local STATE_SELECT_CHART = 1 | |
local STATE_CONFIRM = 2 | |
local function makeBackgroundOrnaments(self) | |
-- TODO | |
end | |
local function makeForegroundOrnaments(self) | |
-- TODO | |
end |
View ExcludeFieldsWithoutSerializedName.java
/** | |
* Estrategia de exclusion para {@link Gson} para saltarse campos que no sean serializables | |
* @author shujito | |
*/ | |
public class ExcludeFieldsWithoutSerializedName implements ExclusionStrategy | |
{ | |
@Override | |
public boolean shouldSkipClass(Class<?> clss) | |
{ | |
return false; |
View http.java
// nueva conexion | |
URL url = new URL("http://danbooru.donmai.us/posts.json?tags=setz"); | |
// abrir | |
HttpURLConnection https = (HttpURLConnection) url.openConnection(); | |
// conectar | |
https.connect(); | |
// 200,401,404,500 | |
int code = https.getResponseCode(); | |
// OK, Access denied, Not found, Internal server error | |
String message = https.getResponseMessage(); |
NewerOlder