Skip to content

Instantly share code, notes, and snippets.

View eminetto's full-sized avatar
:octocat:
always learning

Elton Minetto eminetto

:octocat:
always learning
View GitHub Profile
@eminetto
eminetto / gist:596cc9fbc6593013590c
Last active October 12, 2015 21:39
Referências
http://blog.hype4.com/2012/05/21/android-screen-resolutions-compared-to-ios/
http://en.wikipedia.org/wiki/List_of_displays_by_pixel_density
http://148apps.biz/app-store-metrics/
http://mashable.com/2012/06/11/wwdc-2012-app-store-stats/
http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff402529(v=vs.105).aspx
https://dev.windowsphone.com/en-us/develop
http://channel9.msdn.com/Events/Build/2012?sort=sequential&direction=desc&term=&t=windows-phone&t=windows-phone-apps
http://www.mozilla.org/en-US/firefoxos/
https://developer.mozilla.org/pt-BR/docs/Mozilla/Firefox_OS
http://www.gizmodo.com.br/hands-on-firefox-os-na-vivo/
body {
margin: 0;
padding: 0;
background-color: #2B454D;
text-align: center;
}
public function testAuthorize()
{
$authService = $this->getService('Admin\Service\Auth');
$admin = $this->addUser();
//adiciona visitante
$visitante = new User();
$visitante->username = 'bill';
$visitante->password = md5('ms');
<?php
namespace Application\Controller;
use Zend\View\Model\ViewModel;
use Core\Controller\ActionController;
use Zend\Paginator\Paginator;
use Zend\Paginator\Adapter\DbSelect as PaginatorDbSelectAdapter;
use Symfony\Component\Serializer\Serializer;
use Symfony\Component\Serializer\Normalizer\GetSetMethodNormalizer;
@eminetto
eminetto / SublimeText2Packages
Created January 18, 2013 13:25
Os packages que tenho instalado no meu Sublime Text 2 para trabalhar com PHP
Additional PHP Snippets
DocBlockr
jQuery
Package Control
PHP Namespace Command
PHP-Twig
PhpBeutifier
Phpcs
PhpDoc
Pretty JSON
@eminetto
eminetto / gist:4598423
Created January 22, 2013 21:06
Minha configuração do Sublime Text 2
{
"bold_folder_labels": true,
"caret_style": "phase",
"color_scheme": "Packages/Color Scheme - Default/Mac Classic.tmTheme",
"font_face": "Source Code Pro",
"font_size": 14.0,
"highlight_line": true,
"theme": "Soda Light.sublime-theme",
"translate_tabs_to_spaces": true
}
@eminetto
eminetto / gist:4684756
Created January 31, 2013 17:48
Exemplo de evento do TableGateway do ZF2
public function saveAction()
{
$tableGateway = $this->getTable('Application\Model\Post');
$em = new EventManager;
$em->attach('postInsert', array($this, 'postInsert'));
$eventFeature = new EventFeature($em);
$tableGateway->getFeatureSet()->addFeature($eventFeature);
}
<?php
class Coderockr_Service extends Zend_Service_Abstract
{
private $apiKey;
private $httpClient;
public function __construct($apiKey)
{
$this->apiKey = $apiKey;
@eminetto
eminetto / gist:4977538
Created February 18, 2013 13:50
base.pp
class base {
group { "puppet":
ensure => "present",
}
exec { "apt_update":
command => "apt-get update",
path => "/usr/bin"
}
@eminetto
eminetto / Float.php
Created March 13, 2013 13:49
Filtro de Float
<?php
namespace Core\Filter;
use Zend\Filter\AbstractFilter;
/**
* Faz o filtro de valores convertendo para float
* @category Core
* @package Filter