<?php
declare(strict_types=1);
require dirname(__DIR__) . '/../vendor/autoload.php';
class Entity
{
public function __construct(array $data)
{
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="en"> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>ivi example</title> | |
</head> | |
<body> | |
<script type="module"> |
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="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Vue.js CDN Test</title> | |
</head> | |
<body> | |
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script> | |
<div id="app-basic">{{ message }}</div> |
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 | |
$types = []; | |
$fp = @fopen("/downloads/db1-duplicate-keys.txt", "r"); | |
if ($fp) { | |
$i = 0; | |
$status = 0; | |
while (($buffer = fgets($fp, 4096)) !== false) { |
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 | |
/** | |
* A low-level function for retrieving data. Throws an exception in case of an error. | |
* | |
* @return array | |
*/ | |
function retrieve_data(): array | |
{ | |
// throw an exception in case of an error |
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 | |
/** | |
* Get class name from file | |
* | |
* This is a working example, that works for PHP 7.4 and 8.x. | |
* | |
* @see https://stackoverflow.com/questions/7153000/get-class-name-from-file | |
*/ | |
function get_class_name(string $file): string |
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 | |
// Examples for different uses of PHP callbacks | |
output(callback(function() { return 'anonymous function'; })); | |
output(callback('func')); | |
output(callback(new InvokableClass())); | |
output(callback([new NormalClass(), 'test'])); | |
output(callback('StaticClass::staticMethod')); | |
output(callback([StaticClass::class, 'staticMethod'])); |
This is a solution to run the original enc2ly
CLI program within a Docker container.
There are two CLI programs that convert Encore musical files to LilyPond.
Unfortunately I wasn't able to run these programs on my MacOS.
So, here are the instructions for using the original enc2ly
CLI programm within a Docker container.
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
<template> | |
<textarea | |
:id="id" | |
:name="name" | |
:value="value" | |
:placeholder="placeholder" | |
:rows="rows" | |
:cols="cols" | |
class="form-control" | |
@dragover.prevent |
NewerOlder