6 Lessons I learned while implementing technical RFCs as a decision making tool
This file contains 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
package main | |
import ( | |
"golang.org/x/crypto/bcrypt" | |
"fmt" | |
) | |
func main() { | |
password := []byte("MyDarkSecret") | |
hashedPasswordFromPHP := []byte("$2y$10$zlo5xhAXy5oyfjQPykUHP.tcnxdJmKHNBWgOssYKIcPm4iyHRe/1e"); |
This file contains 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
#!/bin/bash | |
export GITHUB_REPO="user/repo" | |
export GITHUB_USERNAME=$(cat ~/.githubrc 2> /dev/null | grep user.login | cut -d ":" -f2 | xargs) | |
export GITHUB_PASSWORD=$(cat ~/.githubrc 2> /dev/null | grep user.password | cut -d ":" -f2 | xargs) | |
if [ -z "$GITHUB_USERNAME" ] | |
then | |
read -p "Type your Github username: " GITHUB_USERNAME | |
echo "user.login: $GITHUB_USERNAME" >> ~/.githubrc | |
fi |
This file contains 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
<?php | |
namespace DoctrineNaPratica\Model; | |
use Doctrine\ORM\Mapping as ORM; | |
/** | |
* @ORM\Entity | |
* @ORM\Table(name="User") | |
*/ | |
class User |
This file contains 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
#!/bin/bash | |
command_exists () { | |
type "$1" &> /dev/null ; | |
} | |
export GITHUB_REPO="user/repo" | |
export GITHUB_USERNAME=$(cat ~/.githubrc 2> /dev/null | grep user.login | cut -d ":" -f2 | xargs) | |
export GITHUB_PASSWORD=$(cat ~/.githubrc 2> /dev/null | grep user.password | cut -d ":" -f2 | xargs) | |
if [ -z "$GITHUB_USERNAME" ] |
This file contains 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
//this way? | |
func CanSubscribe(userID int, courseID int) bool { | |
} | |
//this way? | |
func CanSubscribe(userID int, courseID int) error { | |
//if can't subscribe return an error | |
//if can return nil | |
//if there's an error, like a database connection error, return the error itself |
Dividir o texto entre página incial e o conteúdo
Criar novo conteúdo
hugo new post/2016-07-22-como-usamos-o-slack-na-coderockr.md
Testar localmente
This file contains 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
<?php | |
//AutoLoader do Composer | |
$loader = require __DIR__.'/vendor/autoload.php'; | |
//vamos adicionar nossas classes ao AutoLoader | |
$loader->add('DoctrineNaPratica', __DIR__.'/src'); | |
use Doctrine\ORM\Tools\Setup; | |
use Doctrine\ORM\EntityManager; | |
use Doctrine\ORM\Mapping\Driver\AnnotationDriver; | |
use Doctrine\Common\Annotations\AnnotationReader; |
This file contains 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
Requisitos | |
- Conhecimentos avançados em PHP e Orientação a Objetos | |
- Conhecimentos avançados em algum framework como Zend Framework 2, Silex ou Symfony | |
- Conhecimentos intermediários em Doctrine 2 (entidades, relacionamentos, dql) | |
- Conhecimentos avançados em testes unitários | |
- Interesse e facilidade em aprender novas tecnologias, linguagens de programação e ambientes de desenvolvimento | |
- Conhecimentos intermediários em banco de dados como MySQL e PostgreSQL | |
- Conhecimentos intermediários em Git | |
- Conhecimento básico de segurança e criptografia de dados: | |
- SSL; |