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
{ | |
"name": "My Server", | |
"protocol": "sftp", | |
"context": "tortino.com.ua", | |
"uploadOnSave": true, | |
"profiles": { | |
"old": { | |
"host": "159.253.23.48", | |
"port": 22, | |
"username": "root", |
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
#snackbar { | |
min-width: 250px; | |
transform: translateX(-50%); | |
background-color: #333; | |
color: #fff; | |
text-align: center; | |
border-radius: 2px; | |
padding: 16px; | |
position: fixed; | |
z-index: 9999999999999; |
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
/* eslint consistent-this: [ "error", "control" ] */ | |
/** | |
* Continued from PHP Instructions on renaming / cloning image class. | |
* @link https://gist.github.com/StuffieStephie/4f654058545d693787a36e76d3521b1e | |
* | |
* Step 1: | |
* Assign previewTemplate variable to the script template ID defined in the | |
* PHP file sans 'tmpl-' (Step 6 of PHP instructions) |
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
uasort($all_kuratorstvo, function($a, $b){ return strcmp($a['name'],$b['name']);}); |
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
add_filter( 'init', function(){ | |
add_rewrite_rule( | |
'^bx24app/(.*)/?$', | |
'index.php?bx24app=$matches[1]', | |
'top' | |
); | |
add_filter( 'query_vars', function($vars){ | |
$vars[] = 'bx24app'; | |
return $vars; | |
}); |
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
https://www.digitalocean.com/community/tutorials/apache-ubuntu-14-04-lts-ru |
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 | |
/** | |
* The Template for displaying all single posts | |
* | |
* Template Name: Sber | |
* | |
* @package WordPress | |
* @subpackage Twenty_Twelve | |
* @since Twenty Twelve 1.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
{"lastUpload":"2021-01-11T09:10:33.836Z","extensionVersion":"v3.4.3"} |
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
function isClass(classs) { | |
var el = document.getElementsByClassName(classs); | |
if (el.length != 0) { | |
return true | |
} | |
return false; | |
} |
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
// WPDB snipets | |
global $wpdb; | |
// SELECT выборка самых свежих записей | |
$var = 'CONFIRMED'; | |
$sql = $wpdb->prepare( "SELECT `status`,`order_id`, timestamp( `timestamp` ) as 'timestamp_column' | |
FROM `payments` | |
WHERE `status` = 'CONFIRMED' | |
ORDER BY `timestamp_column` DESC", $var); | |
NewerOlder