diff --git a/Codealong/view.js b/Codealong/view.js index 81a2d1a..e98f1c4 100644 --- a/Codealong/view.js +++ b/Codealong/view.js @@ -38,7 +38,7 @@ function addBikeview() {
- Er sykkelen tigjengeligJa + Er sykkelen tigjengeligJa Nei
diff --git a/Emne 3/.envrc b/Emne 3/.envrc new file mode 100644 index 0000000..65326bb --- /dev/null +++ b/Emne 3/.envrc @@ -0,0 +1 @@ +use nix \ No newline at end of file diff --git a/Emne 3/shell.nix b/Emne 3/shell.nix new file mode 100644 index 0000000..947634f --- /dev/null +++ b/Emne 3/shell.nix @@ -0,0 +1,14 @@ +# shell.nix +with import {}; + +mkShell { + name = "dotnet-env"; + packages = [ + (with dotnetCorePackages; combinePackages [ + sdk_6_0 + sdk_7_0 + sdk_8_0 + sdk_9_0 + ]) + ]; +} \ No newline at end of file diff --git a/Emne 3/test/Program.cs b/Emne 3/test/Program.cs new file mode 100644 index 0000000..83fa4f4 --- /dev/null +++ b/Emne 3/test/Program.cs @@ -0,0 +1,2 @@ +// See https://aka.ms/new-console-template for more information +Console.WriteLine("Hello, World!"); diff --git a/Emne 3/test/bin/Debug/net6.0/test b/Emne 3/test/bin/Debug/net6.0/test new file mode 100755 index 0000000..ab64943 Binary files /dev/null and b/Emne 3/test/bin/Debug/net6.0/test differ diff --git a/Emne 3/test/bin/Debug/net6.0/test.deps.json b/Emne 3/test/bin/Debug/net6.0/test.deps.json new file mode 100644 index 0000000..6f037aa --- /dev/null +++ b/Emne 3/test/bin/Debug/net6.0/test.deps.json @@ -0,0 +1,23 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v6.0", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v6.0": { + "test/1.0.0": { + "runtime": { + "test.dll": {} + } + } + } + }, + "libraries": { + "test/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + } + } +} \ No newline at end of file diff --git a/Emne 3/test/bin/Debug/net6.0/test.dll b/Emne 3/test/bin/Debug/net6.0/test.dll new file mode 100644 index 0000000..91b0264 Binary files /dev/null and b/Emne 3/test/bin/Debug/net6.0/test.dll differ diff --git a/Emne 3/test/bin/Debug/net6.0/test.pdb b/Emne 3/test/bin/Debug/net6.0/test.pdb new file mode 100644 index 0000000..c13db9b Binary files /dev/null and b/Emne 3/test/bin/Debug/net6.0/test.pdb differ diff --git a/Emne 3/test/bin/Debug/net6.0/test.runtimeconfig.json b/Emne 3/test/bin/Debug/net6.0/test.runtimeconfig.json new file mode 100644 index 0000000..4986d16 --- /dev/null +++ b/Emne 3/test/bin/Debug/net6.0/test.runtimeconfig.json @@ -0,0 +1,9 @@ +{ + "runtimeOptions": { + "tfm": "net6.0", + "framework": { + "name": "Microsoft.NETCore.App", + "version": "6.0.0" + } + } +} \ No newline at end of file diff --git a/Emne 3/test/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs b/Emne 3/test/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs new file mode 100644 index 0000000..f795be5 --- /dev/null +++ b/Emne 3/test/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = "")] diff --git a/Emne 3/test/obj/Debug/net6.0/apphost b/Emne 3/test/obj/Debug/net6.0/apphost new file mode 100755 index 0000000..ab64943 Binary files /dev/null and b/Emne 3/test/obj/Debug/net6.0/apphost differ diff --git a/Emne 3/test/obj/Debug/net6.0/ref/test.dll b/Emne 3/test/obj/Debug/net6.0/ref/test.dll new file mode 100644 index 0000000..024efb8 Binary files /dev/null and b/Emne 3/test/obj/Debug/net6.0/ref/test.dll differ diff --git a/Emne 3/test/obj/Debug/net6.0/refint/test.dll b/Emne 3/test/obj/Debug/net6.0/refint/test.dll new file mode 100644 index 0000000..024efb8 Binary files /dev/null and b/Emne 3/test/obj/Debug/net6.0/refint/test.dll differ diff --git a/Emne 3/test/obj/Debug/net6.0/test.AssemblyInfo.cs b/Emne 3/test/obj/Debug/net6.0/test.AssemblyInfo.cs new file mode 100644 index 0000000..ae50564 --- /dev/null +++ b/Emne 3/test/obj/Debug/net6.0/test.AssemblyInfo.cs @@ -0,0 +1,22 @@ +//------------------------------------------------------------------------------ +// +// 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("test")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+0d48ecd36c784dc17779f6ea5d2c2ee92229f638")] +[assembly: System.Reflection.AssemblyProductAttribute("test")] +[assembly: System.Reflection.AssemblyTitleAttribute("test")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Generated by the MSBuild WriteCodeFragment class. + diff --git a/Emne 3/test/obj/Debug/net6.0/test.AssemblyInfoInputs.cache b/Emne 3/test/obj/Debug/net6.0/test.AssemblyInfoInputs.cache new file mode 100644 index 0000000..9ef7c07 --- /dev/null +++ b/Emne 3/test/obj/Debug/net6.0/test.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +fa1090383c7e9468c712b99ada208132ba266a2c4ee621946e799a1f8a8ef25e diff --git a/Emne 3/test/obj/Debug/net6.0/test.GeneratedMSBuildEditorConfig.editorconfig b/Emne 3/test/obj/Debug/net6.0/test.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000..5d5dae3 --- /dev/null +++ b/Emne 3/test/obj/Debug/net6.0/test.GeneratedMSBuildEditorConfig.editorconfig @@ -0,0 +1,15 @@ +is_global = true +build_property.TargetFramework = net6.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 = test +build_property.ProjectDir = /home/geir/code/startit/Emne 3/test/ +build_property.EnableComHosting = +build_property.EnableGeneratedComInterfaceComImportInterop = +build_property.EffectiveAnalysisLevelStyle = 6.0 +build_property.EnableCodeStyleSeverity = diff --git a/Emne 3/test/obj/Debug/net6.0/test.GlobalUsings.g.cs b/Emne 3/test/obj/Debug/net6.0/test.GlobalUsings.g.cs new file mode 100644 index 0000000..8578f3d --- /dev/null +++ b/Emne 3/test/obj/Debug/net6.0/test.GlobalUsings.g.cs @@ -0,0 +1,8 @@ +// +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/Emne 3/test/obj/Debug/net6.0/test.assets.cache b/Emne 3/test/obj/Debug/net6.0/test.assets.cache new file mode 100644 index 0000000..dd50f75 Binary files /dev/null and b/Emne 3/test/obj/Debug/net6.0/test.assets.cache differ diff --git a/Emne 3/test/obj/Debug/net6.0/test.csproj.CoreCompileInputs.cache b/Emne 3/test/obj/Debug/net6.0/test.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..7e6ec24 --- /dev/null +++ b/Emne 3/test/obj/Debug/net6.0/test.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +efee7a292436d1551f7324d4cb434e20ebd4961bf658768cef30abef989affa8 diff --git a/Emne 3/test/obj/Debug/net6.0/test.csproj.FileListAbsolute.txt b/Emne 3/test/obj/Debug/net6.0/test.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..022e435 --- /dev/null +++ b/Emne 3/test/obj/Debug/net6.0/test.csproj.FileListAbsolute.txt @@ -0,0 +1,14 @@ +/home/geir/code/startit/Emne 3/test/bin/Debug/net6.0/test +/home/geir/code/startit/Emne 3/test/bin/Debug/net6.0/test.deps.json +/home/geir/code/startit/Emne 3/test/bin/Debug/net6.0/test.runtimeconfig.json +/home/geir/code/startit/Emne 3/test/bin/Debug/net6.0/test.dll +/home/geir/code/startit/Emne 3/test/bin/Debug/net6.0/test.pdb +/home/geir/code/startit/Emne 3/test/obj/Debug/net6.0/test.GeneratedMSBuildEditorConfig.editorconfig +/home/geir/code/startit/Emne 3/test/obj/Debug/net6.0/test.AssemblyInfoInputs.cache +/home/geir/code/startit/Emne 3/test/obj/Debug/net6.0/test.AssemblyInfo.cs +/home/geir/code/startit/Emne 3/test/obj/Debug/net6.0/test.csproj.CoreCompileInputs.cache +/home/geir/code/startit/Emne 3/test/obj/Debug/net6.0/test.dll +/home/geir/code/startit/Emne 3/test/obj/Debug/net6.0/refint/test.dll +/home/geir/code/startit/Emne 3/test/obj/Debug/net6.0/test.pdb +/home/geir/code/startit/Emne 3/test/obj/Debug/net6.0/test.genruntimeconfig.cache +/home/geir/code/startit/Emne 3/test/obj/Debug/net6.0/ref/test.dll diff --git a/Emne 3/test/obj/Debug/net6.0/test.dll b/Emne 3/test/obj/Debug/net6.0/test.dll new file mode 100644 index 0000000..91b0264 Binary files /dev/null and b/Emne 3/test/obj/Debug/net6.0/test.dll differ diff --git a/Emne 3/test/obj/Debug/net6.0/test.genruntimeconfig.cache b/Emne 3/test/obj/Debug/net6.0/test.genruntimeconfig.cache new file mode 100644 index 0000000..9503b02 --- /dev/null +++ b/Emne 3/test/obj/Debug/net6.0/test.genruntimeconfig.cache @@ -0,0 +1 @@ +0aeb3fc94929053dd3e8a02fe7483ffd8e9599b88c7b8f3dafb2aeff4770ae76 diff --git a/Emne 3/test/obj/Debug/net6.0/test.pdb b/Emne 3/test/obj/Debug/net6.0/test.pdb new file mode 100644 index 0000000..c13db9b Binary files /dev/null and b/Emne 3/test/obj/Debug/net6.0/test.pdb differ diff --git a/Emne 3/test/obj/project.assets.json b/Emne 3/test/obj/project.assets.json new file mode 100644 index 0000000..fe04bca --- /dev/null +++ b/Emne 3/test/obj/project.assets.json @@ -0,0 +1,86 @@ +{ + "version": 3, + "targets": { + "net6.0": {} + }, + "libraries": {}, + "projectFileDependencyGroups": { + "net6.0": [] + }, + "packageFolders": { + "/home/geir/.nuget/packages/": {} + }, + "project": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "/home/geir/code/startit/Emne 3/test/test.csproj", + "projectName": "test", + "projectPath": "/home/geir/code/startit/Emne 3/test/test.csproj", + "packagesPath": "/home/geir/.nuget/packages/", + "outputPath": "/home/geir/code/startit/Emne 3/test/obj/", + "projectStyle": "PackageReference", + "configFilePaths": [ + "/home/geir/.nuget/NuGet/NuGet.Config" + ], + "originalTargetFrameworks": [ + "net6.0" + ], + "sources": { + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net6.0": { + "targetAlias": "net6.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + }, + "restoreAuditProperties": { + "enableAudit": "true", + "auditLevel": "low", + "auditMode": "all" + }, + "SdkAnalysisLevel": "9.0.100" + }, + "frameworks": { + "net6.0": { + "targetAlias": "net6.0", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "downloadDependencies": [ + { + "name": "Microsoft.AspNetCore.App.Ref", + "version": "[6.0.35, 6.0.35]" + }, + { + "name": "Microsoft.NETCore.App.Host.linux-x64", + "version": "[6.0.35, 6.0.35]" + }, + { + "name": "Microsoft.NETCore.App.Ref", + "version": "[6.0.35, 6.0.35]" + } + ], + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "/nix/store/jkh0ali7w1ikrz7d9rbh2hdp52gdy8mn-dotnet-sdk-9.0.100-rc.2.24474.11/sdk/9.0.100-rc.2.24474.11/RuntimeIdentifierGraph.json" + } + } + } +} \ No newline at end of file diff --git a/Emne 3/test/obj/project.nuget.cache b/Emne 3/test/obj/project.nuget.cache new file mode 100644 index 0000000..472a84d --- /dev/null +++ b/Emne 3/test/obj/project.nuget.cache @@ -0,0 +1,12 @@ +{ + "version": 2, + "dgSpecHash": "eAulN7AMGw0=", + "success": true, + "projectFilePath": "/home/geir/code/startit/Emne 3/test/test.csproj", + "expectedPackageFiles": [ + "/home/geir/.nuget/packages/microsoft.netcore.app.ref/6.0.35/microsoft.netcore.app.ref.6.0.35.nupkg.sha512", + "/home/geir/.nuget/packages/microsoft.aspnetcore.app.ref/6.0.35/microsoft.aspnetcore.app.ref.6.0.35.nupkg.sha512", + "/home/geir/.nuget/packages/microsoft.netcore.app.host.linux-x64/6.0.35/microsoft.netcore.app.host.linux-x64.6.0.35.nupkg.sha512" + ], + "logs": [] +} \ No newline at end of file diff --git a/Emne 3/test/obj/test.csproj.nuget.dgspec.json b/Emne 3/test/obj/test.csproj.nuget.dgspec.json new file mode 100644 index 0000000..896cc99 --- /dev/null +++ b/Emne 3/test/obj/test.csproj.nuget.dgspec.json @@ -0,0 +1,81 @@ +{ + "format": 1, + "restore": { + "/home/geir/code/startit/Emne 3/test/test.csproj": {} + }, + "projects": { + "/home/geir/code/startit/Emne 3/test/test.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "/home/geir/code/startit/Emne 3/test/test.csproj", + "projectName": "test", + "projectPath": "/home/geir/code/startit/Emne 3/test/test.csproj", + "packagesPath": "/home/geir/.nuget/packages/", + "outputPath": "/home/geir/code/startit/Emne 3/test/obj/", + "projectStyle": "PackageReference", + "configFilePaths": [ + "/home/geir/.nuget/NuGet/NuGet.Config" + ], + "originalTargetFrameworks": [ + "net6.0" + ], + "sources": { + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net6.0": { + "targetAlias": "net6.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + }, + "restoreAuditProperties": { + "enableAudit": "true", + "auditLevel": "low", + "auditMode": "all" + }, + "SdkAnalysisLevel": "9.0.100" + }, + "frameworks": { + "net6.0": { + "targetAlias": "net6.0", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "downloadDependencies": [ + { + "name": "Microsoft.AspNetCore.App.Ref", + "version": "[6.0.35, 6.0.35]" + }, + { + "name": "Microsoft.NETCore.App.Host.linux-x64", + "version": "[6.0.35, 6.0.35]" + }, + { + "name": "Microsoft.NETCore.App.Ref", + "version": "[6.0.35, 6.0.35]" + } + ], + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "/nix/store/jkh0ali7w1ikrz7d9rbh2hdp52gdy8mn-dotnet-sdk-9.0.100-rc.2.24474.11/sdk/9.0.100-rc.2.24474.11/RuntimeIdentifierGraph.json" + } + } + } + } +} \ No newline at end of file diff --git a/Emne 3/test/obj/test.csproj.nuget.g.props b/Emne 3/test/obj/test.csproj.nuget.g.props new file mode 100644 index 0000000..09300f4 --- /dev/null +++ b/Emne 3/test/obj/test.csproj.nuget.g.props @@ -0,0 +1,15 @@ + + + + True + NuGet + $(MSBuildThisFileDirectory)project.assets.json + /home/geir/.nuget/packages/ + /home/geir/.nuget/packages/ + PackageReference + 6.12.0 + + + + + \ No newline at end of file diff --git a/Emne 3/test/obj/test.csproj.nuget.g.targets b/Emne 3/test/obj/test.csproj.nuget.g.targets new file mode 100644 index 0000000..3dc06ef --- /dev/null +++ b/Emne 3/test/obj/test.csproj.nuget.g.targets @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/Emne 3/test/test.csproj b/Emne 3/test/test.csproj new file mode 100644 index 0000000..40c60dd --- /dev/null +++ b/Emne 3/test/test.csproj @@ -0,0 +1,10 @@ + + + + Exe + net6.0 + enable + enable + + + diff --git a/oppgaver/checkLetters.js b/oppgaver/checkLetters.js index dc96036..39949ce 100644 --- a/oppgaver/checkLetters.js +++ b/oppgaver/checkLetters.js @@ -8,7 +8,6 @@ let string2 = "The quick brown fox jumps over the lazy dog" function isPangram(str) { const lowerStr = str.toLowerCase(); - if (letters.split('').every(char => lowerStr.includes(char))){ console.log('ja') return true;