- Como ser um bom profissional de TI: http://eltonminetto.net/blog/2010/10/14/como-ser-um-bom-profissional-de-ti/
- Slides: "PHP Like a Super Hero": https://speakerdeck.com/eminetto/php-like-a-super-hero
- Como fazer perguntas na internet: http://www.istf.com.br/perguntas/
- Como identificar um bom programador: http://inter-sections.net/2007/11/13/how-to-recognise-a-good-programmer/
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 BigInt | |
{ | |
protected: | |
int length; // tamanho do vetor alocado | |
public: | |
int* digitos; | |
int ultimoDigito; // tamanho do número definido | |
BigInt() |
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
[Unit] | |
Description=Gearman Job Server | |
Wants=network.target | |
[Service] | |
ExecStart=/usr/local/sbin/gearmand \ | |
--daemon \ | |
--listen=127.0.0.1 \ | |
--pid-file=/var/run/gearman/gearmand.pid \ | |
--log-file=/var/log/gearman/gearmand.log |
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
<?php | |
class MyStat { | |
protected static $_data = ['initial' => 'default']; | |
public static function set($key, $value) { | |
self::$_data[$key] = $value; | |
} | |
public static function get($key) { | |
if (isset(self::$_data[$key])) { |
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
<?php | |
require('Vendor/autoload.php'); | |
$phpWord = new \PhpOffice\PhpWord\PhpWord(); | |
$phpWord->setDefaultFontName('Calibri'); | |
$phpWord->setDefaultFontSize(14); | |
$phpWord->addFontStyle('normal', array( | |
'color' => '000000', | |
'bold' => false, |
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
#!/bin/bash | |
# Run this script as root | |
# ADD REPOSITORY | |
zypper ar -f http://download.opensuse.org/repositories/server:/monitoring/openSUSE_13.1/ Monitoring | |
zypper refresh | |
# INSTALL ALL RELATED PACKAGES | |
zypper in gearmand-server gearmand-server-mysql gearmand-server-postgresql gearmand-server-sqlite3 gearmand-tools gearmand-devel |
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
object(App\Model\Entity\Article) { | |
'new' => true, | |
'accessible' => [ | |
[maximum depth reached] | |
], | |
'properties' => [ | |
[maximum depth reached] | |
], | |
'dirty' => [ |
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
<?php | |
namespace App\Database\Type; | |
use Cake\Database\Driver; | |
use Cake\Database\Type; | |
use PDO; | |
class TsvectorType extends Type | |
{ |
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
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
*.class | |
*.pyo |
OlderNewer