Skip to content

Instantly share code, notes, and snippets.

View alfredleo's full-sized avatar
:octocat:
Working from Ground Zero

Alfred alfredleo

:octocat:
Working from Ground Zero
  • ITMED
  • Tashkent
View GitHub Profile
@alfredleo
alfredleo / reset
Last active November 15, 2021 14:00
reset
MANUAL
1) Navicat off
Uninstall it with uninstall tool.
2) Win + R, enter regedit, enter
Delete HKEY_CURRENT_USER\Software\PremiumSoft\Data
Expand HKEY_CURRENT_USER\Software\Classes\CLSID
Expand each subfolder. If it contains only one folder named Info, delete it
AUTO
@alfredleo
alfredleo / ITMED
Created September 23, 2020 09:31
Задание для дизайнера.
1) Перевести логотип в вектор. (1й файл)
2) Обозначить слово IT. Сейчас оно не выделяется. (2й файл)
3) Добавить изменения в логотип на ваше усмотрение. (3й файл)
По этим трем файлам и вашему портфолио будет принято решение о сотрудничестве.
@alfredleo
alfredleo / gist:dd8457612e145e057f6aa092f049fc7b
Last active October 10, 2020 12:08
Тестовое задание
Пример: https://uzlatin.com (работает неправильно)
https://latin.uz (работает частично правильно) https://matn.uz (почти без ошибок).
Присылайте ТОЛЬКО ссылку на публичный github проект. (архив или просто код не принимается, будет обсуждение решения задачи в github)
1) Нужно реализовать функции - конвертер для латиницы/кириллицы узбекского языка (туда и обратно). Нужны правильные функции (cyrLat, latCyr) и ТЕСТЫ для них (конвертировать пока только слова).
2) Добавить словарь неправильных слов, эти слова конвертируются не по общему правилу
3) Добавить unit тесты на данные слова (неправильные слова добавляются в словарь)
цирк - sirk
sirk - цирк (сирк неправильно)
салом - salom
salom - салом
@alfredleo
alfredleo / code-review-checklist.md
Created August 18, 2018 16:59 — forked from nerandell/code-review-checklist.md
PHP Code Review Guidelines

Make sure these boxes are checked before submitting/approving the PR

General

  • The code works
  • The code is easy to understand
  • Follows coding conventions
  • Names are simple and if possible short
  • Names are spelt correctly
  • Names contain units where applicable
  • There are no usages of magic numbers
@alfredleo
alfredleo / TVarDumper.php
Created July 10, 2018 14:24
Debug function for any php project. Works fine with ajax debug, remote user debug. tail -f for log view.
<?php
/**
* TVarDumper class file
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2013 PradoSoft
* @license http://www.pradosoft.com/license/
* @version $Id$
* @package System.Util
@alfredleo
alfredleo / script.sh
Created March 1, 2018 10:57 — forked from vielhuber/script.sh
PostgreSQL: Backup and restore pg_dump with password on command line #sql
# best practice: linux
nano ~/.pgpass
*:5432:*:username:password
chmod 0600 ~/.pgpass
# best practice: windows
edit %APPDATA%\postgresql\pgpass.conf
*:5432:*:username:password
# linux
@alfredleo
alfredleo / script.sh
Created March 1, 2018 10:57 — forked from vielhuber/script.sh
PostgreSQL: Backup and restore pg_dump with password on command line #sql
# best practice: linux
nano ~/.pgpass
*:5432:*:username:password
chmod 0600 ~/.pgpass
# best practice: windows
edit %APPDATA%\postgresql\pgpass.conf
*:5432:*:username:password
# linux
@alfredleo
alfredleo / TVarDumper.php
Created February 7, 2018 10:26
PHP dumping to file function, just include this to the starting file.
<?php
/**
* TVarDumper class file
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.pradosoft.com/
* @copyright Copyright &copy; 2005-2013 PradoSoft
* @license http://www.pradosoft.com/license/
* @version $Id$
* @package System.Util
@alfredleo
alfredleo / getLinks.js
Created January 8, 2018 13:49
Mov.uz video download
@alfredleo
alfredleo / frontend.md
Last active December 20, 2017 13:56
Frontend, JS, PHP, OOP learning.