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
/* | |
* Created by Nikita Karnaukh on 07/09/15. | |
*/ | |
public class CustomArrayDeserializer extends JsonDeserializer<RealmList<UserPhoto>> { | |
@Override | |
public RealmList<UserPhoto> deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException { | |
RealmList<UserPhoto> photos = new RealmList<>(); | |
while (true) { | |
String value = jp.nextTextValue(); |
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
package com.example.app; | |
import android.graphics.*; | |
import android.util.Log; | |
/* | |
* pHash-like image hash. | |
* Author: Elliot Shepherd ([email protected] | |
* Based On: http://www.hackerfactor.com/blog/index.php?/archives/432-Looks-Like-It.html | |
*/ |
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
function onOpen() | |
{ | |
var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
var entries1 = [ {name: "Export to mobile resources(Android, iOS)", functionName: "exportTranslates"}]; | |
ss.addMenu("Export to mobile resources(Check your Google Drive)", entries1); | |
// Danger for now =) just update current spreadsheet | |
// var entries = [ {name: "Import from Android XML", functionName: "importFromAndroidXml"}]; | |
// ss.addMenu("Import from Android XML", entries); | |
} |