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
# Pfad zum Git auf dem Server | |
set :repository, 'file:///VERZEICHNISNAME.git' | |
# Eure Domain | |
set :domain , 'domain.tld' | |
# SSH-Nutzer | |
set :user , 'ssh-w00000x' | |
# Verwendung von Git |
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 type='text/javascript'> | |
$(document).ready(function() { | |
if (window.devicePixelRatio > 1) { | |
$.each($("[class^=icon-]"), function() { | |
var el = $(this), bp = el.css('background-position'); | |
el.attr('class', el.attr('class').replace('n-', 'n-retina-')).css('background-position', bp); | |
}); | |
} | |
}); | |
</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
<div class="js-media" title="http://url2video.com/?url=http://mydomain.tld/myfile.mp4&w=600&h=375&callback=?"> | |
<a href="http://mydomain.tld/myfile.mp4">http://mydomain.tld/myfile.mp4</a> | |
</div> |
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 | |
# replace youtube directly | |
while (preg_match('/http:\/\/(www\.)?(youtube\.com\/watch\?v\=|embed|youtu\.be\/)(.*)/', $sStr, $aMatch)) { | |
$sUrl = 'http://url2video.com/?url=' . $aMatch[0] . '&w=' . MEDIA_DEFAULT_X . '&h=' . MEDIA_DEFAULT_Y . '&callback=?'; | |
$sStr = str_replace($aMatch[0], | |
'<div class="js-media" title="' . $sUrl . '"><a href="' . $aMatch[0] . '">' . $aMatch[0] . '</a></div>', | |
$sStr, 1); | |
} |
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 type="text/javascript"> | |
$('.js-media').each(function() { | |
var $this = $(this); | |
$.getJSON(this.title, function(data) { | |
$this.html(data.html); | |
}); | |
}); | |
</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
<?php | |
# using [audio]file.ext[/audio] | |
if (preg_match('#\[audio\](.*)\[\/audio\]#Uis', $sStr, $aMatch)) { | |
$sUrl = 'http://url2video.com/?url=' . $aMatch[1] . '&w=' . MEDIA_DEFAULT_X . '&h=30&callback=?'; | |
$sStr = preg_replace('#\[audio\](.*)\[\/audio\]#Uis', | |
'<div class="js-media" title="' . $sUrl . '"><a href="' . $sUrl . '">' . $aMatch[1] . '</a></div>', | |
$sStr); | |
} |