Skip to content

Instantly share code, notes, and snippets.

groups:
- name: ami
deadlinesUrl: https://gitlab.com/hse-cpp/hse-base-cpp/-/raw/main/deadlines/ami.yml
subgroups:
- name: 244-1
secret: ami-cpp-244-1
- name: 244-2
secret: ami-cpp-244-2
- name: 245-1
secret: ami-cpp-245-1
groups:
- name: ami
deadlinesUrl: https://gitlab.com/hse-cpp/hse-base-cpp/-/raw/main/deadlines/ami.yml
subgroups:
- name: 244-1
secret: ami-cpp-244-1
- name: 244-2
secret: ami-cpp-244-2
- name: 245-1
secret: ami-cpp-245-1
#include <cstdint>
#include <cstdio>
bool check() {
uint32_t a = 1;
uint32_t b = 1;
uint32_t c = 1;
while (true) {
while (true) {
while (true) {
{
"jsonrpc": "2.0",
"method": "textDocument/publishDiagnostics",
"params": {
"diagnostics": [
{
"code": "ovl_ambiguous_call",
"message": "Call to 'foo' is ambiguous",
"range": {
"end": {
#include <linux/perf_event.h>
#include <linux/hw_breakpoint.h>
#include <sys/syscall.h>
#include <sys/ioctl.h>
#include <unistd.h>
#include <stdexcept>
#include <optional>
namespace perf {
#include <linux/perf_event.h>
#include <linux/hw_breakpoint.h>
#include <sys/syscall.h>
#include <sys/ioctl.h>
#include <unistd.h>
#include <stdexcept>
#include <optional>
namespace perf {
#pragma once
#include "huffman.h"
#include "quantization.h"
#include "dct.h"
#include "mcu.h"
#include "octet.h"
#include "block.h"
#include <cstddef>
@BigRedEye
BigRedEye / Makefile
Last active September 7, 2021 04:35
Stupid driver
flatten_dirs:
find . -type f -wholename '*/*' -not -path './.git/*' | sed 's@^\./@@g' | grep / | xargs -n1 ./gistify.sh pack
fold_dirs:
ls | grep '%' | xargs -n1 ./gistify.sh unpack
driver_c:
$(CC) -c driver.c -o driver-c.o -Wall -Werror -fpic -std=c17 -O3
$(CC) driver-c.o -o libmydriver-c.so -shared -O3
rm driver-c.o
@BigRedEye
BigRedEye / test
Created April 18, 2021 13:56
test gif
1.txt
@BigRedEye
BigRedEye / calc.cpp
Last active February 23, 2021 21:20
Simple calculator in C++
#include <array>
#include <istream>
#include <limits>
#include <memory>
#include <optional>
#include <sstream>
#include <string>
#include <variant>
struct SyntaxError : public std::runtime_error {