View bcrypt.php
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 | |
include 'vendor/autoload.php'; | |
use Zend\Crypt\Password\Bcrypt; | |
$password = 'MyDarkSecret'; | |
$hashFromGo = '$2a$10$XCE/s3FRwi.Zg9uswHZdueNmRtYKg8iFOTfWbnhWC71Bm5ur2ce0q'; | |
$bcrypt = new Bcrypt(); |
View gist:487a91d2620911534c4a
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
eminetto@Eltons-MacBook-Air ~/Documents/Projects/go/authenticate: time ./authenticate ; time php ../../mcrypt/index.php | |
$2a$10$sN5IsJjlXQXxMQSxvJMy2OlREcaxddMmJwASH3Zl1Y64I3JGmUUvC | |
<nil> | |
<nil> | |
real 0m0.305s | |
user 0m0.300s | |
sys 0m0.005s | |
$2y$10$XTUzbjZhF9vKCypOcvQ6tek7Uqp9p4RRHIoAyRNVEsM5v0xLCt/au | |
1 |
View Vaga Android
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
A Coderockr está procurando um novo membro para sua equipe | |
Se você é programador Android com experiência mande um e-mail com seu currículo para jobs@coderockr.com | |
Além da experiência em desenvolvimento Android os seguintes requisitos também são importantes: | |
- Conhecimento em ferramentas de controle de versão como SVN e Git | |
- Inglês técnico, para leitura | |
- Conhecimento em desenvolvimento de interfaces voltadas a Android | |
- Conhecimento em ferramentas gráficas como Fireworks e Photoshop | |
- Gostar de rock n’ roll! |
View gist:baaa1e671f276e4c875d
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
$date_start = \DateTime::createFromFormat('d/m/Y', $data['date_start']); | |
$date_end = \DateTime::createFromFormat('d/m/Y', $data['date_end']); | |
$qb = $em->createQueryBuilder(); | |
$params = $paramsProfiles = array('date_start' => $date_start, 'date_end' => $date_end); | |
$qb->select('count(p.id) as v, c.name, p.percent') | |
->from('CodeSquad\Model\Progress', 'p') | |
->innerJoin('p.course', 'c') | |
->where('p.created > :date_start and p.created < :date_end') |
View gist:bf8732061ce24fb2335f
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
<VirtualHost *:80> | |
DocumentRoot "/var/www/html/ufun" | |
ServerName ufun.coderockr.com | |
SetEnv APPLICATION_ENV "development" | |
<Directory "/var/www/html/ufun"> | |
Options Indexes Multiviews FollowSymLinks | |
AllowOverride All | |
Order allow,deny | |
Allow from all |
View Post.php
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 Application\Form; | |
use Zend\Form\Form; | |
class Post extends Form | |
{ | |
public function __construct() | |
{ | |
parent::__construct('post'); |
View layout.phtml
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 echo $this->doctype(); ?> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<?php echo $this->headTitle('ZF2 '. $this->translate('Skeleton Application'))->setSeparator(' - ')->setAutoEscape(false) ?> | |
<?php echo $this->headMeta() | |
->appendName('viewport', 'width=device-width, initial-scale=1.0') | |
->appendHttpEquiv('X-UA-Compatible', 'IE=edge') |
View PostTableGateway.php
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 Application\Model; | |
use Zend\Db\TableGateway\TableGateway; | |
class PostTableGateway | |
{ | |
protected $tableGateway; | |
public function __construct(TableGateway $tableGateway) |
View Post.php
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 Application\Model; | |
class Post | |
{ | |
public $id; | |
public $title; | |
public $description; | |
public $post_date; |
View PostController.php
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 Application\Controller; | |
use Zend\View\Model\ViewModel; | |
use Zend\Mvc\Controller\AbstractActionController; | |
use Application\Form\Post as PostForm; | |
use Application\Model\Post as PostModel; | |
/** | |
* Controlador que gerencia os posts |
OlderNewer