Profile
Achievement
uberdragon's Recent Snippets
- All /
« Prev 1 Next »
A very concise ruby on rails helper method that converts seconds into human readable format. It will not display any time periods that have 0 (ie: 1 hour 13 seconds - skipping minutes as there were none) Due to complexity, months were not factored...
0
1718
posted 10 years ago by uberdragon
A quick function that makes it easy to convert an integer into a number string with commas inserted.
0
838
posted 11 years ago by uberdragon
Usage:
var a = ['a','a','a'];
var b = a.AllValuesSame(): //true
var a ['1','1','2'];
var b = a.AllValuesSame(); //false
0
2593
posted 11 years ago by uberdragon
This will calculate the ticks for google charts so that you can have a chart with a defined height, and still represent large data ranges with out all the vertical information getting bunched up together.
0
780
posted 11 years ago by uberdragon