Skip to content

Instantly share code, notes, and snippets.

View andronov04's full-sized avatar

Andrey Andronov andronov04

View GitHub Profile
@andronov04
andronov04 / index.html
Created August 5, 2023 16:21
Water Wave Filling Box with Animation - Autoscales
<div class="indicator">
<output name="result" for="completion">50</output>
</div>
<input id="completion" type="range" min="0" max="100">
@andronov04
andronov04 / SketchSystems.spec
Created January 2, 2023 15:46
My Awesome Sketch
My Awesome Sketch
First State
some event -> Second State
Second State
I am attesting that this GitHub handle andronov04 is linked to the Tezos account tz1iChpqVTi68JTcbpmmVnD9yfXxe2UxTkZL for tzprofiles
sig:edsigtj3GvAyPUGBXTQjoSEjGbJm2p5fJpQXjLZPxgfY4PHydzbZGWcBz8akTQ4RL8iZyiMmhPhTmBVmoFqym5zj1KPnfMwe1c2
@andronov04
andronov04 / Хакатонище
Last active January 9, 2020 13:51
ХАКАТОН ПРОФУНКТОРА
Товарищи, идея такова.
Сервис - "Найди свою тачку бро на Яндекс.Панораме"
Смысл:
Человечек заходить, вбивает в форму номер типа Х100АМ55 и жмет "Найти", если находить кидает координаты и вуаля, он видеть себя в 2012 едущим по трешки с любовницей.
Короче, как все знаете яндекс на панорамах не замазывает номера у автомобилей.
Вкратце, необходимо написать бота что бы он прошел по маршрутам и с помощью ML прочитал номера тачек и сохранил в бэдешечку номер и координаты.

Keybase proof

I hereby claim:

  • I am andronov04 on github.
  • I am andronov04 (https://keybase.io/andronov04) on keybase.
  • I have a public key ASBuFTKxe5wQD20oLsdmwhmBk4yQtbzf02fWjFppwq20Jwo

To claim this, I am signing this object:

@andronov04
andronov04 / postgres_queries_and_commands.sql
Created January 16, 2018 17:51 — forked from rgreenjr/postgres_queries_and_commands.sql
Useful PostgreSQL Queries and Commands
-- show running queries (pre 9.2)
SELECT procpid, age(query_start, clock_timestamp()), usename, current_query
FROM pg_stat_activity
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%'
ORDER BY query_start desc;
-- show running queries (9.2)
SELECT pid, age(query_start, clock_timestamp()), usename, query
FROM pg_stat_activity
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%'
@andronov04
andronov04 / install-redis.sh
Created February 7, 2017 18:18 — forked from dstroot/install-redis.sh
Install Redis on Amazon EC2 AMI
#!/bin/bash
# from here: http://www.codingsteps.com/install-redis-2-6-on-amazon-ec2-linux-ami-or-centos/
# and here: https://raw.github.com/gist/257849/9f1e627e0b7dbe68882fa2b7bdb1b2b263522004/redis-server
###############################################
# To use:
# wget https://raw.github.com/gist/2776679/04ca3bbb9f085b192f6aca945120fe12d59f15f9/install-redis.sh
# chmod 777 install-redis.sh
# ./install-redis.sh
###############################################
echo "*****************************************"
"""
This is a simple example of WebSocket + Tornado + Redis Pub/Sub usage.
Do not forget to replace YOURSERVER by the correct value.
Keep in mind that you need the *very latest* version of your web browser.
You also need to add Jacob Kristhammar's websocket implementation to Tornado:
Grab it here:
http://gist.github.com/526746
Or clone my fork of Tornado with websocket included:
http://github.com/pelletier/tornado
Oh and the Pub/Sub protocol is only available in Redis 2.0.0: