Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
The next step…

Michelangelo van Dam DragonBe

:octocat:
The next step…
View GitHub Profile
@DragonBe
DragonBe / GoogleTracker.php
Created Mar 28, 2013
Example view helper for rendering the google analytics script
View GoogleTracker.php
<?php
class In2it_View_Helper_GoogleTracker extends Zend_View_Helper_Abstract
{
public $view;
public function setView(Zend_View_Interface $view)
{
return parent::setView($view);
}
@DragonBe
DragonBe / NikTest.php
Created Nov 22, 2013
Accessing protected and private properties
View NikTest.php
<?php
class Nik
{
public $name;
protected $_function;
private $_age;
private function _getProperties()
@DragonBe
DragonBe / get_object_vars.php
Last active Dec 29, 2015
Change in the way get_object_vars behaves in PHP 5.4 and PHP 5.5
View get_object_vars.php
<?php
abstract class AbstractModel {
public function toArray($includeProtected = false)
{
if ($includeProtected == true) {
return get_object_vars($this);
}
// Wrapping this object in a closure changes the lexical scope, which
// allows us to easily return only public properties.
View gist:3aedb6deff70be4a480b
Verifying that +dragonbe is my blockchain ID. https://onename.com/dragonbe
@DragonBe
DragonBe / The Continuous PHP Pipeline - Appendix.md
Created Dec 4, 2015
An overview of links to all services mentioned in my presentation "The Continuous PHP Pipeline"
View The Continuous PHP Pipeline - Appendix.md
@DragonBe
DragonBe / microblog.md
Created Apr 22, 2015
Assignment: Microblog
View microblog.md

Microblog

The first assignment is to create a microblog application.

You can use Silex if you want, but it's not a requirement.

Objectives

  • Display the latest 5 articles on the homepage
  • Create an authentication section where someone can
@DragonBe
DragonBe / elephpone.php
Last active Mar 21, 2016
Little project for calling the PHP community and hear a nice quote from a respected community member
View elephpone.php
<?php
$community = array (
'http://blob.phpdev.nu/elephpone/michelangelo_vandam.mp3',
'http://blob.phpdev.nu/elephpone/tessa_mero.mp3',
'http://blob.phpdev.nu/elephpone/khayrattee_wasseem.mp3',
'http://blob.phpdev.nu/elephpone/cal_evans.mp3',
'http://blob.phpdev.nu/elephpone/thijs_feryn.mp3',
'http://blob.phpdev.nu/elephpone/gabriel_somoza.mp3',
'http://blob.phpdev.nu/elephpone/beth_tucker_long.mp3',
);
@DragonBe
DragonBe / Lowlands PHP Groups.md
Last active Jul 26, 2016
Not complete list of all PHP user groups and meetups in Belgium, the Netherlands and Luxembourg
View Lowlands PHP Groups.md

#Lowlands PHP community

This is a list of all PHP communities in Belgium, the Netherlands and Luxembourg

Netherlands (14)

View Faker phpunit result
./vendor/bin/phpunit
PHPUnit 4.8.27 by Sebastian Bergmann and contributors.
............................................................. 61 / 1623 ( 3%)
............................................................. 122 / 1623 ( 7%)
............................................................. 183 / 1623 ( 11%)
............................................................. 244 / 1623 ( 15%)
............................................................. 305 / 1623 ( 18%)
............................................................. 366 / 1623 ( 22%)
............................................................. 427 / 1623 ( 26%)
@DragonBe
DragonBe / automate_cloud_deployments_with_azure_cli.md
Last active Nov 8, 2016
A step-by-step instruction how to deploy an application onto Microsoft Azure using the CLI SDK.
View automate_cloud_deployments_with_azure_cli.md
You can’t perform that action at this time.