View ac_to_sheet.py
max_windows = browser_setting['max_windows']
logging.info('max_windows settings: ' + str(max_windows))
# pool = Pool(processes=len(event_list))
for event in event_list[:max_windows]:
logging.debug('Event before submit, name: ' + event['text'])
# pool.apply_async(func=parse_event_sale_info, args=(event,))
p = Process(target=parse_event_sale_info, args=(event,))
p.start()
p.join()
View MeProfileFragment.java
// Check if support contact in chat
if (!TextUtils.isEmpty(new TripTime(getContext()).getContactInChatUrl())) {
final UserPreferencesManager userPreferencesManager = new UserPreferencesManager(getContext());
final String roomId = userPreferencesManager.getMember().getUserId() + "-triptime-contact";
progressDialog.setTitle(getString(R.string.check_room_with_id));
progressDialog.setMessage(getString(R.string.loading));
progressDialog.show();
// Find room id
IMKit.instance().getRoom(roomId, new IMRestCallback<Room>() {
View README.md

Original: food_amounts = [{"sugar_grams":245,"carbohydrate":83,"fiber":67},{"carbohydrate":74,"sugar_grams":52,"fiber":26},{"fiber":47,"carbohydrate":93,"sugar_grams":6}]

/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/bin/python3.6 /Users/edward_chiang/python_projects/sort/sort.py
food_amounts by sugar_grams: [{'sugar_grams': 245, 'carbohydrate': 83, 'fiber': 67}, {'carbohydrate': 74, 'sugar_grams': 52, 'fiber': 26}, {'fiber': 47, 'carbohydrate': 93, 'sugar_grams': 6}]
food_amounts by carbohydrate: [{'fiber': 47, 'carbohydrate': 93, 'sugar_grams': 6}, {'sugar_grams': 245, 'carbohydrate': 83, 'fiber': 67}, {'carbohydrate': 74, 'sugar_grams': 52, 'fiber': 26}]
food_amounts by fiber: [{'sugar_grams': 245, 'carbohydrate': 83, 'fiber': 67}, {'fiber': 47, 'carbohydrate': 93, 'sugar_grams': 6}, {'carbohydrate': 74, 'sugar_grams': 52, 'fiber': 26}]

Process finished with exit code 0
View ContactsAPITest.java
package tw.com.dynasafe.cix.service;
import android.test.AndroidTestCase;
import android.util.Log;
import com.google.gson.JsonObject;
import java.util.List;
import java.util.concurrent.CountDownLatch;
View TSCExampleActivity.java
package tw.soleil.tscdemo;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
View View+Extension.swift
//
// View+Extension.swift
// carce-ios
//
// Created by Edward Chiang on 12/14/15.
// Copyright © 2015 Soleil Studio. All rights reserved.
//
import UIKit
View gist:3779f30d906f88d87d9dd59ee58cdd36
String summary = garage.getDescription();
if (summary != null) {
// Handle summary code
Log.d(Carce.TAG, "Summary: " + summary);
Document document = Jsoup.parse(summary);
// document.select("img[attribute]").remove();
document.select("img").removeAttr("style");
document.select("img").attr("width", "100%");
document.select("img").attr("height", "auto");
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"