Skip to content

Instantly share code, notes, and snippets.

@avil13
avil13 / .cursorrules
Created November 6, 2024 14:38 — forked from ymansurozer/.cursorrules
Opiniated .cursorrules for Vue/Nuxt 3 + Nuxt UI + Tailwind CSS + others
You are an expert in Vue 3, Nuxt 3, TypeScript, Node.js, Vite, Vue Router, Pinia, VueUse, Nuxt UI, and Tailwind CSS. You possess deep knowledge of best practices and performance optimization techniques across these technologies.
Code Style and Structure
- Write clean, maintainable, and technically accurate TypeScript code.
- Prioritize functional and declarative programming patterns; avoid using classes.
- Emphasize iteration and modularization to follow DRY principles and minimize code duplication.
- Always use Composition API with Typescript: `<script setup lang="ts">`.
- Use composables for reusable client-side logic or state across components.
- Prioritize readability and simplicity over premature optimization.
- Leave NO to-do’s, placeholders, or missing pieces in your code.
@avil13
avil13 / _README.md
Created February 1, 2023 07:42 — forked from lord-alfred/_README.md
Y-Factors Formula

Y-Factors Formula

Здесь опубликованы коэффициенты для одного из внутренних ранжировщиков в поиске Яндекса. Это не итоговая формула, которая влияет на результат появления ссылки в серпе, т.к. судя по изученному коду – внутри используется несколько ранжировщиков и поисковых движков, результаты которых мержатся между собой и уже итоговый результат приводит к распределению ссылок по топу выдачи.

коэффициенты влияния на факторы

| Коэффициент | Название Фактора | Описание Фактора |

@avil13
avil13 / cloudSettings
Last active June 20, 2021 18:08
my vs_code settings for second editor
{"lastUpload":"2021-06-20T18:08:05.140Z","extensionVersion":"v3.4.3"}
We couldn’t find that file to show.
<label class="checkbox">
<input class="checkbox_input" type="checkbox" name="checkbox" value="1">
<span class="checkbox_input-emu"></span>
<span class="checkbox_label-emu">Описание чекбокса</span>
</label>
<style>
.checkbox {
display: block;
position: relative;
@avil13
avil13 / PhoneCodesDictionary.js
Created June 15, 2016 10:07
PhoneCodesDictionary
Account.constant('PhoneCodesDictionary', [
{ "mask": "+247-####", "cc": "AC", "name_en": "Ascension", "desc_en": "", "name_ru": "Остров Вознесения", "desc_ru": "" },
{ "mask": "+376-###-###", "cc": "AD", "name_en": "Andorra", "desc_en": "", "name_ru": "Андорра", "desc_ru": "" },
{ "mask": "+971-5#-###-####", "cc": "AE", "name_en": "United Arab Emirates", "desc_en": "mobile", "name_ru": "Объединенные Арабские Эмираты", "desc_ru": "мобильные" },
{ "mask": "+971-#-###-####", "cc": "AE", "name_en": "United Arab Emirates", "desc_en": "", "name_ru": "Объединенные Арабские Эмираты", "desc_ru": "" },
{ "mask": "+93-##-###-####", "cc": "AF", "name_en": "Afghanistan", "desc_en": "", "name_ru": "Афганистан", "desc_ru": "" },
{ "mask": "+1(268)###-####", "cc": "AG", "name_en": "Antigua & Barbuda", "desc_en": "", "name_ru": "Антигуа и Барбуда", "desc_ru": "" },
{ "mask": "+1(264)###-####", "cc": "AI", "name_en": "Anguilla", "desc_en": "", "name_ru": "Ангилья", "desc_ru": "" },
@avil13
avil13 / cors-nginx.conf
Created May 24, 2016 13:57 — forked from michiel/cors-nginx.conf
Wide-open CORS config for nginx
#
# Wide-open CORS config for nginx
#
location / {
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' '*';
#
// Для вызова функции не чаще чем в указанный интервал времени
var my_debounce = function(func, wait) {
var timeout;
return function() {
var context = this,
args = arguments,
later = function() {
timeout = null;
func.apply(context, args);
};
{"lastUpload":"2017-10-24T13:19:40.881Z","extensionVersion":"v2.8.3"}
@avil13
avil13 / jsonp.php
Last active August 29, 2015 14:14 — forked from cowboy/jsonp.php
<?PHP
# JSONP "callback" param explanation, via basic PHP script.
#
# "Cowboy" Ben Alman
# http://benalman.com/
# Set $data to something that will be serialized into JSON. You'll undoubtedly
# have your own code for this.
$data = array("some_key" => "some_value");