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 | |
| function oauth_menu() { | |
| //... | |
| $menu['admin/config/services/oauth'] = array( | |
| 'title' => 'OAuth', | |
| 'description' => 'Settings for OAuth', | |
| 'route_name' => 'oauth_admin_form', |
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
| { | |
| "name": "hechoendrupal/composer-ui", | |
| "description": "Composer UI", | |
| "minimum-stability": "dev", | |
| "authors": [ | |
| { | |
| "name": "David Flore", | |
| "email": "[email protected]" | |
| } | |
| ], |
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 | |
| $finder = new Finder(); | |
| $dot_dot = ''; | |
| while (true){ | |
| try { | |
| $iterator = $finder | |
| ->files() | |
| ->name('bootstrap.inc') | |
| ->in(getcwd() . '/'. $dot_dot . 'core/includes/'); |
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 Drupal\badcamp\Controller; | |
| use Drupal\Core\Controller\ControllerBase; | |
| use Symfony\Component\DependencyInjection\ContainerInterface; | |
| use Drupal\Core\DependencyInjection\ContainerInjectionInterface; | |
| use Drupal\ExtraModule\Annotation\Permission; | |
| use Drupal\Core\Template\TwigEnvironment; |
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
| { | |
| "repositories": [ | |
| { | |
| "type": "composer", | |
| "url": "http://drugist.org" | |
| } | |
| ] | |
| } |
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
| # Docker image with scala and play framework | |
| FROM centos | |
| MAINTAINER David Flores "[email protected]" | |
| RUN yum update -y | |
| RUN yum install java-1.7.0-openjdk.x86_64 -y | |
| RUN /bin/rpm -ivh http://downloads.typesafe.com/scala/2.11.0/scala-2.11.0.rpm | |
| RUN yum install wget unzip -y >/dev/null | |
| RUN cd /opt && wget http://downloads.typesafe.com/play/2.2.3/play-2.2.3.zip && unzip play-2.2.3.zip |
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
| { | |
| "name": "dmouse/response", | |
| "description": "Response sample", | |
| "require": { | |
| "symfony/http-foundation": "2.4.*" | |
| }, | |
| "license": "MIT", | |
| "authors": [ | |
| { | |
| "name": "David Flores", |
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 Drupal\response\Controller; | |
| use Drupal\Core\Controller\ControllerBase; | |
| use Symfony\Component\HttpFoundation\Response; | |
| class DefaultController extends ControllerBase | |
| { | |
| /** |
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
| FROM centos | |
| MAINTAINER David Flores "[email protected]" | |
| RUN yum update -y | |
| RUN yum install java-1.7.0-openjdk.x86_64 -y | |
| RUN yum install wget unzip which -y >/dev/null | |
| ENV HOME /root | |
| RUN cd /tmp && wget https://raw.githubusercontent.com/n8han/conscript/master/setup.sh | |
| RUN sh /tmp/setup.sh |
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 | |
| /** | |
| * @file | |
| * Contains \Drupal\Acme\Command\AcmeCommand. | |
| */ | |
| namespace Drupal\Acme\Command; | |
| use Symfony\Component\Console\Command\Command; | |
| use Symfony\Component\Console\Input\InputArgument; | |
| use Symfony\Component\Console\Input\InputInterface; |