Skip to content

Instantly share code, notes, and snippets.

View MichaelStett's full-sized avatar

Michał Tymejczyk MichaelStett

  • Kongsberg
  • Szczecin
  • 10:11 (UTC +01:00)
View GitHub Profile
@MichaelStett
MichaelStett / Data.h
Last active October 2, 2019 10:24
List Two Way
#pragma once
#include <iostream>
#include <string>
using namespace std;
struct Data {
unsigned long ID;
string name;
string surname;
@MichaelStett
MichaelStett / main.cpp
Created October 10, 2019 19:22
MyStruct
#include <fstream>
#include <string>
#include <ctime>
#define charB 66
#define charS 83
using std::fstream;
using std::string;
using std::getline;
@MichaelStett
MichaelStett / main.cpp
Created October 25, 2019 06:05
Skip List
// ALGO2 IS1 212A LAB03
// Michał Tymejczyk
// tm44537@zut.edu.pl
#include <iostream>
#include <cstdlib>
#include <cstdio>
#include <ctime>
#include <fstream>
#include <vector>
@MichaelStett
MichaelStett / main.cpp
Created November 12, 2019 12:27
Reverse bits unsigned char
unsigned char func(unsigned char input) {
unsigned char output = 0;
unsigned char mask = 0x80;
while (input != 0) {
if (input & 0x01)
output += mask;
input >>= 1;
mask >>= 1;
@MichaelStett
MichaelStett / main.cpp
Created January 17, 2020 01:59
Union Find & Kruskal
#include <iostream>
#include <vector>
#include <utility>
#include <fstream>
#include <string>
#include <algorithm>
#include <iterator>
#include <numeric>
#include <chrono>
@MichaelStett
MichaelStett / gaussseidel.m
Created January 20, 2020 12:13
Find min in Gradient Matlab
close all; clear all; clc;
eps = 0.01;
x0 = -4;
y0 = -4;
F = @(x,y)(x.^2).*2 + y.^2 + x.*y - x.*6 - y.*5 + 8;
x = linspace(-5, 5);
y = linspace(-5, 5);
@MichaelStett
MichaelStett / lab10.c
Created January 22, 2020 20:08
SO Lab 10
// SO IS1 212A LAB04
// Michal Tymejczyk
// tm44537@zut.edu.pl
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <pthread.h>
#include <time.h>
@MichaelStett
MichaelStett / lab11.c
Created January 22, 2020 20:08
SO Lab 11
// SO IS1 212A LAB05
// Michal Tymejczyk
// tm44537@zut.edu.pl
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <Windows.h>
#include <time.h>
#include <stdbool.h>
@MichaelStett
MichaelStett / settings.json
Last active June 18, 2020 14:44
Snake in Python
{
"title": "Snake by Michal Tymejczyk",
"screen": {
"resolution": [
1280,
720
],
"font": null
},
"collisions": {
@MichaelStett
MichaelStett / .hyper.js
Created March 17, 2020 22:59
Hyper settings
module.exports = {
config: {
fontSize: 16,
fontFamily: 'Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace',
cursorColor: 'rgba(248,28,229,0.8)',
cursorShape: 'BLOCK',