Skip to content

Instantly share code, notes, and snippets.

View gquemener's full-sized avatar
🏄‍♂️

Gildas Quéméner gquemener

🏄‍♂️
View GitHub Profile
@stof
stof / FeatureContext.php
Created December 29, 2014 08:44
Accessing other contexts in Behat 3
<?php
use Behat\Behat\Context\Context;
use Behat\Behat\Hook\Scope\BeforeScenarioScope;
class FeatureContext implements Context {
private $subContext;
/** @BeforeScenario */
public function gatherContexts(BeforeScenarioScope $scope)
@mathiasverraes
mathiasverraes / TestFrameworkInATweet.php
Last active May 23, 2022 12:28
A unit testing framework in a tweet.
<?php
function it($m,$p){echo ($p?'✔︎':'✘')." It $m\n"; if(!$p){$GLOBALS['f']=1;}}function done(){if(@$GLOBALS['f'])die(1);}
@docteurklein
docteurklein / issue-to-pr.sh
Last active December 21, 2015 07:48
change a github issue to a pr
curl --user "docteurklein" -X POST \
"https://api.github.com/repos/KnpLabs/KnpRadBundle/pulls" \
-d'{"issue": 83, "head": "KnpLabs:bugfix/83-csrf-check-option", "base":"develop"}'
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 3, 2024 19:09
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@epegzz
epegzz / Monaco_Linux-Powerline.ttf
Created January 18, 2012 17:19
Monaco for vim-powerline