Skip to content

Instantly share code, notes, and snippets.

View alexmazaltov's full-sized avatar
🎯
Blockchain development

Oleksii Bondarenko alexmazaltov

🎯
Blockchain development
View GitHub Profile
@alexmazaltov
alexmazaltov / option-4.md
Created December 3, 2024 20:54 — forked from Shahrozmunir/option-4.md
Front-End Development Process Breakdown for Job Requirement Fulfillment

1. Client Requirement Gathering

  • Action: Communicate directly with the client to understand their specific requirements.
    • Procedure:
      • If given direct access, schedule a meeting or use communication tools like email or project management software (e.g., Jira, Notion) to discuss needs.
      • If not, coordinate with a senior team member to gain access or detailed project briefs.
      • Document all requirements clearly for reference throughout the project.

2. Project Setup

  • Action: Establish a local development environment.
  • Procedure:
@alexmazaltov
alexmazaltov / build_renamed_rocm_wheel.py
Created October 1, 2024 18:09 — forked from dgdguk/build_renamed_rocm_wheel.py
Script to build a version of llama-cpp-python for AMD renamed in accordance with Oobabooga's odd requirements
"""
build_renamed_rocm_wheel.py
===========================
:author: David Griffin <dgdguk@gmail.com>
:license: MIT License
:copyright: 2024
Copyright 2024, David Griffin
@alexmazaltov
alexmazaltov / counties.geojson
Created August 23, 2024 17:32 — forked from sdwfrost/counties.geojson
US Counties data in geojson
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alexmazaltov
alexmazaltov / 《合法性的政治》.md
Created August 23, 2024 11:02
《合法性的政治》阅读笔记
title date
《合法性的政治》阅读笔记
2024-03-29

因为最近“赵鼎新和浙大”的事,早上蹲坑掏出来《合法性的政治》随便看看,结果一口气看完了。之后又扫了一遍《社会与政治运动讲义》,因为06年成书,所以没细看。希望这里能“少摘录,少评价”,尽量几句话说清楚他的一些核心论点和论据,以及我对此的评价。

先总评一下:

@alexmazaltov
alexmazaltov / Module.php
Created August 10, 2024 20:20 — forked from timkelty/Module.php
Craft 5 afterSave element bug
<?php
namespace modules\testmodule;
use Craft;
use craft\base\Element;
use craft\base\Model;
use craft\elements\Entry;
use craft\events\DefineBehaviorsEvent;
use craft\events\ModelEvent;
@alexmazaltov
alexmazaltov / Enhanced-Conclusions.md
Last active August 10, 2024 20:07 — forked from gehn11/Vitaliy_Romanyuk_v2
Text query to image - Integrated project 4

Выводы и рекомендации Mazaltov at Alef Invest:

  1. В рамках данного проекта была проведена работа по обучению моделей для предсказания соответствия между текстовыми запросами и изображениями.

  2. Исходные данные включали:

    • Набор из 1000 уникальных изображений
    • Датасет с наименованиями файлов изображений
    • Датасет с экспертной оценкой соответствия изображений и запросов (около 15% выборки)
    • Датасет с оценкой соответствия, полученной краудсорсингом (около 95% выборки)
@alexmazaltov
alexmazaltov / git_empty_branch
Created October 18, 2020 18:26 — forked from j8/git_empty_branch
Create new branch with empty folder structure
You can create a new empty branch like this:
$ git checkout --orphan NEWBRANCH
--orphan creates a new branch, but it starts without any commit. After running the above command you are on a new branch "NEWBRANCH", and the first commit you create from this state will start a new history without any ancestry.
The --orphan command keeps the index and the working tree files intact in order to make it convenient for creating a new history whose trees resemble the ones from the original branch.
Since you want to create a new empty branch that has nothing to do with the original branch, you can delete all files in the new working directory:
@alexmazaltov
alexmazaltov / Makefile
Created October 15, 2020 13:13 — forked from andypost/Makefile
drupal 8 core contributor docker kickstarter
.PHONY: up upx log down exec exec0 h t
CUID := $(shell id -u)
CGID := $(shell id -g)
IMAGEPHP := skilldlabs/php:73
all: | exec
up:
docker run --rm --name core8 \
@alexmazaltov
alexmazaltov / email_validation_simple.php
Created September 28, 2020 06:35 — forked from anxp/email_validation_simple.php
Simple email address validation - check syntax and MX record existing.
<?php
function _nxte_redeem_is_email_valid($email) {
if (empty ($email)) {return false;}
list($user_name, $mail_domain) = explode('@', $email);
if (empty($user_name) || empty($mail_domain)) {return false;}
$is_syntax_ok = (bool) filter_var($email, FILTER_VALIDATE_EMAIL);
$is_MX_exists = checkdnsrr($mail_domain, 'MX');
@alexmazaltov
alexmazaltov / using_limit_validation_errors.php
Created September 28, 2020 06:31 — forked from anxp/using_limit_validation_errors.php
How to correctly use #limit_validation_errors element of Form API in Drupal 7
<?php
//Sometimes we need to submit only part of the form. Sure, if form has #required fields, all they will be highlighted with red,
//and form will not be submitted if these elements have no value.
//To workaround this, we can use '#limit_validation_errors' option AND custom submit function for every 'Partial Submit' button.
//Interesting note: when we use '#limit_validation_errors', we will see ALL form fields in _validate function,
//but in _submit function will be visible ONLY elements, included in '#limit_validation_errors' array!!!
//Case 1. The most simple.
//We want to make a 'reset' button, or 'previous step' button, so it must work even if some REQUIRED form elements are empty: