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
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "createMeetingNote", | |
"type": "shell", | |
"command": ".vscode/createNote.sh", | |
"args": [ | |
"_メモ", | |
"${input: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
require 'minitest/autorun' | |
require 'yaml' | |
require_relative "../lib/ypath.rb" | |
class TestYPath < Minitest::Test | |
def setup | |
end | |
def test_ypath |
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
@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 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 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 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 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; |
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.Collections.Generic; | |
using System.Linq; | |
using System.Xml.Linq; | |
namespace System.Xml.XPath | |
{ | |
public static class XPathUtility | |
{ | |
public static IEnumerable<T> XPathSelectElements<T>(this XNode xNode, string xpath) | |
where T : XObject |
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.Collections.Generic; | |
using System.Diagnostics; | |
namespace System.Linq | |
{ | |
/// <summary>LINQ Extension</summary> | |
[DebuggerStepThrough] | |
public static partial class LINQX | |
{ | |
public static bool? MixedResult<TSource>(this IEnumerable<TSource> source, Func<TSource, bool> predicate) |
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
<?xml version="1.0" encoding="utf-8"?> | |
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<UsingTask TaskName="XmlRead" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll"> | |
<ParameterGroup> | |
<XmlFileName ParameterType="System.String" Required="true" /> | |
<XPath ParameterType="System.String" Required="true" /> | |
<Result ParameterType="System.String" Output="true" /> | |
</ParameterGroup> | |
<Task> | |
<Reference Include="System" /> |
NewerOlder