This file contains hidden or 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
| h3 a { | |
| text-decoration: none; | |
| color: #000; | |
| text-shadow: 0.15rem 0.15rem 0 #fbfbfb,0.35rem 0.35rem 0 #dadada; | |
| border: none; | |
| } |
This file contains hidden or 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 | |
| } |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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}"; |