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.Collections.Generic; | |
using System.Linq; | |
using System.Reactive.Linq; | |
namespace ConsoleApplication5 | |
{ | |
static class ObservalbeExt | |
{ | |
/// <summary> |
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
$recentItemsCompletion = { | |
param($commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameter) | |
# "\" が含まれる場合は、通常のPath入力とみなし、独自の入力補完は行わない | |
# 例えば"C:\" と入力した場合など | |
if(([string]$wordToComplete).Contains("\") ) | |
{ | |
return; | |
} |
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
<# | |
.Synopsis | |
短い説明 | |
.DESCRIPTION | |
詳しい説明 | |
.EXAMPLE | |
このコマンドレットの使用方法の例 | |
.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
<ContentDialog | |
x:Class="RssReaderApp.Views.AddFeedDialog" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:local="using:RssReaderApp.Views" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
mc:Ignorable="d" | |
Title="Feedの追加" | |
PrimaryButtonText="追加" |
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 Prism.Unity.Windows; | |
using RssReaderApp.Views; | |
using System.Threading.Tasks; | |
using Windows.ApplicationModel.Activation; | |
using Windows.UI.Xaml; | |
using Windows.UI.Xaml.Controls; | |
namespace RssReaderApp | |
{ | |
/// <summary> |
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 Microsoft.Diagnostics.Tracing; | |
using System; | |
using System.Collections.Concurrent; | |
using System.Diagnostics; | |
using System.Management.Automation; | |
using System.Reactive.Disposables; | |
using System.Reactive.Linq; | |
using System.Threading; | |
namespace EtwStream.PowerShell |
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
# TabExpansion++ を使用する場合 | |
function GoogleSuggestCompletion { | |
# この属性でターゲットとなるコマンドとパラメータを指定する | |
[ArgumentCompleter( | |
Parameter = 'SearchWords', | |
Command = 'Search-Google', | |
Description='TabExpansion++ Argument Completer for Search-Google')] | |
# 入力パラメータこの通りにする。$wordToComplete に入力中の値が入ってくる。 | |
param($commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameter) |
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
function Search-Google | |
{ | |
[CmdletBinding()] | |
Param( | |
# 検索ワード | |
[Parameter(Mandatory=$true, | |
ValueFromPipeline=$true, | |
Position=0)] | |
[PSObject[]] | |
$SearchWords |
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 Microsoft.AspNet.SignalR; | |
namespace hubProxyGen | |
{ | |
public class ChatHub : Hub<ChatHubClient> | |
{ | |
public void Send(string name, string message) | |
{ | |
Clients.All.AddNewMessageToPage(name, message); | |
} |
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
declare module DrawingTs { | |
class Point { | |
public x: number; | |
public y: number; | |
constructor(x: number, y: number); | |
public to(p: Point): Vector; | |
public scale(n: number): Point; | |
} | |
class Vector extends Point { | |
constructor(x: number, y: number); |
NewerOlder