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
$(function() { | |
// fileinput bei android deaktivieren | |
if(!navigator.userAgent.match(/Android/i)) { | |
$.getScript("/sites/all/themes/fragnebenan/js/fileinput.min.js", function(){ | |
console.log('fileinput laden'); | |
}); | |
} | |
}) | |
// oder |
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
$(function() { | |
console.log('ich werde ausgeführt wenn alle DOM ready und alles geladen ist') | |
function triggerColLeftIcon(){ | |
$('.col-icon-left').css({'display':'none!important'}); | |
$('.col-icon-right').css({'display':'block!important'}); | |
} | |
function triggerColRightIcon(){ | |
$('.col-icon-right').css({'display':'none!important'}); | |
$('.col-icon-left').css({'display':'block!important'}); | |
} |
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
#!/bin/sh | |
# ------------------------------------------------------------------------------ | |
# SOME INFOS : fairly standard (debian) init script. | |
# Note that node doesn't create a PID file (hence --make-pidfile) | |
# has to be run in the background (hence --background) | |
# and NOT as root (hence --chuid) | |
# | |
# MORE INFOS : INIT SCRIPT http://www.debian.org/doc/debian-policy/ch-opersys.html#s-sysvinit | |
# INIT-INFO RULES http://wiki.debian.org/LSBInitScripts | |
# INSTALL/REMOVE http://www.debian-administration.org/articles/28 |
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
# ElasticSearch Service | |
description "ElasticSearch" | |
start on (net-device-up | |
and local-filesystems | |
and runlevel [2345]) | |
stop on runlevel [016] |
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
update-rc.d logstash-shipper defaults | |
update-rc.d logstash-reader defaults |
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
/* by Joder Illi, Snowball mailing list */ | |
function stemm(word) { | |
/* | |
Put u and y between vowels into upper case | |
*/ | |
word = word.replace(/([aeiouyäöü])u([aeiouyäöü])/g, '$1U$2'); | |
word = word.replace(/([aeiouyäöü])y([aeiouyäöü])/g, '$1Y$2'); | |
/* | |
and then do the following mappings, |