Skip to content

Instantly share code, notes, and snippets.

View Stmol's full-sized avatar
🌴
Good Vibes

Yury S. Stmol

🌴
Good Vibes
View GitHub Profile
@Stmol
Stmol / iter.ts
Created June 14, 2024 11:36
test
type ValueType = number
const InvalidValue: ValueType = 1 << 0,
StringValue: ValueType = 1 << 1,
NumberValue: ValueType = 1 << 2,
NilValue: ValueType = 1 << 3,
BoolValue: ValueType = 1 << 4,
ArrayValue: ValueType = 1 << 5,
ObjectValue: ValueType = 1 << 6
//
// 1. Дано N ячеек с произвольным содержимым (content: number)
//
// 2. На вход поступает содержимое произвольной длины (number)
//
// 3. Нужно распределить входящее содержимое по ячейкам так, чтобы сначала заполнить наиболее полные ячейки
//
// 4. Если места не хватает, надо упасть с ошибкой
//
// Например:
@Stmol
Stmol / DropLib.Base.php
Created September 13, 2019 17:00
droplib-dropbox-api-class from DropBox 09/2019
<?php
/**
* DropLib - DropBox API Class
*
* @package DropLib
* @version 2.0.1
* @copyright Copyright 2011 by Jonas Doebertin. All rights reserved.
* @author Jonas Doebertin
* @license Sold exclusively on CodeCanyon
*/
@Stmol
Stmol / to-learn.txt
Last active October 3, 2018 16:14
[Resources List To Learn] #notes
Общее:
- Криптовалюта (курсера): https://www.coursera.org/learn/cryptocurrency
- ML: https://tproger.ru/digest/machine-learning-materials/amp
- ML: https://habrahabr.ru/company/ods/blog/322626/
- ML (курс): https://www.udacity.com/course/machine-learning-engineer-nanodegree--nd009
- Микросервисы от Авито: https://habrahabr.ru/company/avito/blog/331418
- Kotlin (android app): https://android.jlelse.eu/learn-kotlin-while-developing-an-android-app-part-2-e53317ffcbe9
- КУРСЫ: https://habrahabr.ru/post/331530
- Регулярки: http://telegra.ph/Regulyarnye-vyrazheniya-dlya-samyh-malenkih-12-12
- Оценка сложности алгоритмов: https://tproger.ru/articles/computational-complexity-explained/
@Stmol
Stmol / l2datdec.php
Created August 29, 2013 20:08
Lineage 2 dat files decoder. Author: Hint aka Ilya
<?php
/**
* L2 file decoder (4 october 2011).
* @author Hint aka Ilya
*/
function decode($filename, $original = true)
{
$file = @file_get_contents($filename);