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
//https://github.com/leeyc09/L10nStringResourceAutomation/blob/master/sample_build.gradle | |
ext.download_res_folder = 'src/main/res_down' //저장될 별도의 리소스 폴더 | |
ext.script_path = 'script/languageResource.py' //스크립트 저장 경로 | |
ext.GoogleDocId = 'Google Doc ID' //구글 스프레드시트 독 아이디 | |
ext.json_key_path = 'script/some_auth_file.json' ///구글 키 저장 경로 | |
task StringResourceSync(type: Exec) { | |
doFirst { | |
println ":::" + "Start to get String Resources..." + ":::" |
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 net.stylemilk.app.repository.api.exception; | |
import java.io.IOException; | |
import java.lang.annotation.Annotation; | |
import okhttp3.ResponseBody; | |
import retrofit2.Converter; | |
import retrofit2.Response; | |
import retrofit2.Retrofit; |
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 net.stylemilk.app.repository.api; | |
import android.util.Log; | |
import com.google.gson.JsonObject; | |
import com.google.gson.JsonParser; | |
import com.google.gson.stream.MalformedJsonException; | |
import java.io.EOFException; | |
import java.io.IOException; |
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
/** | |
* 파일 업로드 -1 | |
* @Body에 parameter를 모두 추가하는 방법 | |
*/ | |
@POST("app/item/upload") | |
Observable<JsonObject> FileUpload_test(@Body RequestBody params); | |
RequestBody requestBody = new MultipartBody.Builder() | |
.setType(MultipartBody.FORM) | |
.addFormDataPart("node", MY_FOLDER_NODE) |
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
/*Activity */ | |
package jiran.com.myapplication; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.util.Log; | |
import io.realm.Realm; |
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 sheet = SpreadsheetApp.getActiveSpreadsheet(); | |
var entries = [{ | |
name : "iOS Resource sheet", | |
functionName : "iOSSheet" | |
}, { | |
name : "Android Resource sheet", | |
functionName : "AndroidSheet" | |
}]; | |
sheet.addMenu("리소스 만들기", entries); |
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 os | |
import sys | |
reload(sys) | |
sys.setdefaultencoding('utf-8') | |
import csv; | |
import gdata.docs.service | |
import gdata.spreadsheet.service | |
from xml.etree.ElementTree import ElementTree, Element, SubElement, dump |
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
public static class RecyclerViewOnItemClickListener extends RecyclerView.SimpleOnItemTouchListener { | |
private OnItemClickListener mListener; | |
private GestureDetector mGestureDetector; | |
public RecyclerViewOnItemClickListener(Context context, final RecyclerView recyclerView, OnItemClickListener listener) { | |
this.mListener = listener; | |
mGestureDetector = new GestureDetector(context, new GestureDetector.SimpleOnGestureListener() { | |
@Override | |
public boolean onSingleTapUp(MotionEvent e) { |
NewerOlder