Skip to content

Instantly share code, notes, and snippets.

View alex65536's full-sized avatar

Alexander Kernozhitsky alex65536

View GitHub Profile
@alex65536
alex65536 / penv.sh
Last active April 18, 2021 20:58
A small shell script to handle all your Python venvs
#!/bin/bash
#
# A small shell script to handle all your virtualenvs
#
# Copyright 2020-2021 Alexander Kernozhitsky <sh200105@mail.ru>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
@alex65536
alex65536 / anti.py
Last active August 28, 2021 20:22
Скрипт для добавления отрицаний в текст
#!/usr/bin/env python3
#
# This script is licensed under MIT license:
#
# Copyright (c) 2020 Alexander Kernozhitsky
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
@alex65536
alex65536 / postprocess.py
Last active March 23, 2020 13:03
A postprocessor for Yandex.Contest that can parse Polygon's problem.xml property files and extract groups from there.
#!/usr/bin/env python3
# A postprocessor for Yandex.Contest that can parse Polygon's problem.xml
# property files and extract groups from there.
#
# This script is licensed under MIT license:
#
# Copyright (c) 2020 Alexander Kernozhitsky
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
@alex65536
alex65536 / pwnedpasswords.sh
Last active August 28, 2021 20:18
Bash script to check the password using https://pwnedpasswords.com
#!/usr/bin/env bash
#
# The MIT License (MIT)
#
# Copyright (c) 2019 Alexander Kernozhitsky
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@alex65536
alex65536 / olymp.sty
Last active August 28, 2021 20:16
olymp.sty patched for Mogilev region olympiad
%
% Macros for the contest problems
% for MikTeX: use latex.exe
% License: https://github.com/GassaFM/olymp.sty/blob/master/LICENSE
% Authors: https://github.com/GassaFM/olymp.sty/blob/master/AUTHORS
%
% Patched by Alexander Kernozhitsky <sh200105@mail.ru>
% to be used on Belarusian olympiads
\ProvidesPackage{olymp}
@alex65536
alex65536 / learn_words.py
Last active August 28, 2021 20:13
A Python script that helps to learn words and phrases efficiently
#!/usr/bin/env python3
#
# A Python script to learn words and phrases efficiently
#
# Copyright 2018-2020 Alexander Kernozhitsky <sh200105@mail.ru>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
@alex65536
alex65536 / sqrtTree.hpp
Last active April 24, 2018 15:37
Sqrt-tree implementation (with single element modifications)
/*
* Sqrt-tree impelementation
*
* Time complexity:
* build: O(N * loglogN)
* update: O(sqrt(N))
* query: O(1)
*
* Memory usage: O(N * loglogN)
*
@alex65536
alex65536 / color.sh
Created March 22, 2018 14:47
Bash library for colorful text in the console
#!/bin/bash
#
# The MIT License (MIT)
#
# Copyright (c) 2017-2018 Alexander Kernozhitsky
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@alex65536
alex65536 / opentest.sh
Last active March 23, 2018 16:44
Suite for testing problems with open tests
#!/usr/bin/env bash
#
# The MIT License (MIT)
#
# Copyright (c) 2018 Alexander Kernozhitsky
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@alex65536
alex65536 / sb2ts.lpr
Last active August 28, 2021 19:58
Converter for Tester from solve.by packages
{
sb2ts - solve.by to Tester converter
Copyright (C) 2018 Alexander Kernozhitsky <sh200105@mail.ru>
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation; either version 2 of the License, or (at your option)
any later version.