Skip to content

Instantly share code, notes, and snippets.

View AmanpreetYatin's full-sized avatar

Aman Jandiala AmanpreetYatin

  • Chandigarh
View GitHub Profile
@AmanpreetYatin
AmanpreetYatin / TimePickerDialog.java
Created August 9, 2016 05:17
#time #picker #dialog
eReminderTime.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
Calendar mcurrentTime = Calendar.getInstance();
int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);
int minute = mcurrentTime.get(Calendar.MINUTE);
TimePickerDialog mTimePicker;
mTimePicker = new TimePickerDialog(AddReminder.this, new TimePickerDialog.OnTimeSetListener() {
@AmanpreetYatin
AmanpreetYatin / 0_reuse_code.js
Last active August 29, 2015 14:11
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console