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
* text=auto eol=lf | |
/tests export-ignore | |
/.github export-ignore | |
/.gitignore export-ignore | |
/.gitattributes export-ignore | |
/composer.lock export-ignore | |
/phpunit.xml export-ignore |
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
// Best we've got | |
<h1>Frankenstein</h1> | |
<p role="doc-subtitle">Or: The Modern Prometheus</p> | |
// How about this? (Inspired by form label and input coupling) | |
<h1> | |
Frankenstein | |
<subhead>Or: The Modern Prometheus</subhead> | |
</h1> |
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 createCodeModel($directory, $outputFile): void | |
{ | |
// Open the output file in append mode | |
$output = fopen($outputFile, 'a'); | |
// Get all files in the current directory | |
$files = new RecursiveIteratorIterator( | |
new RecursiveDirectoryIterator($directory, RecursiveDirectoryIterator::SKIP_DOTS), |
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 | |
// SIMPLIFIED MODEL GENERATOR | |
$raw = trim(shell_exec('git log --pretty=format:"%s" --first-parent master')); | |
$lines = explode("\n", $raw); | |
$lines = filter_duplicates_keeping_first_matches($lines); | |
$lines = filter_lines_starting_with($lines, ['Merge', 'Revert', 'Reapply', 'Bump']); |
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
#!/bin/bash | |
# Ensure the output directory exists | |
mkdir -p output | |
# Iterate through all image files in the source directory | |
for image in source/*.{jpg,jpeg,png,gif}; do | |
if [[ -f "$image" ]]; then | |
# Get the filename without the directory path | |
filename=$(basename "$image") |
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: Validate YAML | |
on: | |
push: | |
pull_request: | |
jobs: | |
validate-yaml: | |
runs-on: ubuntu-latest | |
steps: |
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
body { | |
font-family: Arial, sans-serif; | |
line-height: 1.6; | |
margin: 0; | |
padding: 0; | |
} | |
main { | |
max-width: 800px; | |
margin: 0 auto; | |
padding: 20px; |
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
# When using the Repository Template feature on GitHub, it does not follow the same rules as Composer create-project or ZIP downloads. | |
# For this reason, we have this script which will configure the repository the first time it is set up in order to normalize it. | |
name: Configure template repository | |
on: | |
# Run when branch is created (when the repository is generated from the template) | |
create: | |
# Only keep latest run of this workflow and cancel any previous runs | |
concurrency: |
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 | |
declare(strict_types=1); | |
write('Running file Linter!', '32'); | |
const PATTERN = '/src/*.php'; | |
$files = glob(__DIR__ . '/' . ltrim(PATTERN, '/'); | |
$exitCode = 0; |
NewerOlder