Skip to content

Instantly share code, notes, and snippets.

View kuttsun's full-sized avatar

kuttsun kuttsun

View GitHub Profile
/// <summary>
/// 引数1のディレクトリから見た引数2のファイルへの相対パスを取得する
/// </summary>
/// <param name="uri1">基準となるディレクトリへの絶対パス(最後は\で終わっている必要あり)</param>
/// <param name="uri2">目的のファイルへの絶対パス</param>
/// <returns>引数1のディレクトリから見た引数2のファイルへの相対パス</returns>
/// <example>
/// GetRelativePath(@"C:\Windows\System\", @"C:\Windows\file.txt")
/// 出力:..\file.txt
/// </example>
using System;
using System.Linq;
using System.Net;
using System.IO;
using HtmlAgilityPack;
namespace GetGitHubReleases
{
class Program
{
gitlab:
image: gitlab/gitlab-ce
volumes:
- /srv/docker/gitlab/data:/var/opt/gitlab
- /srv/docker/gitlab/config:/etc/gitlab
- /srv/docker/gitlab/logs:/var/log/gitlab
ports:
- "10080:10080"
- "10443:443"
- "10022:22"
/// <summary>
/// コマンドの実装
/// </summary>
class DelegateCommand : ICommand
{
/// <summary>
/// Execute の実体を保持します。
/// </summary>
private Action<object> execute;
/// <summary>
/// コマンドの実装
/// </summary>
class ButtonCommand : ICommand
{
private MainWindowViewModel MainWindow;
/// <summary>
/// コマンドを実行するかどうかに影響するような変更があった場合に発生する
/// </summary>
/// <summary>
/// MainWindow.xaml の相互作用ロジック
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
// バインディング対象のインスタンスを、MainWindowViewModelに設定
/// <summary>
/// MainWindowに対するViewModel
/// </summary>
class MainWindowViewModel : ViewModelBase
{
// バインディングされる値を保持するフィールド
private string sampleText_;
// バインディング対象のプロパティ
public string SampleText
// タスクバーとスタートボタンの表示と非表示を切り替えるプログラム
#include "stdafx.h"
#include <windows.h>
#include <tchar.h>
int main()
{
// ClassName and WindowName
LPCTSTR name[][2] = {
<!-- 「HTMLの編集」で、</head>の直前に挿入する -->
<!-- jQuery -->
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js' type='text/javascript'/>
<!-- SyntaxHighlighter -->
<link href='http://alexgorbatchev.com/pub/sh/current/styles/shCore.css' rel='stylesheet' type='text/css'/>
<link href='http://alexgorbatchev.com/pub/sh/current/styles/shThemeDefault.css' rel='stylesheet' type='text/css'/>
<script src='http://alexgorbatchev.com/pub/sh/current/scripts/shCore.js' type='text/javascript'/>
<script src='http://alexgorbatchev.com/pub/sh/current/scripts/shBrushBash.js' type='text/javascript'/>