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
{# | |
Signature Pad for Symfony Forms | |
© 2024 by Michael Ihde wemida.com | |
https://github.com/wemida | |
Variables to use with include: | |
{% include with ... %} => see below example | |
{{ sig_title ?? 'E-Signature' }} | |
{{ sig_info_text ?? 'Sign in the canvas below and save your signature as an image!' }} | |
{{ sig_canvas_id ?? 'sig-canvas' }} |
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
<tr> | |
<!--<td style="width: 100%">--> | |
<td> | |
<b>Fragetitel</b> | |
<br />Description frage beschreibung | |
</td> | |
<td> | |
<input type="hidden" value="" name="emoji-rating" id="emoji-rating" /> | |
<div class="btn-group"> | |
<button type="button" class="btn btn-outline-secondary btnrating" data-attr="1" id="rating-star-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
<!DOCTYPE html> | |
<html lang="de"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta name="description" content="Beispieldokument mit den wichtigsten HTML-Tags"> | |
<title>Wichtige HTML-Tags</title> | |
<link rel="stylesheet" href="styles.css"> | |
<style> |
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 -dxdebug.mode=debug -dxdebug.client_host=127.0.0.1 -dxdebug.client_port=9003 -dxdebug.start_with_request=yes bin/console |
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
function asyncFuncWithPromise(): Promise<string> { | |
return new Promise((resolve) => { | |
setTimeout(() => { | |
resolve('asyncFuncWithPromise :: resolved after 1 second'); | |
}, 1000); | |
}); | |
} | |
async function asyncFuncWithAwait(): Promise<string> { | |
await asyncFuncWithPromise(); |
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); | |
class A {} | |
class B {} | |
class C {} | |
$classes = [ | |
new A(), | |
new B(), | |
]; |
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
camelCase | |
PascalCase | |
snake_case | |
UPPER_SNAKE_CASE | |
kebab-case (dash-case) | |
UPPER-KEBAB-CASE | |
dot.case | |
UPPER.DOT.CASE | |
unicorncase | |
UPPERUNICORNCASE (TROLLCASE) |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<system.webServer> | |
<rewrite> | |
<rules> | |
<rule name="Imported Rule 1" stopProcessing="true"> | |
<match url="^(.*)$" ignoreCase="false" /> | |
<conditions logicalGrouping="MatchAll"> | |
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" /> | |
</conditions> |
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); | |
namespace App\Util; | |
final class XMLReader | |
{ | |
private \SimpleXMLElement $XMLElement; | |
/** | |
* @param string $xmlString A well-formed XML string of any resource |
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); | |
// PHP 8 | |
final class DependencyInjectionExampleNew | |
{ | |
public function __construct(private string $var) {} | |
} | |
// PHP 7.4 | |
final class DependencyInjectionExample |
NewerOlder