Skip to content

Instantly share code, notes, and snippets.

@maestrow
maestrow / readme.md
Created April 13, 2020 14:21
vscode automatically opens cli.js

VSCode automatically opens cli.js

This problem will occur in two cases:

  1. when vscode is not started, vscode will automatically start and open the cli.js file
  2. when I use vscode normally, a new window will automatically open with the content of the cli.js file

Same situation is described in the following guthub issues:

@maestrow
maestrow / gist:d7549a8fd5fe218cf277e752c723a147
Last active March 15, 2020 11:34
Web Scrapping with NodeJs
@maestrow
maestrow / gdrive.sh
Created January 22, 2020 17:56
gdrive.sh
# Usage: gdrive.sh FILEID local_file_path
# Steps to make gdrive link downloadable:
# 1. Select a file that is need to be downloaded and do right click.
# 2. Click Share. A dialog box will appear.
# 3. Click Advance in the right bottom corner.
# 4. Click on the Change.. under who has access.
# 5. Make it On- Public on the web.
# 6. Click Save button.
# source: https://medium.com/@acpanjan/download-google-drive-files-using-wget-3c2c025a8b99
@maestrow
maestrow / readme.md
Last active August 31, 2021 21:14
BI and Analytics platforms

BI and Analytics platforms:

  • https://superset.apache.org/ - Apache Superset (incubating) is a modern, enterprise-ready business intelligence web application
  • https://www.metabase.com/ - Metabase is the easy, open source way for everyone in your company to ask questions and learn from data
  • https://cube.dev/ - Open Source Analytics Framework. A complete open source analytics solution: visualization agnostic frontend SDKs and API backed by analytical server infrastructure

Real time dashboadrs:

  • https://grafana.com/ - Grafana is the open source analytics & monitoring solution for every database

Schedulers:

@maestrow
maestrow / post.md
Created September 20, 2019 10:50
element.innerHTML and element.outerHTML returns valid XHTML

element.innerHTML and element.outerHTML returns valid XHTML.

To test it, create test.html:

<body>
<div>
    <span>
    <p>para 1
    <p>para 2
@maestrow
maestrow / post.md
Last active April 15, 2019 16:01
Open Data | Открытые данные

Родительский проект: Черновики аналитика

  • В общем вбив в гугле "Открытые данные" находится довольно много ссылок на сайты госструктур, предоставляющие открытые данные. Сайтов много, данных много. Их общая проблема - плохая структурированность и сложность поиска. Трудно найти среди этого многообразия то, что нужно.
  • https://data.gov.ru/opyt-ispolzovaniya-otkrytyh-dannyh - зарубежные и российские примеры успешного использования открытых данных. Тут я нашел ссылку на Сервис "Российские Школы" - russianschools.ru, который теперь https://goodschools.ru.
  • https://goodschools.ru. Проект сыроват. Но интересен. Сервис был создан в начале 2015 года в рамках всероссийскиого конкурса по открытым финансовым данным "BudgetApps", организованным Министерством Финансов РФ, и сразу победил, взяв "Приз зрительских симпатий". По ссылке "О проекте" видим Партнеры проекта: АНО "Инфокультура"
  • https://www.infoculture.ru/about/ Видим, что эта организация делает то, что было в моих мыслях о пр
@maestrow
maestrow / readme.md
Last active November 19, 2024 08:28
WinForms with F#

How to use F# in WinForms application?

Visual Studio Community Edition 2017 has F# project template, but it hasn't forms desigler for it, designer exists only in C# WinForms project template. To get round this inconvenience, we can create two projects: C# WinForms (only to use VS forms designer) and F#, where we put all logic. See below for more detailed instructions and animated gif.

Create solution with C# and F# projects in Visual Studio

  • Create New F# Library Project.
  • Create New C# Windows Forms Project. I prefer add ".UiDesign" suffix, because this project exists only to use VS Forms Designer.
  • For C# project change Output type property to Class library, for F# - to Windows Application.
  • Add references to F# project: