Skip to content

Instantly share code, notes, and snippets.

[
{
"updated_at":"2018-05-10T22:22:51+00:00",
"item":{
"entity_type":"Activity",
"id":1562279037,
"comment_count":0,
"kudos_count":9,
"achievement_count":0
},
<?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>
//! 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 {
public interface IAddPersonView {
void showNumberOfPersons(int size);
}
public class AddPersonActivity extends Activity implements IAddPersonView {
private TextView vPersonsAdded;
private EditText vPersonName;
private Button vAddPerson;
private IAddPersonPresenter mPresenter;
@Override
public class AddPersonPresenterImpl implements IAddPersonPresenter{
List<Person> mPersons;
private IAddPersonView mView;
public AddPersonPresenterImpl(IAddPersonView view) {
this.mView = view;
this.mPersons = new ArrayList<>();
updateNumberOfAddedPersons();
}
@simekadam
simekadam / gist:b803f2a6642c29a86304
Created February 17, 2015 10:21
Removes Small Apps widget from recents tasks screen on Sony Z3
adb shell
pm block com.sony.smallapp.launcher
pm block com.sony.smallapp.app.widget
exit
adb reboot
buildscript {
repositories {
maven { url 'http://repo1.maven.org/maven2' }
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.9.1'
}
var output = "";
var dump = function(){
$(".sitemapTree > .sitemapExpandableNode").each(function(index, element){
printNode(element);
});
console.log(output);
}
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;