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
remove_file "README.rdoc" | |
application do | |
'config.generators do |g| | |
g.helper false | |
g.assets false | |
g.template_engine :haml | |
g.test_framework false | |
end' | |
end |
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
# web mp4 | |
ffmpeg -i source.avi -codec:v libx264 -profile:v main -level 3.1 -preset slow -b:v 400k -maxrate 400k -bufsize 800k -vf "scale=-2:480" -threads 0 -codec:a libfaac -b:a 128k -movflags +faststart target.mp4 | |
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
jQuery(function($) { | |
var script = document.createElement('script'); | |
script.src = "https://maps.googleapis.com/maps/api/js?v=3.exp&callback=initialize"; | |
document.body.appendChild(script); | |
}); | |
function initialize() { | |
var map; |
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
require 'csv' | |
VALID_EMAIL_REGEX = /\A[^@\s]+@([^@\s]+\.)+[^@\s]+\z/i | |
def valid_email?(email) | |
email =~ VALID_EMAIL_REGEX | |
end | |
# hier das textfile einlesen (liegt parallel zum script) | |
csv_text = File.expand_path("../liste.csv", __FILE__) |
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
// wait so that interchange can change the images | |
setTimeout(function(){ | |
$('#slick').slick({ | |
autoplay: true, | |
pauseOnHover: true, | |
speed: 400, | |
autoplaySpeed: 5000, | |
touchThreshold: 7, | |
dots: true, | |
onAfterChange: function(el, i) { |
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
# block comment spam by denying access to no-referrer requests | |
RewriteEngine On | |
RewriteCond %{REQUEST_METHOD} POST | |
RewriteCond %{REQUEST_URI} .myform\.php* [OR] | |
RewriteCond %{REQUEST_URI} .myotherform\.php* | |
RewriteCond %{HTTP_REFERER} !.*mysite.de.* [OR] | |
RewriteCond %{HTTP_USER_AGENT} ^$ |
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
# | |
# browserweiche | |
# | |
[browser = msie] AND [version = <8] | |
page.includeCSS.iehacks = fileadmin/templates/css/patches/iehacks.css | |
[global] | |
# |
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
<INCLUDE_TYPOSCRIPT: source="FILE:fileadmin/templates/typoscript/ts_setup.ts"> | |
<INCLUDE_TYPOSCRIPT: source="DIR:fileadmin/templates/typoscript"> |
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
# ----------------------------------------------------------------- | |
# Sprachen + Spalten | |
# ----------------------------------------------------------------- | |
mod.SHARED { | |
defaultLanguageFlag=de | |
defaultLanguageLabel=Deutsch | |
} | |
# ----------------------------------------------------------------- | |
# Rechte für Benutzergruppe 'global' | |
# ----------------------------------------------------------------- |
NewerOlder