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
#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
<# | |
.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
$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
#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
[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
[merge] | |
tool = WinMerge | |
[mergetool "WinMerge"] | |
cmd = \"C:/Program Files/WinMerge/WinMergeU.exe\" //e //u //wl //wr \"$LOCAL\" \"$BASE\" \"$REMOTE\" //o \"$MERGED\" | |
trustExitCode = true | |
[mergetool "kdiff3"] | |
path = C:/Program Files/KDiff3/kdiff3.exe | |
[diff] | |
guitool = winmerge | |
[difftool "kdiff3"] |
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
#include<string> | |
#include<iostream> | |
// arg1 : 評価する式 | |
// arg2 : 式の参照位置 | |
// return : std::pair<構文解析結果,次の参照位置> | |
using RESULT = std::pair < int, size_t > ; | |
RESULT expr(const std::string&, size_t); | |
RESULT term(const std::string&, size_t); | |
RESULT factor(const std::string&, size_t); |
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
module Translate | |
( toPostFix | |
, translate | |
) where | |
import Data.Char | |
import qualified Data.Map as Map | |
-- ("operator",priority) | |
operators = Map.fromList [ ("+",1) |
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
>runhaskell RoutePath.hs < paths.txt | |
The best path to take is : BCACBBC | |
Time taken: 75 |