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.Runtime.CompilerServices; | |
| // using static Local.LocalDebug; | |
| namespace Local | |
| { | |
| public static class LocalDebug | |
| { | |
| public static void TraceLine([CallerFilePath] string path = "", [CallerMemberName] string method = "", [CallerLineNumber] int line = 0) | |
| { |
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
| <Query Kind="Program"> | |
| <NuGetReference>System.Data.SQLite.Core</NuGetReference> | |
| <Namespace>System.IO.Compression</Namespace> | |
| <Namespace>System.Threading.Tasks</Namespace> | |
| <Namespace>System.Data.SQLite</Namespace> | |
| <Namespace>System.Runtime.CompilerServices</Namespace> | |
| </Query> | |
| // Need Packages | |
| // System.Data.SQLite.Core |
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
| FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base | |
| WORKDIR /app | |
| COPY ./bootstrap.sh ./ | |
| COPY ./output/* ./ | |
| CMD ["bash", "bootstrap.sh"] |
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 BenchmarkDotNet.Attributes; | |
| using BenchmarkDotNet.Running; | |
| BenchmarkRunner.Run<Runner>(); | |
| record struct KVPString(int Key, int Value) | |
| { | |
| public override string ToString() => $"{Key:000000} : {Value}"; | |
| } |
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
| クロネコヤマト ヤマト運輸の場合 | |
| http://jizen.kuronekoyamato.co.jp/jizen/servlet/crjz.b.NQ0010?id= | |
| 佐川急便の場合 | |
| http://k2k.sagawa-exp.co.jp/p/web/okurijosearch.do?okurijoNo= | |
| ゆうパックの場合 | |
| http://tracking.post.japanpost.jp/service/singleSearch.do?org.apache.struts.taglib.html.TOKEN=&searchKind=S002&locale=ja&SVID=&reqCodeNo1= |
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
| dotnet script %~dp0hoge.csx 5 && echo success || echo error |
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 ConsoleAppFramework; | |
| using System; | |
| using System.Reactive.Linq; | |
| using System.Reactive.Subjects; | |
| using System.Threading.Tasks; | |
| namespace ConsoleApp1 | |
| { | |
| static class Ex | |
| { |
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
| #!/bin/bash | |
| #set -eu | |
| targets=$(find . -name ".git" | sed -e 's/^\.\/\(.*\)\/.git$/\1/') | |
| temp=${*:-st} | |
| IFS=, eval 'arr=($temp)' | |
| for command in "${arr[@]}"; do | |
| echo "====" | |
| echo "DO \"${command}\"" |
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
| readonly RegionEndpoint Region = RegionEndpoint.APNortheast1; | |
| readonly AWSCredentials Credentials = new BasicAWSCredentials(); | |
| const string LogGroupName = ""; | |
| const string LogStreamName = ""; | |
| async Task Main() | |
| { | |
| using (var cts = new CancellationTokenSource(TimeSpan.FromMinutes(30))) // 念のため | |
| using (var client = new AmazonCloudWatchLogsClient(Credentials, Region)) |
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
| T Create<T>() => (T)FormatterServices.GetUninitializedObject(typeof(T)); |
NewerOlder