\-(moz|o|webkit|ms|khtml)\-(?!font-smoothing|osx|print|backface).+?;
mysql --host=localhost.mysql.ihc.ru --user=user_name --database=database_name --password=password > database.sql
mysql -h localhost.mysql.ihc.ru -u user_name -D database_name -p password < database.sql
mysql --host="localhost.mysql.ihc.ru" --user="user_name" --password="password" --database="database_name" < db.sql
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
/* first */ | |
JApp.GetUserIP(function(sIP) { | |
oUserIp.val(sIP); | |
}); | |
/* second */ | |
that.GetUserIP = function(fnCallback) { | |
var sDefault = "N/A"; |
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
// More: http://journal.gentlenode.com/imacro-1-ultimate-cheatsheet/ | |
// iMacro CheatSheet - Command Reference | |
// http://wiki.imacros.net/Command_Reference | |
// iMacros supports 3 types of variables: | |
// * The macro variables !VAR0 thru !VAR9. They can be used with the SET and ADD command inside a macro. | |
// * Built-in variables. They contain certain values set by iMacros. | |
// * User-defined variables. They are defined in-macro using the SET command. | |
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
body { | |
&.modal-opened { | |
overflow: hidden; | |
padding-right: 17px; | |
} | |
} |
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
document.body.contentEditable=true |
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
<meta content="user-scalable=yes, maximum-scale=1.6, width=device-width, initial-scale=1, target-densitydpi=device-dpi" name="viewport"> |
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 getAbsoluteUrl = (function() { | |
var a; | |
return function(url) { | |
if (!a) a = document.createElement('a'); | |
a.href = url; | |
return a.href; | |
}; | |
})(); |
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
// get browser width and height on window resize | |
var headerEl = document.getElementById('header'); | |
// when window size changed - resize first block | |
window.addEventListener('resize', setWindowSize); | |
function setWindowSize() { | |
if (typeof(window.innerWidth) == 'number') { | |
myWidth = window.innerWidth; | |
myHeight = window.innerHeight; | |
setheight(myHeight); |