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
/** | |
* Example Boilerplate Module | |
* | |
* Add boilerplateModule.init() to main.js to initiate it. | |
*/ | |
var boilerplateModule = (function(){ | |
var config = { | |
'default': true, |
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
# robotstxt.org/ | |
User-agent: * | |
Disallow: |
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 | |
$date = strtotime("15.11.2017 05:00"); | |
$now = time(); | |
if ($date > $now) { | |
die("Silence is golden!"); | |
} |
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 dd(){ | |
array_map(function($x) { var_dump($x); }, func_get_args()); die; | |
} |
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
## Browser Caching + Deflate Compression | |
<IfModule mod_deflate.c> | |
<FilesMatch "\.(js|jpg|jpeg|gif|png|ico|svg|css)$"> | |
ExpiresActive on | |
ExpiresDefault "access plus 1 month" | |
SetOutputFilter DEFLATE | |
</FilesMatch> | |
</IfModule> | |
# Deflate Compression |
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
// <div class="counter" data-count="150">0</div> | |
$('.counter').each(function() { | |
var $this = $(this), | |
countTo = $this.attr('data-count'); | |
$({ countNum: $this.text()}).animate({ | |
countNum: countTo | |
}, | |
{ |
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
<select onchange="if (this.value) window.location.href=this.value"> | |
<option value="">Pick one:</option> | |
<option value="/foo">Foo</option> | |
<option value="/bar">Bar</option> | |
</select> |
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
<script src="https://cdn.jsdelivr.net/jquery/3.2.1/jquery.min.js"></script> | |
<script>window.jQuery || document.write('<script src="/js/libs/jquery.min.js">\x3C/script>')</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
<!-- Google Analytics: change UA-XXXXX-Y to be your site's ID. --> | |
<script> | |
var gaProperty = 'UA-XXXXX-Y'; | |
window.ga=function(){ga.q.push(arguments)};ga.q=[];ga.l=+new Date; | |
ga('create', gaProperty,'auto'); | |
ga('set','anonymizeIp',true); | |
ga('send','pageview'); | |
var disableStr = 'ga-disable-' + gaProperty; |
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
<!--[if lt IE 8]> | |
<div class="info-box" id="browsehappy"> | |
<div class="info-box__headline">Unsicherer Browser!</div> | |
Sie benutzen einen <strong>veralteten und unsicheren</strong> Webbrowser. Wir empfehlen, den <a href="http://browsehappy.com/">Browser zu aktualisieren</a> oder einen anderen, aktuellen Browser zu verwenden. | |
</div> | |
<![endif]--> |
NewerOlder