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
<script> | |
window.addEventListener('DOMContentLoaded', function() { | |
(function($) { | |
//do something with b-lazy plugin, lightbox plugin and then with flexslider | |
})(jQuery); | |
}); | |
</script> |
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 rand_float($st_num=0,$end_num=1,$mul=1000000) { | |
if ($st_num>$end_num) return false; | |
return mt_rand($st_num*$mul,$end_num*$mul)/$mul; | |
} | |
$query_args = array( | |
'post_type' => 'product', | |
'post_status' => 'publish', |
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
const response = JSON.parse(responseBody) | |
const response_length = response.length; | |
console.log(response_length) | |
console.log(response) |
A collection of Markdown code and tricks that were tested to work in Gist.
This and all public gists in https://gist.github.com/ww9 are Public Domain. Do whatever you want with it including , no need to credit me.
- Reformat this whole document and assimilate these: