Skip to content

Instantly share code, notes, and snippets.

@qwadratic
qwadratic / javelin-doc-structure.md
Last active May 13, 2025 07:38
Javelin Docs Structure Update

Javelin Documentation Structure

This is a proposed new structure for the Javelin documentation.

The new Javelin documentation structure focuses on clarity, flow, and practical guidance. It opens with a concise yet engaging overview that quickly communicates what makes Javelin unique. From there, content is organized into clear sections—from installation and core concepts to step-by-step guides and advanced topics. This structure lowers the barrier to entry, speeds up onboarding, and makes it easier for both newcomers and experienced developers to find exactly what they need.

Some sections can reuse existing content with improved organization and clearer headings. Others will need to be newly written based on the functionality available in the codebase and examples from the Javelin GitHub repository. Where content is not yet available, these sections are marked with TODO.

1. Introduction

🧾 MVP платформы криптозаймов через Telegram Mini App

📌 Общая идея

Платформа позволяет пользователю взять займ в "виртуальной" криптовалюте под 10% залог в TON. Пользователь видит рост/падение цены, как будто он купил актив, но реальная покупка происходит только при закрытии позиции. Все операции совершаются в Telegram Mini App, а администрирование — через веб-панель.


📱 Пользовательский интерфейс (Telegram Mini App)

@qwadratic
qwadratic / everscale-gitcoin-directory.md
Last active November 1, 2022 21:52
Everscale Resources for Devs

Gitcoin Hacker Directory

Mainnet / Devnet tokens / Hackathon-related questions / help and more

Workshop 1: Everscale Intro + Environment setup

Recording (2x speed sounds better for me, just in case)

@qwadratic
qwadratic / setup-everscale-env.md
Last active April 13, 2022 13:06
Everscale smart contract development environment setup
(.venv) ✘  ~/Desktop/minter/dicetime   master ●✚  ./manage.py shell_plus
# Shell Plus Model Imports
from django.contrib.admin.models import LogEntry
from django.contrib.auth.models import Group, Permission
from users.models import AllowedChat, ChatMember, ChatWallet, DiceEvent, Exceptions, Language, MinterWallets, Payment, Service, Text, Tools, Triggers, User
from django.contrib.contenttypes.models import ContentType
from django.contrib.sessions.models import Session
# Shell Plus Django Imports
from django.core.cache import cache
Структура проекта:
templates/
- index.html
createdb.py
run.py
@qwadratic
qwadratic / 1 - install libs
Last active February 23, 2020 15:51
Notes from Python Masterclass
Если что-то не получается на любом шаге - не теряем время и идем в repl.it
1. Открываем консоль:
- windows: WIN+R, там пишем cmd и жмем Enter
- mac/linux: открываем приложение Terminal
2. Пишем "python" и жмем Enter
3. Если запустился питон версии 3.6 или выше () - все ок, можем продолжать.
Выходим из python (для этого наберите "exit()" и нажмите Enter)
@qwadratic
qwadratic / game
Last active February 11, 2020 18:54
import view
from model import XOState
def get_new_game_status(xostate):
"""TODO::убрать дублирующийся код"""
for i in range(3):
row = xostate.get_row(i)
if row[0] == row[1] == row[2] and row[0] != 0:
return row[0]
@qwadratic
qwadratic / push-monei-api-guide.md
Last active February 2, 2020 11:51
push.money API Guide

Гайд по использованию push.money API для front-end разработчиков

Flow со стороны отправителя

На главной странице после заполнения опциональной формы (sender, recipient, amount, password) вызываем /push/create, передаем в payload поля, которые были заполнены. получаем address, link_id и deeplink (если был указан amount).

Показываем юзеру address, даем возможность его скопировать. Если есть deeplink, даем возможность по нему перейти/отсканировать.

@qwadratic
qwadratic / export.py
Created February 16, 2018 12:03
Django Exportable ListView and ModelAdmin
import csv
import xlwt
import datetime
from operator import attrgetter, itemgetter, methodcaller
from django.shortcuts import redirect
from django.http import HttpResponse, HttpResponseBadRequest
from django.utils import six
from django.utils.encoding import force_text