This file contains hidden or 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
$.scrollWindowTo = function(pos, duration, cb) { | |
if (duration == null) { | |
duration = 0; | |
} | |
if (pos === $(window).scrollTop()) { | |
$(window).trigger('scroll'); | |
if (typeof cb === "function") { | |
cb(); | |
} | |
return; |
This file contains hidden or 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
{ | |
"_description: Name of City, or Town": { | |
"State": "The Indian State under which this City/Town exists.", | |
"GeoCode": [ | |
"Latitude", | |
"Longitude" | |
], | |
"PinCodes": [ | |
"All", | |
"The", |
This file contains hidden or 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 | |
/** | |
* Returns a Pretty Time Ago string from given Timestamp. Returns bare date if | |
* timestamp is way back in past. | |
* @example "posted".timeAgo(xx): "posted just now". | |
* "posted a few minutes ago" | |
* "posted 14 minutes ago" | |
* "posted today at 7:00PM" | |
* "posted yesterday at 7:00PM" | |
* "posted 7:00PM, Friday 29 August 2014" |
NewerOlder