Skip to content

Instantly share code, notes, and snippets.

View rogatec's full-sized avatar
🔋

TeaMohn rogatec

🔋
  • Germany
  • 06:09 (UTC +02:00)
  • X @t_ec
View GitHub Profile
(function() {
var jQuery = document.querySelector('iframe').contentWindow.jQuery;
jQuery('.activityName').each(function(){
var $this = jQuery(this);
$this.css({
overflow:'auto',
width:'200px'
});
@rogatec
rogatec / post-receive
Created October 7, 2016 10:09
git post-merge hook : update / install composer packages & composer itself
#!/bin/bash
# thanks http://www.jenssegers.be/blog/46/deploying-websites-with-git-and-composer-
# replace folder
cd "`dirname $0`/../../application/config"
# Check if a composer.json file is present
if [ -f composer.json ]; then
@rogatec
rogatec / Bank.php
Last active September 1, 2016 13:34
Zend Framework 3 get model db result with foreign keys to another/itself model with custom hydrator and form fieldsets (in progress)
<?php
namespace Employee\Model;
class Bank
{
public $id;
public $name;
public $bic;
@rogatec
rogatec / AuthController.php
Created August 25, 2016 07:30
Zend Framework 3 Authentication with Session setup
<?php
namespace Authentication\Controller;
use Employee\Model\EmployeeTable;
use Main\Form\LoginForm;
use Zend\Authentication\Adapter\DbTable\CredentialTreatmentAdapter;
use Zend\Authentication\AuthenticationService;
use Zend\Db\Sql\Select;
use Zend\Mvc\Controller\AbstractActionController;