Skip to content

Instantly share code, notes, and snippets.

Avatar

Дѣаволъ bopoh13

  • GPG: 0xB6996306
View GitHub Profile
View senderForm.gs
// Открытие сайдбара
function showSidebar() {
// Подключаем Bootstrap
let sidebarHTML = '<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">';
// Создаём форму - без jquery
sidebarHTML += '<form style="padding: 20px;text-align:center;">\
<div class="form-group">\
<label for="name">Имя</label>\
<input type="text" class="form-control" id="name" name="name" value="">\
@bopoh13
bopoh13 / gpg-signing.md
Last active Jun 25, 2021 — forked from xavierfoucrier/gpg-signing.md
GPG signing with Git and Github Desktop
View gpg-signing.md

Hi Github users,

You can now signed your commits on Github using at least Git 2.18.0 and Github Desktop 1.6.1.

You can find out a GPG key gpg --list-secret-keys --keyid-format LONG and export it to a file gpg --armor --export-secret-key -a YOUR_GITHUB_LOGIN by skipping the first point.

  1. Generate a GPG key and add it to Github: https://help.github.com/articles/generating-a-new-gpg-key (if you don't want to type a passphrase on every commit, you need to press "Enter" when the console will prompt you to type a passphrase)
@bopoh13
bopoh13 / settlements.csv
Last active Oct 13, 2019
Check locations for OSM
View settlements.csv
Геопоиск Область Район Метка района OSM Поселение Название старое Метка имени OSM Имя справочно Тип справочно
+ Республика Башкортостан Аскинский район + Аскинский сельсовет с Аскино + Аскино с
+ Республика Башкортостан Белокатайский район - Утяшевский сельсовет д Нижнеутяшево + Нижнеутяшево д
+ Республика Башкортостан Дуванский район + Вознесенский сельсовет с Тастуба + Тастуба с
+ Республика Башкортостан Зианчуринский район + Исянгуловский сельсовет с Исянгулово + Исянгулово с
+ Республика Башкортостан Зианчуринский район - Суренский сельсовет с Кугарчи + Кугарчи с
+ Республика Башкортостан Зианчуринский район + Тазларовский сельсовет с Тазларово + Тазларово с
+ Республика Башкортостан Зилаирский район - Бердяшский сельсовет с Бердяш + Бердяш с
+ Республика Башкортостан Караидельский район + Караидельский сельсовет с Караидель + Караидель с
@bopoh13
bopoh13 / pre-commit.sh
Last active Sep 13, 2019 — forked from rlee287/pre-commit.sh
Short git pre-commit hook to remove BOM headers desktop/desktop#3768
View pre-commit.sh
#!/bin/sh
#
# A hook script to remove BOM headers in Windows
echo "Running pre-commit BOM removal"
trap ctrl_c INT
ctrl_c ()
{
@bopoh13
bopoh13 / brevis_en.csv
Last active Jun 6, 2020
List of 🆎 abbreviations, 🅰️ acronyms, 🅱️ backronyms
View brevis_en.csv
Type Abbr Meaning
🆎 ill AIDS acquired immune deficiency syndrome
🆎 abb dct document
🆎 dep FBI Federal Bureau of Investigation
🆎 tec GPS Global Positioning System
🅰️ tec internet interconnected networks
🅰️ dct ISO International Organization for Standardization
🅰️ tec laser light amplification by stimulated emission of radiation
🆎 vag LGBT lesbian, gay, bisexual, and transgender
@bopoh13
bopoh13 / TrialFactorisation.rb
Last active Aug 28, 2018
Revision 3 calcs to n = 2**18 - 1
View TrialFactorisation.rb
#require 'prime'
include Math
print "\uFEFF[#{RUBY_VERSION}]\n"
# Fixnum < 2**30 <= Bignum
n = rand(9999..375999) # 25326001 ## Memory limit exceeded
m = 2**n - 1 #! n != Bignum
def prime? num
# For larger values method performs significantly slower
View MatrixR{i,j}.bas
' Special matrix R(i, j) (https://habrahabr.ru/post/336684/)
Option Explicit
Option Base 1
'12345678901234567890123456789012345bopoh13@ya67890123456789012345678901234567890
Function getR(p() As Double, q() As Double) As Double
Dim i As Integer, j As Integer
Dim Rx As Double, Ry As Double, Rz As Double
Dim R(5000, 5000) As Double, begin As Double
@bopoh13
bopoh13 / PorterStemmer.bas
Last active May 26, 2020
Porter Stemmer RUS in VISUAL BASIC 6
View PorterStemmer.bas
' It follow the algorithm "stem_Unicode.sbl" definition presented in:
' Porter, 1980, An algorithm for suffix stripping, Program, Vol. 14, no. 3,
' pp 130-137, (http://snowball.tartarus.org/algorithms/russian/stemmer.html)
' TO USE THE PROGRAM CALL THE FUNCTION PORTERSTEMMERRU.
' THE WORD TO BE STEMMED SHOULD BE PASSED AS THE ARGUEMENT.
' THE STRING RETURNED BY THE FUNCTION IS THE STEMMED WORD.
Option Explicit
Option Base 0
@bopoh13
bopoh13 / Square_root.bas
Last active Apr 19, 2019
Calculating the square root of a natural number
View Square_root.bas
Option Explicit
'12345678901234567890123456789012345bopoh13@ya67890123456789012345678901234567890
Function Square_root_Diophantine(ByVal Square_number As Long) As Currency
Dim Number As Integer: Const Rank_places As Long = 10 ^ 2
Do While Square_number > Number
Number = Number + 1
Square_number = Square_number - 2 * Number
Loop: Square_root_Diophantine = Number ' Square_root for N