hasen's tech life

Twitter: @hasen

古いメモがでてきたので,雑に貼る.

# 古いメモがでてきたので,雑に貼る.未検証.
# 最短マッチ
preg_match_all('/alt=".*?"/', HTML_DTATA_1, HTML_DATA_2, PREG_PATTERN_ORDER);

# IE9でplaceholderを使う
http://enjoy-pcworks.com/archives/104
https://code.google.com/p/complete-placeholder/をつかう
focusがはずれると黒丸になるので
ahはtype=password非対応
http://jamesallardice.github.io/Placeholders.js/はいけた
# IE8はダメっぽい
http://black-flag.net/jquery/20120321-3727.htmlがOK
autocomplete対策でIE9はon('change'
IE8はon('propertychange'

# LaravelをPostgreSQLで使うときの配列型の検索
->whereRaw('salon.genre @> ARRAY[' . $genre . ']')

MySQLでテーブル定義をCSV形式で出力した.

# MySQLでテーブル定義をCSV形式で出力した.

> select case ordinal_position when 1 then table_name else '' end, column_name, column_type, is_nullable, column_key, column_default, extra from information_schema.columns where table_schema = schema() order by table_schema, table_name, ordinal_position into outfile '/PATH/TO/OUTPUT.csv' fields terminated by ',';

Slackにインテグレーションを追加したときのキャプチャをメモ.

# Slackにインテグレーションを追加したときのキャプチャをメモ.
# App DirectoryをIncoming Webhooksで検索する.
# 最後の画面で取得できるURLを使ってCurlを実行したり.

f:id:hasen-fus:20170123083734p:plain
f:id:hasen-fus:20170123083745p:plain
f:id:hasen-fus:20170123083757p:plain
f:id:hasen-fus:20170123083808p:plain