🤷♂️
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 | |
/* | |
* Complete the 'getMinClicks' function below. | |
* | |
* The function is expected to return an INTEGER. | |
* The function accepts following parameters: | |
* 1. INTEGER lowest_channel | |
* 2. INTEGER highest_channel | |
* 3. INTEGER_ARRAY blocked_channels |
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 | |
use Drupal\Core\Entity\ContentEntityInterface; | |
use Drupal\Core\Entity\FieldableEntityInterface; | |
$entity_types = \Drupal::service('entity_type.manager')->getDefinitions(); | |
/** @var \Drupal\Core\Config\Entity\ConfigEntityInterface $entity_type */ | |
foreach ($entity_types as $entity_type) { | |
// Stop now if entity type is not fieldable. |
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 | |
/** | |
* Implements hook_entity_base_field_info(). | |
*/ | |
function mymodule_entity_base_field_info(EntityTypeInterface $entity_type) { | |
if ($entity_type->id() == 'user') { | |
$fields = []; | |
$default_field_definition = [ |
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
$args = []; | |
$form['user_in_charge'] += [ | |
'#title' => t('Entity autocomplete'), | |
'#type' => 'entity_autocomplete', | |
'#selection_handler' => 'views', | |
'#selection_settings' => [ | |
'view' => [ | |
'view_name' => 'view_machine_name', | |
'display_name' => 'entity_reference', |
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
This post links my 3Box profile to my Github account! Web3 social profiles by 3Box. | |
✅ did:3:bafyreicudk4v2rlu4lt2ip7oi4kssudctl22j2p3ojqnekz7c3xcqpwmje ✅ | |
Create your profile today to start building social connection and trust online at https://3Box.io/ |
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: wordpress | |
recipe: wordpress | |
services: | |
appserver: | |
webroot: . | |
xdebug: debug | |
config: | |
php: .vscode/php.ini | |
tooling: | |
install:wordpress: |
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 | |
// Reorder actions. | |
$order = [ | |
'previous', | |
'reset', | |
'submit', | |
'preview_next', | |
]; |
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
//Files should be `644` I think | |
find . -type f -exec chmod u=rw,g=r,o=r {} \; | |
// Folders should be `executable | |
find . -type d -exec chmod u=rwx,g=rx,o=rx {} \; |
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
UPDATE users SET pass ='$S$DmWStgEK4Uwao1iqvQeHJibfO6bE/x9EQ0A40qqSrV6T24UW9uAd' WHERE uid = 1; |
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
// Colors | |
$black: #000000; | |
$grey: #f4f4f4; | |
$pale-grey: #6c94a3; | |
$white: #ffffff; | |
$navy: #004057; | |
$blue: #00aac0; | |
$pale-blue: #eff7f9; | |
$purple: #5d1f84; | |
$pink: #e461bc; |