Skip to content

Instantly share code, notes, and snippets.

View pomo-mondreganto's full-sized avatar
🎯
Focusing

Roman Nikitin pomo-mondreganto

🎯
Focusing
View GitHub Profile
@pomo-mondreganto
pomo-mondreganto / install_zsh.sh
Created March 15, 2020 14:50
Script for ZSH + Oh My ZSH installation
#!/bin/bash
sudo apt install -y git zsh curl tmux tree vim
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
sed -ier 's/ZSH_THEME=\"\w*\"/ZSH_THEME=\"agnoster\"/g' ~/.zshrc
sed -ier 's/plugins=(git)/plugins=(git tmux zsh-completions zsh-autosuggestions zsh-syntax-highlighting history pip docker)/g' ~/.zshrc
echo 'alias zshconfig="vim ~/.zshrc"' >> ~/.zshrc
echo "export EDITOR='vim'" >> ~/.zshrc
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
@pomo-mondreganto
pomo-mondreganto / Resolution.ipynb
Created October 29, 2019 20:43
Исчисление резолюций
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pomo-mondreganto
pomo-mondreganto / generator.py
Last active February 19, 2020 21:02
Matan BHW digit generator
#!/usr/bin/env python3
import lzma
import base64
import urllib.request
pi = lzma.decompress(base64.b64decode(b'/Td6WFoAAATm1rRGAgAhARYAAAB0L+Wj4E4gInhdABmMQtymKEbcBkAeJndQO9IkCbaE1Yh3QvtC83uVzG0DEO2f9PVOiNCQuES+3nu/11KgoSzoxHkIBOa4KGJDzUY1AfPVevwyx6ZjytfsuUxKINzM2oqx/TnkvS5waFcrOU3TVDcR+qeykOF5LN9yb7KLuWVMKW/9xEhtR77BHpUPfCTKz9O+dS9XkdWSmIKXvWYL7EoxWaM4J3mXGi4civuOV/d9G+/lMpPc20soGcm7A3/SgUT+cdtSkQNchxRR1Y8lNPa2gz18+REV5dk0v84YNIj6VZre7GKgJFXxFckc3+p4u5td23l+I5hKT0jxRLSECki3wF6l58aElpZmt3YELyq1dJplpxAFPcElXN7eyNQVbBYH9NzGYfcQDEET40DpxFWGZB2mEHzJsdffQ0YEjiWzym9Vg8ApaDtZVE7phSbBFCwCFH0BrTzGaA9hP8qXCq7H/WabjzeEjgSE7M0iqIQXsrcM58l6S4ByEEAolUqHQYbt0G9iV5P8G9zXDZnQyarSCYXdT3XprS8laqFyz9IMAGnb4A5vqemkBqEBr3mdCMYV1XGgyDYZfVSA+lZSLkbaEltQ9FmB3V4HcuVX210HM2wRCdGE73KUs7PEZpoBb5IG7DXGmDiKAJZk3cc+B6RhNlA2q0V3ZHw43XtTotGTxnAAaWuXV8ct/PBYuS/J1NdKPlnTxiZn97mryzH/66sq42otHsPazcQLSoLY6Ycwx86N5Vfy72T/w4niFUJ/0pxd4nUF7hki2a6aY2ftSV9Ai8BsjkNMbovvrbHSwACRl+2MMIZnoHn1pZamWdlKD4WxTMRD23MgFl2oLpVKpvfZxCl8TBaqLs6F4C0naX1Lj/k8HEIo14S
@pomo-mondreganto
pomo-mondreganto / BHW 4.ipynb
Last active March 18, 2019 10:23
Task 23 (5) from BHW 4
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pomo-mondreganto
pomo-mondreganto / BHW2.ipynb
Last active March 3, 2019 10:58
БДЗ 2, задача 14
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pomo-mondreganto
pomo-mondreganto / web250.ipynb
Created November 17, 2018 18:33
MIEM CTF web250
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pomo-mondreganto
pomo-mondreganto / main.cpp
Created October 29, 2018 11:12
Linalg IHW 2 task 4
#include <iostream>
#include <algorithm>
#include "matrix.h"
#include "polynomial.h"
#include "permutation.h"
using namespace std;
using P_T = Polynomial<int>;
#define x P_T(make_pair(1, 1))
@pomo-mondreganto
pomo-mondreganto / main.cpp
Created October 29, 2018 11:07
Linalg IHW 2 task 3
#include <iostream>
#include <algorithm>
#include "matrix.h"
#include "polynomial.h"
#include "permutation.h"
using namespace std;
using P_T = Polynomial<int>;
#define x P_T(make_pair(1, 1))
@pomo-mondreganto
pomo-mondreganto / main.cpp
Created October 29, 2018 10:40
Linalg IHW 2 task 2
#include <iostream>
#include "permutation.h"
using namespace std;
int main() {
vector<size_t> vect;
for (size_t i = 18; i < 324; ++i)
vect.push_back(i);
@pomo-mondreganto
pomo-mondreganto / main.cpp
Last active November 28, 2018 10:53
Linalg IHW 2 task 1
#include <iostream>
#include "permutation.h"
#include "polynomial.h"
using namespace std;
int main() {
Permutation P1(vector<size_t>{1, 4, 8, 5, 2, 3, 6, 7});
Permutation P2(vector<size_t>{7, 3, 4, 8, 2, 5, 1, 6});