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/python3 | |
from pathlib import Path | |
import sys | |
import subprocess | |
import argparse | |
import tempfile | |
def compile_executables_with_cmake(cmakelists_dir: Path, output_dir: Path): | |
cmakelists_dir = cmakelists_dir.absolute() |
Данный репозиторий предназначен для сдачи на проверку заданий из класса ("дорешек") в 2019-2020 учебном году.
Этот репозиторий будет виден только вам и проверяющим, поэтому вся активность будет происходить внутри него.
Для сдачи вам нужен будет git
, инструкцию по установке можно найти вот тут.
Данный репозиторий предназначен для сдачи на проверку заданий из класса ("дорешек") в 2018-2019 учебном году.
Этот репозиторий будет виден только вам и проверяющим, поэтому вся активность будет происходить внутри него.
Для сдачи вам нужен будет git
, инструкцию по установке можно найти вот тут.
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 javax.script.Invocable; | |
import javax.script.ScriptEngine; | |
import javax.script.ScriptEngineManager; | |
import javax.script.ScriptException; | |
import java.io.InputStreamReader; | |
public class JavascriptBeautifierForJava { | |
// my javascript beautifier of choice | |
private static final String BEAUTIFY_JS_RESOURCE = "beautify.js"; |
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
var minutesToPeriod = function (minutes) { | |
return dateTime.toPeriod(minutes * 1000); | |
}; | |
var periodToMinutes = function (period) { | |
if (!period) { | |
return 0; | |
} | |
return (period.getSeconds() + 60 * (period.getMinutes() + 60 * (period.getHours() + 24 * (period.getDays() + 7 * period.getWeeks())))); |
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
\documentclass{article} | |
% General document formatting | |
\usepackage[margin=0.7in]{geometry} | |
\usepackage[parfill]{parskip} | |
\usepackage[utf8]{inputenc} | |
\usepackage[russian]{babel} | |
% Related to math | |
\usepackage{amsmath,amssymb,amsfonts,amsthm} | |
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 "hashtable.h" | |
#include <unordered_map> | |
using namespace cpp_assignment; | |
struct cpp_assignment::hash_table { | |
std::unordered_map<int, int> map; | |
}; | |
hash_table* cpp_assignment::create() { |