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.Text.Json; | |
| namespace RedmineWorkHours | |
| { | |
| internal static class JsonUtility | |
| { | |
| public static readonly JsonSerializerOptions DefaultOptions = new JsonSerializerOptions | |
| { | |
| PropertyNameCaseInsensitive = true | |
| }; |
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
| <#@ template language="C#" debug="false" hostspecific="true" #> | |
| <#@ output extension=".cs" #> | |
| <#@ assembly name="System" #> | |
| <#@ assembly name="System.Core" #> | |
| <#@ import namespace="System" #> | |
| <#@ import namespace="System.IO" #> | |
| <#@ import namespace="System.Linq" #> | |
| <#@ import namespace="System.Collections.Generic" #> | |
| <# | |
| var headerFile = Path.Combine(Path.GetDirectoryName(Host.TemplateFile), "headers.txt"); |
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
| // C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\Roslyn\Microsoft.CodeAnalysis.dll | |
| // C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\Roslyn\Microsoft.CodeAnalysis.CSharp.dll | |
| // C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\Roslyn\System.Collections.Immutable.dll | |
| // C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\System.Reflection.Metadata.dll | |
| using Microsoft.CodeAnalysis; | |
| using Microsoft.CodeAnalysis.CSharp; | |
| using Microsoft.CodeAnalysis.CSharp.Syntax; | |
| using System.Diagnostics; | |
| using System.Reflection.Metadata; |
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
| { | |
| "version": "2.0.0", | |
| "tasks": [ | |
| { | |
| "label": "createMeetingNote", | |
| "type": "shell", | |
| "command": ".vscode/createNote.sh", | |
| "args": [ | |
| "_メモ", | |
| "${input:name}" |
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
| require 'minitest/autorun' | |
| require 'yaml' | |
| require_relative "../lib/ypath.rb" | |
| class TestYPath < Minitest::Test | |
| def setup | |
| end | |
| def test_ypath |
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
| @SET DT=%TIME: =0% | |
| @SET DT=%DT::=% | |
| @SET DT=%DATE:/=-%-%DT:~0,6% | |
| @SET MSBUILD=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe | |
| @SET SOLUTION=SampleSolution.sln | |
| @SET LOGDIR=LOG | |
| @MKDIR "%LOGDIR%" >nul 2>&1 | |
| "%MSBUILD%" "%SOLUTION%" /t:ReBuild /verbosity:q /p:Configuration=Release;RunCodeAnalysis=true;CodeAnalysisOutputToConsole=true > %DT%_out.log |
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
| [TestClass] | |
| public class UnitTest1 | |
| { | |
| [DataTestMethod] | |
| [DataRow(1, "001")] | |
| [DataRow(2, "002")] | |
| [DataRow(3, "003")] | |
| public void Test1(int num, string str) | |
| { | |
| Assert.AreEqual(str, num.ToString("D3")); |
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
| public static class SetUtil | |
| { | |
| /// <summary>組み合わせ</summary> | |
| public static IEnumerable<IEnumerable<T>> Combination<T>(this IEnumerable<T> items, int r) | |
| { | |
| if (r == 0) | |
| { | |
| yield return Enumerable.Empty<T>(); | |
| yield break; | |
| } |
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
| for /d %i in (*) do @( echo %i & dir "%i" /a-d /s /b | find /c /v "" & echo. ) |
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.Diagnostics; | |
| using Windows.UI.Notifications; | |
| namespace ToastTest | |
| { | |
| public static class Toast | |
| { | |
| private static readonly ToastNotifier toastNotifier; | |
| private static ToastNotification toastNotification; |
NewerOlder