This file contains 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
From d5951cd822ae615c8ae56e1c92aae0a921ad611c Mon Sep 17 00:00:00 2001 | |
From: Aydin Hassan <[email protected]> | |
Date: Thu, 11 Aug 2016 13:00:42 +0200 | |
Subject: [PATCH] Patch interceptor generator to add return types, bring in | |
some zend-code 3 features | |
--- | |
Generation/ClassGenerator.php | 37 +++++++++++++ | |
Generation/Interceptor.php | 42 +++++++++++++++ | |
Generation/MethodGenerator.php | 112 ++++++++++++++++++++++++++++++++++++++ |
This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains 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 Hft\Font; | |
/** | |
* Class ImageTtfBbox | |
* @package Hft\Font | |
* @author Aydin Hassan <[email protected]> | |
*/ | |
class Image |
This file contains 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 | |
/** | |
* Script to manage to version of Magento in a git mirror | |
* php $argv[0] core-repository new-version-of-magento | |
* | |
* It will look for Mage.php in new-version-of-magento and parse the version | |
* and edition from it. | |
* | |
* It will copy the code, remove the old files, create new branches if necessary |
This file contains 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 | |
if (file_exists('composer')) { | |
unlink('composer'); | |
} | |
file_put_contents('composer', file_get_contents('https://getcomposer.org/download/1.0.0-alpha10/composer.phar')); | |
chmod('composer', 0777); | |
file_put_contents('composer.json', <<<EOF |
This file contains 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 | |
/** | |
* Script to manage to version of Magento in a git mirror | |
* php $argv[0] core-repository new-version-of-magento | |
* | |
* It will look for Mage.php in new-version-of-magento and parse the version | |
* and edition from it. | |
* | |
* It will copy the code, remove the old files, create new branches if necessary |
This file contains 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 Jh\DevSiteTool\Entity\HtPasswdUser; | |
require __DIR__ . "/vendor/autoload.php"; | |
$sites = [ | |
'site-name' => [ | |
'name' => 'site-name', | |
'systemUser' => 'site-name', |
This file contains 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 | |
if [ -z "$1" ]; then | |
echo "Please enter SSH host as first parameter. Eg [email protected]" | |
exit 1 | |
fi | |
sshHost=$1 | |
if [ -z "$2" ]; then |
This file contains 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
//yours | |
function isNested(content, regex) { | |
var match = regex.exec(content); | |
if (match) { | |
return /%C(.+?):(.+?)%CR/g.exec(match[2]) ? true : false; | |
} | |
} |
This file contains 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
Not sure if this is an issue or expected: | |
I have the following console route: | |
return [ | |
'console' => [ | |
'router' => [ | |
'routes' => [ | |
'set-user-starting-balance' => [ | |
'options' => [ |
NewerOlder