Skip to content

Instantly share code, notes, and snippets.

View rndD's full-sized avatar
🌽

Alexey Kalmakov rndD

🌽
  • Clickhouse Inc
  • Berlin
View GitHub Profile
@MrMeison
MrMeison / MicexApi.gs
Created January 8, 2020 20:53
Скрипт для Google Sheets для получения данных индекса, акциях и облигациях
var MicexApi = {};
// список id разных типов ЦБ
var BOARD_ID = {
STOCK: 'TQBR',
ETF: 'TQTF',
BONDS: 'EQOB'
};
(function(App) {
var MICEX_ENTRYPOINT = 'https://iss.moex.com/iss/';
var SOURCE_TAB_NAME = "Портфель";
var TIKER_RANGE = "A8:B120";
var MICEX_RATES_PAGE_NAME = "MicexRateTickers";
var MICEX_INDEX_PAGE_NAME = "IMOEX";
function onOpen() {
SpreadsheetApp.getUi()
.createMenu('MICEX Updater')
.addItem('Update Rates', 'updateRates')
.addItem('Update Index', 'updateMecixIndex')
@jd7h
jd7h / script.py
Created February 3, 2020 16:11 — forked from efonte/script.py
Disco Elysium texts
import re
strings = set()
with open('texts.txt', mode='r', encoding='utf-8') as file_input:
content = file_input.read()
regExStr = r'^\s*\d string title = "(?:tooltip\d+|Name|Dialogue Text)"\n\s*\d string value = "((?!(START|input|\w+\(\)|\!\(\w+\(\)\))).+)"$'
compiled = re.compile(regExStr, re.MULTILINE)
matched = compiled.finditer(content)
@nerevar
nerevar / moex_dividend_yield_2018_2019_2020.csv
Last active March 22, 2020 09:24
Дивиденды, выплаченные компаниями в 2018-2019-2020, взято с https://investmint.ru/
ticker datetime close dividend percent
NLMK 2018-01-09 153.0 5.13 3.35
AVAN 2018-01-09 520.0 6.2 1.19
KAZTP 2018-01-08 84.7 1.0 1.18
AKRN 2018-01-23 4180.0 112.0 2.68
PHOR 2018-03-12 2491.0 21.0 0.84
HIMCP 2018-03-25 6.03 0.12 1.97
GCHE 2018-04-03 1310.0 75.07 5.73
AGRO 2018-04-13 637.0 16.7 2.62
NVTK 2018-05-03 770.0 8.0 1.04
@xem
xem / JSGameFramework2020.html
Last active November 11, 2023 19:53
JS game framework 2020
<body style=margin:0>
<canvas id=a>
<script>
// initialize 2D canvas (c)
// initialize game state (s)
// initialize keys states (u,r,d,l for directions, k for all the keyboard)
c=a.getContext`2d`,k=[u=r=d=l=s=0]
// (initialize your global variables here)
@fernospam
fernospam / Amazfit Bip-U.md
Last active April 23, 2024 06:28
How to create watch faces for Amazfit Bip U (also GTR and GTS)

Creación de Esferas para Amazfit Bip U (también GTR y GTS)

A continuación se relata lo mínimo necesario que hay que saber para crear esferas para varios relojes Amazfit. La explicación esta especialmente indicada para el modelo Bip-U, del cual apenas hay nada en internet, pero la mayoría de pasos son aplicables a otros modelos como GTS y GTR en sus distintas variedades, pues se utilizan las mismas herramientas.

Acceso a la app de creación de la esfera

Las esferas de varios modelos de Amazfit utilizan la app para este propósito que se encuentra en la web de Huami (los relojes Xiaomi, Amazfit y Zepp los fabrica Huami).

Primero hay que darse de alta en Huami como developer (descripción en https://amazfitwatchfaces.com/forum/viewtopic.php?t=2090)

@rndD
rndD / sendgrid-webhook-events.type.ts
Last active June 5, 2024 18:37
Sendgrid webhook events ts type
// @see https://docs.sendgrid.com/for-developers/tracking-events/event
// There is a mistake in the offical doc. Category is array of strings. I took it from the real webhook call.
type BaseSendgridEvent = {
email: string;
timestamp: number;
'smtp-id': string;
category: string | string[];
sg_event_id: string;
sg_message_id: string;