Skip to content

Instantly share code, notes, and snippets.

View thexpand's full-sized avatar

Tsvetomir Lazarov thexpand

View GitHub Profile
@Ocramius
Ocramius / nested-transactions.php
Created January 20, 2015 12:59
Multiple nested Doctrine2 EntityManager transactions pseudo-code
<?php
use doctrine\ORM\EntityManagerInterface;
$entityManager->transactional(function (EntityManagerInterface $entityManager) {
// first transaction
$entityManager->transactional(function () {
// nested transaction #1
});
@wookiehangover
wookiehangover / webkit-custom-scrollbar.css
Created February 4, 2011 21:02
Super-dooper hot webkit only scroll bar. This will fallback to use the default styles in FF & IE
@media screen and (-webkit-min-device-pixel-ratio:0) {
/* Custom Webkit scroll bar, super fucking dope
http://beautifulpixels.com/goodies/create-custom-webkit-scrollbar/ */
body { position:absolute; top:0px; left:0; bottom:0; right:10px; overflow-y:scroll; overflow-x:hidden;}
html {
overflow-y: auto;
background-color: transparent;
}
::-webkit-scrollbar {