Skip to content

Instantly share code, notes, and snippets.

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

Gildas Quéméner gquemener

🏄‍♂️
  • Palo-IT
  • Saint-Gilles-Croix-de-Vie, France
  • 06:28 (UTC +01:00)
  • X @GildasQ
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 September 24, 2024 14:47
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 November 18, 2024 18:38
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