View gist:dbc009eae9e74fd2396c579e6e05b7c3
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
https://hykm.test-app.link/iOsqT4A3oM |
View DBHelper.java
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
/** | |
* Database helper. All database (sqlite) calls can go in here | |
* | |
* @author Muhammad Riyaz | |
* | |
*/ | |
public class DBHelper { | |
private static final String DB_NAME = "db_name"; | |
private static final int DB_VER = 1; |
View gist:5dc8271fb4986adb8878a9cdac93ada7
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
/** | |
* @param fromDate | |
* @return | |
*/ | |
public static String getDateDiffPastInDays(Long fromDate) { | |
Date currentDate = new Date(); | |
if (currentDate.getTime() <= fromDate) { | |
return ""; | |
} else { |
View CustomItemClickListener.java
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 interface CustomItemClickListener { | |
public void onItemClick(View v, int position); | |
} |
View CircleTransform.java
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
/* | |
* Copyright 2014 Julian Shen | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
View ImageResize.php
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
<?php | |
Class ImageResize { | |
// *** Class variables | |
private $image; | |
private $width; | |
private $height; | |
function __construct($fileName) { |