numberFormat _.numberFormat(number, [ decimals=0, decimalSeparator='.', orderSeparator=','])
Formats the numbers.
_.numberFormat(1000, 2)
=> "1,000.00"
_.numberFormat(123456789.123, 5, '.', ',')
=> "123,456,789.12300"| function getHeure(container, utc) | |
| { | |
| d = new Date() | |
| if (utc) | |
| { | |
| t = date.getUTCHours()+":"date.getUTCMinutes()+":"+date.getUTCSeconds(); | |
| } | |
| else | |
| { | |
| t = date.getHours()+":"date.getMinutes()+":"+date.getSeconds(); |
| .mejs-controls .mejs-time-rail .mejs-time-total | |
| { | |
| margin: 5px 0px; | |
| } |
| /* ************************************************************************** */ | |
| /* */ | |
| /* ::: :::::::: */ | |
| /* ft_memrealloc.c :+: :+: :+: */ | |
| /* +:+ +:+ +:+ */ | |
| /* By: aaubin <[email protected]> +#+ +:+ +#+ */ | |
| /* +#+#+#+#+#+ +#+ */ | |
| /* Created: 2013/11/28 02:36:34 by aaubin #+# #+# */ | |
| /* Updated: 2013/11/28 03:35:07 by aaubin ### ########.fr */ | |
| /* */ |
| -t#. | |
| -t#.. | |
| -l#. | |
| -l#.. | |
| -t# | |
| -l# | |
| -la# | |
| -lar# | |
| -lart# | |
| -la# |
| /* ************************************************************************** */ | |
| /* */ | |
| /* ::: :::::::: */ | |
| /* ft_printf_test.c :+: :+: :+: */ | |
| /* +:+ +:+ +:+ */ | |
| /* By: aaubin <[email protected]> +#+ +:+ +#+ */ | |
| /* +#+#+#+#+#+ +#+ */ | |
| /* Created: 2013/12/16 10:10:21 by aaubin #+# #+# */ | |
| /* Updated: 2013/12/16 10:10:34 by aaubin ### ########.fr */ | |
| /* */ |
| #!/usr/bin/php | |
| <?php | |
| date_default_timezone_set('Europe/Paris'); | |
| function another_world($str) | |
| { | |
| $splitted = explode(" ", $str); | |
| foreach ($splitted as $key => $value) { | |
| $splitted[$key] = ucfirst($value); | |
| } | |
| $str = implode(" ", $splitted); |
| <%= simple_form_for @quote do |m| %> | |
| <%= m.simple_fields_for :comments do |p| %> | |
| <%= p.input :content %> | |
| <% end %> | |
| <% end %> |
numberFormat _.numberFormat(number, [ decimals=0, decimalSeparator='.', orderSeparator=','])
Formats the numbers.
_.numberFormat(1000, 2)
=> "1,000.00"
_.numberFormat(123456789.123, 5, '.', ',')
=> "123,456,789.12300"| -='cd -' | |
| ..='cd ..' | |
| ...='cd ../..' | |
| 1='cd -' | |
| 2='cd -2' | |
| 3='cd -3' | |
| 4='cd -4' | |
| 5='cd -5' | |
| 6='cd -6' | |
| 7='cd -7' |
| $ -> | |
| item = $('[data-prevented-scroll]') | |
| h = item.height() | |
| sh = item.get(0).scrollHeight | |
| item.bind 'mousewheel', (e, d) -> | |
| e.preventDefault() if (@.scrollTop is (sh - h) and d < 0) or (@.scrollTop is 0 and d > 0) |