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
#pragma once | |
#include <iostream> | |
#include <string> | |
using namespace std; | |
struct Data { | |
unsigned long ID; | |
string name; | |
string surname; |
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 <fstream> | |
#include <string> | |
#include <ctime> | |
#define charB 66 | |
#define charS 83 | |
using std::fstream; | |
using std::string; | |
using std::getline; |
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
// ALGO2 IS1 212A LAB03 | |
// Michał Tymejczyk | |
// tm44537@zut.edu.pl | |
#include <iostream> | |
#include <cstdlib> | |
#include <cstdio> | |
#include <ctime> | |
#include <fstream> | |
#include <vector> |
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
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; |
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 <iostream> | |
#include <vector> | |
#include <utility> | |
#include <fstream> | |
#include <string> | |
#include <algorithm> | |
#include <iterator> | |
#include <numeric> | |
#include <chrono> |
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
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); |
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
// 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> |
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
// 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> |
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
{ | |
"title": "Snake by Michal Tymejczyk", | |
"screen": { | |
"resolution": [ | |
1280, | |
720 | |
], | |
"font": null | |
}, | |
"collisions": { |
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
module.exports = { | |
config: { | |
fontSize: 16, | |
fontFamily: 'Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace', | |
cursorColor: 'rgba(248,28,229,0.8)', | |
cursorShape: 'BLOCK', |
OlderNewer