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
[ | |
{ | |
"updated_at":"2018-05-10T22:22:51+00:00", | |
"item":{ | |
"entity_type":"Activity", | |
"id":1562279037, | |
"comment_count":0, | |
"kudos_count":9, | |
"achievement_count":0 | |
}, |
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
<?xml version="1.0" encoding="utf-8"?> | |
<shape xmlns:android="http://schemas.android.com/apk/res/android"> | |
<solid android:color="@color/secondary_background_88"/> | |
</shape> |
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
//! The given info object contains all the current workout | |
//! information. Calculate a value and return it in this method. | |
function compute(info) { | |
// See Activity.Info in the documentation for available information. | |
var minutesPerMile = 1 / (info.currentSpeed * 60 / 1609.34); | |
var minutes = minutesPerMile.toNumber(); | |
var seconds = (minutesPerMile - minutes) * 60; | |
if (seconds < 10) { | |
seconds = "0"+seconds; | |
} else { |
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 interface IAddPersonView { | |
void showNumberOfPersons(int size); | |
} |
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 AddPersonActivity extends Activity implements IAddPersonView { | |
private TextView vPersonsAdded; | |
private EditText vPersonName; | |
private Button vAddPerson; | |
private IAddPersonPresenter mPresenter; | |
@Override |
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 AddPersonPresenterImpl implements IAddPersonPresenter{ | |
List<Person> mPersons; | |
private IAddPersonView mView; | |
public AddPersonPresenterImpl(IAddPersonView view) { | |
this.mView = view; | |
this.mPersons = new ArrayList<>(); | |
updateNumberOfAddedPersons(); | |
} |
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
adb shell | |
pm block com.sony.smallapp.launcher | |
pm block com.sony.smallapp.app.widget | |
exit | |
adb reboot |
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
buildscript { | |
repositories { | |
maven { url 'http://repo1.maven.org/maven2' } | |
mavenCentral() | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:0.9.1' | |
} |
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
var output = ""; | |
var dump = function(){ | |
$(".sitemapTree > .sitemapExpandableNode").each(function(index, element){ | |
printNode(element); | |
}); | |
console.log(output); | |
} | |
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
package com.mastercard.android.atmlocator.view; | |
import android.content.Context; | |
import android.graphics.Rect; | |
import android.util.AttributeSet; | |
import android.util.Log; | |
import android.view.MotionEvent; | |
import android.view.View; | |
import android.widget.AbsListView; | |
import android.widget.GridView; |
NewerOlder