Skip to content

Instantly share code, notes, and snippets.

View Nurik985's full-sized avatar
🏠
Работать из дома

Nurik985 Nurik985

🏠
Работать из дома
View GitHub Profile
@Nurik985
Nurik985 / del_vscode_mac.md
Created June 10, 2025 14:58 — forked from karansinghgit/del_vscode_mac.md
How to completely uninstall VSCode on Mac
  1. Close and Quit VSCode

  2. Remove VScode from Applications (just go to Finder -> Applications and move VSCode to Bin)

  3. Execute these commands in any order. The paths might be slightly different for you.

rm -fr ~/.vscode*
rm -fr ~/Library/Application\ Support/Code/

rm -fr ~/Library/Saved\ Application\ State/com.microsoft.VSCode.savedState/
rm -fr ~/Library/Preferences/com.microsoft.VSCode.helper.plist 
@Nurik985
Nurik985 / http-status-codes.php
Created December 30, 2022 04:59 — forked from henriquemoody/http-status-codes.php
List of HTTP status codes in PHP
<?php
/**
* Content from http://en.wikipedia.org/wiki/List_of_HTTP_status_codes
*
* You may also want a list of unofficial codes:
*
* 103 => 'Checkpoint',
* 218 => 'This is fine', // Apache Web Server
* 419 => 'Page Expired', // Laravel Framework
@Nurik985
Nurik985 / code.php
Last active January 18, 2021 04:49 — forked from luckydevilru/ajax-form-post.php
Отправка формы ajax без перезагрузки страницы
// html
<form class="block mbr-form" method="post">
<div class="form-rezult"></div>
<div class="row">
<div class="col-md-6 multi-horizontal" data-for="name"> <input type="text" class="form-control input" name="DATA[NAME]" data-form-field="Name" placeholder="Ваше Имя:" required="" id="name-form4-1b"> </div>
<div class="col-md-6 multi-horizontal" data-for="phone"> <input type="text" class="form-control input" name="DATA[PHONE]" data-form-field="Phone" placeholder="Телефон:" required="" id="phone-form4-1b"> </div>
<div class="col-md-12" data-for="email"> <input type="text" class="form-control input" name="DATA[ЕMAIL]" data-form-field="Email" placeholder="Email:" required="" id="email-form4-1b"> </div>
<div class="col-md-12" data-for="message"> <textarea class="form-control input" name="DATA[MESSAGE]" rows="3" data-form-field="Message" placeholder="Сообщение:" style="resize:none" id="message-form4-1b"></textarea> </div>
<div class="input-group-btn col-md-12" style="
<!-- до скрипта долже быть подклчен jquery -->
<script>
$(document).ready(function() {
$('a[href^="#"]').click(function() {
event.preventDefault();
var target = $(this).attr('href'),
top = $(target).offset().top;
// console.log(target);
$('body,html').animate({scrollTop: top}, 1500);
});
@Nurik985
Nurik985 / code.php
Last active August 21, 2020 10:54 — forked from luckydevilru/crm-bitrix.php
Создание лида и отправка utm меток в crm bitrix24 битрикс
<?
// ЛОГИРОВАНИЕ В ФАЙЛ
function writeToLog($data, $title = '')
{
$log = "\n------------------------\n";
$log .= date("Y.m.d G:i:s") . "\n";
$log .= (strlen($title) > 0 ? $title : 'DEBUG') . "\n";
$log .= print_r($data, 1);
$log .= "\n------------------------\n";
file_put_contents(getcwd() . '/hook.log', $log, FILE_APPEND);
@Nurik985
Nurik985 / code.php
Last active August 21, 2020 11:03 — forked from marcosfreitas/wp-title.php
wordpress title
<title>
<?php
if(is_home()):
bloginfo('name');
elseif( is_category() || is_tag() ):
single_cat_title(); echo ' &bull; '; bloginfo('name');
elseif( is_single() || is_page() ):
single_post_title();
else:
@Nurik985
Nurik985 / code.md
Last active August 21, 2020 11:02 — forked from lancejpollard/meta-tags.md
Полный список мета-тегов HTML

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">
@Nurik985
Nurik985 / code.css
Last active August 21, 2020 11:01 — forked from gokulkrishh/media-query.css
CSS Media Queries для Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS