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
function template(name: string) { | |
const decoder = new TextDecoder('utf-8'); | |
const text = Deno.readFileSync( | |
`${Deno.cwd()}/templates/${name}.html` | |
); | |
return decoder.decode(text); | |
} |
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
$config['language.types']['negotiation'] = [ | |
'language_interface' => [ | |
'method_weights' => [ | |
'language-user-admin' => -19, | |
'language-url' => -18, | |
'language-session' => -17, | |
'language-user' => -16, | |
'language-browser' => -15, | |
'language-selected' => -14, | |
'language-astra-site' => -20 |
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 oa_core_visibility_data($node) { | |
$static = &drupal_static(__FUNCTION__, array()); | |
if (!empty($static[$node->nid])) { | |
return $static[$node->nid]; | |
} | |
$data = array(); | |
$data['published'] = !empty($node->status); | |
$data['archived'] = FALSE; |
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
/** | |
* {@inheritdoc} | |
*/ | |
public static function baseFieldDefinitions(EntityTypeInterface $entity_type) { | |
/** @var \Drupal\Core\Field\BaseFieldDefinition[] $fields */ | |
$fields = parent::baseFieldDefinitions($entity_type); | |
$fields['tid']->setLabel(t('Term ID')) | |
->setDescription(t('The term ID.')); |
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 of ADRs to track Architectural Decisions | |
============================================ | |
Context | |
------- | |
At the moment architectural decisions are being made when required and they | |
are not recorded. | |
Decision |
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 quay.io/continuouspipe/php5.6-apache:latest | |
MAINTAINER Brian Ward <[email protected]> | |
# Install base packages \ | |
RUN apt-get update && \ | |
DEBIAN_FRONTEND=noninteractive apt-get -yq install \ | |
php-gd \ | |
php-xml \ | |
php-json \ |
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 | |
require __DIR__ . '/vendor/autoload.php'; | |
use League\Flysystem\Filesystem; | |
use League\Flysystem\Adapter\Local; | |
$container = new \Slim\Container; | |
// Register the Flysystem service. |
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 | |
require __DIR__ . '/vendor/autoload.php'; | |
use League\Flysystem\Filesystem; | |
use League\Flysystem\Adapter\Local; | |
$app = new Slim\App(); | |
// Routes |
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
composer require league/flysystem |
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 | |
require __DIR__ . '/vendor/autoload.php'; | |
$app = new Slim\App(); | |
// Routes | |
$app->get('/', function($request, $response, $args) { | |
return $response->getBody()->write('Welcome to the application.'); | |
}); |
NewerOlder