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
--- 192.168.1.1 ping statistics --- | |
17 packets transmitted, 7 packets received, 58.8% packet loss | |
round-trip min/avg/max/stddev = 157.283/246.130/414.386/74.276 ms |
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
// Returns the orginal of an integer | |
function getOrdinal(n) { | |
var s = ["th","st","nd","rd"]; | |
var v = n % 100; | |
return (s[(v - 20) % 10] || s[v] || s[0]); | |
} |
NewerOlder