npm list -g --depth=0
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
#!/usr/bin/env bash | |
export DEBIAN_FRONTEND=noninteractive | |
# Update Package List | |
apt-get update | |
# Update System Packages | |
apt-get upgrade -y |
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
Taken from packagist.org | |
Packages with a master branch update since June 1st 2018: 98977 | |
Of those, package having requires on PHP extensions: 11676 (11.79%) | |
As only ~12% of packages declare their extension requirements, | |
and even then it might not be a complete list, take all this with | |
a big grain of salt, it is informative but definitely not a | |
complete picture of the most used extensions. |
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 Acme\DormerCalculation\Infrastructure\Symfony\DormerCalculationBundle\Controller; | |
use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; | |
use Acme\DormerCalculation\Infrastructure\Symfony\DormerCalculationBundle\Form\DormerCalculation as CalculationForm; | |
use Acme\DormerCalculation\Domain\Model\DormerCalculation\Command\CalculateDormerCommand; | |
use Symfony\Component\Form\FormError; |
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 AppBundle\Tests; | |
use Doctrine\DBAL\Connection; | |
use Doctrine\ORM\Tools\SchemaTool; | |
use Doctrine\DBAL\Driver\PDOMysql\Driver as MySQLDriver; | |
class DoctrineMigrationTest extends WebTestCase | |
{ |
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
#!/usr/bin/env python | |
import numpy as np | |
import cv2 | |
from time import sleep | |
# create blank image - y, x | |
img = np.zeros((600, 1000, 3), np.uint8) | |
# setup text |
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 Acme\DemoBundle\EventListener; | |
use Symfony\Component\Routing\RouterInterface; | |
class ConsoleListener | |
{ | |
/** | |
* @var RouterInterface |
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
services: | |
gelf.udp.transport: | |
class: Gelf\Transport\UdpTransport | |
gelf.publisher: | |
class: Gelf\Publisher | |
arguments: [@gelf.udp.transport] | |
monolog.gelf_handler: | |
class: Monolog\Handler\GelfHandler | |
arguments: [@gelf.publisher] | |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
NewerOlder