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
class RandomObject | |
{ | |
public decimal? PropertyA { get; set; } | |
public decimal? PropertyB { get; set; } | |
} | |
class CalculatePropertyA : ICalculator | |
{ | |
string Name { get { return "PropertyA"; } } | |
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 Program | |
{ | |
public static void Main(string[] args) | |
{ | |
var store = Wireup.Init().UsingInMemoryPersistence().Build(); | |
var repository = new EventStoreRepository(store, new AggregateFactory(), new ConflictDetector()); | |
var handler = new CreatePostCommandHandler(repository); | |
handler.Execute(new CreatePostCommand(new Guid(), "Test Title", "Test Description")); | |
} |
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
Error detected while processing function OmniSharp#FixUsings: | |
line 1: | |
Traceback (most recent call last): | |
File "<string>", line 1, in <module> | |
File "/Users/mat-mcloughlin/.vim/plugged/omnisharp-vim/python/OmniSharp.py", line 187, in fix_usings | |
js = json.loads(response) | |
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 338, in loads | |
return _default_decoder.decode(s) | |
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 366, in decode | |
obj, end = self.raw_decode(s, idx=_w(s, 0).end()) |
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 Postcode | |
{ | |
private readonly string value; | |
public Postcode(string value) | |
{ | |
if (CheckPostcodeIsValid(value)) | |
{ | |
throw new InvalidPostcodeException(); | |
} |
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
1 call plug#begin('~/.vim/plugged') | |
1 | |
2 Plug 'ctrlpvim/ctrlp.vim' | |
3 Plug 'flazz/vim-colorschemes' | |
4 Plug 'tpope/vim-vinegar' | |
5 Plug 'dmpas/vim-csharp' | |
6 Plug 'powerline/powerline' | |
7 | |
8 call plug#end() | |
9 |
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; | |
namespace ConsoleApplication | |
{ | |
public class Program | |
{ | |
public static void Main(string[] args) | |
{ | |
var register = new CommandRegister(); |
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
call plug#begin('~/.vim/plugged') | |
Plug 'ctrlpvim/ctrlp.vim' | |
Plug 'flazz/vim-colorschemes' | |
Plug 'tpope/vim-vinegar' | |
Plug 'Chiel92/vim-autoformat' | |
Plug 'powerline/powerline', { 'rtp': 'powerline/bindings/vim/' } | |
Plug 'plasticboy/vim-markdown' | |
Plug 'junegunn/goyo.vim' |
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 Encounter | |
{ | |
string patientName; | |
DateTime birthDate; | |
int ageInYears; | |
DateTime timeOfAdmission; |
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; | |
namespace ConsoleApplication | |
{ | |
public class Program | |
{ | |
public static void Main(string[] args) | |
{ | |
var register = new CommandRegister(); |
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
--- | |
- hosts: ghost | |
become: true | |
tasks: | |
# setup nginx and firewall | |
- name: Install nginx | |
apt: |