Skip to content

Instantly share code, notes, and snippets.

Yuta Matsumura tsubakimoto

Block or report user

Report or block tsubakimoto

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tsubakimoto
tsubakimoto / my-favorite-dotnet-github-repositories.md
Last active Jan 11, 2020
GitHubにある私が好きなdotnetリポジトリ
View my-favorite-dotnet-github-repositories.md

Clone snippet

git clone https://github.com/blowdart/AspNetAuthorizationWorkshop.git
git clone https://github.com/dotnet-presentations/aspnetcore-app-workshop.git
git clone https://github.com/dotnet-presentations/aspnetcore-concepts-workshop.git
git clone https://github.com/dotnet-presentations/aspnetcore-for-beginners.git
git clone https://github.com/dotnet-presentations/blazor-workshop.git
git clone https://github.com/ardalis/CleanArchitecture.git
git clone https://github.com/dotnet-presentations/dotnetconf2018.git
git clone https://github.com/dotnet-presentations/dotnetconf2019.git
View aspnetcore-sample.yaml
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: myaspnetcoreapp
spec:
replicas: 1
template:
metadata:
labels:
app: myaspnetcoreapp
View Dockerfile
FROM microsoft/dotnet:2.0-sdk
WORKDIR /app
# copy csproj and restore as distinct layers
COPY . ./
RUN dotnet restore
RUN dotnet build
# copy and build everything else
RUN dotnet publish -c Release -o out
View MyClass.cs
using System;
namespace dotnet_ci_sample
{
public class MyClass
{
public static string Say(string name) => $"Hello {name}!!";
}
}
View MyClassTest.cs
using dotnet_ci_sample;
using System;
using Xunit;
namespace test
{
public class UnitTest1
{
[Fact]
public void SayTest()
View Program.cs
using System;
namespace dotnet_ci_sample
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
@tsubakimoto
tsubakimoto / .gitlab-ci.yml
Last active Feb 24, 2018
GitLabで.NET Coreアプリケーションの継続的インテグレーションを行う
View .gitlab-ci.yml
image: microsoft/dotnet:2.0.0-sdk
services:
- docker:dind
stages:
- build
- test
- push
job1:
stage: build
View Backlog webhook test.md

Issue edited test data

{
 originalUrl: 'https://mtmrbackloghook.azurewebsites.net/api/comment-notification?code=00FRV5AbFd8QbQc7pwb/v1nSaHaZawqfKxg0qFkd/2m9IoLiNI5YwQ==',
 method: 'POST',
 query: {
  code: '00FRV5AbFd8QbQc7pwb/v1nSaHaZawqfKxg0qFkd/2m9IoLiNI5YwQ=='
 },
 headers: {
  connection: 'Keep-Alive',
View 20150122_Azure社内勉強会#1.md

Azure社内勉強会 #1 の資料です。

Microsoft Azure とは

Azure は、コンピューティング、ストレージ、データ、ネットワーク、およびアプリケーション サービスを提供する、エンタープライズ レベルのクラウド プラットフォームです。

(引用:Azure: Microsoft のクラウド コンピューティング プラットフォーム

Azureでできること

日本マイクロソフト 井上大輔氏のスライド の20ページめ

View FizzBuzz.cs
public class FizzBuzz
{
public static string Say(int n)
{
if (n < 1)
throw new ArgumentOutOfRangeException();
if (n % 3 == 0 && n % 5 == 0)
return "Fizz Buzz";
You can’t perform that action at this time.