Skip to content

Instantly share code, notes, and snippets.

View tmaxmax's full-sized avatar
🎯
Focusing

Teodor Maxim tmaxmax

🎯
Focusing
View GitHub Profile
@tmaxmax
tmaxmax / 0-index.html
Last active August 26, 2025 02:18
Small tagged template literal function for generating DOM trees
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</script>
</head>
<body>
<script>
@tmaxmax
tmaxmax / lab.cxx
Last active October 20, 2021 13:48
Laborator 20.10.2021
#include <array>
#include <bitset>
#include <fstream>
#include <iomanip>
#include <utility>
static constexpr std::size_t NUMAR_MAXIM_VARFURI = 100;
template <std::size_t N>
class graf_t {
@tmaxmax
tmaxmax / 549-epidemie.cxx
Created October 20, 2021 11:36
Problema 549-Epidemie - pbinfo
#include <bitset>
#include <fstream>
#include <queue>
#include <utility>
#include <vector>
static constexpr auto NUMAR_MAXIM_VARFURI = 1000;
using Varfuri = std::vector<int>;
using Graf = std::vector<std::vector<int>>;
@tmaxmax
tmaxmax / graf.hxx
Last active September 22, 2021 08:47
#ifndef TEO_GRAF_HXX
#define TEO_GRAF_HXX
#include <sstream>
#include <stdexcept>
template <int N>
class Graf {
public:
constexpr Graf()
@tmaxmax
tmaxmax / main.cpp
Last active July 5, 2021 14:00
The Cherno university assignment using the algorithms library - 2.07.2021
#include <algorithm>
#include <array>
#include <iostream>
#include <string>
#include <vector>
class DataStructure {
public:
bool insert(std::string data) noexcept {
auto entry = find(data, [](const Entry& e) {
This file has been truncated, but you can view the full file.
{"context":{"logLevel":20,"namespace":"Importer","package":"ts-jest","version":"27.0.3"},"message":"creating Importer singleton","sequence":1,"time":"2021-06-10T09:01:36.992Z"}
{"context":{"actualVersion":"27.0.4","expectedVersion":">=27.0.0 <28","logLevel":20,"namespace":"versions","package":"ts-jest","version":"27.0.3"},"message":"checking version of jest: OK","sequence":2,"time":"2021-06-10T09:01:37.036Z"}
{"context":{"logLevel":20,"namespace":"ts-jest-transformer","package":"ts-jest","version":"27.0.3"},"message":"created new transformer","sequence":3,"time":"2021-06-10T09:01:37.036Z"}
{"context":{"logLevel":20,"namespace":"ts-jest-transformer","package":"ts-jest","version":"27.0.3"},"message":"created new transformer","sequence":4,"time":"2021-06-10T09:01:37.056Z"}
{"context":{"logLevel":30,"namespace":"ts-jest-transformer","package":"ts-jest","version":"27.0.3"},"message":"no matching config-set found, creating a new one","sequence":5,"time":"2021-06-10T09:01:38.558Z"}
{"context":{"config":{"automock":f
@tmaxmax
tmaxmax / 📊 Weekly development breakdown
Last active January 9, 2022 12:13
Weekly development breakdown
SQL 7 hrs 44 mins ███████████████▓░░░░ 64.7%
Makefile 2 hrs 15 mins ██████▓░░░░░░░░░░░░░ 18.9%
TypeScript 39 mins ████░░░░░░░░░░░░░░░░ 5.5%
Other 26 mins ███▓░░░░░░░░░░░░░░░░ 3.6%
cod județ
AB Alba
AG Argeș
AR Arad
B București
BC Bacău
BH Bihor
BN Bistrița-Năsăud
BR Brăila
BT Botoșani
@tmaxmax
tmaxmax / forward_list.hxx
Last active May 26, 2021 16:42
A linked list implementation in C++
#ifndef TEO_FORWARD_LIST_HXX_
#define TEO_FORWARD_LIST_HXX_
#include <algorithm>
#include <cstddef>
#include <cstring>
#include <iterator>
#include <numeric>
#include <stdexcept>
#include <type_traits>
@tmaxmax
tmaxmax / marcus.ts
Created March 13, 2021 04:55
A string grid created using a Javascript generator
interface GridProps {
/**
* The number of columns the grid should have
*/
readonly columns: number
/**
* The number of rows the grid should have
*/
readonly rows: number
/**