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 com.example; | |
/** | |
* A Java class that implements a simple text classifier, based on WEKA. | |
* To be used with MyFilteredLearner.java. | |
* WEKA is available at: http://www.cs.waikato.ac.nz/ml/weka/ | |
* Copyright (C) 2013 Jose Maria Gomez Hidalgo - http://www.esp.uem.es/jmgomez | |
* <p/> | |
* This program is free software: you can redistribute it and/or modify | |
* it for any purpose. | |
* <p/> |
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 android.util.Log; | |
/** | |
* Created by jackf on 2014/6/10. | |
*/ | |
public class MeasureFps { | |
final String TAG = "MeasureFps"; |
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
// Current code easily fails to update wristband | |
public GattConnection(Context context, BluetoothDevice device, int handleCommandId) { | |
... | |
if (DeviceContentUtils.isNeedNotificationEnabled(this.mContext, mDevice.getAddress(), TAG)) { | |
DLog.i(TAG, "> connectGatt auto"); | |
mBluetoothGatt = mDevice.connectGatt(this.mContext, Boolean.TRUE, mGattCallBack); | |
this.mIsNeedNotificationEnabled = true; | |
} else { | |
DLog.i(TAG, "> connectGatt non-auto"); | |
mBluetoothGatt = mDevice.connectGatt(this.mContext, Boolean.FALSE, mGattCallBack); |
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
// | |
// main.cpp | |
// CodeFun | |
// | |
// Created by YUAN CHANG FAN on 2014/10/4. | |
// Copyright (c) 2014年 MyCompany. All rights reserved. | |
// | |
#include <iostream> |