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
Kim Johansson, mjukvaruingenjör, Detectify | |
Antal år i yrket: 6 år. | |
Kompetens: Agila systemutvecklingsmetoder, arkitetur, devops, molnplattformer, | |
distribuerade system, skalbarhet, prestanda, databaser. | |
Många språk, främst C#, Go och PHP. | |
Verksamhetsområde: Generalist, verksam inom försvarsindustrin, telekombranschen | |
it-säkerhetsindustrin och webbbyråer. |
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
var allies = m.SubMenu("Muted").SubMenu("Allies").Items; | |
var enemies = m.SubMenu("Muted").SubMenu("Allies").Items; | |
foreach (var item in allies.Concat(enemies)) | |
{ | |
Log(item.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
#!/bin/bash | |
if [ $# -ne 3 ] | |
then | |
echo "Usage: s3-get iam-role-name s3-resource output-file" | |
exit 1 | |
fi | |
Role=$1 | |
Resource=$2 |
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
PREFIX?=$(shell pwd) | |
VERSION=$(shell git describe --match 'v[0-9]*' --dirty='.m' --always) | |
GO_LDFLAGS=-ldflags "-X `go list ./version`.Version $(VERSION)" | |
.PHONY: clean all fmt vet lint build test binaries | |
.DEFAULT: default | |
all: AUTHORS clean fmt vet fmt lint build test binaries | |
AUTHORS: .mailmap .git/HEAD |
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 Animal { | |
protected Animal(string type) | |
{ | |
Type = type; | |
} | |
public string Type { get; private set; } | |
} | |
class Dog : Animal |
This file has been truncated, but you can view the full file.
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; | |
public static class Program | |
{ | |
public static void Main() | |
{ | |
var items = new string[50000]; | |
items[0] = "0"; | |
items[1] = "1"; |
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
package example | |
const ( | |
updateJson1 = ` | |
{ | |
"firstname": "Peter", | |
"lastname": "Griffin" | |
} | |
` |
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
- name: download teamcity | |
get_url: | |
url=https://download.jetbrains.com/teamcity/TeamCity-9.0.3.tar.gz | |
dest=/tmp/teamcity.tar.gz | |
sha256sum=cacef22cf53506346078c05ff9c12dd5bd773c90596cf72fbf4ff49ff8493d1a | |
- name: unpack teamcity | |
unarchive: | |
src=/tmp/teamcity.tar.gz | |
dest=/opt/teamcity |
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
var container = new Container(); | |
container.Configure(configurer => | |
{ | |
configurer.For<IUsersRepository>().Use<SqlServerUsersRepository>(); | |
configurer.For<IPostsRepository>().Use<SqlServerPostsRepository>(); | |
}); | |
var usersRepository = container.GetInstance<IUsersRepository>(); |
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
List<Customer> _customers = new List<Customer> | |
{ | |
new Customer { Id = 1, Name = "Customer1" }, | |
new Customer { Id = 2, Name = "Customer2" }, | |
new Customer { Id = 3, Name = "Customer3" }, | |
new Customer { Id = 4, Name = "Customer4" }, | |
new Customer { Id = 5, Name = "Customer5" }, | |
new Customer { Id = 6, Name = "Customer6" }, | |
}; |