git checkout -b name-branch
git add -A
git commit -m "Name commit"
git push origin name-branch
git pull --rebase origin master
git checkout master
git pull origin master
git merge name-branch
git push origin master
obj.your_method { |item| ... }
def your_method(..., ..., &block)
block.call(:somth)
end
$scope.example = function (value) {
var q = $q.defer();
if (value == 'what_you_need') {
q.resolve(variable); //подставляете в variable значение, которое вам надо
}
else {
q.reject(variable); //подставляете в variable значение, которое вам надо в противных случаях
}
return q.promise;
}
$scope.auth = false; //эта переменная и примет значение, когда callback отработает
$scope.promise = $scope.example(your_variable);
$scope.promise.then ( function (v) { $scope.auth = v },
function (err) { $scope.auth = err }
)
<VirtualHost *:80>
ServerName listemployee.com
DocumentRoot "/Users/prizmo/Documents/projects/list_employee/myproject/web"
DirectoryIndex index.php
<Directory "/Users/prizmo/Documents/projects/list_employee/myproject/web">
Require all granted
</Directory>
ErrorLog /Users/prizmo/Documents/projects/list_employee/myproject/apache-error.log
CustomLog /Users/prizmo/Documents/projects/list_employee/myproject/apache-access.log
</VirtualHost>
SELECT * FROM ... WHERE .... ORDER BY ... LIMIT 20, 20