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 | |
namespace App\Rules; | |
use Closure; | |
use Illuminate\Contracts\Validation\ValidationRule; | |
use const FILTER_FLAG_IPV4; | |
use const FILTER_FLAG_IPV6; | |
use const FILTER_VALIDATE_INT; |
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
<? | |
include "common.inc.php"; | |
include "header.inc.php"; | |
?> | |
<h2>MySQL Strict Mode Column Compatiblility</h2> | |
<? | |
$r_resultTables = dbQuery("SHOW TABLES"); | |
echo '<textarea style="width: 95%; height: 80vh;">'; | |
while ($a_rowTable = dbFetchRow($r_resultTables)) { |
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
# with symlink following | |
grep -r -n "match" . --include "*.php" | |
# no symlink following | |
find . -name "*.php" -exec grep -n -H "match" {} \; | |
# files without match | |
find . -name "*.php" -exec grep -L "match" {} \; |
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
var _gaq=[['_setAccount','UA-XXXXXX-X'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); |
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
<head> | |
<!-- using meta tags? --> | |
<meta name="mediaalias:mobile" content="min-width: 300px" /> | |
<meta name="mediaalias:tablet" content="min-width: 600px, min-device-pixel-ratio: 1.5" /> | |
<!-- or a new element altogether --> | |
<media alias="mobile" query="min-width: 300px" /> | |
<media alias="tablet" query="min-width: 600px, min-device-pixel-ratio: 1.5" /> | |
</head> | |
<!-- what's the easiest way to do this w/o jQuery? --> |