Skip to content

Instantly share code, notes, and snippets.

View ungarson's full-sized avatar
🎯
Focusing

Yo ungarson

🎯
Focusing
View GitHub Profile
@ungarson
ungarson / optimize_site_speed_ways.txt
Last active October 20, 2020 11:49
Способы оптимизировать скорость загрузки сайта
Необходимые максимальные показатели (wi-fi, 200 mb/s, октябрь 2020):
Desktop:
1. FCP - 0.6s
2. Time To Interactive - 1.9s
3. Speed Index - 1.2s
4. LCP - 0.8s
5. CLS - 0.001s
6. Total Blocking Time - 0.1s
7. DomContentLoaded - 1.5s
@ZlobnyiSerg
ZlobnyiSerg / gist:7f8594f41cdf842703ac0cce3e4c6817
Created July 31, 2018 12:26
Коды подразделений МВД (УФМС).csv
This file has been truncated, but you can view the full file.
"ID";"NAME";"CODE";"END_DATE"
"3495";"МВД КАРАЧАЕВО-ЧЕРКЕССКОЙ РЕСПУБЛИКИ";"091-001";
"3496";"АДЫГЕ-ХАБЛЬСКИЙ РОВД КАРАЧАЕВО-ЧЕРКЕССКОЙ РЕСПУБЛИКИ";"092-001";
"3497";"ЗЕЛЕНЧУКСКИЙ РОВД КАРАЧАЕВО-ЧЕРКЕССКОЙ РЕСПУБЛИКИ";"092-002";
"3268";"МАЙКОПСКИЙ РОВД РЕСПУБЛИКИ АДЫГЕЯ";"012-002";"2006-01-01 00:00:00.0"
"3354";"ОВД Г. КИЗИЛЮРТА РЕСПУБЛИКИ ДАГЕСТАН";"052-007";"2007-01-01 00:00:00.0"
"3355";"ОВД Г. КИЗЛЯРА РЕСПУБЛИКИ ДАГЕСТАН";"052-008";"2007-01-01 00:00:00.0"
"3356";"ОВД КИЗЛЯРСКОГО Р-НА РЕСПУБЛИКИ ДАГЕСТАН";"052-009";"2007-01-01 00:00:00.0"
"3357";"ОВД Г. ХАСАВЮРТА РЕСПУБЛИКИ ДАГЕСТАН";"052-010";"2007-01-01 00:00:00.0"
"3358";"ОВД ХАСАВЮРТОВСКОГО Р-НА РЕСПУБЛИКИ ДАГЕСТАН";"052-011";"2007-01-01 00:00:00.0"
@primaryobjects
primaryobjects / bst-delete-node.js
Created January 22, 2017 19:43
Delete a node in a Binary Search Tree BST.
/**
* Definition for a binary tree node.
* function TreeNode(val) {
* this.val = val;
* this.left = this.right = null;
* }
*/
/**
* @param {TreeNode} root
* @param {number} key
@subfuzion
subfuzion / curl.md
Last active November 2, 2024 04:27
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@tkon99
tkon99 / name.js
Last active September 16, 2024 20:38
Random Name Generator for Javascript
/*
(c) by Thomas Konings
Random Name Generator for Javascript
*/
function capFirst(string) {
return string.charAt(0).toUpperCase() + string.slice(1);
}
function getRandomInt(min, max) {
@justincampbell
justincampbell / How-to-Win-Friends-and-Influence-People.md
Created September 19, 2013 17:11
Principles of How to Win Friends and Influence People

How to Win Friends and Influence People

Fundamental Techniques in Handling People

  1. Don't criticize, condemn, or complain.
  2. Give honest and sincere appreciation.
  3. Arouse in the other person an eager want.
  4. Never show others that you are not interested in what they have to say.