Skip to content

Instantly share code, notes, and snippets.

View aolo2's full-sized avatar

Алексей Олохтонов aolo2

View GitHub Profile
#include <gcc-plugin.h>
#include <plugin-version.h>
#include <coretypes.h>
#include <tree.h>
#include <gimple.h>
#include <gimple-iterator.h>
#include <tree-pass.h>
#include <context.h>
#include <basic-block.h>
#include <ssa.h>
package Lab4
class MegaQueue[T] private (val L1 : List[T], val L2: List[T]) {
def this(L : List[T]) {
this(Nil, L)
}
def enqueue(elem: T): MegaQueue[T] = {
new MegaQueue[T](L1, elem :: L2)
}

Ролевая модель

Коллекции

users Данные пользователей. Структура:

Поле Тип Описание
_id bsonId Идентификатор MongoDb
login string Логин пользователя
@aolo2
aolo2 / lab3.cpp
Created October 10, 2018 23:28
mnk
#include <iostream>
#include <cstdint>
#include <cmath>
#include <vector>
const std::vector<float> xs = {129.0f, 240.0f, 341.0f, 434.0f, 527.0f, 618.0f};
const std::vector<float> ys = {5939.0f, 7634.0f, 10986.0f, 13862.0f, 16094.0f, 17917.0f};
const uint32_t n = 6;
static std::vector<float>
@aolo2
aolo2 / lab4.cpp
Created October 11, 2018 00:12
RK4
#include <iostream>
#include <cstdint>
#include <cmath>
#include <vector>
/*
* y''(x) + p(x) * y'(x) + q(x) * y(x) = f(x)
* y''(x) + y'(x) - y(x) = f(x)
* y(x) = e^x, p(x) = 1, q(x) = -1
* Начальные условия з. Коши:

== Курсач ==

  • ESCAPE ALL HTML!!!!
  • меню вставлять через getelementbyId не забыть валидацию editbox запроса (как и всех остальных) индексы в монге!

Зарегистриваться могут только студенты. Остальных пользователей можно только создать (во избежание контрафактов)

@aolo2
aolo2 / main.c
Created November 5, 2018 21:50
#include <stdint.h>
#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
#define GLFW_INCLUDE_VULKAN
#include <GLFW/glfw3.h>
#include <gsl/gsl_matrix.h>
// #include <gsl/gsl_matrix.h>
THIS = $(HOME)/Documents/code/study/vulkan
VULKAN_SDK_PATH = $(THIS)/1.1.85.0/x86_64
CFLAGS = -Wall -Wextra -pedantic -I$(VULKAN_SDK_PATH)/include
LDFLAGS = -L$(VULKAN_SDK_PATH)/lib `pkg-config --static --libs glfw3` -lvulkan
all:
gcc $(CFLAGS) main.c $(LDFLAGS)
debug:
gcc $(CFLAGS) main.c -DDEBUG $(LDFLAGS)
@aolo2
aolo2 / fasta.c
Last active December 10, 2018 12:32
#include "utils.c"
#include <errno.h>
#include <sys/sysinfo.h>
const uint32_t DIAGONAL_CUTOFF = 10; // NOTE: diagonals with this or more 2-word matches are checked
const uint32_t DIAGONAL_OFFSET = 32;
const uint32_t MAX_GOOD_PLOTS = 100;
const uint32_t EXPECTED_GOOD_DIAGONAL_PIECES = 20;
const int32_t RESCORE_CUTOFF = 50;
@aolo2
aolo2 / utils.c
Last active December 10, 2018 12:32
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include <pthread.h>
#include <assert.h>
#include "vector.c"
#define MIN(a,b) (((a)<(b))?(a):(b))