Skip to content

Instantly share code, notes, and snippets.

View t3m8ch's full-sized avatar
🏠
Working from home

Kudyakov Artem t3m8ch

🏠
Working from home
View GitHub Profile
@t3m8ch
t3m8ch / compas3d_wine_bottle.yml
Created April 13, 2024 15:43
Настройки бутылки Компас 3D для Bottles
Arch: win64
CompatData: ''
Creation_Date: '2024-04-13 09:00:17.767480'
Custom_Path: false
DLL_Overrides: {}
DXVK: dxvk-async-2.0
Environment: Application
Environment_Variables: {}
External_Programs: {}
Installed_Dependencies:
@t3m8ch
t3m8ch / init.lua
Created November 13, 2023 01:58
Neovim config
-- Package manager
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable", -- latest stable release
@t3m8ch
t3m8ch / TestDataBuilder.kt
Created July 26, 2022 08:13
abstract class for creating test data builders (kotlin)
abstract class ThatElement {
var count: Int = 0
private set
fun hasCount(count: Int) {
this.count = count
}
}
abstract class TestDataBuilder<T : ThatElement, ObjectType>(
@t3m8ch
t3m8ch / .prettierrc
Last active July 28, 2022 06:42
Prettier config
{
"tabWidth": 2,
"useTabs": false,
"singleQuote": true,
"semi": true,
"trailingComma": "all",
"printWidth": 120,
"arrowParens": "always",
"quoteProps": "as-needed",
"bracketSpacing": true,
@t3m8ch
t3m8ch / application.yaml
Created July 21, 2022 12:03
application.yaml for telegram bots on Spring + MongoDB
spring:
data:
mongodb:
uri: ${db_url}
telegram:
bot-token: ${bot_token}
bot-username: ${bot_username}
@t3m8ch
t3m8ch / main.py
Created February 23, 2022 13:15
Invites Aiogram 3
import os
import uuid
from aiogram import Router, F, Bot, Dispatcher
from aiogram.types import Message, InlineKeyboardMarkup, InlineKeyboardButton, \
InlineQuery, InputTextMessageContent, InlineQueryResultArticle
TOKEN = os.getenv("TOKEN")
router = Router()
@t3m8ch
t3m8ch / TgLoginWidget.vue
Created November 15, 2021 17:11
Authorization widget via Telegram
<template>
<div ref="tgLoginWidget"></div>
</template>
<script>
import { onMounted, ref } from "vue";
export default {
name: "TgLoginWidget",
props: {
@t3m8ch
t3m8ch / inline_mode.py
Last active August 7, 2021 19:00
Error in Aiogram 3.0.0a12
import hashlib
from aiogram import Router, types
from aiogram.types import InputTextMessageContent, InlineQueryResultArticle
inline_mode_router = Router()
@inline_mode_router.inline_query()
@t3m8ch
t3m8ch / .vimrc
Last active May 8, 2021 05:44
.vimrc for vds
autocmd! bufwritepost $MYVIMRC source $MYVIMRC
call plug#begin('~/.vim/plugged')
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'jiangmiao/auto-pairs'
Plug 'tpope/vim-fugitive'
Plug 'airblade/vim-gitgutter'
Plug 'kien/ctrlp.vim'
Plug 'easymotion/vim-easymotion'
@t3m8ch
t3m8ch / .vimrc
Created January 30, 2021 12:08
My .vimrc file
autocmd! bufwritepost $MYVIMRC source $MYVIMRC
call plug#begin('~/.vim/plugged')
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'ycm-core/YouCompleteMe'
Plug 'jiangmiao/auto-pairs'
Plug 'tpope/vim-fugitive'
Plug 'airblade/vim-gitgutter'
Plug 'kien/ctrlp.vim'