Skip to content

Instantly share code, notes, and snippets.

View patie's full-sized avatar
🦉

Patrik Patie Gmitter patie

🦉
View GitHub Profile
@CodingNinja
CodingNinja / Manager.php
Created December 30, 2011 13:09
Grant / Revoke ACL Permissions
<?php
/*
* Copyright (C) 2011 David Mann
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
* of the Software, and to permit persons to whom the Software is furnished to do
@tuongaz
tuongaz / BaseModelManager.php
Created April 1, 2012 03:51
Symfony2 Model Manager
<?php
abstract class BaseModelManager {
protected $em;
protected $class;
protected $repository;
protected $container;
/**
* Constructor.
<?php
namespace Acme\YourBundle\Serializer;
use JMS\Serializer\Context;
use JMS\Serializer\JsonSerializationVisitor;
use JMS\Serializer\Metadata\ClassMetadata;
/*
* Copyright 2014 Paul Ferrett <[email protected]>
@hirokiky
hirokiky / autoBottom.js
Created June 17, 2016 05:46
Vue.js directive to scroll bottom when the applied value updated.
module.exports = function(Vue) {
Vue.directive('auto-bottom', {
update: function() {
this.el.scrollTop = this.el.scrollHeight;
}
})
};