Skip to content

Instantly share code, notes, and snippets.

View Patrizio's full-sized avatar

Patrizio Patrizio

  • Berlin
View GitHub Profile
@Patrizio
Patrizio / NL Postcode controle
Created February 27, 2011 10:16
Een validation voor een geldig Nederlandse postcode (1234 AB)
validates_format_of :postcode,
:with => /^(\d{4}).[a-z]{2}$/i
@Patrizio
Patrizio / gist:2005715
Created March 9, 2012 08:54
Stayokay Attention Box
<p>
<span class="attention-box">
<span class="label">Aanbieding</span>
<span class="link"><a href="/index.php?pageID=4267&amp;packagedealID=510372">Vier Pasen op Ameland</a></span>
</span>
</p>
@Patrizio
Patrizio / gist:2006817
Created March 9, 2012 14:48
Contactform It Beaken
<div id="wufoo-w7w7k5">
Fill out my <a href="http://stayokay.wufoo.com/forms/w7w7k5">online form</a>.
</div>
<script type="text/javascript">var w7w7k5;(function(d, t) {
var s = d.createElement(t), options = {
'userName':'stayokay',
'formHash':'w7w7k5',
'autoResize':true,
'height':'384',
'async':true,
@Patrizio
Patrizio / gist:2215302
Created March 27, 2012 11:58
WebPutty Stayokay.com
<link rel="stylesheet" type="text/css" href="//webputty.commondatastorage.googleapis.com/agtzfmNzc2ZpZGRsZXIMCxIEUGFnZRjw1AsM.css" />
<script type="text/javascript">(function(w,d){if(w.location!=w.parent.location||w.location.search.indexOf('__preview_css__')>-1){var t=d.createElement('script');t.type='text/javascript';t.async=true;t.src='http://www.webputty.net/js/agtzfmNzc2ZpZGRsZXIMCxIEUGFnZRjw1AsM';(d.body||d.documentElement).appendChild(t);}})(window,document);</script>
@Patrizio
Patrizio / gist:3089264
Created July 11, 2012 09:26
GA Tracking
Dev guide:
https://developers.google.com/analytics/devguides/collection/gajs/gaTrackingSite#multipleDomains
Stayokay - GA Tracking ID:
UA-285197-1
@Patrizio
Patrizio / video-snippet.html
Created November 20, 2012 15:39
500M video box code
<a href="http://www.youtube.com/embed/0Mc84WbMY1E?wmode=opaque&amp;rel=0&amp;controls=0&amp;showinfo=0&amp;modestbranding=1&amp;autoplay=1" class="hp-layer-video">
<div class="txt_right txt_top title box_text">
<span class="font_inter"><span>bekijk video</span></span>
</div>
<img width="304" height="139" src="/nl/CMSNL/PublishingImages/500m/gridimage2x1.jpg" alt=""/>
</a>
@Patrizio
Patrizio / google5cbbba44918d4f16.html
Created November 26, 2012 08:18
Fiat.nl google webmaster verification
google-site-verification: google5cbbba44918d4f16.html
@Patrizio
Patrizio / survey.js
Created December 14, 2012 09:49
Removed the go_to-variable
<script type="text/javascript" language="JavaScript">
// page to go to if cookie exists
num_days = 30;
function ged(noDays){
var today = new Date();
var expr = new Date(today.getTime() + noDays*24*60*60*1000);
return expr.toGMTString();
}
@Patrizio
Patrizio / style.css
Last active December 10, 2015 06:08
.mm-cookie-block {
position: absolute;
z-index: 999;
left: 50%;
top: -50%;
width: 560px;
margin: -250px 0 0 -300px;
padding: 15px 20px;
background: #fff;
font: normal 13px/1.5 'Helvetica Neue', Helvetica, Arial, sans-serif;