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 | |
$method = $_SERVER['REQUEST_METHOD']; | |
$sitename = "example.com"; | |
$to = "mailbox@example.com"; | |
$subject= "Письмо с сайта \"$sitename\""; | |
// Переключает чередование цветов ячеек таблицы | |
$color = 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
var nums = [2, 4, 7, 2, 4, 1, 6, 9]; | |
var words = ['asdasdasd', 'aasdaa', 'aaasaa', 'asa', 'ga']; | |
console.log(nums); | |
// Bubble sort | |
var sortArr = function(arr) { |
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 | |
/* php в постах или страницах WordPress: [exec]код[/exec] | |
---------------------------------------------------------*/ | |
function exec_php($matches){ | |
eval('ob_start();'.$matches[1].'$inline_execute_output = ob_get_contents();ob_end_clean();'); | |
return $inline_execute_output; | |
} | |
function inline_php($content){ | |
$content = preg_replace_callback('/\[exec\]((.|\n)*?)\[\/exec\]/', 'exec_php', $content); | |
$content = preg_replace('/\[exec off\]((.|\n)*?)\[\/exec\]/', '$1', $content); |
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
// Settings | |
{ | |
"color_scheme": "Packages/User/SublimeLinter/karyfoundation-dark (SL).tmTheme", | |
"draw_white_space": "all", | |
"font_size": 9, | |
"ignored_packages": | |
[ | |
], | |
"tab_size": 2, | |
"theme": "predawn-DEV.sublime-theme", |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Перетаскивание элементов</title> | |
</head> | |
<body> | |
<img src="img/connected_data_big.jpg" alt="connected_data_big"> | |
<img src="img/best_robust_big.jpg" alt="best_robust_big"> |
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
@Element names@ | |
page-header | |
page-header__inner | |
page-header__top | |
page-header__logo | |
main-nav | |
main-nav__list | |
main-nav__list--main | |
main-nav__list--adaptive |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Scroll to the top btn</title> | |
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous"> | |
<style> |
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
<!DOCTYPE html> | |
<html lang="ru"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Items underline</title> | |
<style> | |
body { | |
padding: 50px; | |
} |