View DepthFirstSearch.cs
void Main()
{
var hoge = new[]
{
"ccc/hoge/Resources/fuga/tyger",
"ghoge/Resources/fuga/tyger",
"zxvzxvcz/Resources/fuga/tyger/hogemoge",
"test/fuga/Resources/fuga/tyger",
"asdfadga/fuga/Resources/fuga/tyger/hogemoge",
};
View Dashi_Recipe.uml
```plantuml
: 水400ml鍋にいれる;
: 茅野家だし1包いれる;
while (沸騰させる) is (沸騰してない)
: 玉ねぎ半個を2mm 幅に切る;
: 玉ねぎ1個を1cm 幅に切る;
endwhile(沸騰した)
: 沸騰のまま1分待つ;
: 鍋の火を止める;
```
View HttpRequestForTls12.ps1
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12
Invoke-WebRequest https://pawoo.net -UseBasicParsing -Method Get
View ClassSingleton-DO.ps1
function Main() {
$item = [Singleton]::Instance
$item -eq $null #false
$item.SingletonTarget # Singleton object GUID will return
$item.SingletonTarget # Same object
$item2 = [Singleton]::Instance # same instance
$item -eq $item2 # true
}
View ClassWithClosureScope.ps1
class foo {
$n = 1
$o = 1
$a = 1
[int] f() {
$this.n = $this.n + 1
return $this.n
}
View 0-GenerateArrayListLiteral.ps1
# Generate Array List
# BEFORE ALL BENCHMARK : Generate Array List
# 1. Single Arrays
"$([string]::Join(",", @(1..10000)))"
# 2. Each Line Arrays
[string]::Join("`n,", @(1..10000))
View 0-GenerateArrayListLiteral.ps1
# Validate Array List from view of AST
# Specification : https://www.microsoft.com/en-us/download/details.aspx?id=36389
# BEFORE ALL BENCHMARK : Generate Array List
# 1. Single Arrays
# 1,2,3,4,5,6,7,8....
"$([string]::Join(",", @(1..10000)))"
# 2. Each Line Arrays
View RxSwift_VariableToDriver.swift
example("Varible -> Driver"){
final class Model {
let error: Variable<String> = Variable("")
func runLogic() {
print("model: logic")
self.error.value = "Test Message"
}
}
View WebDeploy.Workflow.ps1
# - msdeploy workflow -#
workflow Invoke-msdeployParallel{
param(
[parameter(
position = 0,
mandatory)]
[string[]]
$deploygroups,
View WebDeploy.StartProcess.ps1
$msdeploy = "C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe"
$user = "配置管理者ユーザー"
$Password = "配置管理者パスワード"
foreach ($deploygroup in $deploygroups)
{
# define arguments of msdeploy
[string[]]$arguments = @(
"-verb:sync",
"-source:package=$zip",