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 | |
function in_multiarray($elem, $array) { | |
$top = sizeof($array) - 1; | |
$bottom = 0; | |
while($bottom <= $top) { | |
if($array[$bottom] == $elem) | |
return true; | |
else | |
if(is_array($array[$bottom])) | |
if(in_multiarray($elem, ($array[$bottom]))) |
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
# Ignore configuration files that may contain sensitive information. | |
sites/*/settings*.php | |
# Ignore paths that contain user-generated content. | |
/sites/*/files | |
/sites/*/private | |
/files/* | |
/cache | |
# Packages # |
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 | |
preg_replace('/\p{C}+/u', '', $topic_obj->description) |
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
# built application files | |
*.apk | |
*.ap_ | |
# files for the dex VM | |
*.dex | |
# Java class files | |
*.class |
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
name: El nombre que nuestro modulo va a tener | |
description: 'la descripción de nuestro modulo' | |
type: module | |
core: 8.x |
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
cd /usr/share | |
sudo git clone --branch master https://github.com/drush-ops/drush.git |
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 | |
/** | |
* @file | |
* Contains Drupal\demo\Plugin\Block\DemoBlock. | |
*/ | |
namespace Drupal\demo\Plugin\Block; | |
use Drupal\Core\Block\BlockBase; |
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 | |
/** | |
* @file | |
* Contains Drupal\demo\Form\AdminForm. | |
*/ | |
namespace Drupal\demo\Form; | |
use Drupal\Core\Form\ConfigFormBase; |
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 php:7.0.10-fpm | |
MAINTAINER Daniel Noyola <[email protected]> | |
# install the PHP extensions we need | |
RUN apt-get update && apt-get install -y locales unixodbc libgss3 odbcinst devscripts debhelper dh-exec dh-autoreconf libreadline-dev libltdl-dev unixodbc-dev wget unzip \ | |
&& rm -rf /var/lib/apt/lists/* \ | |
&& docker-php-ext-install pdo \ | |
&& echo "en_US.UTF-8 UTF-8" > /etc/locale.gen |
OlderNewer