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
var isIOS = { | |
iPhone: function(){ | |
return navigator.userAgent.match(/iPhone/i) ? true : false; | |
}, | |
iPad: function(){ | |
return navigator.userAgent.match(/iPad/i) ? true : false; | |
}, | |
iPod: function(){ | |
return navigator.userAgent.match(/iPod/i) ? true : false; | |
}, |
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
var isMobile = { | |
Android: function() { | |
return navigator.userAgent.match(/Android/i) ? true : false; | |
}, | |
BlackBerry: function() { | |
return navigator.userAgent.match(/BlackBerry/i) ? true : false; | |
}, | |
iOS: function() { | |
return navigator.userAgent.match(/iPhone|iPad|iPod/i) ? true : false; | |
}, |
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/bash | |
# For each file with the given extension in the current directory... | |
echo "Pfad;Datei;Groesse (in Byte)"; | |
if [[ "x$1" == "x" ]] | |
then | |
echo "no path given - exiting" >&2 | |
exit 1; | |
fi | |
find $1 -not -path */dev/* -type f -execdir bash -c 'echo -en "$PWD;$(basename {});$(stat -f %z {})\n"' \; |
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/bash | |
# This is needed to find gems installed with --user-install | |
export USER=kanedo | |
export HOME=/home/kanedo | |
# Include our profile to get Ruby 1.9.2 included in our PATH (via rvm) | |
. $HOME/.bash_profile | |
export PORT=<Port> |
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
//googleanalytics.php Line 824: | |
function authenticate() { | |
if ( isset( $_REQUEST['oauth_token'])) { | |
//… | |
//should be something like this | |
function authenticate() { | |
if ( isset( $_REQUEST['oauth_token']) && $_REQUEST['page'] == 'google-analytics-for-wordpress' ) { |
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 wpTimeMachine_enqueue_scripts() | |
{ | |
wp_deregister_script( 'jquery' ); | |
wp_register_script( 'jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js'); | |
wp_enqueue_script( 'jquery' ); | |
wp_deregister_script( 'jquery-ui-core' ); | |
wp_register_script( 'jquery-ui-core', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/jquery-ui.min.js' ); | |
wp_enqueue_script( 'jquery-ui-core' ); |
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
wp-content/plugins/wp-time-machine/includes/wpTimeMachineCore.php anschauen. Dort findet sich auf Zeile 865 folgende Funktion: function wpTimeMachine_enqueue_scripts() | |
{ | |
wp_deregister_script( 'jquery' ); | |
wp_register_script( 'jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js'); | |
wp_enqueue_script( 'jquery' ); | |
wp_deregister_script( 'jquery-ui-core' ); | |
wp_register_script( 'jquery-ui-core', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/jquery-ui.min.js' ); | |
wp_enqueue_script( 'jquery-ui-core' ); |
NewerOlder