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
[AttributeUsage(System.AttributeTargets.All, AllowMultiple = true, Inherited = true)] | |
public class ಠ_ಠAttribute : Attribute | |
{ | |
public ILog Log { get; set; } | |
public ಠ_ಠAttribute() | |
{ | |
Log.Info("This code is bad and you should feel bad"); | |
} | |
} |
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
resource "azurerm_resource_group" "default" { | |
name = "vnet-test-terraform" | |
location = "UK West" | |
} | |
resource "azurerm_virtual_network" "default" { | |
name = "vnet-test-terraform-vn" | |
address_space = ["10.1.0.0/16"] | |
location = "UK West" | |
resource_group_name = "${azurerm_resource_group.default.name}" | |
} |
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
{ | |
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"sites_vnet_test_manual_as_name": { | |
"defaultValue": "vnet-test-manual-as", | |
"type": "String" | |
}, | |
"serverfarms_vnet_test_manual_asp_name": { | |
"defaultValue": "vnet-test-manual-asp", |
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: |
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
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
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
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
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
public class Postcode | |
{ | |
private readonly string value; | |
public Postcode(string value) | |
{ | |
if (CheckPostcodeIsValid(value)) | |
{ | |
throw new InvalidPostcodeException(); | |
} |
NewerOlder