Skip to content

Instantly share code, notes, and snippets.

View armitage's full-sized avatar

Milan Zoufal armitage

View GitHub Profile
@armitage
armitage / RefReMapper
Created December 11, 2016 18:58 — forked from ialarmedalien/RefReMapper
Remap a CSV file, given the headers of the target file
$data = array_map('str_getcsv',
['"header1","header2","header3","header4"',
'"data1","data2","data3","data4"',
'"dataA","dataB","dataC","dataD"'] );
//just get the first line of the csv1's values
$csv1 = array_shift($data);
//csv2
$data2 = array_map('str_getcsv', ['"header4","header3","header2","header1"']);
@armitage
armitage / subdomain_rewrite
Created November 8, 2010 18:21
This Apache Config takes the subdomain part of a url if available (except www) and tries to find files in the document root with subdomain appended if the file cannot be found their i tries a second directory, in thies case the top level doc root
RewriteEngine on
RewriteLogLevel 2
RewriteLog /var/www/sites/camino_surf/logs/rewrite.log
RewriteCond %{HTTP_HOST} !www.caminosurf.com$ [NC]
RewriteCond %{HTTP_HOST} ^(www.)?([a-z0-9-]+).caminosurf.com [NC]
# first try to find it in branch dir based on subdomain
# ...and if found stop and be happy:
RewriteCond /var/www/sites/camino_surf/public/%{REQUEST_FILENAME} -f
$(document).ready(function(){
$("a[class*='zoom']").fancybox({
imageScale: true,
zoomOpacity: true,
overlayShow: true,
overlayOpacity: 1,
zoomSpeedIn: 250,
padding: 0,
centerOnScroll: false,
callbackOnStart: function(){
Ideen:
Baggerfahrn http://www.goldenmoments.at/baggerspass-in-wien.html
http://www.jochen-schweizer.at/geschenke-maenner/bagger,default,pd.html
Prag
TODO
igor:
Styropor
Knetmasse
image list should look like this
<ol>
<li><img src="foo.jpg" descr="http://example.com"/></li>
</ol>
92: change 'span' to 'a'
127: // find caption link
var _cap_linksrc = _a ? _a.attr('descr') : _img.attr('descr');_img.attr('descr');