sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
#!/bin/bash | |
# This script will download the contents of a GitHub repo | |
# and place them in a local directory. | |
# | |
# Usage: | |
# download-repo.sh <repo> <output-path> <nested-path> <branch-name> | |
# | |
# Example: | |
# download-repo.sh wattenberger/kumiko ./kumiko-assets master public/assets |
<?php declare(strict_types=1); | |
use Drupal\Core\Database\Database; | |
use Drupal\Core\DrupalKernel; | |
use Drupal\Core\Site\Settings; | |
if (!file_exists(__DIR__ . '/vendor/autoload.php')) { | |
return; | |
} | |
$autoloader = require __DIR__ . '/vendor/autoload.php'; |
<!DOCTYPE html> | |
<head> | |
<meta charset="UTF-8"> | |
</head> | |
<body> | |
<div id="canvas"></div> | |
<button id="restart">Restart</button> | |
<script src="minesweeper.js"></script> | |
<style> | |
* { |
<?php | |
namespace Drupal\mymodule\Form; | |
use Drupal\Core\Form\FormBase; | |
use Drupal\Core\Form\FormStateInterface; | |
/** | |
* Provides a custom form. | |
*/ |