Skip to content

Instantly share code, notes, and snippets.

View NearLinHere's full-sized avatar

Yijin Lin NearLinHere

View GitHub Profile
@NearLinHere
NearLinHere / average_log.txt
Created March 20, 2018 03:41
log message while doing average
03-20 11:35:46.588 24332-24358/org.tensorflow.demo D/averaging: start average
03-20 11:35:46.588 24332-24358/org.tensorflow.demo D/averaging: previousResult(1521516946126): [[0.19529901, 0.14228404, 0.08054252, 0.06335352, 0.14078242, 0.020963598, 0.026352042, 0.07149689, 0.086998664, 0.06017948, 0.06499626, 0.046751548]]
03-20 11:35:46.588 24332-24358/org.tensorflow.demo D/averaging: previousResult(1521516946213): [[0.19529901, 0.14228404, 0.08054252, 0.06335352, 0.14078242, 0.020963598, 0.026352042, 0.07149689, 0.086998664, 0.06017948, 0.06499626, 0.046751548]]
03-20 11:35:46.588 24332-24358/org.tensorflow.demo D/averaging: previousResult(1521516946342): [[0.19529901, 0.14228404, 0.08054252, 0.06335352, 0.14078242, 0.020963598, 0.026352042, 0.07149689, 0.086998664, 0.06017948, 0.06499626, 0.046751548]]
03-20 11:35:46.588 24332-24358/org.tensorflow.demo D/averaging: previousResult(1521516946437): [[0.19529901, 0.14228404, 0.08054252, 0.06335352, 0.14078242, 0.020963598, 0.026352042, 0.07149689, 0.086998664,
@NearLinHere
NearLinHere / input_logging.txt
Created March 20, 2018 03:40
the results processLatestResults got
03-20 11:35:46.126 24332-24358/org.tensorflow.demo D/input: currentResults(1521516946126): [4.5406974E-8, 0.024435127, 7.096956E-5, 1.0630338E-4, 3.938103E-6, 4.841021E-6, 0.01876898, 0.9562202, 3.3102385E-4, 6.6938487E-6, 6.2260624E-6, 4.5765577E-5]
03-20 11:35:46.214 24332-24358/org.tensorflow.demo D/input: currentResults(1521516946213): [0.010351794, 0.27672085, 0.056765784, 0.02850655, 0.040338222, 0.018231098, 0.052487627, 0.3455762, 0.089626, 0.032993212, 0.0099683, 0.038434375]
03-20 11:35:46.342 24332-24358/org.tensorflow.demo D/input: currentResults(1521516946342): [0.12690459, 0.16955148, 0.1332054, 0.088726886, 0.11998958, 0.027233465, 0.049858607, 0.07905536, 0.061530266, 0.057279434, 0.041546687, 0.04511823]
03-20 11:35:46.437 24332-24358/org.tensorflow.demo D/input: currentResults(1521516946437): [0.2209672, 0.13835302, 0.08886534, 0.077907905, 0.09832612, 0.018477816, 0.034730762, 0.08293783, 0.099410646, 0.053690664, 0.05517341, 0.03115925]
03-20 11:35:46.588 24332-24358/org.tensorflow.demo D/
String shareBody = "Here is the share content body";
Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND);
sharingIntent.setType("text/plain");
sharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "Subject Here");
sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, shareBody);
startActivity(sharingIntent);
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
package xmlpull.sample.jean.xmlpull;
import android.app.ProgressDialog;
import android.os.AsyncTask;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.*;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
@NearLinHere
NearLinHere / pkujava_ch5_TestInnerClass.java
Created June 17, 2015 07:41
pkujava_ch5_TestInnerClass.java
class TestInnerClass{
public static void main( String[] args ){
Parcel p = new Parcel();
p.testShip();
Parcel.Contents c = p.new Contents(33);
Parcel.Destination d = p.new Destination( "Hawii" );
p.setProperty( c, d );
p.ship();
}
package com.example.multirowradioboxgroup;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.RadioButton;
public String getCheckedRadiobuttonStringText(){
if (activeRadioButton != null){
return activeRadioButton.getText().toString();
}
return "";
}
package com.custom.view;
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.RadioButton;
import android.widget.TableLayout;
import android.widget.TableRow;
package com.example.multirowradioboxgroup;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;