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); | |
function curlSingle(string $url, callable $block) | |
{ | |
$ch = curl_init($url); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | |
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); | |
$result = curl_exec($ch); | |
$chInfo = curl_getinfo($ch); | |
if ($chInfo['http_code'] === 200) { |
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); | |
// disable error logging | |
error_reporting(0); | |
// disable error display | |
ini_set("display_errors", '0'); | |
function generateSmallNumericTestArray(): array | |
{ | |
$ta = []; |
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
// see: https://github.com/mikeobrien/HidLibrary/tree/master/src/HidLibrary | |
using HidLibrary; | |
using System; | |
using System.Linq; | |
using System.Runtime.InteropServices; | |
namespace Environment.HardwareData.SensorData | |
{ | |
class TempSensor | |
{ |
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
Index: cms/typo3/sysext/backend/Classes/Form/FormDataProvider/TcaSelectItems.php | |
IDEA additional info: | |
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP | |
<+>UTF-8 | |
=================================================================== | |
--- cms/typo3/sysext/backend/Classes/Form/FormDataProvider/TcaSelectItems.php (revision ) | |
+++ cms/typo3/sysext/backend/Classes/Form/FormDataProvider/TcaSelectItems.php (revision ) | |
@@ -43,6 +43,11 @@ | |
continue; | |
} |