This file contains hidden or 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
| #!/bin/sh | |
| rm ride_on.txt | |
| tail -f path/to/Zwift/Logs/Log.txt | ggrep --line-buffered -Pio '(?<=HUD_Notify:\s).*?(?=\s)' | tee ride_on.txt |
This file contains hidden or 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
| .. | |
| @Override | |
| public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) { | |
| .. | |
| if(mRefreshView != null) { | |
| ((LinearLayout) mRefreshView.findViewById(R.id.hack1)).setVisibility(visibleItemCount == totalItemCount ? View.GONE : View.VISIBLE); | |
| ((LinearLayout) mRefreshView.findViewById(R.id.hack2)).setVisibility(visibleItemCount == totalItemCount ? View.GONE : View.VISIBLE); | |
This file contains hidden or 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
| <manifest ... > | |
| <uses-sdk android:minSdkVersion="4" | |
| android:targetSdkVersion="11" /> | |
| ... | |
| </manifest> |
This file contains hidden or 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 class VibratingToast extends Toast { | |
| public VibratingToast(Context context, CharSequence text, int duration) { | |
| super(context); | |
| ((Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE)).vibrate(300); | |
| super.makeText(context, text, duration).show(); | |
| } | |
| } |