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
Element.prototype.fadeIn = function(callback) { | |
var ele = this, | |
opacity = ele.style.opacity = Number(ele.style.opacity) || 0.0, | |
fadeInLoop = null, | |
intervalTime = 10, | |
opacityAmount = 0.05; | |
ele.style.display = 'block'; | |
// If the opacity is already greater than or equal to zero then there is nothing |
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
$age = floor((time() - strtotime($data_of_birth)) / 31556926); |
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 MyAsyncTaskName extends AsyncTask<String, Integer, String> { | |
// String: The first string is the parameter, this is what is passed to doInBackground() | |
// Integer: The first, and only, Integer type is used for progress updates, this is what is passed to onProgressUpdate() | |
// String: The second String is for what is returned by doInBackground() and what is passed to onPostExecution(); | |
@Override | |
protected void onPreExecute() { | |
// Handles what happens before the AsyncTask fully executes. | |
// Here you can do things like add a progress bar, loading animation, etc. |
NewerOlder