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 | |
$lockFile = $argv[1]; | |
$packageName = $argv[2]; | |
$ref = $argv[3]; | |
if ($argc !== 4) { | |
echo "Usage update_lock.php composer.lock mypackage 123abc\n"; | |
exit; | |
} |
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 AppBundle\Command; | |
use JMS\Serializer\Metadata\PropertyMetadata; | |
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; | |
use Symfony\Component\Console\Input\InputArgument; | |
use Symfony\Component\Console\Input\InputInterface; | |
use Symfony\Component\Console\Input\InputOption; | |
use Symfony\Component\Console\Output\OutputInterface; |
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
use Assetic\Asset\AssetCollectionInterface; | |
use Assetic\Asset\AssetInterface; | |
use Assetic\Factory\LazyAssetManager; | |
use Assetic\Filter\CompassFilter; | |
use Assetic\Filter\CssRewriteFilter; | |
use Assetic\Filter\PhpCssEmbedFilter; | |
use Assetic\Filter\UglifyCssFilter; | |
use Assetic\Filter\UglifyJs2Filter; | |
use Assetic\Util\VarUtils; |
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 | |
class StringCaseUtils | |
{ | |
public static function toSnakeCase($camelCase) | |
{ | |
return strtolower(preg_replace('/([A-Z])/', '_$1', lcfirst($camelCase))); | |
} | |
public static function toCamelCase($snakeCase) |
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
app.directive("circleStats", function () { | |
return { | |
restriction: 'E', | |
scope: { | |
ngModel: "=" | |
}, | |
link: function (scope, element, attrs) { | |
var canvas = document.createElement("canvas"); | |
var g2d = canvas.getContext("2d"); | |
var h = g2d.canvas.height = 200; |
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 Symfony\Component\HttpFoundation\Response; | |
class MetaRedirectResponse extends Response | |
{ | |
/** | |
* Constructor. | |
* | |
* @param mixed $content The response content, see setContent() |
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: shengjie | |
* @date: 24/07/15 15:33 | |
* @file: ImplementationInjectPass.php | |
*/ | |
namespace AppBundle\DependencyInjection; |
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: shengjie | |
* @date: 16/07/15 16:10 | |
* @file: GenerateCommand.php | |
* @Licence: MIT | |
*/ | |
namespace AppBundle\Command; |