A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
For Mac users, I highly recommend iTerm 2 + Solarized Dark
| <?php | |
| use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
| use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | |
| use Symfony\Bundle\FrameworkBundle\Console\Application; | |
| use Symfony\Component\Console\Input\ArrayInput; | |
| /** | |
| * @Route("/test") | |
| */ |
| {% macro recursiveCategory(category) %} | |
| <li> | |
| <h4><a href="{{ path(category.route, category.routeParams) }}">{{ category }}</a></h4> | |
| {% if category.children|length %} | |
| <ul> | |
| {% for child in category.children %} | |
| {{ _self.recursiveCategory(child) }} | |
| {% endfor %} | |
| </ul> |
| <?php | |
| /** | |
| * @author Benjamin Lazarecki <[email protected]> | |
| * Date: 07/06/12 | |
| */ | |
| namespace Widop\Mink\Extension; | |
| trait PopupDictionary |
| #!/bin/bash | |
| COMMIT=$1 | |
| BRANCH=$2 | |
| if [ -z $BRANCH ]; then | |
| BRANCH="master" | |
| fi | |
| perl -ne 'print if ($seen{$_} .= @ARGV) =~ /10$/' \ | |
| <(git rev-list --ancestry-path --oneline $COMMIT..$BRANCH) \ |
| <?php | |
| namespace Ormigo\Bundle\OrmigoBundle\Form\Type; | |
| use Symfony\Component\Form\AbstractType; | |
| use Symfony\Component\Form\FormBuilderInterface; | |
| use Symfony\Component\OptionsResolver\Options; | |
| use Symfony\Component\OptionsResolver\OptionsResolver; | |
| use Symfony\Component\OptionsResolver\OptionsResolverInterface; |
| <!-- | |
| 1. Download the Android Jelly Bean fonts and the Symbola font: | |
| https://www.dropbox.com/s/tvtzcnzkvbe0nrt/jelly-bean-fonts.zip | |
| http://users.teilar.gr/~g1951d/Symbola707.zip | |
| 2. unzip the files and put AndroidEmoji.ttf and Symbola.ttf (and any of the other fonts that strike your fancy) | |
| in your ~/.fonts/ directory | |
| 3. run `fc-cache -f`. You can check to make sure the new fonts | |
| were installed with `fc-list`. You'll probably want to grep the copious output for Symbola or Emoji |
| { | |
| // This means every time you move away from your current tab it saves, no more cmd + s! | |
| "save_on_focus_lost": true, | |
| // Let's get rid of all those trailing white spaces! | |
| "trim_trailing_white_space_on_save": true, | |
| // A good idea to view all white space to make sure you're not using tabs | |
| "draw_white_space": "all", |
| <?php | |
| namespace vendor\project\tests\units; | |
| require_once 'path/to/mageekguy.atoum.phar'; | |
| include 'path/to/project/classes/helloWorld.php'; | |
| use \mageekguy\atoum; | |
| use \vendor\project; |
| [alias] | |
| stashstash = "!f() { STASH=$(git stash); echo \"\\033[0;31mKouroukoukou roukoukou stash stash\\033[0m\"; echo \"$STASH\"; xdg-open \"http://www.youtube.com/watch?v=LpE1bJp8-4w&feature=youtu.be&t=47s\" > /dev/null 2>&1 & }; f" | |
| satsh = !git stashstash |