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
void main() { | |
int num, count = 0; | |
float summ = 0; | |
do | |
{ |
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
#include <stdio.h> | |
#include <conio.h> | |
void main() { | |
_getch(); | |
} |
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
if ((a*2 < b) && (a*2 <c)) { | |
return 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
/** | |
* @inheritDoc | |
*/ | |
protected function checkFieldAccess($operation, FieldDefinitionInterface $field_definition, AccountInterface $account, FieldItemListInterface $items = NULL) { | |
$administrative_fields = ['housing']; | |
if ($operation == 'edit' && in_array($field_definition->getName(), $administrative_fields, TRUE)) { | |
return AccessResult::allowedIfHasPermission($account, 'administer housing gallery entities'); | |
} |
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
function housing_entity_type_alter(array &$entity_types) { | |
$form_modes = \Drupal::service('entity_display.repository')->getAllFormModes(); | |
foreach ($form_modes as $entity_type => $display_modes) { | |
if ($entity_type !== 'housing') { | |
// We are only interested in adding a handler to the Node entity. | |
continue; | |
} | |
/* @var \Drupal\Core\Entity\EntityTypeInterface $entity */ | |
$entity = $entity_types[$entity_type]; |
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
<!-- Google Code for Заказ Conversion Page --> | |
<script type="text/javascript"> | |
/* <![CDATA[ */ | |
var google_conversion_id = 1019349124; | |
var google_conversion_language = "en"; | |
var google_conversion_format = "3"; | |
var google_conversion_color = "ffffff"; | |
var google_conversion_label = "LlLPCOC-vXEQhJGI5gM"; | |
var google_remarketing_only = false; | |
/* ]]> */ |
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
(function ($, Drupal, settings) { | |
"use strict"; | |
Drupal.PublicationsCharts = Drupal.PublicationsCharts || {}; | |
Drupal.PublicationsCharts.createChart = function (name, labels, datasets) { | |
var ctx = $("#chart-" + name); | |
console.log(ctx); |
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
server { | |
server_name svkote.cyberlex404.com www.svkote.cyberlex404.com; | |
charset off; | |
index index.php index.html; | |
disable_symlinks if_not_owner from=$root_path; | |
include /etc/nginx/vhosts-includes/*.conf; | |
include /etc/nginx/vhosts-resources/svkote.cyberlex404.com/*.conf; | |
access_log /var/www/httpd-logs/svkote.cyberlex404.com.access.log; | |
error_log /var/www/httpd-logs/svkote.cyberlex404.com.error.log notice; | |
ssi on; |
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> | |
<head> | |
<title>H1 Header | Мой сайт ру</title> | |
<meta charset="utf-8"> | |
<link rel="stylesheet" type="text/css" href="style.css"> | |
</head> | |
<body> | |
<article class="blog-post"> |
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 | |
/** | |
* Created by PhpStorm. | |
* User: Lex | |
* Date: 20.02.2018 | |
* Time: 15:32 | |
*/ | |
namespace Drupal\ifmo\Plugin\views\style; |