This file contains hidden or 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
Set-WindowsExplorerOptions -EnableShowFileExtensions | |
Enable-WindowsOptionalFeature -Online -FeatureName MSMQ-Server -All | |
cinst python2 | |
cinst git | |
cinst ravendb3 | |
cinst sql-server-2017 | |
cinst sql-server-management-studio |
This file contains hidden or 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
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions | |
Enable-WindowsOptionalFeature -Online -FeatureName MSMQ-Server -All | |
wsl --install | |
choco install microsoft-windows-terminal | |
choco install git | |
choco install dotnet | |
choco install nodejs | |
choco install visualstudiocode |
This file contains hidden or 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
[TestFixture] | |
public class Test1 | |
{ | |
[Test] | |
public async Task TestSavesThings() | |
{ | |
var result = await DoSomeAsync(); | |
Assert.True(result); | |
} |
This file contains hidden or 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.Collections.Generic; | |
using System.Linq; | |
namespace Nulls | |
{ | |
public class Repository | |
{ | |
private readonly List<Person> _persons = new List<Person>() | |
{ | |
new Person { FirstName = "Bob", Surname = "Smith"}, |
This file contains hidden or 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 Contact | |
{ | |
public Contact(string firstname, string surname, string address) | |
{ | |
this.Firstname = firstname; | |
this.Surname = surname; | |
this.Address = address; | |
} | |
public string Firstname { get; private set; } | |
public string Surname { get; private set; } |
This file contains hidden or 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
(ns cheesescrewdriver.core-test | |
(:use [midje.sweet])) | |
(def today "1/03/2015") | |
(defn is-expiry-date-today [date] | |
(= date today)) | |
(defn get-price [product] | |
(product :price)) |
This file contains hidden or 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; | |
namespace GildedRose | |
{ | |
public class GildedRose | |
{ | |
private static readonly Dictionary<string, Action<Item>> Products = new Dictionary<string, Action<Item>> | |
{ | |
{"Aged Brie", Product.Adjust(Adjusters.QualityAdjustedBy(1))}, |
This file contains hidden or 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; | |
namespace gildedrose | |
{ | |
public class GildedRose | |
{ | |
// private static List<Item> items = null; | |
// | |
// public static void main(String[] args) { |
This file contains hidden or 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
function fileResizer(fileRepository, fileStore, renderThumbnail) { | |
function listen(event) { | |
event.data.files.forEach(function(id) { | |
getFileContents(id, renderThumbnailToStore); | |
}); | |
} | |
function getFileContents(id, next) { | |
fileRepository.getById(id, function(err, file) { |
This file contains hidden or 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
var request = require('request'); | |
var async = require('async'); | |
function eventStore() { | |
function createEvent(event, body) { | |
return { | |
data: body, | |
type: event.summary | |
}; | |
} |
NewerOlder