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
/* | |
Skript prüft, ob Typo3 auf der jeweiligen Seite verfügbar ist, indem es einen Request an http://seitenname/typo3/index.php sendet und den zurückgegebenen Statuscode prüft. | |
Da es in einem Firefox Add-On laufen soll, wurde es für den Firefox entwickelt. Läuft aber genauso auch in Chrome. | |
*/ | |
var http_request = false; | |
function checkTypo3(){ | |
http_request = false; | |
if (window.XMLHttpRequest) { | |
http_request = new XMLHttpRequest(); | |
if (http_request.overrideMimeType) { |
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
<snippet> | |
<content><![CDATA[ | |
/********************************/ | |
/* MySQL Connection */ | |
/********************************/ | |
if( $_SERVER['REMOTE_ADDR'] != '127.0.0.1' ){ | |
$mysqlhost="${1:localhost}"; | |
$mysqluser="${2:user_remote}"; | |
$mysqlpwd="${3:password_remote}"; | |
$mysqldb="${4:db_name_remote}"; |
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
SELECT * FROM `table` WHERE expr1 SOUNDS LIKE 'string' |
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
console.time("dosomething"); | |
var foo = 'bar'; | |
console.timeEnd("dosomething"); |
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
h1::selection { | |
-webkit-text-stroke: 2px #000; | |
background: transparent; | |
color: transparent; | |
} |
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
#logo-wrap img { | |
-webkit-filter: grayscale(1); | |
-webkit-transition:all 0.5s; | |
} | |
#logo-wrap img:hover{ | |
-webkit-filter: grayscale(0); | |
} |
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
SET @sourceTheme='theme:azure'; | |
SET @targetTheme='theme:kochbuch'; | |
INSERT INTO oxconfig (OXID, OXSHOPID, OXMODULE, OXVARNAME, OXVARTYPE, OXVARVALUE ) | |
(SELECT UUID(), OXSHOPID, @targetTheme, OXVARNAME, OXVARTYPE, OXVARVALUE FROM oxconfig WHERE OXMODULE = @sourceTheme); | |
INSERT INTO oxconfigdisplay (OXID, OXCFGMODULE, OXCFGVARNAME, OXGROUPING, OXVARCONSTRAINT, OXPOS) | |
(SELECT UUID(), @targetTheme,OXCFGVARNAME, OXGROUPING, OXVARCONSTRAINT, OXPOS FROM oxconfigdisplay WHERE OXCFGMODULE = @sourceTheme); |
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.anythingSlider .anythingControls {bottom:-20px !important;-webkit-transition: all 0.2s;} | |
div.anythingSlider:hover .anythingControls {bottom:0 !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
<?php | |
function image_optimize ($source_url, $destination_url, $quality) { | |
$info = getimagesize($source_url); | |
if ($info['mime'] == 'image/jpeg') $image = imagecreatefromjpeg($source_url); | |
elseif ($info['mime'] == 'image/png') $image = imagecreatefrompng($source_url); | |
else return 'error: only jpeg and png are supported'; | |
// Enable interlancing |
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 geocoder; | |
var map; | |
function initialize() { | |
geocoder = new google.maps.Geocoder(); | |
var latlng = new google.maps.LatLng(-34.397, 150.644); | |
var mapOptions = { | |
zoom: 8, | |
center: latlng | |
} |
OlderNewer