This file contains hidden or 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; | |
namespace Rohinomiya | |
{ | |
/// <summary> | |
/// Arrayクラスを拡張する | |
/// </summary> | |
public static class ArrayExtension | |
{ | |
/// <summary> |
This file contains hidden or 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 Rohinomiya | |
{ | |
/// <summary> | |
/// intクラスを拡張する | |
/// </summary> | |
public static class IntExtensions | |
{ | |
/// <summary> | |
/// [count] 回 処理を繰り返す | |
/// |
This file contains hidden or 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
MATCH(A2,$D$2:$D$5,0) |
This file contains hidden or 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 static class MyGeneral // 静的クラス | |
{ | |
// 静的クラスなのでコンストラクタは無し | |
/// <summary> | |
/// 数値 current がlower ~ higher の範囲内か?(Generic版) | |
/// </summary> | |
/// <param name="lower">区間(開始)</param> | |
/// <param name="current">比較される値</param> | |
/// <param name="higher">区間(終了)</param> |
This file contains hidden or 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
:verb nmap [キーストローク] (※ノーマルモード) | |
:verb imap [キーストローク] (※インサートモード) |
This file contains hidden or 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.Runtime.CompilerServices; | |
[assembly: InternalsVisibleTo("RenameAlignDigitTest")] |
This file contains hidden or 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
NeoBundle 'Shougo/unite.vim' | |
NeoBundle 'sgur/unite-qf' |
This file contains hidden or 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
" gmilk コマンドの結果でQuickFixする | |
command! -nargs=1 Gmilk call s:Gmilk("gmilk -a -n 10", <f-args>) | |
function! s:Gmilk(cmd, arg) | |
silent execute "cgetexpr system(\"" . a:cmd . " ". a:arg . "\")" | |
if len(getqflist()) == 0 | |
echohl WarningMsg | |
echomsg "No match found." | |
echohl None | |
else |
This file contains hidden or 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> | |
/// try ~ catch で捕捉されてない例外をUnhandledExceptionで捕捉するサンプル | |
/// </summary> | |
using System; | |
using System.IO; | |
using System.Text; | |
using System.Windows.Forms; | |
namespace SampleUnhandledException | |
{ |
This file contains hidden or 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; | |
namespace SampleLog4Net | |
{ | |
/// <summary> | |
/// Description of ClassNullLogger. | |
/// </summary> | |
public sealed class ClassNullLogger | |
{ | |
private static ClassNullLogger instance = new ClassNullLogger(); |