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
Do JS kódu: | |
_gaq.push(['_setAllowAnchor', true]); | |
Do .htaccess: | |
RewriteCond %{QUERY_STRING} ^(utm_.*)$ | |
RewriteRule ^(.*)$ /$1#%1? [R=301,NE,L] | |
RewriteCond %{QUERY_STRING} ^(.*?)&(utm_.*)$ | |
RewriteRule ^(.*)$ /$1?%1#%2 [R=301,NE,L] |
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
document.getElementById('userEnteredText').value = document.getElementById('origText').value; |
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 checkboxes = new Array(); | |
checkboxes = document.getElementsByTagName('input'); | |
for (var i=0; i<checkboxes.length; i++) { | |
if (checkboxes[i].type == 'checkbox') { | |
checkboxes[i].checked = true; | |
} | |
} |
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
javascript:void(function(){var w = 430; var h = 600; var t = (screen.height ? (screen.height - h) / 4 : 0); var l = (screen.width ? (screen.width - w) / 2 : 0); var win = window.open('https://drive.google.com/keep/','google-keep','width='+w+',height='+h+',top='+t+',left='+l+',location=no,personalbar=no,menubar=no,status=no,resizable=yes,scrollbars=yes');})(); |
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 | |
define('APP_ID', ''); // Your App's ID | |
define('APP_SECRET', ''); // Your App's Secret | |
define('PAGE_URN', ''); // http://facebook.com/YOUR_PAGE_URN | |
define('APP_URL', 'http://'); // Your App's registered domain | |
/** | |
* Get acces_token for API | |
*/ | |
$getToken = 'https://graph.facebook.com/oauth/access_token?client_id=' . APP_ID . '&client_secret=' . APP_SECRET . '&grant_type=client_credentials&redirect_uri=' . APP_URL; |
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 TABLE wp_options SET option_value = "new domain" WHERE option_name = "siteurl" | |
UPDATE TABLE wp_options SET option_value = "new domain" WHERE option_name = "home" |
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
@ECHO off | |
@CHOICE /T:10 /C:12345s /M "Za jak dlouho vypnout? (1) 1 hod, (2) 20 minut, (3) 10 minut, (4) 5 minut, (5) hned, (s) zrusit" /D:1 | |
IF ERRORLEVEL 6 GOTO zero | |
IF ERRORLEVEL 5 GOTO five | |
IF ERRORLEVEL 4 GOTO four | |
IF ERRORLEVEL 3 GOTO three | |
IF ERRORLEVEL 2 GOTO two | |
IF ERRORLEVEL 1 GOTO one | |
GOTO end | |
:zero |
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 | |
/** | |
* Translates a number to a short alhanumeric version | |
* | |
* Translated any number up to 9007199254740992 | |
* to a shorter version in letters e.g.: | |
* 9007199254740989 --> PpQXn7COf | |
* | |
* specifiying the second argument true, it will | |
* translate back e.g.: |
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
/* Extra small devices (no-need) */ | |
@media (max-width: 767px) { | |
} | |
/* Small devices (tablets, 768px and up) */ | |
@media (min-width: 768px) and (max-width: 991px) { | |
} |
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 | |
/** | |
* =========================================== | |
* Compare strings and return repeating string | |
* =========================================== | |
* | |
* EXAMPLE: | |
* | |
* $strings = array( | |
* "oh this is repeating string number one", |
OlderNewer