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
/// <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> |
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; | |
using System.Linq; | |
using System.Net; | |
using System.IO; | |
using HtmlAgilityPack; | |
namespace GetGitHubReleases | |
{ | |
class Program | |
{ |
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
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" |
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
/// <summary> | |
/// コマンドの実装 | |
/// </summary> | |
class DelegateCommand : ICommand | |
{ | |
/// <summary> | |
/// Execute の実体を保持します。 | |
/// </summary> | |
private Action<object> execute; |
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
/// <summary> | |
/// MainWindow.xaml の相互作用ロジック | |
/// </summary> | |
public partial class MainWindow : Window | |
{ | |
public MainWindow() | |
{ | |
InitializeComponent(); | |
// バインディング対象のインスタンスを、MainWindowViewModelに設定 |
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
/// <summary> | |
/// MainWindowに対するViewModel | |
/// </summary> | |
class MainWindowViewModel : ViewModelBase | |
{ | |
// バインディングされる値を保持するフィールド | |
private string sampleText_; | |
// バインディング対象のプロパティ | |
public string SampleText |
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
// タスクバーとスタートボタンの表示と非表示を切り替えるプログラム | |
#include "stdafx.h" | |
#include <windows.h> | |
#include <tchar.h> | |
int main() | |
{ | |
// ClassName and WindowName | |
LPCTSTR name[][2] = { |
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
<!-- 「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'/> |