Skip to content

Instantly share code, notes, and snippets.

View rdbuf's full-sized avatar

Ilya Pikulin rdbuf

View GitHub Profile
Add-Type -AssemblyName System.Windows.Forms
while ($true)
{
$Pos = [System.Windows.Forms.Cursor]::Position
$x = $pos.X + 1
$y = $pos.Y + 1
[System.Windows.Forms.Cursor]::Position = New-Object System.Drawing.Point($x, $y)
[System.Windows.Forms.Cursor]::Position = New-Object System.Drawing.Point($Pos.X, $Pos.Y)
Start-Sleep -Seconds 10
@rdbuf
rdbuf / mousemove.ps1
Created September 4, 2021 20:07 — forked from MatthewSteeples/mousemove.ps1
Powershell Script to keep the mouse moving
Add-Type -AssemblyName System.Windows.Forms
while ($true)
{
$Pos = [System.Windows.Forms.Cursor]::Position
$x = ($pos.X % 500) + 1
$y = ($pos.Y % 500) + 1
[System.Windows.Forms.Cursor]::Position = New-Object System.Drawing.Point($x, $y)
Start-Sleep -Seconds 10
}
import numpy as np
import matplotlib.pyplot as plt
plt.rcParams['figure.facecolor'] = '1.0'
plt.rcParams['figure.constrained_layout.use'] = True
x = np.linspace(0, 100)
y = x**3
res = np.polyfit(x, y, deg=5)
f = np.poly1d(res)
// Processing code by Etienne JACOB
// motion blur template by beesandbombs
int[][] result;
float t, c;
float ease(float p) {
return 3*p*p - 2*p*p*p;
}
@rdbuf
rdbuf / comp
Created January 16, 2020 20:25
compiler command line for contests
#!/bin/bash
clang++ -fsanitize=address -fsanitize=undefined -g -std=c++17 "$1" -o "${1%.*}"
@rdbuf
rdbuf / dl-lectoriy.py
Last active October 13, 2019 21:49
Some dumb lecture downloader for mipt.lectoriy.ru
import argparse
import shutil
import os.path
import sys
import requests
from urllib3.util.retry import Retry
from requests.adapters import HTTPAdapter
from selenium import webdriver
@rdbuf
rdbuf / untitled.hs
Last active May 19, 2019 15:39
Beautiful combinatorial search
import Control.Monad
import Data.Function
data Combination = Combination Int Int Int Int
deriving Show
f (Combination x1 x2 x3 x4) = x1 + x2 + x3 - x4 >= 5
comb :: Maybe [Combination]
comb = sequence $ toComb <$> replicateM 4 [1..6] where
@rdbuf
rdbuf / mipt.md
Last active September 19, 2019 20:05
Учебные материалы

1 курс

Учебники

  • Бесов О.В. Лекции по математическому анализу. Часть 1
  • Беклемишев Д.В. Аналитическая геометрия и линейная алгебра
  • Иродов И.Е. Основные законы механики
  • Кириченко Н.А. Термодинамика, статистическая и молекулярная физика

Видео

@rdbuf
rdbuf / Untitled.ipynb
Last active March 9, 2019 19:53
Phystech.Genesis - Кировский завод
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rdbuf
rdbuf / segtree.hh
Last active February 18, 2019 21:14
Segment Tree (only query is implemented)
#include <limits>
#include <cmath>
#include <vector>
#include <algorithm>
#include <cstdint>
#if __cplusplus >= 201703
#define IF_CONSTEXPR if constexpr
#else
#define IF_CONSTEXPR if