diff --git a/C/CS/ContainerApp - Gijs van Maanen.zip b/C/CS/ContainerApp - Gijs van Maanen.zip deleted file mode 100644 index c661a4a..0000000 Binary files a/C/CS/ContainerApp - Gijs van Maanen.zip and /dev/null differ diff --git a/C/CS/Starter_assignment.zip b/C/CS/Starter_assignment.zip deleted file mode 100644 index 26a1eca..0000000 Binary files a/C/CS/Starter_assignment.zip and /dev/null differ diff --git a/C/CS/Starter_assignment/.idea/.idea.Starter_assignment/.idea/.gitignore b/C/CS/Starter_assignment/.idea/.idea.Starter_assignment/.idea/.gitignore deleted file mode 100644 index 3c841d4..0000000 --- a/C/CS/Starter_assignment/.idea/.idea.Starter_assignment/.idea/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml -# Rider ignored files -/contentModel.xml -/projectSettingsUpdater.xml -/.idea.Starter_assignment.iml -/modules.xml -# Editor-based HTTP Client requests -/httpRequests/ -# Datasource local storage ignored files -/dataSources/ -/dataSources.local.xml diff --git a/C/CS/Starter_assignment/.idea/.idea.Starter_assignment/.idea/encodings.xml b/C/CS/Starter_assignment/.idea/.idea.Starter_assignment/.idea/encodings.xml deleted file mode 100644 index df87cf9..0000000 --- a/C/CS/Starter_assignment/.idea/.idea.Starter_assignment/.idea/encodings.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/C/CS/Starter_assignment/.idea/.idea.Starter_assignment/.idea/indexLayout.xml b/C/CS/Starter_assignment/.idea/.idea.Starter_assignment/.idea/indexLayout.xml deleted file mode 100644 index 7b08163..0000000 --- a/C/CS/Starter_assignment/.idea/.idea.Starter_assignment/.idea/indexLayout.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/C/CS/Starter_assignment/Archive.zip b/C/CS/Starter_assignment/Archive.zip deleted file mode 100644 index e7347c5..0000000 Binary files a/C/CS/Starter_assignment/Archive.zip and /dev/null differ diff --git a/C/CS/Starter_assignment/Course.cs b/C/CS/Starter_assignment/Course.cs deleted file mode 100644 index 9ac8887..0000000 --- a/C/CS/Starter_assignment/Course.cs +++ /dev/null @@ -1,74 +0,0 @@ -namespace Starter_assignment; - -class Course { - private List students = new List(); - private Dictionary> groups = new Dictionary>(); - private int groupCounter = 1; - - public void AddStudent(string name, int studentNumber) { - name = name.Trim(); - - foreach (Student student in students) { - if (student.GetStudentNumber() == studentNumber) { - Console.WriteLine("Student number must be unique."); - return; - } - } - - string groupName = groups.Keys.LastOrDefault(); - if (groupName == null || groups[groupName].Count >= 3) { - groupName = $"PG{groupCounter}"; - groups[groupName] = new List(); - groupCounter++; - } - - Student newStudent = new Student(name, studentNumber, groupName); - students.Add(newStudent); - groups[groupName].Add(newStudent); - Console.WriteLine($"Student {name} added successfully to {groupName}."); - } - - public void ViewAllStudents() { - foreach (Student student in students) { - Console.WriteLine(student.GetInfo()); - } - } - - public void ViewAllGroups() { - foreach (KeyValuePair> group in groups) { - Console.WriteLine(group.Key); - } - } - - - public void SearchByStudentNumber(int studentNumber) { - Student foundStudent = null; - foreach (Student student in students) { - int currentStudentNumber = student.GetStudentNumber(); - if (currentStudentNumber == studentNumber) { - foundStudent = student; - break; - } - } - if (foundStudent != null) { - Console.WriteLine(foundStudent.GetInfo()); - } else { - Console.WriteLine("No student found."); - } - } - - public void SearchByGroup(string groupName) { - if (groups.ContainsKey(groupName)) { - foreach (Student student in groups[groupName]) { - Console.WriteLine(student.GetInfo()); - } - } else { - Console.WriteLine("Group not found."); - } - } - - public void ShowStatistics() { - Console.WriteLine($"Total students: {students.Count}"); - Console.WriteLine($"Total groups: {groups.Count}"); - } -} \ No newline at end of file diff --git a/C/CS/Starter_assignment/Program.cs b/C/CS/Starter_assignment/Program.cs deleted file mode 100644 index ae39d83..0000000 --- a/C/CS/Starter_assignment/Program.cs +++ /dev/null @@ -1,62 +0,0 @@ -namespace Starter_assignment; - -class Program { - static void Main() { - Course course = new Course(); - bool running = true; - - while (running) { - Console.WriteLine("\n1. Add Student" + - "\n2. View All Students" + - "\n3. View All Groups" + - "\n4. Search Student by Number" + - "\n5. Show Students in a Group" + - "\n6. Show Statistics" + - "\n7. Exit" + - "\nChoose an option: "); - - string choice = Console.ReadLine(); - - switch (choice) - { - case "1": - Console.Write("Enter student name: "); - string name = Console.ReadLine(); - Console.Write("Enter student number: "); - if (int.TryParse(Console.ReadLine(), out int studentNumber)) { - course.AddStudent(name, studentNumber); - } else { - Console.WriteLine("Invalid student number."); - } - break; - case "2": - course.ViewAllStudents(); - break; - case "3": - course.ViewAllGroups(); - break; - case "4": - Console.Write("Enter student number: "); - if (int.TryParse(Console.ReadLine(), out int searchNumber)) { - course.SearchByStudentNumber(searchNumber); - } - break; - case "5": - Console.Write("Enter group name: "); - string groupName = Console.ReadLine(); - course.SearchByGroup(groupName); - break; - case "6": - course.ShowStatistics(); - break; - case "7": - running = false; - break; - default: - Console.WriteLine("Invalid option, try again."); - break; - } - } - } -} - diff --git a/C/CS/Starter_assignment/Starter_assignment.csproj b/C/CS/Starter_assignment/Starter_assignment.csproj deleted file mode 100644 index 2f4fc77..0000000 --- a/C/CS/Starter_assignment/Starter_assignment.csproj +++ /dev/null @@ -1,10 +0,0 @@ - - - - Exe - net8.0 - enable - enable - - - diff --git a/C/CS/Starter_assignment/Starter_assignment.dll b/C/CS/Starter_assignment/Starter_assignment.dll deleted file mode 100644 index 8ce0e2f..0000000 Binary files a/C/CS/Starter_assignment/Starter_assignment.dll and /dev/null differ diff --git a/C/CS/Starter_assignment/Starter_assignment.sln b/C/CS/Starter_assignment/Starter_assignment.sln deleted file mode 100644 index b71be33..0000000 --- a/C/CS/Starter_assignment/Starter_assignment.sln +++ /dev/null @@ -1,16 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Starter_assignment", "Starter_assignment\Starter_assignment.csproj", "{C78EC255-456E-4C45-912E-49607AD28EDC}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {C78EC255-456E-4C45-912E-49607AD28EDC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {C78EC255-456E-4C45-912E-49607AD28EDC}.Debug|Any CPU.Build.0 = Debug|Any CPU - {C78EC255-456E-4C45-912E-49607AD28EDC}.Release|Any CPU.ActiveCfg = Release|Any CPU - {C78EC255-456E-4C45-912E-49607AD28EDC}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection -EndGlobal diff --git a/C/CS/Starter_assignment/Starter_assignment.sln.DotSettings.user b/C/CS/Starter_assignment/Starter_assignment.sln.DotSettings.user deleted file mode 100644 index ccb66a8..0000000 --- a/C/CS/Starter_assignment/Starter_assignment.sln.DotSettings.user +++ /dev/null @@ -1,4 +0,0 @@ - - ForceIncluded - ForceIncluded - ERROR \ No newline at end of file diff --git a/C/CS/Starter_assignment/Starter_assignment/Course.cs b/C/CS/Starter_assignment/Starter_assignment/Course.cs deleted file mode 100644 index 98a7504..0000000 --- a/C/CS/Starter_assignment/Starter_assignment/Course.cs +++ /dev/null @@ -1,73 +0,0 @@ -namespace Starter_assignment; - -class Course { - private List students = new List(); - private Dictionary> groups = new Dictionary>(); - private int groupCounter = 1; - - public void AddStudent(string name, int studentNumber) { - name = name.Trim(); - - foreach (Student student in students) { - if (student.GetStudentNumber() == studentNumber) { - Console.WriteLine("Student number must be unique."); - return; - } - } - - string groupName = groups.Keys.LastOrDefault(); - if (groupName == null || groups[groupName].Count >= 3) { - groupName = $"PG{groupCounter}"; - groups[groupName] = new List(); - groupCounter++; - } - - Student newStudent = new Student(name, studentNumber, groupName); - students.Add(newStudent); - groups[groupName].Add(newStudent); - Console.WriteLine($"Student {name} added successfully to {groupName}."); - } - - public void ViewAllStudents() { - foreach (Student student in students) { - Console.WriteLine(student.GetInfo()); - } - } - - public void ViewAllGroups() { - foreach (KeyValuePair> group in groups) { - Console.WriteLine(group.Key); - } - } - - public void SearchByStudentNumber(int studentNumber) { - Student foundStudent = null; - foreach (Student student in students) { - int currentStudentNumber = student.GetStudentNumber(); - if (currentStudentNumber == studentNumber) { - foundStudent = student; - break; - } - } - if (foundStudent != null) { - Console.WriteLine(foundStudent.GetInfo()); - } else { - Console.WriteLine("No student found."); - } - } - - public void SearchByGroup(string groupName) { - if (groups.ContainsKey(groupName)) { - foreach (Student student in groups[groupName]) { - Console.WriteLine(student.GetInfo()); - } - } else { - Console.WriteLine("Group not found."); - } - } - - public void ShowStatistics() { - Console.WriteLine($"Total students: {students.Count}"); - Console.WriteLine($"Total groups: {groups.Count}"); - } -} \ No newline at end of file diff --git a/C/CS/Starter_assignment/Starter_assignment/Program.cs b/C/CS/Starter_assignment/Starter_assignment/Program.cs deleted file mode 100644 index ae39d83..0000000 --- a/C/CS/Starter_assignment/Starter_assignment/Program.cs +++ /dev/null @@ -1,62 +0,0 @@ -namespace Starter_assignment; - -class Program { - static void Main() { - Course course = new Course(); - bool running = true; - - while (running) { - Console.WriteLine("\n1. Add Student" + - "\n2. View All Students" + - "\n3. View All Groups" + - "\n4. Search Student by Number" + - "\n5. Show Students in a Group" + - "\n6. Show Statistics" + - "\n7. Exit" + - "\nChoose an option: "); - - string choice = Console.ReadLine(); - - switch (choice) - { - case "1": - Console.Write("Enter student name: "); - string name = Console.ReadLine(); - Console.Write("Enter student number: "); - if (int.TryParse(Console.ReadLine(), out int studentNumber)) { - course.AddStudent(name, studentNumber); - } else { - Console.WriteLine("Invalid student number."); - } - break; - case "2": - course.ViewAllStudents(); - break; - case "3": - course.ViewAllGroups(); - break; - case "4": - Console.Write("Enter student number: "); - if (int.TryParse(Console.ReadLine(), out int searchNumber)) { - course.SearchByStudentNumber(searchNumber); - } - break; - case "5": - Console.Write("Enter group name: "); - string groupName = Console.ReadLine(); - course.SearchByGroup(groupName); - break; - case "6": - course.ShowStatistics(); - break; - case "7": - running = false; - break; - default: - Console.WriteLine("Invalid option, try again."); - break; - } - } - } -} - diff --git a/C/CS/Starter_assignment/Starter_assignment/Starter_assignment.csproj b/C/CS/Starter_assignment/Starter_assignment/Starter_assignment.csproj deleted file mode 100644 index 2f4fc77..0000000 --- a/C/CS/Starter_assignment/Starter_assignment/Starter_assignment.csproj +++ /dev/null @@ -1,10 +0,0 @@ - - - - Exe - net8.0 - enable - enable - - - diff --git a/C/CS/Starter_assignment/Starter_assignment/Student.cs b/C/CS/Starter_assignment/Starter_assignment/Student.cs deleted file mode 100644 index 618fa3c..0000000 --- a/C/CS/Starter_assignment/Starter_assignment/Student.cs +++ /dev/null @@ -1,27 +0,0 @@ -namespace Starter_assignment; - -class Student { - private string Name { get; } - private int StudentNumber { get; } - private string GroupName { get; } - - public Student(string name, int studentNumber, string groupName) { - if (string.IsNullOrWhiteSpace(name)) { - throw new ArgumentException("Name cannot be empty."); - } - if (studentNumber < 10000 && studentNumber != -1) { - throw new ArgumentException("Student number must be >= 10000 or -1."); - } - - Name = name; - StudentNumber = studentNumber; - GroupName = groupName; - } - - public int GetStudentNumber() { - return StudentNumber; - } - public string GetInfo() { - return $"{Name} ({StudentNumber}) - {GroupName}"; - } -} diff --git a/C/CS/Starter_assignment/Starter_assignment/bin/Debug/net8.0/Starter_assignment b/C/CS/Starter_assignment/Starter_assignment/bin/Debug/net8.0/Starter_assignment deleted file mode 100755 index 7364e5e..0000000 Binary files a/C/CS/Starter_assignment/Starter_assignment/bin/Debug/net8.0/Starter_assignment and /dev/null differ diff --git a/C/CS/Starter_assignment/Starter_assignment/bin/Debug/net8.0/Starter_assignment.deps.json b/C/CS/Starter_assignment/Starter_assignment/bin/Debug/net8.0/Starter_assignment.deps.json deleted file mode 100644 index c20d914..0000000 --- a/C/CS/Starter_assignment/Starter_assignment/bin/Debug/net8.0/Starter_assignment.deps.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "runtimeTarget": { - "name": ".NETCoreApp,Version=v8.0", - "signature": "" - }, - "compilationOptions": {}, - "targets": { - ".NETCoreApp,Version=v8.0": { - "Starter_assignment/1.0.0": { - "runtime": { - "Starter_assignment.dll": {} - } - } - } - }, - "libraries": { - "Starter_assignment/1.0.0": { - "type": "project", - "serviceable": false, - "sha512": "" - } - } -} \ No newline at end of file diff --git a/C/CS/Starter_assignment/Starter_assignment/bin/Debug/net8.0/Starter_assignment.dll b/C/CS/Starter_assignment/Starter_assignment/bin/Debug/net8.0/Starter_assignment.dll deleted file mode 100644 index 5066089..0000000 Binary files a/C/CS/Starter_assignment/Starter_assignment/bin/Debug/net8.0/Starter_assignment.dll and /dev/null differ diff --git a/C/CS/Starter_assignment/Starter_assignment/bin/Debug/net8.0/Starter_assignment.pdb b/C/CS/Starter_assignment/Starter_assignment/bin/Debug/net8.0/Starter_assignment.pdb deleted file mode 100644 index e3dc1d9..0000000 Binary files a/C/CS/Starter_assignment/Starter_assignment/bin/Debug/net8.0/Starter_assignment.pdb and /dev/null differ diff --git a/C/CS/Starter_assignment/Starter_assignment/bin/Debug/net8.0/Starter_assignment.runtimeconfig.json b/C/CS/Starter_assignment/Starter_assignment/bin/Debug/net8.0/Starter_assignment.runtimeconfig.json deleted file mode 100644 index becfaea..0000000 --- a/C/CS/Starter_assignment/Starter_assignment/bin/Debug/net8.0/Starter_assignment.runtimeconfig.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "runtimeOptions": { - "tfm": "net8.0", - "framework": { - "name": "Microsoft.NETCore.App", - "version": "8.0.0" - }, - "configProperties": { - "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false - } - } -} \ No newline at end of file diff --git a/C/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs b/C/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs deleted file mode 100644 index dca70aa..0000000 --- a/C/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs +++ /dev/null @@ -1,4 +0,0 @@ -// -using System; -using System.Reflection; -[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")] diff --git a/C/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.AssemblyInfo.cs b/C/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.AssemblyInfo.cs deleted file mode 100644 index 5b35b66..0000000 --- a/C/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.AssemblyInfo.cs +++ /dev/null @@ -1,22 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -using System; -using System.Reflection; - -[assembly: System.Reflection.AssemblyCompanyAttribute("Starter_assignment")] -[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] -[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] -[assembly: System.Reflection.AssemblyProductAttribute("Starter_assignment")] -[assembly: System.Reflection.AssemblyTitleAttribute("Starter_assignment")] -[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] - -// Generated by the MSBuild WriteCodeFragment class. - diff --git a/C/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.AssemblyInfoInputs.cache b/C/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.AssemblyInfoInputs.cache deleted file mode 100644 index 2b7cd31..0000000 --- a/C/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.AssemblyInfoInputs.cache +++ /dev/null @@ -1 +0,0 @@ -77da79aa1d8b67801697281643b61dd3f4e48c0c7f245ecd395dee391118be92 diff --git a/C/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.GeneratedMSBuildEditorConfig.editorconfig b/C/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.GeneratedMSBuildEditorConfig.editorconfig deleted file mode 100644 index 10df626..0000000 --- a/C/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.GeneratedMSBuildEditorConfig.editorconfig +++ /dev/null @@ -1,13 +0,0 @@ -is_global = true -build_property.TargetFramework = net8.0 -build_property.TargetPlatformMinVersion = -build_property.UsingMicrosoftNETSdkWeb = -build_property.ProjectTypeGuids = -build_property.InvariantGlobalization = -build_property.PlatformNeutralAssembly = -build_property.EnforceExtendedAnalyzerRules = -build_property._SupportedPlatformList = Linux,macOS,Windows -build_property.RootNamespace = Starter_assignment -build_property.ProjectDir = /home/rens/T2/CS/Starter_assignment/Starter_assignment/ -build_property.EnableComHosting = -build_property.EnableGeneratedComInterfaceComImportInterop = diff --git a/C/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.GlobalUsings.g.cs b/C/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.GlobalUsings.g.cs deleted file mode 100644 index 8578f3d..0000000 --- a/C/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.GlobalUsings.g.cs +++ /dev/null @@ -1,8 +0,0 @@ -// -global using global::System; -global using global::System.Collections.Generic; -global using global::System.IO; -global using global::System.Linq; -global using global::System.Net.Http; -global using global::System.Threading; -global using global::System.Threading.Tasks; diff --git a/C/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.assets.cache b/C/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.assets.cache deleted file mode 100644 index eea52c3..0000000 Binary files a/C/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.assets.cache and /dev/null differ diff --git a/C/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.csproj.CoreCompileInputs.cache b/C/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.csproj.CoreCompileInputs.cache deleted file mode 100644 index ee2f4d4..0000000 --- a/C/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.csproj.CoreCompileInputs.cache +++ /dev/null @@ -1 +0,0 @@ -63f646a6f5c36f8a67f54301cd756f80709a6758f27e90e85bd3caa85964b27d diff --git a/C/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.csproj.FileListAbsolute.txt b/C/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.csproj.FileListAbsolute.txt deleted file mode 100644 index 8703dff..0000000 --- a/C/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.csproj.FileListAbsolute.txt +++ /dev/null @@ -1,10 +0,0 @@ -/home/rens/files/T2/CS/Starter_assignment/Starter_assignment/bin/Debug/net8.0/Starter_assignment -/home/rens/files/T2/CS/Starter_assignment/Starter_assignment/bin/Debug/net8.0/Starter_assignment.dll -/home/rens/files/T2/CS/Starter_assignment/Starter_assignment/bin/Debug/net8.0/Starter_assignment.pdb -/home/rens/files/T2/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.GeneratedMSBuildEditorConfig.editorconfig -/home/rens/files/T2/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.AssemblyInfoInputs.cache -/home/rens/files/T2/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.AssemblyInfo.cs -/home/rens/files/T2/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.csproj.CoreCompileInputs.cache -/home/rens/files/T2/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.dll -/home/rens/files/T2/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/refint/Starter_assignment.dll -/home/rens/files/T2/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.pdb diff --git a/C/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.dll b/C/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.dll deleted file mode 100644 index 5066089..0000000 Binary files a/C/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.dll and /dev/null differ diff --git a/C/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.genruntimeconfig.cache b/C/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.genruntimeconfig.cache deleted file mode 100644 index 39e2157..0000000 --- a/C/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.genruntimeconfig.cache +++ /dev/null @@ -1 +0,0 @@ -4028af397b722be4e5490a9f64106d4a5c363b00c8703dae917b145b5632baa4 diff --git a/C/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.pdb b/C/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.pdb deleted file mode 100644 index e3dc1d9..0000000 Binary files a/C/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.pdb and /dev/null differ diff --git a/C/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/apphost b/C/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/apphost deleted file mode 100755 index 7364e5e..0000000 Binary files a/C/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/apphost and /dev/null differ diff --git a/C/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/ref/Starter_assignment.dll b/C/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/ref/Starter_assignment.dll deleted file mode 100644 index dd1190c..0000000 Binary files a/C/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/ref/Starter_assignment.dll and /dev/null differ diff --git a/C/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/refint/Starter_assignment.dll b/C/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/refint/Starter_assignment.dll deleted file mode 100644 index dd1190c..0000000 Binary files a/C/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/refint/Starter_assignment.dll and /dev/null differ diff --git a/C/CS/Starter_assignment/Starter_assignment/obj/Starter_assignment.csproj.nuget.dgspec.json b/C/CS/Starter_assignment/Starter_assignment/obj/Starter_assignment.csproj.nuget.dgspec.json deleted file mode 100644 index fc9be79..0000000 --- a/C/CS/Starter_assignment/Starter_assignment/obj/Starter_assignment.csproj.nuget.dgspec.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "format": 1, - "restore": { - "/home/rens/files/T2/CS/Starter_assignment/Starter_assignment/Starter_assignment.csproj": {} - }, - "projects": { - "/home/rens/files/T2/CS/Starter_assignment/Starter_assignment/Starter_assignment.csproj": { - "version": "1.0.0", - "restore": { - "projectUniqueName": "/home/rens/files/T2/CS/Starter_assignment/Starter_assignment/Starter_assignment.csproj", - "projectName": "Starter_assignment", - "projectPath": "/home/rens/files/T2/CS/Starter_assignment/Starter_assignment/Starter_assignment.csproj", - "packagesPath": "/home/rens/.nuget/packages/", - "outputPath": "/home/rens/files/T2/CS/Starter_assignment/Starter_assignment/obj/", - "projectStyle": "PackageReference", - "configFilePaths": [ - "/home/rens/.nuget/NuGet/NuGet.Config" - ], - "originalTargetFrameworks": [ - "net8.0" - ], - "sources": { - "https://api.nuget.org/v3/index.json": {} - }, - "frameworks": { - "net8.0": { - "targetAlias": "net8.0", - "projectReferences": {} - } - }, - "warningProperties": { - "warnAsError": [ - "NU1605" - ] - }, - "restoreAuditProperties": { - "enableAudit": "true", - "auditLevel": "low", - "auditMode": "direct" - } - }, - "frameworks": { - "net8.0": { - "targetAlias": "net8.0", - "imports": [ - "net461", - "net462", - "net47", - "net471", - "net472", - "net48", - "net481" - ], - "assetTargetFallback": true, - "warn": true, - "frameworkReferences": { - "Microsoft.NETCore.App": { - "privateAssets": "all" - } - }, - "runtimeIdentifierGraphPath": "/home/rens/.dotnet/sdk/8.0.404/PortableRuntimeIdentifierGraph.json" - } - } - } - } -} \ No newline at end of file diff --git a/C/CS/Starter_assignment/Starter_assignment/obj/Starter_assignment.csproj.nuget.g.props b/C/CS/Starter_assignment/Starter_assignment/obj/Starter_assignment.csproj.nuget.g.props deleted file mode 100644 index 1ee7f5f..0000000 --- a/C/CS/Starter_assignment/Starter_assignment/obj/Starter_assignment.csproj.nuget.g.props +++ /dev/null @@ -1,15 +0,0 @@ - - - - True - NuGet - $(MSBuildThisFileDirectory)project.assets.json - /home/rens/.nuget/packages/ - /home/rens/.nuget/packages/ - PackageReference - 6.12.2 - - - - - \ No newline at end of file diff --git a/C/CS/Starter_assignment/Starter_assignment/obj/Starter_assignment.csproj.nuget.g.targets b/C/CS/Starter_assignment/Starter_assignment/obj/Starter_assignment.csproj.nuget.g.targets deleted file mode 100644 index 3dc06ef..0000000 --- a/C/CS/Starter_assignment/Starter_assignment/obj/Starter_assignment.csproj.nuget.g.targets +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/C/CS/Starter_assignment/Starter_assignment/obj/project.assets.json b/C/CS/Starter_assignment/Starter_assignment/obj/project.assets.json deleted file mode 100644 index 3edcb61..0000000 --- a/C/CS/Starter_assignment/Starter_assignment/obj/project.assets.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "version": 3, - "targets": { - "net8.0": {} - }, - "libraries": {}, - "projectFileDependencyGroups": { - "net8.0": [] - }, - "packageFolders": { - "/home/rens/.nuget/packages/": {} - }, - "project": { - "version": "1.0.0", - "restore": { - "projectUniqueName": "/home/rens/files/T2/CS/Starter_assignment/Starter_assignment/Starter_assignment.csproj", - "projectName": "Starter_assignment", - "projectPath": "/home/rens/files/T2/CS/Starter_assignment/Starter_assignment/Starter_assignment.csproj", - "packagesPath": "/home/rens/.nuget/packages/", - "outputPath": "/home/rens/files/T2/CS/Starter_assignment/Starter_assignment/obj/", - "projectStyle": "PackageReference", - "configFilePaths": [ - "/home/rens/.nuget/NuGet/NuGet.Config" - ], - "originalTargetFrameworks": [ - "net8.0" - ], - "sources": { - "https://api.nuget.org/v3/index.json": {} - }, - "frameworks": { - "net8.0": { - "targetAlias": "net8.0", - "projectReferences": {} - } - }, - "warningProperties": { - "warnAsError": [ - "NU1605" - ] - }, - "restoreAuditProperties": { - "enableAudit": "true", - "auditLevel": "low", - "auditMode": "direct" - } - }, - "frameworks": { - "net8.0": { - "targetAlias": "net8.0", - "imports": [ - "net461", - "net462", - "net47", - "net471", - "net472", - "net48", - "net481" - ], - "assetTargetFallback": true, - "warn": true, - "frameworkReferences": { - "Microsoft.NETCore.App": { - "privateAssets": "all" - } - }, - "runtimeIdentifierGraphPath": "/home/rens/.dotnet/sdk/8.0.404/PortableRuntimeIdentifierGraph.json" - } - } - } -} \ No newline at end of file diff --git a/C/CS/Starter_assignment/Starter_assignment/obj/project.nuget.cache b/C/CS/Starter_assignment/Starter_assignment/obj/project.nuget.cache deleted file mode 100644 index 65b5e2d..0000000 --- a/C/CS/Starter_assignment/Starter_assignment/obj/project.nuget.cache +++ /dev/null @@ -1,8 +0,0 @@ -{ - "version": 2, - "dgSpecHash": "0d5jt8ngUw0=", - "success": true, - "projectFilePath": "/home/rens/T2/CS/Starter_assignment/Starter_assignment/Starter_assignment.csproj", - "expectedPackageFiles": [], - "logs": [] -} \ No newline at end of file diff --git a/C/CS/Starter_assignment/Starter_assignment/obj/project.packagespec.json b/C/CS/Starter_assignment/Starter_assignment/obj/project.packagespec.json deleted file mode 100644 index deb1fd1..0000000 --- a/C/CS/Starter_assignment/Starter_assignment/obj/project.packagespec.json +++ /dev/null @@ -1 +0,0 @@ -"restore":{"projectUniqueName":"/home/rens/files/T2/CS/Starter_assignment/Starter_assignment/Starter_assignment.csproj","projectName":"Starter_assignment","projectPath":"/home/rens/files/T2/CS/Starter_assignment/Starter_assignment/Starter_assignment.csproj","outputPath":"/home/rens/files/T2/CS/Starter_assignment/Starter_assignment/obj/","projectStyle":"PackageReference","originalTargetFrameworks":["net8.0"],"sources":{"https://api.nuget.org/v3/index.json":{}},"frameworks":{"net8.0":{"targetAlias":"net8.0","projectReferences":{}}},"warningProperties":{"warnAsError":["NU1605"]},"restoreAuditProperties":{"enableAudit":"true","auditLevel":"low","auditMode":"direct"}}"frameworks":{"net8.0":{"targetAlias":"net8.0","imports":["net461","net462","net47","net471","net472","net48","net481"],"assetTargetFallback":true,"warn":true,"frameworkReferences":{"Microsoft.NETCore.App":{"privateAssets":"all"}},"runtimeIdentifierGraphPath":"/home/rens/.dotnet/sdk/8.0.404/PortableRuntimeIdentifierGraph.json"}} \ No newline at end of file diff --git a/C/CS/Starter_assignment/Starter_assignment/obj/rider.project.model.nuget.info b/C/CS/Starter_assignment/Starter_assignment/obj/rider.project.model.nuget.info deleted file mode 100644 index a86fdb3..0000000 --- a/C/CS/Starter_assignment/Starter_assignment/obj/rider.project.model.nuget.info +++ /dev/null @@ -1 +0,0 @@ -17406469005085962 \ No newline at end of file diff --git a/C/CS/Starter_assignment/Starter_assignment/obj/rider.project.restore.info b/C/CS/Starter_assignment/Starter_assignment/obj/rider.project.restore.info deleted file mode 100644 index a86fdb3..0000000 --- a/C/CS/Starter_assignment/Starter_assignment/obj/rider.project.restore.info +++ /dev/null @@ -1 +0,0 @@ -17406469005085962 \ No newline at end of file diff --git a/C/CS/Starter_assignment/Student.cs b/C/CS/Starter_assignment/Student.cs deleted file mode 100644 index 618fa3c..0000000 --- a/C/CS/Starter_assignment/Student.cs +++ /dev/null @@ -1,27 +0,0 @@ -namespace Starter_assignment; - -class Student { - private string Name { get; } - private int StudentNumber { get; } - private string GroupName { get; } - - public Student(string name, int studentNumber, string groupName) { - if (string.IsNullOrWhiteSpace(name)) { - throw new ArgumentException("Name cannot be empty."); - } - if (studentNumber < 10000 && studentNumber != -1) { - throw new ArgumentException("Student number must be >= 10000 or -1."); - } - - Name = name; - StudentNumber = studentNumber; - GroupName = groupName; - } - - public int GetStudentNumber() { - return StudentNumber; - } - public string GetInfo() { - return $"{Name} ({StudentNumber}) - {GroupName}"; - } -} diff --git a/C/CS/Starter_assignment/starter_assignment b/C/CS/Starter_assignment/starter_assignment deleted file mode 100755 index 7364e5e..0000000 Binary files a/C/CS/Starter_assignment/starter_assignment and /dev/null differ diff --git a/C/ES/PlatformIO/Projects/ES state machine.zip b/C/ES/PlatformIO/Projects/ES state machine.zip deleted file mode 100644 index b4001d4..0000000 Binary files a/C/ES/PlatformIO/Projects/ES state machine.zip and /dev/null differ diff --git a/C/ES/PlatformIO/Projects/ES state machine/.gitignore b/C/ES/PlatformIO/Projects/ES state machine/.gitignore deleted file mode 100644 index 89cc49c..0000000 --- a/C/ES/PlatformIO/Projects/ES state machine/.gitignore +++ /dev/null @@ -1,5 +0,0 @@ -.pio -.vscode/.browse.c_cpp.db* -.vscode/c_cpp_properties.json -.vscode/launch.json -.vscode/ipch diff --git a/C/ES/PlatformIO/Projects/ES state machine/.vscode/extensions.json b/C/ES/PlatformIO/Projects/ES state machine/.vscode/extensions.json deleted file mode 100644 index 080e70d..0000000 --- a/C/ES/PlatformIO/Projects/ES state machine/.vscode/extensions.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - // See http://go.microsoft.com/fwlink/?LinkId=827846 - // for the documentation about the extensions.json format - "recommendations": [ - "platformio.platformio-ide" - ], - "unwantedRecommendations": [ - "ms-vscode.cpptools-extension-pack" - ] -} diff --git a/C/ES/PlatformIO/Projects/ES state machine/include/SerialProcess.h b/C/ES/PlatformIO/Projects/ES state machine/include/SerialProcess.h deleted file mode 100755 index 5bd6c56..0000000 --- a/C/ES/PlatformIO/Projects/ES state machine/include/SerialProcess.h +++ /dev/null @@ -1,39 +0,0 @@ -#include -#ifndef SERIALPROCESS_H -#define SERIALPROCESS_H - -class SerialProcess { -private: - uint8_t ndx; // Current index for the buffer - const char beginMarker = '#'; // Marker to indicate the start of a message - const char endMarker = ';'; // Marker to indicate the end of a message - char rc; // Character read from Serial - int address; // Device address - bool newData; // Flag for new data availability - static const uint8_t numChars = 255; // Maximum size of the buffer - char receivedChars[numChars]; // Buffer for incoming data - bool rcCheck; - -public: - // Constructor - explicit SerialProcess(int addr); - - // Store Serial Input (if available) - void SerialInput(); - - // Check if new data is available - bool isNewDataAvailable(); - - // Get the received data - char* getReceivedData(); - - // Process the received message - void getPayload(char* payload); - - // Send message in the correct format - void sendMessage(int receiver, const char* payload); - - void changeAddress(int addr); -}; - -#endif // SERIALPROCESS_H diff --git a/C/ES/PlatformIO/Projects/ES state machine/lib/README b/C/ES/PlatformIO/Projects/ES state machine/lib/README deleted file mode 100644 index 9379397..0000000 --- a/C/ES/PlatformIO/Projects/ES state machine/lib/README +++ /dev/null @@ -1,46 +0,0 @@ - -This directory is intended for project specific (private) libraries. -PlatformIO will compile them to static libraries and link into the executable file. - -The source code of each library should be placed in a separate directory -("lib/your_library_name/[Code]"). - -For example, see the structure of the following example libraries `Foo` and `Bar`: - -|--lib -| | -| |--Bar -| | |--docs -| | |--examples -| | |--src -| | |- Bar.c -| | |- Bar.h -| | |- library.json (optional. for custom build options, etc) https://docs.platformio.org/page/librarymanager/config.html -| | -| |--Foo -| | |- Foo.c -| | |- Foo.h -| | -| |- README --> THIS FILE -| -|- platformio.ini -|--src - |- main.c - -Example contents of `src/main.c` using Foo and Bar: -``` -#include -#include - -int main (void) -{ - ... -} - -``` - -The PlatformIO Library Dependency Finder will find automatically dependent -libraries by scanning project source files. - -More information about PlatformIO Library Dependency Finder -- https://docs.platformio.org/page/librarymanager/ldf.html diff --git a/C/ES/PlatformIO/Projects/ES state machine/platformio.ini b/C/ES/PlatformIO/Projects/ES state machine/platformio.ini deleted file mode 100644 index dbb4289..0000000 --- a/C/ES/PlatformIO/Projects/ES state machine/platformio.ini +++ /dev/null @@ -1,16 +0,0 @@ -; PlatformIO Project Configuration File -; -; Build options: build flags, source filter -; Upload options: custom upload port, speed and extra flags -; Library options: dependencies, extra library storages -; Advanced options: extra scripting -; -; Please visit documentation for the other options and examples -; https://docs.platformio.org/page/projectconf.html - -[env:esp32dev] -platform = espressif32 -board = esp32dev -framework = arduino -monitor_speed = 115200 -lib_deps = plerup/EspSoftwareSerial@^8.2.0 diff --git a/C/ES/PlatformIO/Projects/ES state machine/src/SerialProcess.cpp b/C/ES/PlatformIO/Projects/ES state machine/src/SerialProcess.cpp deleted file mode 100755 index e6b6fc6..0000000 --- a/C/ES/PlatformIO/Projects/ES state machine/src/SerialProcess.cpp +++ /dev/null @@ -1,74 +0,0 @@ -#include "SerialProcess.h" -#include - -// Constructor -SerialProcess::SerialProcess(int addr) - : address(addr), ndx(0), rc(0), newData(false), rcCheck(false) { - Serial.begin(115200); -} - -// Processes Serial Input -void SerialProcess::SerialInput() { - while (Serial.available() > 0) { - rc = static_cast(Serial.read()); - - if (rc == beginMarker) { - rcCheck = true; // Start reading after the begin marker - ndx = 0; // Reset index for new message - } - - if (rcCheck) { - // Store the character if within bounds - if (ndx < numChars - 1) { - receivedChars[ndx++] = rc; - } - - // Check for end marker - if (rc == endMarker) { - receivedChars[ndx] = '\0'; // Null-terminate the string - newData = true; // Mark new data as available - rcCheck = false; // Stop reading until the next begin marker - } - } - } -} - -// Check if new data is available -bool SerialProcess::isNewDataAvailable() { - return newData; -} - -// Get the received data -char* SerialProcess::getReceivedData() { - if (newData) { - newData = false; // Reset the flag after accessing the data - return receivedChars; - } - return nullptr; // No new data -} - -// Process the received message -void SerialProcess::getPayload(char *payload) { - if (newData) { - uint8_t source; - uint8_t destination; - char data[255]; // Allocate a buffer for the data - int parsed = sscanf(receivedChars, "#%hhu:%hhu:%63s;", &source, &destination, data); - if (parsed == 3 && destination == address) { // Ensure all fields are parsed correctly - strcpy(payload, data); // Copy data to the provided buffer - newData = false; // Mark the data as processed - } else if (address != source) { - Serial.print(receivedChars); // Forward the message - } - } -} - -// Send a message in the correct format -void SerialProcess::sendMessage(int receiver, const char* payload) { - Serial.printf("#%u:%u:%s;", address, receiver, payload); -} - - -void SerialProcess::changeAddress(int addr) { - address = addr; // Update the device address -} \ No newline at end of file diff --git a/C/ES/PlatformIO/Projects/ES state machine/src/main.cpp b/C/ES/PlatformIO/Projects/ES state machine/src/main.cpp deleted file mode 100755 index 7fbdcae..0000000 --- a/C/ES/PlatformIO/Projects/ES state machine/src/main.cpp +++ /dev/null @@ -1,238 +0,0 @@ -#include -#include "SerialProcess.h" - -#define LEDRED 14 -#define LEDORANGE 13 -#define LEDGREEN 12 - -unsigned long previousMillis = 0; -const unsigned long greenDuration = 5000; -const unsigned long yellowDuration = 2000; -const unsigned long redDuration = 5000; -const unsigned long transitionDuration = 2000; -const unsigned long heartbeatInterval = 1000; -const unsigned long heartbeatTimeout = 3000; -const unsigned long blinkInterval = 500; -unsigned long lastHeartbeatMillis = 0; -unsigned long lastBlinkMillis = 0; -bool blinkState = false; - -enum State { GREEN, YELLOW, RED, TRANSITION, ERROR }; -State currentState = GREEN; - -const char *slavecheck = "#slvchck;"; -const char *slaveack = "#slvack;"; -const char *masterack = "#mstack;"; - -const char *turnRed = "tr"; -const char *turnOrange = "to"; -const char *turnGreen = "tg"; -const char *heartbeat = "hb"; - -int node; // other bord addres number -int address = 0; // Device address - -void setRed(){ - digitalWrite(LEDRED, HIGH); - digitalWrite(LEDORANGE, LOW); - digitalWrite(LEDGREEN, LOW); -} -void setOrange(){ - digitalWrite(LEDRED, LOW); - digitalWrite(LEDORANGE, HIGH); - digitalWrite(LEDGREEN, LOW); -} -void setGreen(){ - digitalWrite(LEDRED, LOW); - digitalWrite(LEDORANGE, LOW); - digitalWrite(LEDGREEN, HIGH); -} - -SerialProcess serialcom(0); - -bool MasterCheck() { - SerialProcess serialcomchecker(1000); - const unsigned long timeout = 2000; - unsigned long startTime = millis(); - bool isMaster = true; - bool checkSent = false; - bool gotResponse = false; - - delay(random(100, 600)); // Randomize startup slightly - - Serial.print(slavecheck); // Send check to see if someone replies - checkSent = true; - - while (millis() - startTime < timeout) { - if (Serial.available()) { - serialcomchecker.SerialInput(); - char* payload = serialcomchecker.getReceivedData(); - - if (strcmp(payload, slavecheck) == 0) { - // Got a check while we also sent a check — respond and become SLAVE - Serial.print(slaveack); - isMaster = false; - break; - } else if (strcmp(payload, slaveack) == 0) { - // Got an ACK from the other side — we are master - Serial.print(masterack); - isMaster = true; - break; - } else if (strcmp(payload, masterack) == 0) { - // Got master ack — we must be slave - isMaster = false; - break; - } - } - } - - // Failsafe: no response at all - if (!Serial.available() && !gotResponse) { - // Assume we are master - isMaster = true; - Serial.print(masterack); - } - - return isMaster; -} - - -void updateLights() { - switch (currentState) { - case GREEN: - setGreen(); - serialcom.sendMessage(node, turnGreen); - break; - case YELLOW: - setOrange(); - serialcom.sendMessage(node, turnOrange); - break; - case RED: - setGreen(); - serialcom.sendMessage(node, turnRed); - break; - case TRANSITION: - serialcom.sendMessage(node, turnOrange); - break; - case ERROR: - if (millis() - lastBlinkMillis >= blinkInterval) { - blinkState = !blinkState; - digitalWrite(LEDORANGE, blinkState ? HIGH : LOW); - lastBlinkMillis = millis(); - } - break; - } -} - -void sendHeartbeat() { - serialcom.sendMessage(node,heartbeat); - Serial.println("Sent: Heartbeat"); -} - -void master(){ - bool running = true; - while (running){ - unsigned long currentMillis = millis(); - - if (currentMillis - lastHeartbeatMillis >= heartbeatInterval) { - sendHeartbeat(); - lastHeartbeatMillis = currentMillis; - } - - if (currentMillis - lastHeartbeatMillis > heartbeatTimeout) { - currentState = ERROR; - updateLights(); - return; - } - - switch (currentState) { - case GREEN: - if (currentMillis - previousMillis >= greenDuration) { - currentState = YELLOW; - previousMillis = currentMillis; - updateLights(); - } - break; - case YELLOW: - if (currentMillis - previousMillis >= yellowDuration) { - currentState = RED; - previousMillis = currentMillis; - updateLights(); - } - break; - case RED: - if (currentMillis - previousMillis >= redDuration) { - currentState = TRANSITION; - previousMillis = currentMillis; - updateLights(); - } - break; - case TRANSITION: - if (currentMillis - previousMillis >= transitionDuration) { - currentState = GREEN; - previousMillis = millis(); - updateLights(); - } - break; - case ERROR: - updateLights(); - break; - } - } -} - -void setup() { - Serial.begin(115200); - pinMode(LEDGREEN, OUTPUT); - pinMode(LEDORANGE, OUTPUT); - pinMode(LEDRED, OUTPUT); - bool MorS = MasterCheck(); // Check if master or slave - //set address for master or slave - if (MorS == false){ - address = 2; // Set address for this slave - node = 1; // Set address for master - } else { - address = 1; // Set address for this master - node = 2; // Set address for slave - } - previousMillis = millis(); - lastHeartbeatMillis = millis(); - updateLights(); - setRed(); - serialcom.changeAddress(address); // Set address for serial communication -} - -void slave(){ - bool running = true; - char *command; - while (running && Serial.available() > 0){ - serialcom.SerialInput(); - serialcom.getPayload(command); - if (strcmp(command, turnRed)) setRed(); - else if (strcmp(command, turnOrange)) setOrange(); - else if (strcmp(command, turnGreen)) setGreen(); - else if (strcmp(command, heartbeat)) { - lastHeartbeatMillis = millis(); - digitalWrite(LEDRED, LOW); // Reset the orange blink pattern - digitalWrite(LEDORANGE, LOW); - } - else { - Serial.print("slave: unknown command"); - } - } - if (millis() - lastHeartbeatMillis > heartbeatTimeout) { - // Blink the red and yellow LEDs to indicate an error (orange light) - if (millis() - lastBlinkMillis >= blinkInterval) { - blinkState = !blinkState; - digitalWrite(LEDORANGE, blinkState ? HIGH : LOW); - lastBlinkMillis = millis(); - } - } -} - -void loop(){ - serialcom.changeAddress(2); - if (address == 1) slave(); //master - else if (address == 2) slave(); //slave - else Serial.print("master slave issue"); -} diff --git a/C/ES/PlatformIO/Projects/ES state machine/test/README b/C/ES/PlatformIO/Projects/ES state machine/test/README deleted file mode 100644 index 9b1e87b..0000000 --- a/C/ES/PlatformIO/Projects/ES state machine/test/README +++ /dev/null @@ -1,11 +0,0 @@ - -This directory is intended for PlatformIO Test Runner and project tests. - -Unit Testing is a software testing method by which individual units of -source code, sets of one or more MCU program modules together with associated -control data, usage procedures, and operating procedures, are tested to -determine whether they are fit for use. Unit testing finds problems early -in the development cycle. - -More information about PlatformIO Unit Testing: -- https://docs.platformio.org/en/latest/advanced/unit-testing/index.html diff --git a/C/ES/PlatformIO/Projects/ES2_1_C/.gitignore b/C/ES/PlatformIO/Projects/ES2_1_C/.gitignore deleted file mode 100644 index 89cc49c..0000000 --- a/C/ES/PlatformIO/Projects/ES2_1_C/.gitignore +++ /dev/null @@ -1,5 +0,0 @@ -.pio -.vscode/.browse.c_cpp.db* -.vscode/c_cpp_properties.json -.vscode/launch.json -.vscode/ipch diff --git a/C/ES/PlatformIO/Projects/ES2_1_C/.vscode/extensions.json b/C/ES/PlatformIO/Projects/ES2_1_C/.vscode/extensions.json deleted file mode 100644 index 080e70d..0000000 --- a/C/ES/PlatformIO/Projects/ES2_1_C/.vscode/extensions.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - // See http://go.microsoft.com/fwlink/?LinkId=827846 - // for the documentation about the extensions.json format - "recommendations": [ - "platformio.platformio-ide" - ], - "unwantedRecommendations": [ - "ms-vscode.cpptools-extension-pack" - ] -} diff --git a/C/ES/PlatformIO/Projects/ES2_1_C/include/README b/C/ES/PlatformIO/Projects/ES2_1_C/include/README deleted file mode 100644 index 49819c0..0000000 --- a/C/ES/PlatformIO/Projects/ES2_1_C/include/README +++ /dev/null @@ -1,37 +0,0 @@ - -This directory is intended for project header files. - -A header file is a file containing C declarations and macro definitions -to be shared between several project source files. You request the use of a -header file in your project source file (C, C++, etc) located in `src` folder -by including it, with the C preprocessing directive `#include'. - -```src/main.c - -#include "header.h" - -int main (void) -{ - ... -} -``` - -Including a header file produces the same results as copying the header file -into each source file that needs it. Such copying would be time-consuming -and error-prone. With a header file, the related declarations appear -in only one place. If they need to be changed, they can be changed in one -place, and programs that include the header file will automatically use the -new version when next recompiled. The header file eliminates the labor of -finding and changing all the copies as well as the risk that a failure to -find one copy will result in inconsistencies within a program. - -In C, the convention is to give header files names that end with `.h'. - -Read more about using header files in official GCC documentation: - -* Include Syntax -* Include Operation -* Once-Only Headers -* Computed Includes - -https://gcc.gnu.org/onlinedocs/cpp/Header-Files.html diff --git a/C/ES/PlatformIO/Projects/ES2_1_C/lib/README b/C/ES/PlatformIO/Projects/ES2_1_C/lib/README deleted file mode 100644 index 9379397..0000000 --- a/C/ES/PlatformIO/Projects/ES2_1_C/lib/README +++ /dev/null @@ -1,46 +0,0 @@ - -This directory is intended for project specific (private) libraries. -PlatformIO will compile them to static libraries and link into the executable file. - -The source code of each library should be placed in a separate directory -("lib/your_library_name/[Code]"). - -For example, see the structure of the following example libraries `Foo` and `Bar`: - -|--lib -| | -| |--Bar -| | |--docs -| | |--examples -| | |--src -| | |- Bar.c -| | |- Bar.h -| | |- library.json (optional. for custom build options, etc) https://docs.platformio.org/page/librarymanager/config.html -| | -| |--Foo -| | |- Foo.c -| | |- Foo.h -| | -| |- README --> THIS FILE -| -|- platformio.ini -|--src - |- main.c - -Example contents of `src/main.c` using Foo and Bar: -``` -#include -#include - -int main (void) -{ - ... -} - -``` - -The PlatformIO Library Dependency Finder will find automatically dependent -libraries by scanning project source files. - -More information about PlatformIO Library Dependency Finder -- https://docs.platformio.org/page/librarymanager/ldf.html diff --git a/C/ES/PlatformIO/Projects/ES2_1_C/platformio.ini b/C/ES/PlatformIO/Projects/ES2_1_C/platformio.ini deleted file mode 100644 index ea23b77..0000000 --- a/C/ES/PlatformIO/Projects/ES2_1_C/platformio.ini +++ /dev/null @@ -1,14 +0,0 @@ -; PlatformIO Project Configuration File -; -; Build options: build flags, source filter -; Upload options: custom upload port, speed and extra flags -; Library options: dependencies, extra library storages -; Advanced options: extra scripting -; -; Please visit documentation for the other options and examples -; https://docs.platformio.org/page/projectconf.html - -[env:uno] -platform = atmelavr -board = uno -framework = arduino diff --git a/C/ES/PlatformIO/Projects/ES2_1_C/src/main.cpp b/C/ES/PlatformIO/Projects/ES2_1_C/src/main.cpp deleted file mode 100644 index b0d7c6a..0000000 --- a/C/ES/PlatformIO/Projects/ES2_1_C/src/main.cpp +++ /dev/null @@ -1,14 +0,0 @@ -#include - -int analogValue; -int readPin = 23; -void setup() { - Serial.begin(115200); - pinMode(readPin,INPUT); -} - -void loop() { - analogValue = analogRead(readPin); - Serial.print(analogValue); -} - diff --git a/C/ES/PlatformIO/Projects/ES2_1_C/test/README b/C/ES/PlatformIO/Projects/ES2_1_C/test/README deleted file mode 100644 index 9b1e87b..0000000 --- a/C/ES/PlatformIO/Projects/ES2_1_C/test/README +++ /dev/null @@ -1,11 +0,0 @@ - -This directory is intended for PlatformIO Test Runner and project tests. - -Unit Testing is a software testing method by which individual units of -source code, sets of one or more MCU program modules together with associated -control data, usage procedures, and operating procedures, are tested to -determine whether they are fit for use. Unit testing finds problems early -in the development cycle. - -More information about PlatformIO Unit Testing: -- https://docs.platformio.org/en/latest/advanced/unit-testing/index.html diff --git a/C/ES/PlatformIO/Projects/esp32test/.gitignore b/C/ES/PlatformIO/Projects/esp32test/.gitignore deleted file mode 100644 index 89cc49c..0000000 --- a/C/ES/PlatformIO/Projects/esp32test/.gitignore +++ /dev/null @@ -1,5 +0,0 @@ -.pio -.vscode/.browse.c_cpp.db* -.vscode/c_cpp_properties.json -.vscode/launch.json -.vscode/ipch diff --git a/C/ES/PlatformIO/Projects/esp32test/.vscode/extensions.json b/C/ES/PlatformIO/Projects/esp32test/.vscode/extensions.json deleted file mode 100644 index 080e70d..0000000 --- a/C/ES/PlatformIO/Projects/esp32test/.vscode/extensions.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - // See http://go.microsoft.com/fwlink/?LinkId=827846 - // for the documentation about the extensions.json format - "recommendations": [ - "platformio.platformio-ide" - ], - "unwantedRecommendations": [ - "ms-vscode.cpptools-extension-pack" - ] -} diff --git a/C/ES/PlatformIO/Projects/esp32test/include/README b/C/ES/PlatformIO/Projects/esp32test/include/README deleted file mode 100644 index 49819c0..0000000 --- a/C/ES/PlatformIO/Projects/esp32test/include/README +++ /dev/null @@ -1,37 +0,0 @@ - -This directory is intended for project header files. - -A header file is a file containing C declarations and macro definitions -to be shared between several project source files. You request the use of a -header file in your project source file (C, C++, etc) located in `src` folder -by including it, with the C preprocessing directive `#include'. - -```src/main.c - -#include "header.h" - -int main (void) -{ - ... -} -``` - -Including a header file produces the same results as copying the header file -into each source file that needs it. Such copying would be time-consuming -and error-prone. With a header file, the related declarations appear -in only one place. If they need to be changed, they can be changed in one -place, and programs that include the header file will automatically use the -new version when next recompiled. The header file eliminates the labor of -finding and changing all the copies as well as the risk that a failure to -find one copy will result in inconsistencies within a program. - -In C, the convention is to give header files names that end with `.h'. - -Read more about using header files in official GCC documentation: - -* Include Syntax -* Include Operation -* Once-Only Headers -* Computed Includes - -https://gcc.gnu.org/onlinedocs/cpp/Header-Files.html diff --git a/C/ES/PlatformIO/Projects/esp32test/lib/README b/C/ES/PlatformIO/Projects/esp32test/lib/README deleted file mode 100644 index 9379397..0000000 --- a/C/ES/PlatformIO/Projects/esp32test/lib/README +++ /dev/null @@ -1,46 +0,0 @@ - -This directory is intended for project specific (private) libraries. -PlatformIO will compile them to static libraries and link into the executable file. - -The source code of each library should be placed in a separate directory -("lib/your_library_name/[Code]"). - -For example, see the structure of the following example libraries `Foo` and `Bar`: - -|--lib -| | -| |--Bar -| | |--docs -| | |--examples -| | |--src -| | |- Bar.c -| | |- Bar.h -| | |- library.json (optional. for custom build options, etc) https://docs.platformio.org/page/librarymanager/config.html -| | -| |--Foo -| | |- Foo.c -| | |- Foo.h -| | -| |- README --> THIS FILE -| -|- platformio.ini -|--src - |- main.c - -Example contents of `src/main.c` using Foo and Bar: -``` -#include -#include - -int main (void) -{ - ... -} - -``` - -The PlatformIO Library Dependency Finder will find automatically dependent -libraries by scanning project source files. - -More information about PlatformIO Library Dependency Finder -- https://docs.platformio.org/page/librarymanager/ldf.html diff --git a/C/ES/PlatformIO/Projects/esp32test/platformio.ini b/C/ES/PlatformIO/Projects/esp32test/platformio.ini deleted file mode 100644 index 8dd1b2d..0000000 --- a/C/ES/PlatformIO/Projects/esp32test/platformio.ini +++ /dev/null @@ -1,15 +0,0 @@ -; PlatformIO Project Configuration File -; -; Build options: build flags, source filter -; Upload options: custom upload port, speed and extra flags -; Library options: dependencies, extra library storages -; Advanced options: extra scripting -; -; Please visit documentation for the other options and examples -; https://docs.platformio.org/page/projectconf.html - -[env:esp32dev] -platform = espressif32 -board = esp32dev -framework = arduino -monitor_speed = 115200 \ No newline at end of file diff --git a/C/ES/PlatformIO/Projects/esp32test/src/main.cpp b/C/ES/PlatformIO/Projects/esp32test/src/main.cpp deleted file mode 100644 index 91eff1f..0000000 --- a/C/ES/PlatformIO/Projects/esp32test/src/main.cpp +++ /dev/null @@ -1,15 +0,0 @@ -#include - -int analogValue; -int readPin = 32; -void setup() { - Serial.begin(115200); - analogReadResolution(10); - pinMode(readPin,INPUT); -} - -void loop() { - analogValue = analogRead(readPin); - Serial.println(840); -} - diff --git a/C/ES/PlatformIO/Projects/esp32test/test/README b/C/ES/PlatformIO/Projects/esp32test/test/README deleted file mode 100644 index 9b1e87b..0000000 --- a/C/ES/PlatformIO/Projects/esp32test/test/README +++ /dev/null @@ -1,11 +0,0 @@ - -This directory is intended for PlatformIO Test Runner and project tests. - -Unit Testing is a software testing method by which individual units of -source code, sets of one or more MCU program modules together with associated -control data, usage procedures, and operating procedures, are tested to -determine whether they are fit for use. Unit testing finds problems early -in the development cycle. - -More information about PlatformIO Unit Testing: -- https://docs.platformio.org/en/latest/advanced/unit-testing/index.html diff --git a/CS/Starter_assignment/Starter_assignment/Course.cs b/CS/Starter_assignment/Starter_assignment/Course.cs deleted file mode 100644 index 98a7504..0000000 --- a/CS/Starter_assignment/Starter_assignment/Course.cs +++ /dev/null @@ -1,73 +0,0 @@ -namespace Starter_assignment; - -class Course { - private List students = new List(); - private Dictionary> groups = new Dictionary>(); - private int groupCounter = 1; - - public void AddStudent(string name, int studentNumber) { - name = name.Trim(); - - foreach (Student student in students) { - if (student.GetStudentNumber() == studentNumber) { - Console.WriteLine("Student number must be unique."); - return; - } - } - - string groupName = groups.Keys.LastOrDefault(); - if (groupName == null || groups[groupName].Count >= 3) { - groupName = $"PG{groupCounter}"; - groups[groupName] = new List(); - groupCounter++; - } - - Student newStudent = new Student(name, studentNumber, groupName); - students.Add(newStudent); - groups[groupName].Add(newStudent); - Console.WriteLine($"Student {name} added successfully to {groupName}."); - } - - public void ViewAllStudents() { - foreach (Student student in students) { - Console.WriteLine(student.GetInfo()); - } - } - - public void ViewAllGroups() { - foreach (KeyValuePair> group in groups) { - Console.WriteLine(group.Key); - } - } - - public void SearchByStudentNumber(int studentNumber) { - Student foundStudent = null; - foreach (Student student in students) { - int currentStudentNumber = student.GetStudentNumber(); - if (currentStudentNumber == studentNumber) { - foundStudent = student; - break; - } - } - if (foundStudent != null) { - Console.WriteLine(foundStudent.GetInfo()); - } else { - Console.WriteLine("No student found."); - } - } - - public void SearchByGroup(string groupName) { - if (groups.ContainsKey(groupName)) { - foreach (Student student in groups[groupName]) { - Console.WriteLine(student.GetInfo()); - } - } else { - Console.WriteLine("Group not found."); - } - } - - public void ShowStatistics() { - Console.WriteLine($"Total students: {students.Count}"); - Console.WriteLine($"Total groups: {groups.Count}"); - } -} \ No newline at end of file diff --git a/CS/Starter_assignment/Starter_assignment/Program.cs b/CS/Starter_assignment/Starter_assignment/Program.cs deleted file mode 100644 index ae39d83..0000000 --- a/CS/Starter_assignment/Starter_assignment/Program.cs +++ /dev/null @@ -1,62 +0,0 @@ -namespace Starter_assignment; - -class Program { - static void Main() { - Course course = new Course(); - bool running = true; - - while (running) { - Console.WriteLine("\n1. Add Student" + - "\n2. View All Students" + - "\n3. View All Groups" + - "\n4. Search Student by Number" + - "\n5. Show Students in a Group" + - "\n6. Show Statistics" + - "\n7. Exit" + - "\nChoose an option: "); - - string choice = Console.ReadLine(); - - switch (choice) - { - case "1": - Console.Write("Enter student name: "); - string name = Console.ReadLine(); - Console.Write("Enter student number: "); - if (int.TryParse(Console.ReadLine(), out int studentNumber)) { - course.AddStudent(name, studentNumber); - } else { - Console.WriteLine("Invalid student number."); - } - break; - case "2": - course.ViewAllStudents(); - break; - case "3": - course.ViewAllGroups(); - break; - case "4": - Console.Write("Enter student number: "); - if (int.TryParse(Console.ReadLine(), out int searchNumber)) { - course.SearchByStudentNumber(searchNumber); - } - break; - case "5": - Console.Write("Enter group name: "); - string groupName = Console.ReadLine(); - course.SearchByGroup(groupName); - break; - case "6": - course.ShowStatistics(); - break; - case "7": - running = false; - break; - default: - Console.WriteLine("Invalid option, try again."); - break; - } - } - } -} - diff --git a/CS/Starter_assignment/Starter_assignment/Starter_assignment.csproj b/CS/Starter_assignment/Starter_assignment/Starter_assignment.csproj deleted file mode 100644 index 2f4fc77..0000000 --- a/CS/Starter_assignment/Starter_assignment/Starter_assignment.csproj +++ /dev/null @@ -1,10 +0,0 @@ - - - - Exe - net8.0 - enable - enable - - - diff --git a/CS/Starter_assignment/Starter_assignment/Student.cs b/CS/Starter_assignment/Starter_assignment/Student.cs deleted file mode 100644 index 618fa3c..0000000 --- a/CS/Starter_assignment/Starter_assignment/Student.cs +++ /dev/null @@ -1,27 +0,0 @@ -namespace Starter_assignment; - -class Student { - private string Name { get; } - private int StudentNumber { get; } - private string GroupName { get; } - - public Student(string name, int studentNumber, string groupName) { - if (string.IsNullOrWhiteSpace(name)) { - throw new ArgumentException("Name cannot be empty."); - } - if (studentNumber < 10000 && studentNumber != -1) { - throw new ArgumentException("Student number must be >= 10000 or -1."); - } - - Name = name; - StudentNumber = studentNumber; - GroupName = groupName; - } - - public int GetStudentNumber() { - return StudentNumber; - } - public string GetInfo() { - return $"{Name} ({StudentNumber}) - {GroupName}"; - } -} diff --git a/CS/Starter_assignment/Starter_assignment/bin/Debug/net8.0/Starter_assignment b/CS/Starter_assignment/Starter_assignment/bin/Debug/net8.0/Starter_assignment deleted file mode 100755 index 7364e5e..0000000 Binary files a/CS/Starter_assignment/Starter_assignment/bin/Debug/net8.0/Starter_assignment and /dev/null differ diff --git a/CS/Starter_assignment/Starter_assignment/bin/Debug/net8.0/Starter_assignment.deps.json b/CS/Starter_assignment/Starter_assignment/bin/Debug/net8.0/Starter_assignment.deps.json deleted file mode 100644 index c20d914..0000000 --- a/CS/Starter_assignment/Starter_assignment/bin/Debug/net8.0/Starter_assignment.deps.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "runtimeTarget": { - "name": ".NETCoreApp,Version=v8.0", - "signature": "" - }, - "compilationOptions": {}, - "targets": { - ".NETCoreApp,Version=v8.0": { - "Starter_assignment/1.0.0": { - "runtime": { - "Starter_assignment.dll": {} - } - } - } - }, - "libraries": { - "Starter_assignment/1.0.0": { - "type": "project", - "serviceable": false, - "sha512": "" - } - } -} \ No newline at end of file diff --git a/CS/Starter_assignment/Starter_assignment/bin/Debug/net8.0/Starter_assignment.dll b/CS/Starter_assignment/Starter_assignment/bin/Debug/net8.0/Starter_assignment.dll deleted file mode 100644 index 5066089..0000000 Binary files a/CS/Starter_assignment/Starter_assignment/bin/Debug/net8.0/Starter_assignment.dll and /dev/null differ diff --git a/CS/Starter_assignment/Starter_assignment/bin/Debug/net8.0/Starter_assignment.pdb b/CS/Starter_assignment/Starter_assignment/bin/Debug/net8.0/Starter_assignment.pdb deleted file mode 100644 index e3dc1d9..0000000 Binary files a/CS/Starter_assignment/Starter_assignment/bin/Debug/net8.0/Starter_assignment.pdb and /dev/null differ diff --git a/CS/Starter_assignment/Starter_assignment/bin/Debug/net8.0/Starter_assignment.runtimeconfig.json b/CS/Starter_assignment/Starter_assignment/bin/Debug/net8.0/Starter_assignment.runtimeconfig.json deleted file mode 100644 index becfaea..0000000 --- a/CS/Starter_assignment/Starter_assignment/bin/Debug/net8.0/Starter_assignment.runtimeconfig.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "runtimeOptions": { - "tfm": "net8.0", - "framework": { - "name": "Microsoft.NETCore.App", - "version": "8.0.0" - }, - "configProperties": { - "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false - } - } -} \ No newline at end of file diff --git a/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs b/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs deleted file mode 100644 index dca70aa..0000000 --- a/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs +++ /dev/null @@ -1,4 +0,0 @@ -// -using System; -using System.Reflection; -[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")] diff --git a/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.AssemblyInfo.cs b/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.AssemblyInfo.cs deleted file mode 100644 index 5b35b66..0000000 --- a/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.AssemblyInfo.cs +++ /dev/null @@ -1,22 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -using System; -using System.Reflection; - -[assembly: System.Reflection.AssemblyCompanyAttribute("Starter_assignment")] -[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] -[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] -[assembly: System.Reflection.AssemblyProductAttribute("Starter_assignment")] -[assembly: System.Reflection.AssemblyTitleAttribute("Starter_assignment")] -[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] - -// Generated by the MSBuild WriteCodeFragment class. - diff --git a/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.AssemblyInfoInputs.cache b/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.AssemblyInfoInputs.cache deleted file mode 100644 index 2b7cd31..0000000 --- a/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.AssemblyInfoInputs.cache +++ /dev/null @@ -1 +0,0 @@ -77da79aa1d8b67801697281643b61dd3f4e48c0c7f245ecd395dee391118be92 diff --git a/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.GeneratedMSBuildEditorConfig.editorconfig b/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.GeneratedMSBuildEditorConfig.editorconfig deleted file mode 100644 index 10df626..0000000 --- a/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.GeneratedMSBuildEditorConfig.editorconfig +++ /dev/null @@ -1,13 +0,0 @@ -is_global = true -build_property.TargetFramework = net8.0 -build_property.TargetPlatformMinVersion = -build_property.UsingMicrosoftNETSdkWeb = -build_property.ProjectTypeGuids = -build_property.InvariantGlobalization = -build_property.PlatformNeutralAssembly = -build_property.EnforceExtendedAnalyzerRules = -build_property._SupportedPlatformList = Linux,macOS,Windows -build_property.RootNamespace = Starter_assignment -build_property.ProjectDir = /home/rens/T2/CS/Starter_assignment/Starter_assignment/ -build_property.EnableComHosting = -build_property.EnableGeneratedComInterfaceComImportInterop = diff --git a/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.GlobalUsings.g.cs b/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.GlobalUsings.g.cs deleted file mode 100644 index 8578f3d..0000000 --- a/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.GlobalUsings.g.cs +++ /dev/null @@ -1,8 +0,0 @@ -// -global using global::System; -global using global::System.Collections.Generic; -global using global::System.IO; -global using global::System.Linq; -global using global::System.Net.Http; -global using global::System.Threading; -global using global::System.Threading.Tasks; diff --git a/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.assets.cache b/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.assets.cache deleted file mode 100644 index eea52c3..0000000 Binary files a/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.assets.cache and /dev/null differ diff --git a/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.csproj.CoreCompileInputs.cache b/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.csproj.CoreCompileInputs.cache deleted file mode 100644 index ee2f4d4..0000000 --- a/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.csproj.CoreCompileInputs.cache +++ /dev/null @@ -1 +0,0 @@ -63f646a6f5c36f8a67f54301cd756f80709a6758f27e90e85bd3caa85964b27d diff --git a/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.csproj.FileListAbsolute.txt b/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.csproj.FileListAbsolute.txt deleted file mode 100644 index 8703dff..0000000 --- a/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.csproj.FileListAbsolute.txt +++ /dev/null @@ -1,10 +0,0 @@ -/home/rens/files/T2/CS/Starter_assignment/Starter_assignment/bin/Debug/net8.0/Starter_assignment -/home/rens/files/T2/CS/Starter_assignment/Starter_assignment/bin/Debug/net8.0/Starter_assignment.dll -/home/rens/files/T2/CS/Starter_assignment/Starter_assignment/bin/Debug/net8.0/Starter_assignment.pdb -/home/rens/files/T2/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.GeneratedMSBuildEditorConfig.editorconfig -/home/rens/files/T2/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.AssemblyInfoInputs.cache -/home/rens/files/T2/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.AssemblyInfo.cs -/home/rens/files/T2/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.csproj.CoreCompileInputs.cache -/home/rens/files/T2/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.dll -/home/rens/files/T2/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/refint/Starter_assignment.dll -/home/rens/files/T2/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.pdb diff --git a/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.dll b/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.dll deleted file mode 100644 index 5066089..0000000 Binary files a/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.dll and /dev/null differ diff --git a/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.genruntimeconfig.cache b/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.genruntimeconfig.cache deleted file mode 100644 index 39e2157..0000000 --- a/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.genruntimeconfig.cache +++ /dev/null @@ -1 +0,0 @@ -4028af397b722be4e5490a9f64106d4a5c363b00c8703dae917b145b5632baa4 diff --git a/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.pdb b/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.pdb deleted file mode 100644 index e3dc1d9..0000000 Binary files a/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/Starter_assignment.pdb and /dev/null differ diff --git a/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/apphost b/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/apphost deleted file mode 100755 index 7364e5e..0000000 Binary files a/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/apphost and /dev/null differ diff --git a/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/ref/Starter_assignment.dll b/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/ref/Starter_assignment.dll deleted file mode 100644 index dd1190c..0000000 Binary files a/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/ref/Starter_assignment.dll and /dev/null differ diff --git a/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/refint/Starter_assignment.dll b/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/refint/Starter_assignment.dll deleted file mode 100644 index dd1190c..0000000 Binary files a/CS/Starter_assignment/Starter_assignment/obj/Debug/net8.0/refint/Starter_assignment.dll and /dev/null differ diff --git a/CS/Starter_assignment/Starter_assignment/obj/Starter_assignment.csproj.nuget.dgspec.json b/CS/Starter_assignment/Starter_assignment/obj/Starter_assignment.csproj.nuget.dgspec.json deleted file mode 100644 index fc9be79..0000000 --- a/CS/Starter_assignment/Starter_assignment/obj/Starter_assignment.csproj.nuget.dgspec.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "format": 1, - "restore": { - "/home/rens/files/T2/CS/Starter_assignment/Starter_assignment/Starter_assignment.csproj": {} - }, - "projects": { - "/home/rens/files/T2/CS/Starter_assignment/Starter_assignment/Starter_assignment.csproj": { - "version": "1.0.0", - "restore": { - "projectUniqueName": "/home/rens/files/T2/CS/Starter_assignment/Starter_assignment/Starter_assignment.csproj", - "projectName": "Starter_assignment", - "projectPath": "/home/rens/files/T2/CS/Starter_assignment/Starter_assignment/Starter_assignment.csproj", - "packagesPath": "/home/rens/.nuget/packages/", - "outputPath": "/home/rens/files/T2/CS/Starter_assignment/Starter_assignment/obj/", - "projectStyle": "PackageReference", - "configFilePaths": [ - "/home/rens/.nuget/NuGet/NuGet.Config" - ], - "originalTargetFrameworks": [ - "net8.0" - ], - "sources": { - "https://api.nuget.org/v3/index.json": {} - }, - "frameworks": { - "net8.0": { - "targetAlias": "net8.0", - "projectReferences": {} - } - }, - "warningProperties": { - "warnAsError": [ - "NU1605" - ] - }, - "restoreAuditProperties": { - "enableAudit": "true", - "auditLevel": "low", - "auditMode": "direct" - } - }, - "frameworks": { - "net8.0": { - "targetAlias": "net8.0", - "imports": [ - "net461", - "net462", - "net47", - "net471", - "net472", - "net48", - "net481" - ], - "assetTargetFallback": true, - "warn": true, - "frameworkReferences": { - "Microsoft.NETCore.App": { - "privateAssets": "all" - } - }, - "runtimeIdentifierGraphPath": "/home/rens/.dotnet/sdk/8.0.404/PortableRuntimeIdentifierGraph.json" - } - } - } - } -} \ No newline at end of file diff --git a/CS/Starter_assignment/Starter_assignment/obj/Starter_assignment.csproj.nuget.g.props b/CS/Starter_assignment/Starter_assignment/obj/Starter_assignment.csproj.nuget.g.props deleted file mode 100644 index 1ee7f5f..0000000 --- a/CS/Starter_assignment/Starter_assignment/obj/Starter_assignment.csproj.nuget.g.props +++ /dev/null @@ -1,15 +0,0 @@ - - - - True - NuGet - $(MSBuildThisFileDirectory)project.assets.json - /home/rens/.nuget/packages/ - /home/rens/.nuget/packages/ - PackageReference - 6.12.2 - - - - - \ No newline at end of file diff --git a/CS/Starter_assignment/Starter_assignment/obj/Starter_assignment.csproj.nuget.g.targets b/CS/Starter_assignment/Starter_assignment/obj/Starter_assignment.csproj.nuget.g.targets deleted file mode 100644 index 3dc06ef..0000000 --- a/CS/Starter_assignment/Starter_assignment/obj/Starter_assignment.csproj.nuget.g.targets +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/CS/Starter_assignment/Starter_assignment/obj/project.assets.json b/CS/Starter_assignment/Starter_assignment/obj/project.assets.json deleted file mode 100644 index 3edcb61..0000000 --- a/CS/Starter_assignment/Starter_assignment/obj/project.assets.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "version": 3, - "targets": { - "net8.0": {} - }, - "libraries": {}, - "projectFileDependencyGroups": { - "net8.0": [] - }, - "packageFolders": { - "/home/rens/.nuget/packages/": {} - }, - "project": { - "version": "1.0.0", - "restore": { - "projectUniqueName": "/home/rens/files/T2/CS/Starter_assignment/Starter_assignment/Starter_assignment.csproj", - "projectName": "Starter_assignment", - "projectPath": "/home/rens/files/T2/CS/Starter_assignment/Starter_assignment/Starter_assignment.csproj", - "packagesPath": "/home/rens/.nuget/packages/", - "outputPath": "/home/rens/files/T2/CS/Starter_assignment/Starter_assignment/obj/", - "projectStyle": "PackageReference", - "configFilePaths": [ - "/home/rens/.nuget/NuGet/NuGet.Config" - ], - "originalTargetFrameworks": [ - "net8.0" - ], - "sources": { - "https://api.nuget.org/v3/index.json": {} - }, - "frameworks": { - "net8.0": { - "targetAlias": "net8.0", - "projectReferences": {} - } - }, - "warningProperties": { - "warnAsError": [ - "NU1605" - ] - }, - "restoreAuditProperties": { - "enableAudit": "true", - "auditLevel": "low", - "auditMode": "direct" - } - }, - "frameworks": { - "net8.0": { - "targetAlias": "net8.0", - "imports": [ - "net461", - "net462", - "net47", - "net471", - "net472", - "net48", - "net481" - ], - "assetTargetFallback": true, - "warn": true, - "frameworkReferences": { - "Microsoft.NETCore.App": { - "privateAssets": "all" - } - }, - "runtimeIdentifierGraphPath": "/home/rens/.dotnet/sdk/8.0.404/PortableRuntimeIdentifierGraph.json" - } - } - } -} \ No newline at end of file diff --git a/CS/Starter_assignment/Starter_assignment/obj/project.nuget.cache b/CS/Starter_assignment/Starter_assignment/obj/project.nuget.cache deleted file mode 100644 index 65b5e2d..0000000 --- a/CS/Starter_assignment/Starter_assignment/obj/project.nuget.cache +++ /dev/null @@ -1,8 +0,0 @@ -{ - "version": 2, - "dgSpecHash": "0d5jt8ngUw0=", - "success": true, - "projectFilePath": "/home/rens/T2/CS/Starter_assignment/Starter_assignment/Starter_assignment.csproj", - "expectedPackageFiles": [], - "logs": [] -} \ No newline at end of file diff --git a/CS/Starter_assignment/Starter_assignment/obj/project.packagespec.json b/CS/Starter_assignment/Starter_assignment/obj/project.packagespec.json deleted file mode 100644 index deb1fd1..0000000 --- a/CS/Starter_assignment/Starter_assignment/obj/project.packagespec.json +++ /dev/null @@ -1 +0,0 @@ -"restore":{"projectUniqueName":"/home/rens/files/T2/CS/Starter_assignment/Starter_assignment/Starter_assignment.csproj","projectName":"Starter_assignment","projectPath":"/home/rens/files/T2/CS/Starter_assignment/Starter_assignment/Starter_assignment.csproj","outputPath":"/home/rens/files/T2/CS/Starter_assignment/Starter_assignment/obj/","projectStyle":"PackageReference","originalTargetFrameworks":["net8.0"],"sources":{"https://api.nuget.org/v3/index.json":{}},"frameworks":{"net8.0":{"targetAlias":"net8.0","projectReferences":{}}},"warningProperties":{"warnAsError":["NU1605"]},"restoreAuditProperties":{"enableAudit":"true","auditLevel":"low","auditMode":"direct"}}"frameworks":{"net8.0":{"targetAlias":"net8.0","imports":["net461","net462","net47","net471","net472","net48","net481"],"assetTargetFallback":true,"warn":true,"frameworkReferences":{"Microsoft.NETCore.App":{"privateAssets":"all"}},"runtimeIdentifierGraphPath":"/home/rens/.dotnet/sdk/8.0.404/PortableRuntimeIdentifierGraph.json"}} \ No newline at end of file diff --git a/CS/Starter_assignment/Starter_assignment/obj/rider.project.model.nuget.info b/CS/Starter_assignment/Starter_assignment/obj/rider.project.model.nuget.info deleted file mode 100644 index a86fdb3..0000000 --- a/CS/Starter_assignment/Starter_assignment/obj/rider.project.model.nuget.info +++ /dev/null @@ -1 +0,0 @@ -17406469005085962 \ No newline at end of file diff --git a/CS/Starter_assignment/Starter_assignment/obj/rider.project.restore.info b/CS/Starter_assignment/Starter_assignment/obj/rider.project.restore.info deleted file mode 100644 index a86fdb3..0000000 --- a/CS/Starter_assignment/Starter_assignment/obj/rider.project.restore.info +++ /dev/null @@ -1 +0,0 @@ -17406469005085962 \ No newline at end of file