This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // permutation: Permutação | |
| // P(n) = n! | |
| // Exemplo: número de anagramas da palavra LIVRO = P(5) = n! | |
| // Possibilidades de uma fila de 25 pessoas = P(25) = 25! | |
| // combination: Combinação | |
| // C(p,n) = = n! / p!(n - p)! | |
| // Exemplo: formar comissão de 3 pessoas escolhidas entre 10 pessoas. C(3,10) = 10! / 3!(10 - 3)! | |
| // arrangement: Arranjo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if (!(typeof window.CocoonJS === 'undefined' || window.CocoonJS === null)) { // BEGIN - CHECK FOR COCOONJS | |
| (function() { | |
| // The CocoonJS and CocoonJS.Social must exist before creating the extension. | |
| if (typeof window.CocoonJS === 'undefined' || window.CocoonJS === null) throw("The CocoonJS object must exist and be valid before creating the extension types."); | |
| if (typeof window.CocoonJS.Social === 'undefined' || window.CocoonJS.Social === null) throw("The CocoonJS.Social object must exist and be valid before creating the extension types."); | |
| /** | |
| * @class | |
| * @constructor | |
| * Represents a type that mimics the original Facebook API with the addition of the possibility to |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| alias __git_ps1="git branch 2>/dev/null | grep '*' | sed 's/* \(.*\)/(\1)/'" | |
| export CLICOLOR=1 | |
| #export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx | |
| export LSCOLORS=ExFxCxDxBxegedabagacad | |
| RESET="\[\017\]" | |
| NORMAL="\[\033[0m\]" | |
| USER_COLOR="\[\033[1;32m\]" | |
| DIR_COLOR="\[\033[1;35m\]" | |
| GIT_COLOR="\[\033[1;33m\]" |
Diretório onde será instalado: /usr/local/php5-*
Referência: http://php-osx.liip.ch/
Comando:
curl -s http://php-osx.liip.ch/install.sh | bash -s 5.6
- Create GitHub repo (tell it to create the README.md and the .gitignore to proper language)
- Clone de repo in your development environment
npm initthe repo- Commit the repo
- Integrate Travis CI
- Integrate Code Climate
- Add Code Coverage from Code Climate
- Update README.md with badges
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class TarefaRepository { | |
| public List<Tarefa> listaTarefas() { | |
| return new ArrayList<Tarefa>() {{ | |
| add(new Tarefa("titulo 1", "descricao 1")) | |
| add(new Tarefa("titulo 2", "descricao 2")) | |
| }}; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # http://editorconfig.org | |
| root = true | |
| [*] | |
| charset = utf-8 | |
| end_of_line = lf | |
| indent_size = 4 | |
| indent_style = space | |
| insert_final_newline = true | |
| max_line_length = 80 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .idea | |
| *.iml | |
| target |