Skip to content

Instantly share code, notes, and snippets.

View piruin's full-sized avatar
🎯
Focusing

Piruin Panichphol piruin

🎯
Focusing
View GitHub Profile
@piruin
piruin / place_by_id.json
Last active October 17, 2015 06:27
TanRaBan Restful Api GET RESPONSE
#api.tanraban.com/v1/place/c27364325ae0bfecc5f7e6f8c6de48a3
{
"place_id":"c2736432-5ae0-bfec-c5f7-e6f8c6de48a3",
"place_type_id":4,
"place_subtype_id":3,
"place_namt":"รพ.สต.บ้านบาละ",
"tambon":"950702",
"used":false,
"location":{
"type":"Point",
@piruin
piruin / BitmapFromMediaUri.java
Created October 2, 2015 17:21
How to get bitmap from URI
InputStream is = getContentResolver().openInputStream(uri);
Bitmap bitmap = BitmapFactory.decodeStream(is);
is.close();