Skip to content

Instantly share code, notes, and snippets.

View cyberlex404's full-sized avatar
🏠
Working from home

Lex Misiuro cyberlex404

🏠
Working from home
View GitHub Profile
{#
/**
* @file
* Default theme implementation for main view template.
*
* Available variables:
* - attributes: Remaining HTML attributes for the element.
* - css_name: A css-safe version of the view name.
* - css_class: The user-specified classes names, if any.
* - header: The optional header.
/**
* @file
* Contains the definition of the behaviour eforphus.
*/
(function ($, Drupal, drupalSettings) {
'use strict';
Drupal.behaviors.eforphus = {
<?php
/**
* @file
* Contains wa_advice.module.
*/
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\node\Entity\NodeType;
use Drupal\Core\Form\FormStateInterface;
<?php
/**
* @file
* Contains wa_advice.module.
*/
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\node\Entity\NodeType;
use Drupal\Core\Form\FormStateInterface;
@cyberlex404
cyberlex404 / css.css
Created November 21, 2018 12:11
bootstrap hidden rules
hidden-xs-down = d-none d-sm-block
hidden-sm-down = d-none d-md-block
hidden-md-down = d-none d-lg-block
hidden-lg-down = d-none d-xl-block
hidden-xl-down = d-none (same as hidden)
hidden-xs-up = d-none (same as hidden)
hidden-sm-up = d-sm-none
hidden-md-up = d-md-none
hidden-lg-up = d-lg-none
hidden-xl-up = d-xl-none
program Project1;
{$APPTYPE CONSOLE}
uses
SysUtils, Math;
var a:array[1..100] of byte;
sNum: String;
n, i, itm: byte;
number: Extended;
begin
program Project1;
{$APPTYPE CONSOLE}
uses
SysUtils;
const n=8;
var a,b:array[1..n] of byte;
i:byte;
begin
writeln('Vvedite ',n,' naturaln chisel');
for i:=1 to n do
program HelloWorld;
const n = 17;
var a: array[1..n] of integer;
var i, s: integer;
begin
s:=0;
@cyberlex404
cyberlex404 / loop.c
Created October 27, 2018 20:47
loop matrix
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
int isSort(int* line, int m);
int compare(const void * x1, const void * x2);
void main() {
<?php
namespace Drupal\hycm_blocks\Plugin\Block;
use Drupal\Core\Block\BlockBase;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Drupal\Core\Render\RendererInterface;
use Drupal\Core\Config\ConfigFactoryInterface;
/**
* Provides a 'LandingPageHeader' block.
*