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
[merge] | |
tool = WinMerge | |
[mergetool "WinMerge"] | |
cmd = \"C:/Program Files/WinMerge/WinMergeU.exe\" //e //u //wl //wr \"$LOCAL\" \"$BASE\" \"$REMOTE\" //o \"$MERGED\" | |
trustExitCode = true | |
[diff] | |
guitool = winmerge | |
[difftool "winmerge"] | |
path = C:/Program Files/WinMerge/winmergeu.exe | |
cmd = \"C:/Program Files/WinMerge/winmergeu.exe\" -e -u \"$LOCAL\" \"$REMOTE\" |
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
#pragma once | |
#include "stdafx.h" | |
// Reference URL | |
// https://social.msdn.microsoft.com/Forums/ja-JP/1a0354fc-8e7c-4d75-b65e-6e38041b6e5d/c-how-send-the-class-pointer-with-settimer-function?forum=vclanguage | |
class Timer | |
{ | |
public: | |
Timer() |
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
$target = 'ソリューション名.sln' | |
$config = 'Release' | |
#Rebuild,Build,Clean | |
$type = 'Rebuild' | |
$ms_build_path = 'C:\Windows\Microsoft.NET\Framework\v4.0.30319;' | |
$env:Path = $env:Path + ';' + $ms_build_path | |
# /m -> concurrent build | |
#(e.g) MSBuild $target /t:Rebuild /p:Configuration=Release /m |
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
<# | |
.SYNOPSIS | |
Build MS project(.sln) | |
.DESCRIPTION | |
Build Microsoft Visual Studio project (.sln) | |
.PARAMETER project | |
The project file to build. |
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
#e.g) 20150828_124340 | |
Get-Date -Format yyyyMMdd_HHmmss |
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
# $command : command | |
# $logfile_path : output file path | |
Invoke-Expression $command | Tee-Object -FilePath $logfile_path -Append |
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
function Write-ErrorLog { | |
param( $file_name , $message ) | |
Write-Error $message 2>&1 | Tee-Object -FilePath $file_name -Append | |
} |
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
XElement po = XElement.Load(path_xml); | |
// <Substrates> | |
// <Substrate SubstrateType = "Strip" SubstrateId = "@@@"> | |
var elems = po.Elements().Descendants() | |
.Where(node => node.Name.LocalName == "Substrate" | |
&& (string)node.Attribute("SubstrateType") == "Strip" | |
&& node.Attribute("SubstrateId") != null | |
) | |
.Select(elem => elem.Attribute("SubstrateId").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
public bool XmlValidTest( string path_xml , string path_schema ) | |
{ | |
using (XmlTester tester = new XmlTester()) | |
{ | |
if( tester.Test(path_schema, path_xml) ) | |
{ | |
return true; | |
} | |
} | |
return false; |
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
<# | |
.SYNOPSIS | |
.DESCRIPTION | |
.PARAMETER base_path | |
.PARAMETER max_depth | |
.PARAMETER depth | |
.EXAMPLE | |
Get-FolderHierarchy "C:\Windows" | |
.EXAMPLE |