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
<Project Sdk="Microsoft.NET.Sdk"> | |
<!-- clean時の削除タスクの実行前に生成ファイル一覧をクリアして、削除後に元に戻す --> | |
<Target Name="_Protobuf_CoreClean_Stash" BeforeTargets="_Protobuf_CoreClean"> | |
<ItemGroup> | |
<Protobuf_ExpectedOutputsStashed Include="@(Protobuf_ExpectedOutputs)" /> | |
<Protobuf_ExpectedOutputs Remove="@(Protobuf_ExpectedOutputsStashed)" /> | |
</ItemGroup> | |
</Target> | |
<Target Name="_Protobuf_CoreClean_Restore" AfterTargets="_Protobuf_CoreClean"> | |
<ItemGroup> |
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 onOpen() { | |
SlidesApp.getUi() | |
.createMenu("UpdateTalkTimes") | |
.addItem("Update TalkTime in Notes", `updateTalkTimesAction`) //タイムコードを埋め込む。繰り返し実行可 | |
.addItem("Remove TalkTime in Notes", `removeTalkTimesAction`) //タイムコードを取り除く | |
.addToUi() | |
} | |
function removeTalkTimesAction() { | |
//一部だけリセットしたければその区間を引数に渡す。省略時は全てが対象になる |
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
Set-PSReadLineOption -PredictionSource History -PredictionViewStyle InlineView | |
Set-PSReadLineKeyHandler -Key "Ctrl+f" -Function ForwardWord | |
function Switch-PredictionView() | |
{ | |
if ((Get-PSReadLineOption).PredictionViewStyle -eq "InlineView") | |
{ | |
Set-PSReadLineOption -PredictionViewStyle ListView | |
Set-PSReadLineKeyHandler -Key "Ctrl+f" -Function HistorySearchForward | |
Set-PSReadLineKeyHandler -Key "Ctrl+b" -Function HistorySearchBackward |
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 gig() { | |
param( | |
[Parameter(Mandatory=$true)] | |
[string[]]$list | |
) | |
$params = ($list | ForEach-Object { [uri]::EscapeDataString($_) }) -join "," | |
Invoke-WebRequest -Uri "https://www.toptal.com/developers/gitignore/api/$params" | select -ExpandProperty content | Out-File -FilePath $(Join-Path -path $pwd -ChildPath ".gitignore") -Encoding ascii | |
} | |
Register-ArgumentCompleter -CommandName "gig" ` | |
-ParameterName "list" ` |
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.Runtime.InteropServices; | |
using System.Diagnostics; | |
namespace GenericTest | |
{ | |
public interface IReadable | |
{ | |
void Read(); | |
int GetValue { get; } |
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
public enum SampleEnum | |
{ | |
None, | |
Hoge, | |
Huga, | |
Hiyo | |
} | |
public class ConstructorHasEnumDefaultValue<T> | |
{ | |
public SampleEnum Flag { get; private set; } |
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
namespace Sample.ValueObject | |
{ | |
public abstract class ComparableValue<TConcrete> : IComparable<TConcrete> | |
where TConcrete : ComparableValue<TConcrete> | |
{ | |
#region IComparable implementation | |
public abstract int CompareTo(TConcrete other); | |
#endregion |
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; | |
namespace LinqTest | |
{ | |
public static class HavingMaxByExtension | |
{ | |
private static TSource HavingMaxByInternal<TSource, TValue>(IEnumerable<TSource> source, Func<TSource, TValue> maxFunc) | |
where TSource : class | |
where TValue : struct, IComparable<TValue> |
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
[{"tag": tag, "time":time, "packet": miu_packet},...] |
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
require 'rubygems' | |
require 'xmpp4r' | |
require "iconv" | |
require "nkf" | |
require "kconv" | |
require "uri" | |
/* | |
# in nadokarc (NADOKA_Config) | |
BotFiles = [ |