Skip to content

Instantly share code, notes, and snippets.

View indication's full-sized avatar
😭
Working at office

in dow indication

😭
Working at office
View GitHub Profile
@indication
indication / sqlserver_index.md
Created August 3, 2021 10:52 — forked from koirand/sqlserver_index.md
Microsoft SQL Serverのインデックスまとめ

インデックスの主なオプション

クラスター化 / 非クラスター化

  • クラスター化インデックス

    • クラスター化インデックスは、テーブルまたはビュー内のデータ行をそのキー値に基づいて並べ替え、格納します。 クラスター化インデックスは、インデックス定義に含まれる列です。 データ行自体は 1 つの順序でしか並べ替えられないので、1 つのテーブルに設定できるクラスター化インデックスは 1 つだけです。
    • テーブル内のデータ行が並べ替えられた順に格納されるのは、テーブルにクラスター化インデックスが含まれているときだけです。 テーブルにクラスター化インデックスが含まれている場合、そのテーブルをクラスター化テーブルと呼びます。 クラスター化インデックスが含まれないテーブルのデータ行は、ヒープと呼ばれる順序付けられていない構造に格納されます。
  • 非クラスター化インデックス

    • 非クラスター化インデックスは、データ行とは独立した構造になっています。 非クラスター化インデックスには、非クラスター化インデックスのキー値が含まれており、各キー値のエントリにはキー値が含まれているデータ行へのポインターが含まれています。
@indication
indication / .gitignore
Last active May 17, 2021 16:28
BitReverse
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
##
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
# User-specific files
*.rsuser
*.suo
*.user
*.userosscache
@indication
indication / rungbuf.c
Created May 19, 2017 15:44
ring buffer
typedef struct _SListBuffer {
struct _SRingBuffer * next;
void * pData;
size_t DataSize;
long int Status;
}SListBuffer;
typedef struct _SRingBuffer {
SListBuffer * ListHead;
SListBuffer * ListBottom;
@indication
indication / .gitignore
Last active August 29, 2015 14:19
バイナリ読み書き
/*.suo
/bin
/obj

http://www.wtfpl.net/faq/ の翻訳(非公式)です。 以下の文章には何も保証がありません。

どのように WTFPLを使いますか?

ステップ1. WTFPLの全文をコピー&ペーストもしくはダウンロードし、あなたの成果物と共に配布します。一般的にライセンスファイルの名前は COPYING です。成果物が複数のライセンスを採用している場合は、COPYING.WTFPL というファイル名が一般的です。

ステップ2. あなたの著作権文章に次の文言を追加してください。

@indication
indication / C006.pl
Last active August 29, 2015 13:56
pizaaaaaaaaaa
my %table = (
'1' =>'.@-_/:~1'
,'2' =>'abcABC2'
,'3' =>'defDEF3'
,'4' =>'ghiGHI4'
,'5' =>'jklJKL5'
,'6' =>'mnoMNO6'
,'7' =>'pqrsPQRS7'
,'8' =>'tuvTUV8'
,'9' =>'wxyzWXYZ9'
ja:
mail_reminder_all_day1: "日"
mail_reminder_all_day2: "日"
mail_reminder_all_day5: "日"
mail_subject_reminder_all1: "%{count} チケットは %{days} %{day}後が期日です"
mail_body_reminder_auth1: "あなたの作成した %{count} チケットは %{days} %{day}後が期日です:"
mail_body_reminder_assigned1: "あなたが担当している %{count} チケットは %{days} %{day}後が期日です:"
mail_body_reminder_watched1: "あなたがウォッチしている %{count} チケットは %{days} %{day}後が期日です:"
mail_body_reminder_custom_user1: "あなたが関係している%{count} チケットは %{days} %{day}後が期日です:"
mail_subject_reminder_all2: "%{count} チケットは %{days} %{day}後が期日です"
@indication
indication / zfs_vfsshadow.sh
Created September 28, 2012 18:47
Supports shadow copy on zfs on linux
MOUNTPOINT=`sudo zfs get -o value mountpoint storage/share | tail -1`
SNAPPOINT=.zfs/snapshot/0weeks_later
SNAPDATE=`sudo zfs get -o value creation storage/share@0weeks_later | tail -1`
DEFAULT_TZ=`date +%Z`
CALCGMT=`date -d "$SNAPDATE $DEFAULT_TZ" -u "+%Y.%m.%d-%H.%M.%S"`
NAMEDATE=@GMT+$CALCGMT
echo $SNAPDATE
echo $NAMEDATE
@indication
indication / zfs_snapshot.sh
Created September 28, 2012 17:32 — forked from f99aq8ove/zfs_snapshot.sh
zfs snapshot auto-rotation script
#!/bin/sh
#
# zfs snapshot auto-rotation
#
# usage: zfs_snapshot.sh <mountpoint> <snapshot name> <number of keeping snapshots> [recursive]
#
# recursive option: Recursively create snapshot (zfs snapshot -r)
#
# for crontab
#
@indication
indication / .gitignore
Created October 19, 2011 17:26
TimSort C# version
/obj
/bin
*.suo
*.user