This file contains hidden or 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 type="text/javascript"> | |
var _gaq = _gaq || []; | |
(function(_gaq, n, v){ | |
var e = 'my-variables', /* slot index */ i=1, /* scope */ s=2; | |
(function(fn) { | |
var d = document; | |
if(d.addEventListener) d.addEventListener('DOMContentLoaded', function(){ d.removeEventListener('DOMContentLoaded', arguments.callee, false); fn(); }, false); | |
else if(d.attachEvent) d.attachEvent('onreadystatechange', function(){ if(d.readyState === "complete"){ d.detachEvent('onreadystatechange', arguments.callee); fn(); }}); | |
})(function(){ | |
if(window._gaq instanceof Array){ |
This file contains hidden or 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 type="text/javascript"> | |
var _gaq = _gaq || []; | |
(function(_gaq, n, v){ | |
var e = 'my-variables', /* slot index */ i=1, /* scope */ s=2; | |
(function(fn) { | |
var d = document; | |
if(d.addEventListener) d.addEventListener('DOMContentLoaded', function(){ d.removeEventListener('DOMContentLoaded', arguments.callee, false); fn(); }, false); | |
else if(d.attachEvent) d.attachEvent('onreadystatechange', function(){ if(d.readyState === "complete"){ d.detachEvent('onreadystatechange', arguments.callee); fn(); }}); | |
})(function(){ | |
if(window._gaq instanceof Array){ |
This file contains hidden or 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
_gaq.push(['_setCustomVar', | |
1, // This custom var is set to slot #1. Required parameter. | |
'Items Removed', // The name acts as a kind of category for the user activity. Required parameter. | |
'Yes', // This value of the custom variable. Required parameter. | |
2 // Sets the scope to session-level. Optional parameter. | |
]); | |
_gaq.push(['_trackEvent', | |
'Shopping', // category of activity | |
'Item Removal', // Action | |
]); |
This file contains hidden or 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
<html> | |
<body> | |
Some content | |
<esi:include src="http://content.your-soa.internal/artikel/123.html" /> | |
More content | |
<esi:include src="http://comments.your-soa.internal/to/artikel/123.html" /> | |
</body> |
This file contains hidden or 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 | |
// web/index.php | |
require_once __DIR__.'/silex.phar'; | |
use Caefer\StaticKernel\StaticCache; // or whatever name and namespace it would have.. | |
$app = new Silex\Application(); | |
// definitions |
This file contains hidden or 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 | |
// web/index.php | |
require_once __DIR__.'/../app/bootstrap.php.cache'; | |
require_once __DIR__.'/../app/AppKernel.php'; | |
use Symfony\Component\HttpFoundation\Request; | |
use Caefer\StaticKernel\StaticCache; // or whatever name and namespace it would have.. | |
$kernel = new AppKernel('prod', false); |
This file contains hidden or 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
--- | |
layout: "book" | |
title: "Chapter 3 - Using Google AdSense" | |
category: book | |
permalink: "/book/chapter-3-using-google-adsense.html" | |
abstract: "Learn everything you need to know about Google AdSense to optimize your ad revenue in this chapter. This covers the essentials necessary to apply this tutorial to your website." | |
submenu: | |
- { hook: "top", title: "Top headline" } | |
- { hook: "headline1", title: "First headline" } | |
- { hook: "headline2", title: "Another headline" } |
This file contains hidden or 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
## Top headline<a name="top"> </a> | |
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. | |
### First headline<a name="headline1"> </a> | |
At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. | |
### Another headline<a name="headline2"> </a> |
This file contains hidden or 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 page.submenu %} | |
<h3>Chapter Contents</h3> | |
<ul> | |
{% for item in page.submenu %} | |
<li><a href="#{{ item.anchor }}">{{ item.title }}</a></li> | |
{% endfor %} | |
</ul> | |
{% endif %} |
This file contains hidden or 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
YOUR_NEW_SERVERS_IP_ADDRESS YOUR_SERVER_DOMAIN | |
# i.e. | |
# 127.0.0.1 your-domain.com |