numberFormat _.numberFormat(number, [ decimals=0, decimalSeparator='.', orderSeparator=','])
Formats the numbers.
_.numberFormat(1000, 2)
=> "1,000.00"
_.numberFormat(123456789.123, 5, '.', ',')
=> "123,456,789.12300"
#!/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) |
{ | |
"font_size": 12.0, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"rulers": | |
[ | |
80 | |
], |
{ | |
"id": 14367, | |
"login": "adent", | |
"email": "adent@student.42.fr", | |
"alias": [ | |
"adent@student.42.fr", | |
"dent.arthur@student.42.fr", | |
"arthur.dent@student.42.fr" | |
], | |
"display_name": "Arthur Dent", |
The ProjectsUser represents the subscription of an user on a project. A subscribed user can have one or more teams based on his number of attempts to this project. Be careful to always select the active team (the last team).
Here is basically the different states a user can have on a project:
locked_at
field is not null), he is creating a group.If the user have a locked team, he did, or he is doing the project. At this point, the available states are:
locked_at
, closed_at
and final_mark
fields aren't null), he has finished his project. If he don't have a final_mark yet, he his waiting for correction.