Class names are CamelCase.
Methods and variables are snake_case.
Methods with a ? suffix will return a boolean.
| <?php | |
| namespace Namespace\MyBundle\Repository\Filters; | |
| use Doctrine\ORM\Mapping\ClassMetaData; | |
| use Doctrine\ORM\Query\Filter\SQLFilter; | |
| class DeletedFilter extends SQLFilter | |
| { | |
| public function addFilterConstraint(ClassMetadata $targetEntity, $targetTableAlias) | |
| { |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # | |
| # This is how I used it: | |
| # $ cat ~/.bash_history | python bash-to-zsh-hist.py >> ~/.zsh_history | |
| import sys | |
| import time |
| .git | |
| .gitignore | |
| README.md | |
| # | |
| # OS X | |
| # | |
| .DS_Store | |
| .AppleDouble | |
| .LSOverride |
| <?php | |
| function validaCPF($cpf) { | |
| // Extrai somente os números | |
| $cpf = preg_replace( '/[^0-9]/is', '', $cpf ); | |
| // Verifica se foi informado todos os digitos corretamente | |
| if (strlen($cpf) != 11) { | |
| return false; |
The easiest way to make Docker Compose available on Container-Optimized OS on Google Compute Engine (GCE) on Google Cloud Platform (GCP).
This is minimal Bash script version of Community Tutorial.
Simply, download installer.sh, run it, and then reload bash by source ~/.bashrc or re-login.