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
public class RecordInput | |
{ | |
public string FullName { get; set; } | |
public string Action { get; set; } | |
public DateTime Time { get; set; } | |
public void Deconstruct(out string name, out string action, out DateTime time) | |
=> (name, action, time) = (FullName, Action, Time); | |
public override string ToString() |
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
public static List<RecordInput> GetInputRecords(string file) | |
{ | |
using var reader = new StreamReader(file, Encoding.UTF8); | |
using var csv = new CsvReader(reader, CultureInfo.InvariantCulture); | |
csv.Configuration.RegisterClassMap<RecordInputMap>(); | |
var records = csv.GetRecords<RecordInput>(); |
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', |
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
// 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
// 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
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
#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
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
// ALGO2 IS1 212A LAB03 | |
// Michał Tymejczyk | |
// tm44537@zut.edu.pl | |
#include <iostream> | |
#include <cstdlib> | |
#include <cstdio> | |
#include <ctime> | |
#include <fstream> | |
#include <vector> |