This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| protected function execute(InputInterface $input, OutputInterface $output) | |
| { | |
| $progress = $this->getHelperSet()->get('progress'); | |
| $ctx = stream_context_create(array(), array('notification' => function ($notification_code, $severity, $message, $message_code, $bytes_transferred, $bytes_max) use ($output, $progress) { | |
| switch ($notification_code) { | |
| case STREAM_NOTIFY_FILE_SIZE_IS: | |
| $progress->start($output, $bytes_max); | |
| break; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| use | |
| mageekguy\atoum\scripts\treemap, | |
| mageekguy\atoum\scripts\treemap\analyzers, | |
| mageekguy\atoum\scripts\treemap\categorizer | |
| ; | |
| class commit implements treemap\analyzer | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| To known how to use it, just do `php scripts/treemap.php --help`. | |
| By default, there is no analyzer defined, so to add them, create a configuration file and add in it:` | |
| ``` | |
| <?php | |
| use mageekguy\atoum\scripts\treemap\analyzers; | |
| $script | |
| ->addAnalyzer(new analyzers\token()) | |
| ->addAnalyzer(new analyzers\size()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
| { | |
| // 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", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- | |
| 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 file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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) \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * @author Benjamin Lazarecki <[email protected]> | |
| * Date: 07/06/12 | |
| */ | |
| namespace Widop\Mink\Extension; | |
| trait PopupDictionary |