Skip to content

Instantly share code, notes, and snippets.

@akatrevorjay
akatrevorjay / git-fshow
Last active March 30, 2024 23:41 — forked from junegunn/gist:f4fca918e937e6bf5bad
Browsing git commit history with fzf
#!/bin/zsh
# git-fshow - git commit browser
#
# https://gist.github.com/akatrevorjay/9fc061e8371529c4007689a696d33c62
# https://asciinema.org/a/101366
#
git-fshow() {
local g=(
git log
@Dattaya
Dattaya / 1. README.md
Created February 16, 2012 12:15
Symfony2.0.10. How to integrate assetic lessphp filter.

Symfony2.0.10. How to integrate assetic lessphp filter.

  • Add the following lines of code to the end of the deps file:
[lessphp]
    git=https://github.com/leafo/lessphp.git
    target=/lessphp
 version=v0.3.2
@wowo
wowo / PHPUnit way to mock Doctrine2 Entity Manager.php
Created November 1, 2011 20:22
PHPUnit's way to mock Doctrine2 Entity Manager
<?php
class AbstractManagerBase extends \PHPUnit_Framework_TestCase
{
protected function getEmMock()
{
$emMock = $this->getMock('\Doctrine\ORM\EntityManager',
array('getRepository', 'getClassMetadata', 'persist', 'flush'), array(), '', false);
$emMock->expects($this->any())
->method('getRepository')