Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions CourseGPA/CourseGPA.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
Expand All @@ -7,7 +7,8 @@
<OutputType>Exe</OutputType>
<RootNamespace>CourseGPA</RootNamespace>
<AssemblyName>CourseGPA</AssemblyName>
<TargetFrameworkVersion>v4.7</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<DebugSymbols>true</DebugSymbols>
Expand Down Expand Up @@ -35,5 +36,8 @@
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
</Project>
3 changes: 3 additions & 0 deletions CourseGPA/app.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/></startup></configuration>
8 changes: 6 additions & 2 deletions CourseGPAArray/CourseGPAArray.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
Expand All @@ -7,7 +7,8 @@
<OutputType>Exe</OutputType>
<RootNamespace>CourseGPAArray</RootNamespace>
<AssemblyName>CourseGPAArray</AssemblyName>
<TargetFrameworkVersion>v4.7</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<DebugSymbols>true</DebugSymbols>
Expand Down Expand Up @@ -35,5 +36,8 @@
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
</Project>
3 changes: 3 additions & 0 deletions CourseGPAArray/app.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/></startup></configuration>
8 changes: 6 additions & 2 deletions CourseGPAFile/CourseGPAFile.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
Expand All @@ -7,7 +7,8 @@
<OutputType>Exe</OutputType>
<RootNamespace>CourseGPAFile</RootNamespace>
<AssemblyName>CourseGPAFile</AssemblyName>
<TargetFrameworkVersion>v4.7</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<DebugSymbols>true</DebugSymbols>
Expand Down Expand Up @@ -35,5 +36,8 @@
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
</Project>
3 changes: 3 additions & 0 deletions CourseGPAFile/app.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/></startup></configuration>
38 changes: 38 additions & 0 deletions MediaLibrary/Class1.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
using System;

public class Class1
{
public abstract Class1()
{

}
public abstract class Animal
{
public string Name { get; set; }
public virtual void Talk()
{
Console.WriteLine("Hello");
}
}
public class Dog : Animal
{
public override void Talk()
{
Console.WriteLine("Bark");
}
public class Cat : Animal
{
public override Talk()
{
Console.WriteLine("Meow");
}
}
}
public class Bird : Animal
{
public override Talk()
{
Console.WriteLine("Cheep");
}
}
}
21 changes: 18 additions & 3 deletions SleepData/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ public static void Main(string[] args)
string resp = Console.ReadLine();

// specify path for data file
string file = "/users/jgrissom/downloads/data.txt";

//string file = "/users/jgrissom/downloads/data.txt";
string file = AppDomain.CurrentDomain.BaseDirectory + "data.txt";
if (resp == "1")
{
// create data file
Expand Down Expand Up @@ -50,16 +50,31 @@ public static void Main(string[] args)
}
// M/d/yyyy,#|#|#|#|#|#|#
//Console.WriteLine($"{dataDate:M/d/yy},{string.Join("|", hours)}");
sw.WriteLine($"{dataDate:M/d/yyyy},{string.Join("|", hours)}");
//sw.WriteLine($"{dataDate:M/d/yyyy},{string.Join("|", hours)}");

// add 1 week to date

sw.WriteLine($"Week of: {dataDate:M/d/yy}");
sw.WriteLine("--");
sw.WriteLine($"{string.Join(" ", hours)}");

dataDate = dataDate.AddDays(7);
}
sw.Close();
}
else if (resp == "2")
{
// TODO: parse data file
string line = "";
using (StreamReader sr = new StreamReader("data.txt"))
{
while ((line = sr.ReadLine()) != null)
{
Console.WriteLine(line);
}


}
}
}
}
Expand Down
Empty file added SleepData/Properties/Data.txt
Empty file.
8 changes: 6 additions & 2 deletions SleepData/SleepData.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
Expand All @@ -7,7 +7,8 @@
<OutputType>Exe</OutputType>
<RootNamespace>SleepData</RootNamespace>
<AssemblyName>SleepData</AssemblyName>
<TargetFrameworkVersion>v4.7</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<DebugSymbols>true</DebugSymbols>
Expand Down Expand Up @@ -35,5 +36,8 @@
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
</Project>
3 changes: 3 additions & 0 deletions SleepData/app.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/></startup></configuration>
8 changes: 6 additions & 2 deletions YourName/YourName.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
Expand All @@ -7,7 +7,8 @@
<OutputType>Exe</OutputType>
<RootNamespace>YourName</RootNamespace>
<AssemblyName>YourName</AssemblyName>
<TargetFrameworkVersion>v4.7</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<DebugSymbols>true</DebugSymbols>
Expand Down Expand Up @@ -35,5 +36,8 @@
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
</Project>
3 changes: 3 additions & 0 deletions YourName/app.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/></startup></configuration>