A Pen by Stas Ukolov on CodePen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set-ExecutionPolicy RemoteSigned -scope CurrentUser | |
iwr -useb get.scoop.sh | |
scoop install git | |
scoop bucket add extras | |
scoop bucket add versions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
netsh advfirewall firewall add rule name="Cisco Packet Tracer" dir=out program="C:\Program Files\Cisco Packet Tracer 8.0\bin\PacketTracer.exe" action=block |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Order Statistic | |
// https://stepik.org/lesson/12564/step/8?unit=2992 | |
#include <utility> | |
#include <vector> | |
template <typename T> | |
T kth(std::vector<T>& v, size_t k) { | |
size_t L = 0, R = v.size(); | |
while (L + k < R) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function range(from, to) { | |
return { next: nextPromise, [Symbol.asyncIterator]: iterator } | |
function next() { | |
return from <= to | |
? { done: false, value: from++ } | |
: { done: true } | |
} | |
function iterator() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Z-combinator | |
// https://habr.com/ru/post/322052/ | |
// | |
const Z = f => (f => f(f))(z => f(x => z(z)(x))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Числа Фибоначчи | |
#include <ctime> | |
#include <iostream> | |
#include <vector> | |
int fib(int n); | |
int fibM(int n); | |
int fibM(int n, std::vector<int>&); | |
int fibSM(int n); | |
int fibF(int n); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <cmath> | |
int main() { | |
std::cout << "Введите два числа:"; | |
int a, b; | |
std::cin >> a >> b; | |
std::cout << a << " + " << b << " = " << a + b << std::endl; | |
std::cout << a << " - " << b << " = " << a - b << std::endl; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dconf write /org/gnome/desktop/input-sources/xkb-options "['grp_led:scroll', 'numpad:microsoft']" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// A launch configuration that launches the extension inside a new window | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Extension", | |
"type": "extensionHost", |
NewerOlder