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\mymodule\Plugin\Block; | |
| use Drupal\Core\Block\BlockBase; | |
| use Drupal\Core\Form\FormStateInterface; | |
| use Drupal\Core\Plugin\ContainerFactoryPluginInterface; | |
| use Drupal\file\Entity\File; | |
| use Drupal\file\FileUsage\FileUsageInterface; | |
| use Symfony\Component\DependencyInjection\ContainerInterface; |
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
| -- Set up variable to delete ALL tables starting with 'allane_, default_, dp_, neuwagenabo_' | |
| -- $(drush sql:connect) < drop-tables.sql | |
| -- mysql -u drupal -pdrupal drupal < drop-tables.sql | |
| SET GROUP_CONCAT_MAX_LEN=999999999; | |
| SET @tbls = (SELECT GROUP_CONCAT(TABLE_NAME) | |
| FROM information_schema.TABLES | |
| WHERE TABLE_SCHEMA = 'drupal' | |
| AND ( | |
| TABLE_NAME LIKE 'allane_%' |
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 | |
| // How to create horizontal tabs programmatically in Drupal 8, requires Field Group module | |
| $form = array(); | |
| $form['my_field'] = array( | |
| '#type' => 'horizontal_tabs', | |
| '#tree' => TRUE, | |
| '#prefix' => '<div id="unique-wrapper">', | |
| '#suffix' => '</div>', | |
| ); | |
| $items = array( |
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 | |
| // JSONPath converts JSON objects to PHP objects which cause Migrate to | |
| // fail when using the SubProcess process plugin. This function | |
| // recursively converts those objects to arrays to prevent this issue. | |
| $toArray = function ($x) use (&$toArray) { | |
| return (is_scalar($x) || is_null($x)) ? $x : array_map($toArray, (array) $x); | |
| }; | |
| $field_data = $toArray($field_data); | |
| $this->currentItem[$field_name] = $field_data; |
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
| // SPDX-License-Identifier: GPL-3.0 | |
| pragma solidity >0.8.2; | |
| // unsigned integer | |
| contract ContactBook { | |
| // dynamic data types | |
| string public myName; | |
| string[] names; |
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
| β DrupalCoreStackdrupal-9-localgov failed: Error: The stack named DrupalCoreStackdrupal-9-localgov failed creation, it may need to be manually deleted from the AWS console: ROLLBACK_COMPLETE: Resource handler returned message: "Cannot find version 8.0.mysql_aurora.3.02.2 for aurora-mysql (Service: Rds, Status Code: 400, Request ID: cfed87d9-244a-44ee-a7ef-1a1ee9d3c338)" (RequestToken: da3d5693-9a5b-6bbb-da26-82b1eae584b9, HandlerErrorCode: InvalidRequest), Cannot set status to FAILED from status SUCCESS | |
| at FullCloudFormationDeployment.monitorDeployment (/Users/oleksiibondarenko/.npm/_npx/fa14b75510cd2922/node_modules/aws-cdk/lib/index.js:433:10615) | |
| at process.processTicksAndRejections (node:internal/process/task_queues:95:5) | |
| at async Object.deployStack2 [as deployStack] (/Users/oleksiibondarenko/.npm/_npx/fa14b75510cd2922/node_modules/aws-cdk/lib/index.js:436:200503) | |
| at async /Users/oleksiibondarenko/.npm/_npx/fa14b75510cd2922/node_modules/aws-cdk/lib/index.js:436:181341 | |
| (Reading database ... |
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
| π Morning 74 commits βββββββββββββββββββββ 38.7% | |
| π Daytime 42 commits βββββββββββββββββββββ 22.0% | |
| π Evening 11 commits βββββββββββββββββββββ 5.8% | |
| π Night 64 commits βββββββββββββββββββββ 33.5% |
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
| package mac | |
| import ( | |
| "context" | |
| "fmt" | |
| "log" | |
| "network-chesswork/utilities" | |
| "os" | |
| "os/signal" | |
| "sync" |
OlderNewer