Skip to content

Instantly share code, notes, and snippets.

View Konark-Web's full-sized avatar
🎯
Focusing

Vladyslav Konark-Web

🎯
Focusing
View GitHub Profile
@Konark-Web
Konark-Web / Квадратное уравнение (Python)
Created April 22, 2020 18:09
Даны действительные коэффициенты a, b, c, при этом a != 0. Решите квадратное уравнение ax²+bx+c=0 и выведите все его корни.
import math
a = float(input())
b = float(input())
c = float(input())
D = b ** 2 - 4 * a * c
if D == 0:
x1 = (-b - math.sqrt(D)) / (2*a)
<style>
.elementor-element-<?php echo $element->get_id(); ?> {
animation-name: animation-<?php echo $element->get_id(); ?>;
}
@keyframes animation-<?php echo $element->get_id(); ?> {
0% {
transform: translate(<?php echo $translate_x_from; ?>px, <?php echo $translate_y_from; ?>px)
rotateX(<?php echo $rotate_x_from; ?>deg) rotateY(<?php echo $rotate_y_from; ?>deg)
scaleX(<?php echo $scale_x_from; ?>) scaleY(<?php echo $scale_y_from; ?>);
initFloatingEffects: function() {
var config = this.getDefaultSettings();
if (this.getConfig('translate_toggle')) {
if (this.getConfig('translate_x.size') || this.getConfig('translate_x.sizes.to')) {
config.translateX = {
value: [this.getConfig('translate_x.sizes.from') || 0, this.getConfig('translate_x.size') || this.getConfig('translate_x.sizes.to')],
duration: this.getConfig('translate_duration.size'),
delay: this.getConfig('translate_delay.size') || 0
}
$widget-class: #{$elementor-widget}-offcanvas;
#{$widget-class} {
&__trigger {
&-container {
display: flex;
}
&-inner {
display: flex;
/* Eric Meyer's CSS Reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
/* Eric Meyer's CSS Reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
/* Adaptive css */
@media screen and (max-width: 1024px) {
.topHeader {
height: auto;
}
header {
height: auto;
}
@Konark-Web
Konark-Web / cloudSettings
Last active June 22, 2020 10:30
My Settings - Visual Code
{"lastUpload":"2019-12-05T07:47:01.084Z","extensionVersion":"v3.4.3"}
<?
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
$APPLICATION->SetPageProperty("description", "Купить запчасти на грузовой Хендай в Краснодаре по лучшей цене в интернет магазине!");
$APPLICATION->SetTitle("Запчасти для грузовиков Hyundai в Краснодаре");
?><?$APPLICATION->IncludeComponent(
"bitrix:news.list",
"slider",
Array(
"ACTIVE_DATE_FORMAT" => "d.m.Y",
"ADD_SECTIONS_CHAIN" => "N",
var result = "\n";
var INTERVAL = window.setInterval(function() {
window.clearInterval(INTERVAL);
var items = document.querySelectorAll('#repost_view_dialog .userContentWrapper');
for (var i=0; i < items.length; ++i)
{
var account = items[i].querySelector('.fwb.fcg > a');
result += account.textContent + '\n';
}