View sswriter.py
logging.debug('sheet_id: ' + str(sheet_id))
logging.debug('row.id: ' + str(eachUpdate['row.id']))
# Find the row by id
row_to_update = self.smart_sheet_authorized.Sheets.get_row(sheet_id, int(eachUpdate['row.id']))
# Check the update from GS is in SS Columns
if eachUpdate['column'] in column_map:
# Get the SS column id from columns map
smart_sheet_column = column_map[eachUpdate['column']]
# Get cell whict want to update
View callcred.py
flow = flow_from_clientsecrets('client_secret.json',
scope='https://spreadsheets.google.com/feeds',
redirect_uri='http://localhost/auth_return')
storage = Storage('creds.data')
credentials = run_flow(flow, storage)
logging.info("access_token: %s" % credentials.access_token)
View log.txt
Command: 
 TEXT 290,50,”TST24.BF2",0,1,1,3,”0001(1/1)”
 TEXT 25,78,”TST24.BF2",0,1,1,”檸檬汁(中)”
 TEXT 25,106,”TST24.BF2",0,1,1,””
 TEXT 25,134,”TST24.BF2",0,1,1,”售價$45 (外帶)”
 TEXT 25,162,”TST24.BF2",0,1,1,”一小時內飲用最佳”
 TEXT 25,190,”TST24.BF2",0,1,1,”日傑茶坊 TEL:0000–0000"
View OrderParseWriter.java
private Order convert(ShoppingOrder shoppingOrder) {
ModelMapper modelMapper = new ModelMapper();
Order order = modelMapper.map(shoppingOrder, Order.class);
return order;
}
View TripMembersSection.java
userImageView.setScaleType(ImageView.ScaleType.CENTER_CROP);
DownloadImageTask downloadImageTask = new DownloadImageTask();
downloadImageTask.setOnBitmapDownloadListener(new DownloadImageTask.OnBitmapDownloadListener() {
@Override
public void result(Bitmap bitmap) {
if (bitmap != null) {
userImageView.setImageBitmap(BitmapLoader.resizeImageForImageView(bitmap,
Math.max(userImageView.getMeasuredWidth(), userImageView.getMeasuredHeight())));
}
}
View DownloadImageTask.java
package io.triptime.android.service;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.AsyncTask;
import android.util.Log;
import java.io.IOException;
import io.triptime.android.TripTime;
View build.gradle
apply plugin: 'com.android.application'
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
View SettinsFragment.java
try {
String appVersion = getActivity().getPackageManager().getPackageInfo(getActivity().getPackageName(), 0).versionName;
SharedPreferences.Editor editor = preferences.edit();
editor.putString(PREFERENCES_KEY_APP_VERSION, appVersion);
editor.apply();
} catch (PackageManager.NameNotFoundException e) {
Log.e(Carce.TAG, e.getLocalizedMessage());
}
View MemberActivity.java
try {
String appVersion = getPackageManager().getPackageInfo(getPackageName(), 0).versionName;
contentAdapter.addItem(new ItemObject("版本 " + appVersion, null));
Signature[] sigs = getPackageManager().getPackageInfo(getPackageName(), PackageManager.GET_SIGNATURES).signatures;
StringBuffer signBffer = new StringBuffer();
for (Signature sign: sigs) {
signBffer.append(sign.toCharsString());
View OrderStepsFragment.java
public static double round(double d, int decimalPlace) {
BigDecimal bd = new BigDecimal(d);
bd = bd.setScale(decimalPlace, BigDecimal.ROUND_FLOOR);
return bd.doubleValue();
}