I hereby claim:
- I am tentacode on github.
- I am tentacode (https://keybase.io/tentacode) on keybase.
- I have a public key ASDPX7JdgYCMNSKpFne_vztynCaXnzSvexju_8S18R-tYwo
To claim this, I am signing this object:
<?php | |
function usage_error(): void | |
{ | |
echo 'Usage: php namespace-fixer.php <path> <prefix>' . PHP_EOL; | |
echo 'Example: php namespace-fixer.php src App' . PHP_EOL; | |
exit(1); | |
} | |
$globalPath = $argv[1] ?? usage_error(); |
I hereby claim:
To claim this, I am signing this object:
<?php | |
class Something | |
{ | |
public function __construct() | |
{ | |
print "J'ai été instanciée.".PHP_EOL; | |
} | |
public function __destruct() |
tell application "System Events" | |
repeat with p in (processes where background only is false) | |
tell p | |
if name is not in {"Finder", "iTerm2"} then | |
repeat with x from 1 to (count windows) | |
set winPos to position of window x | |
set xPos to item 1 of winPos | |
if xPos > 0 then | |
set position of windows to {100, 100} | |
set size of windows to {2340, 1240} |
cd /opt | |
# Java | |
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main" | tee /etc/apt/sources.list.d/webupd8team-java.list | |
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list | |
echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections | |
echo debconf shared/accepted-oracle-license-v1-1 seen true | debconf-set-selections | |
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886 | |
apt-get -y -q update | |
DEBIAN_FRONTEND=noninteractive apt-get install -y -q oracle-java8-installer |
<?php | |
namespace Context; | |
use Behat\Behat\Hook\Scope\AfterStepScope; | |
use Behat\Testwork\Tester\Result\ExceptionResult; | |
class DebugContext extends BaseContext | |
{ | |
/** |
#!/usr/bin/env php | |
<?php | |
$cmd = ''; | |
for ($i = 1; $i < sizeof($argv); $i++) { | |
$arg = $argv[$i]; | |
if (preg_match('/^(--[^\- =]+=)(.+)$/', $arg, $matches)) { | |
$arg = sprintf('%s\"%s\"', $matches[1], $matches[2]); | |
} |
<?php | |
// every thing before will be used in every child process | |
while(true) { | |
$pid = pcntl_fork(); | |
if ($pid === -1) { | |
die('Could not fork process'); | |
} elseif ($pid) { |
<?php | |
namespace Context; | |
use Behat\MinkExtension\Context\RawMinkContext; | |
use Behat\Testwork\Tester\Result\TestResult; | |
use Behat\Mink\Driver\Selenium2Driver; | |
class ScreenshotContext extends RawMinkContext | |
{ |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |