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
private String insertComma(String digits) { | |
String result = digits; | |
if (digits.length() <= 3) { | |
return digits; | |
} else if (digits.contains(".")) { | |
String[] x = digits.split("\\."); | |
for (int i = 0; i < (x[0].length() - 1) / 3; i++) { | |
int commaPos = (x[0].length() - 3) - (3 * i); | |
result = result.substring(0, commaPos) + "," + result.substring(commaPos); | |
} |
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
mResult.setText(f.format("%,d", ((Long.parseLong(s.toString()) / (Math.round(Float.parseFloat(sharePref.getUSD().replace(",", ""))))))) + ""); |
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
private String insertComma(String digits) { | |
String result = digits; | |
if (digits.length() <= 3) { | |
return digits; | |
} else { | |
for (int i = 0; i < (digits.length() - 1) / 3; i++) { | |
int commaPos = (digits.length() - 3) - (3 * i); | |
result = result.substring(0, commaPos) + "," + result.substring(commaPos); | |
} | |
return result; |
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
{ | |
id: 7, | |
title: "Arc", | |
category: "Alerts", | |
body: "Arkar is too sexy", | |
pic_news: { | |
pic_news: { | |
url: "/uploads/news/pic_news/7/9ySXAHt.jpg" | |
} | |
} |
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
<?xml version='1.0' encoding='utf-8' standalone='yes' ?> | |
<map> | |
<string name="4cXeqgAiwtMCVYf4x49Cif6/cv6qGWMJBOHdv1Mwqr0">FLxUzXZCb8gOwud0c3GP5TICNZ57D0drzBJu8+rBdPE</string> | |
<string name="WPku4Iu+9AE0JVkFcLcwuA">5+WnQKWlrj+AB2Nx1FX+bw</string> | |
<string name="xzXkhiG4ydN2inBq3y24TA">yf4T4ymkifqIDvYeuktHsg</string> | |
<string name="FZnfw5wRk5izYXEBaYmghw">aWv75LuFpyiAW6+qSivFZKOapz9DcqXNl44PdGNdbOw</string> | |
</map> |
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
def say_hello(name) | |
puts "Hi #{name}" | |
end | |
# say_hello("devlabs") | |
def say_hello(name,age) | |
puts "Hi #{name} and your age is\n" | |
puts age | |
end | |
# say_hello("yelinaung",21) |
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
private void onSpeakersQueryComplete(Cursor cursor) { | |
mSpeakersCursor = true; | |
final ViewGroup speakersGroup = (ViewGroup) | |
mRootView.findViewById(R.id.session_speakers_block); | |
// Remove all existing speakers (everything but first child, which is the header) | |
for (int i = speakersGroup.getChildCount() - 1; i >= 1; i--) { | |
speakersGroup.removeViewAt(i); | |
} |
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 boolean getTalkStatus(String tID) { | |
Cursor fav = mDb.rawQuery( | |
("SELECT " + DBHelper.tFAV + " FROM " + DBHelper.TABLE_TALK | |
+ " WHERE " + DBHelper.tID + " = " + tID), null); | |
// it makes me half my of day gone | |
fav.moveToFirst(); | |
if (fav.getCount() > 0) { | |
do { | |
if (fav.getInt(0) == 0) { |
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
{"id":"1eea17a7-4fe8-8f5e-b384-1375ab2dd0d1","name":"DevCon API","timestamp":1383201440460,"requests":[{"collectionId":"1eea17a7-4fe8-8f5e-b384-1375ab2dd0d1","id":"48cbe48c-8bcf-b719-322a-81c033740ad7","name":"Speakers","description":"","url":"devconmyanmar.herokuapp.com/api/v1/speakers","method":"GET","headers":"","data":[],"dataMode":"params","timestamp":0,"responses":[],"version":2},{"collectionId":"1eea17a7-4fe8-8f5e-b384-1375ab2dd0d1","id":"cadc6a9d-b386-f75e-c1c4-6441d5f6ba03","name":"Schedules","description":"","url":"devconmyanmar.herokuapp.com/api/v1/schedules","method":"GET","headers":"","data":[],"dataMode":"params","timestamp":0,"responses":[],"version":2}]} |
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
11-10 18:00:31.423: W/dalvikvm(450): Unable to resolve superclass of Landroid/support/v4/app/_ActionBarSherlockTrojanHorse; (150) | |
11-10 18:00:31.423: W/dalvikvm(450): Link of class 'Landroid/support/v4/app/_ActionBarSherlockTrojanHorse;' failed | |
11-10 18:00:31.423: W/dalvikvm(450): Unable to resolve superclass of Lcom/actionbarsherlock/app/SherlockFragmentActivity; (160) | |
11-10 18:00:31.423: W/dalvikvm(450): Link of class 'Lcom/actionbarsherlock/app/SherlockFragmentActivity;' failed | |
11-10 18:00:31.423: W/dalvikvm(450): Unable to resolve superclass of Lorg/devcon/android/BaseActivity; (335) | |
11-10 18:00:31.423: W/dalvikvm(450): Link of class 'Lorg/devcon/android/BaseActivity;' failed | |
11-10 18:00:31.423: W/dalvikvm(450): Unable to resolve superclass of Lorg/devcon/android/HomeActivity; (1495) | |
11-10 18:00:31.434: W/dalvikvm(450): Link of class 'Lorg/devcon/android/HomeActivity;' failed | |
11-10 18:00:31.434: E/dalvikvm(450): Could not find class 'org.devcon.android.HomeActivity', referenced from method org.devcon.andr |