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.teamshunya.silencio.Activities.ShowActivity.SwipableLayout; | |
import android.app.ProgressDialog; | |
import android.content.Context; | |
import android.net.Uri; | |
import android.os.AsyncTask; | |
import android.os.Bundle; | |
import android.support.annotation.Nullable; | |
import android.support.v4.app.Fragment; | |
import android.view.LayoutInflater; |
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
# Python Program to find Largest of Three Numbers using Elif Statement | |
#declaration of 3 numbers | |
#float(input("Please Enter the First value: ")) means value can be in float and it is taking input like scanf in c | |
num1 = float(input("Please Enter the First value: ")) | |
num2 = float(input("Please Enter the First value: ")) | |
num3 = float(input("Please Enter the First value: ")) |
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
public void selectSpinner() { | |
if (rotationAnimator != null) { | |
rotationAnimator.cancel(); | |
} | |
final ArrayList<Integer> spinnerList = new ArrayList<>(); | |
spinnerList.add(R.drawable.spinner); | |
spinnerList.add(R.drawable.spinner_blue); | |
spinnerList.add(R.drawable.spinner_blue_1); |
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
public class Height04 extends AppCompatActivity { | |
private Button btn_weight_next; | |
private Button button_weight_back; | |
CustomFontTextView textViewlater; | |
int ft, in; | |
private static final String TAG = Height04.class.getSimpleName(); | |
private CustomWheelView Feets, inch, Cms, unit; | |
private static final String[] FeetsInches = new String[]{"3", "4", "5", "6", "7", "8", "9"}; | |
private static final String[] Inches = new String[]{"00","01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11"}; |
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
@Override | |
public void onCreate() { | |
super.onCreate(); | |
realmInit(); | |
onTimeLaunch = PreferenceManager.getDefaultSharedPreferences(getApplicationContext()); | |
boolean isFirstRun = onTimeLaunch.getBoolean("FIRSTRUN", true); | |
if (isFirstRun) { | |
// Code to run once | |
firebaseJobDispatcherFirstTimePedometer(); |
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
private void pushActivityDataInBackend(String token, String steps, String distanceTravelled, String cals, String formattedDate, String formattedDate1) { | |
GeneralAPI generalAPI = ApiClient.getClient().create(GeneralAPI.class); | |
Call<PedometerDataModel> call = generalAPI.pedometerDataSave(token, steps, distanceTravelled, cals, formattedDate, formattedDate1); | |
call.enqueue(new Callback<PedometerDataModel>() { | |
@Override | |
public void onResponse(Call<PedometerDataModel> call, Response<PedometerDataModel> response) { | |
if (response.isSuccessful()) { | |
PedometerDataModel result = response.body(); | |
if (result.getSuccess()) { | |
Log.d("Workout", "Workedfine"); |
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
public class SleepAccelerometerService extends Service implements SensorEventListener { | |
private SensorManager sensorMan; | |
public Sensor accelerometer; | |
public Context context; | |
private float[] mGravity; | |
private float mAccel; | |
private float mAccelCurrent; | |
private float mAccelLast; | |
String nowAsISO; |
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
public class DayActivity extends Fragment { | |
public DayActivity() { | |
// Required empty public constructor | |
} | |
@Override | |
public void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); |
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
public class ApplicationInit extends Application { | |
private static Context context; | |
private static ApplicationInit mInstance; | |
@Override | |
public void onCreate() { | |
super.onCreate(); | |
ApplicationInit.context = getApplicationContext(); | |
SharedPreference.init(getApplicationContext()); |
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
{"StringValue":[ | |
{ | |
"ID": "1018529841617858", | |
"about_event": "Het voorbije seizoen trok ik door de theaters met mijn voorstelling ‘Uit Bewondering’. De reacties van het publiek waren zo positief en laaiend enthousiast dat ik besloten heb om het volgende theaterseizoen deze voorstelling opnieuw te spelen. \nMensen die nog niet zijn komen kijken moeten zeker een kaartje kopen. Jullie krijgen een prachtige voorstelling die bekoort vanaf de eerste seconde en totdat de laatste noot gezongen is. Meer dan 20 van de allermooiste liedjes worden afgewisseld met ontroerende, onverwachte of grappige verhalen over hetgeen ik bewonder. \nMaar ook de mensen die de voorstelling al gezien hebben, zijn meer dan welkom en kunnen nog ‘ns komen kijken. Ik verwerk namelijk constant nieuwe elementen in mijn theaterconcerten. Dit kan de actualiteit van het moment zijn, maar er zullen ook nieuwe liedjes in de voorstelling zitten. Ook de tussendoor-verhaaltjes zullen anders worden. Dat kan perfect, want er zijn nog |
OlderNewer