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); | |
// Configuration: Set mail from/to. | |
$from = $_SERVER['SERVER_ADMIN']; | |
$to = $_SERVER['SERVER_ADMIN']; | |
// Get the raw POST data. | |
$data = file_get_contents('php://input'); |
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> | |
<meta charset="utf-8"> | |
<title>Ping Test</title> | |
<p>Click this <a href="https://example.com" ping="/ping.php">test link</a>. |
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 greeting(string $userName, string $tagName = 'span'): ?string | |
{ | |
if (!isset($userName)) { | |
return null; | |
} | |
$greetings = [ | |
[ | |
'lang' => 'de', |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
import UIKit | |
import WebKit | |
class ViewController: UIViewController { | |
var webView: WKWebView = WKWebView() { | |
didSet { | |
webView.navigationDelegate = self | |
webView.uiDelegate = self | |
} |
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(w) { | |
if (typeof w.HTMLInspector !== "undefined") { | |
w.HTMLInspector.inspect(); | |
} else { | |
var el = document.createElement('script'); | |
el.setAttribute('src', 'https://rawgit.com/philipwalton/html-inspector/master/html-inspector.js'); | |
el.addEventListener('load', function() { | |
w.HTMLInspector.inspect(); | |
}); | |
document.head.appendChild(el); |
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 | |
/** | |
* Override or insert variables into the HTML head. | |
* | |
* @param $head_elements | |
* An array of variables to pass to the HTML head. | |
*/ | |
function MYTHEME_html_head_alter(&$head_elements) { | |
// remove unneeded metatags | |
$remove = array( |
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
/* Remove whitespace between DIV tags: | |
* <div class="foo"> | |
* <div class="bar"> | |
*/ | |
$str2 = preg_replace('/(<\/{0,1}div[^>]*>)(\s+)(<\/{0,1}div[^>]*>)/im', '\\1\\3', $str); |
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
selector { | |
/* display and flow */ | |
display: value; | |
visibility: value; | |
float: value; | |
clear: value; | |
/* positioning */ | |
position: value; | |
top: value; | |
right: value; |
NewerOlder