$/
docs/
src/
tests/
samples/
artifacts/
packages/
build/
lib/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using EnergyCap.Sdk; | |
using EnergyCap.Sdk.Models; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Net.Http; | |
using System.Net.Http.Headers; | |
using System.Threading; | |
using System.Threading.Tasks; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://localhost:2375/v1.24/images/json | |
docker run hello-world | |
docker run -it ubuntu bash | |
docker run -d -p 8000:80 nginx | |
docker run -d -p 8000:80 -v c:\Techbash\html:/usr/share/nginx/html nginx | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<configuration> | |
<system.webServer> | |
<handlers> | |
<add name="httpplatformhandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified" /> | |
</handlers> | |
<httpPlatform processPath="..\approot\web.cmd" arguments="" stdoutLogEnabled="true" stdoutLogFile="..\logs\stdout.log"></httpPlatform> | |
</system.webServer> | |
</configuration> |
##Dev Questions
- Describe a few design patterns (besides factory or singleton).
- Explain Inversion of Control and dependency injection.
- Why are interfaces important?
- Why are coding standards/conventions important?
- How do YOU refactor code?
- Explain Single Responsibility Principle and why it is important?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DECLARE @a int | |
SET @a = 100 | |
DECLARE @b int | |
SET @b = 101 | |
select * from table where tableId in (@a,@b) | |
select * from table where tableId = @a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class DynamoMock | |
{ | |
public static Mock Mock(Type type) | |
{ | |
var mock = typeof(Mock<>).MakeGenericType(type).GetConstructor(Type.EmptyTypes).Invoke(new object[] { }); | |
return (Mock) mock; | |
} | |
public static Mock Mock(Type type, Type type2) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.Owin.FileSystems; | |
using System; | |
using System.Reflection; | |
namespace Metrical.Providers | |
{ | |
public class ResourceFileInfo : IFileInfo | |
{ | |
private string _filePath; | |
private Assembly _assembly; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace EnergyCAP.EF.Extensions | |
{ | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web.Http; | |
namespace MvcApplication1 | |
{ | |
public static class WebApiConfig | |
{ | |
public static void Register(HttpConfiguration config) |