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
#!/usr/bin/env bash | |
set -Eeuo pipefail | |
# -c, --context string context in the kubeconfig file of the PVC | |
# -k, --kubeconfig string path of the kubeconfig file of the PVC | |
# -R, --mount-read-only mount the PVC in ReadOnly mode (default false) | |
# -n, --namespace string namespace of the PVC | |
# -d, --dir string dir to mount to (defaults to /mnt) | |
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
// copy(JSON.stringify([...$('.topics .section:not(:first-child) .content .section .activityinstance>a')].map(it => ({ name: it.innerText + '.doc', href: it.href })))) | |
const data = [{ "name": "ะะตะบััั 1.1. ะะธะทะฝะฐัะฝะธะบะธ. ะัะฝะพะฒะฝั ะฟะพะฝัััั, ะฒะปะฐััะธะฒะพััั, ะพะฑัะธัะปะตะฝะฝั ะฒะธะทะฝะฐัะฝะธะบัะฒ.,\nะคะฐะนะป.doc", "href": "http://mdl.lntu.edu.ua/mod/resource/view.php?id=15192" }, { "name": "ะกะฐะผะพัััะนะฝะฐ ัะพะฑะพัะฐ.1.1 ะะธะทะฝะฐัะฝะธะบะธ.\nะคะฐะนะป.doc", "href": "http://mdl.lntu.edu.ua/mod/resource/view.php?id=15193" }, { "name": "ะะตะบััั 2.1. ะะฐััะธัั. ะัะฝะพะฒะฝั ะฟะพะฝัััั, ะฒะปะฐััะธะฒะพััั, ะดัั ะฝะฐะด ะผะฐััะธััะผะธ.\nะคะฐะนะป.doc", "href": "http://mdl.lntu.edu.ua/mod/resource/view.php?id=15194" }, { "name": "ะะตะบััั 2.2. ะะฑะตัะฝะตะฝะฐ ะผะฐััะธัั. ะ ะฐะฝะณ ะผะฐััะธัั.\nะคะฐะนะป.doc", "href": "http://mdl.lntu.edu.ua/mod/resource/view.php?id=15195" }, { "name": "ะกะฐะผะพัััะนะฝะฐ ัะพะฑะพัะฐ 2.1. ะะฐััะธัั.\nะคะฐะนะป.doc", "href": "http://mdl.lntu.edu.ua/mod/resource/view.php?id=15196" }, { "name": "ะะตะบััั 3.1. ะกะธััะตะผะธ ะปัะฝัะนะฝะธั ะฐะปะณะตะฑัะฐััะฝะธั ััะฒะฝัะฝั.\nะคะฐะนะป.doc", "href": "http://mdl.lntu.edu.ua/mod/resource/view.php?id=1 |
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
import sys | |
from functools import reduce | |
N = 4 | |
VARS = 'abcd' | |
mult = lambda a, b: a * b | |
def showN(i): | |
if i == 1: |
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
#!/bin/bash | |
if (( $# > 0 )); then | |
lovec.exe "$@" | |
else | |
lovec.exe . | |
fi | |
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 <stdio.h> | |
#include <stdint.h> | |
#include <math.h> | |
#define INPUT_KEY 0x4EBA // Input key (Russian) | |
#define OUTPUT_KEY 0x78CD // Output key (English) | |
#define CHUNK_SIZE 1024 * 1024 // 1MB | |
int main(int argc, char *argv[]) { |
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 intersect(r1, r2) { | |
if (r2.p1.x > r1.p2.x | |
|| r2.p2.x < r1.p1.x | |
|| r2.p1.y > r1.p2.y | |
|| r2.p2.y < r1.p1.y) { | |
return null; | |
} | |
return { |
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
//-------------------------------BEGIN CONFIG-------------------------------// | |
//#ifdef LOCAL | |
#define IO_FILES | |
//#else | |
//#define IO_STD | |
//#endif | |
//#define IO_INPUT_NAME "input.txt" | |
//#define IO_OUTPUT_NAME "output.txt" |
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 <bits/stdc++.h> | |
using namespace std; | |
using ull = unsigned long long; | |
ifstream in("input.txt"); | |
ofstream out("output.txt"); | |
int main() { | |
ull n; | |
in >> n; |