« 2017年12月 | メイン | 2018年02月 »
2018年01月29日
postgres date型をlikeで
以前は select * from table where date like '201-02%'; とか乱暴にしていたが、どうも最近動かないような? select * from table where date < (timestamp '2017-02-1' + '1 month' ) and date >= (timestamp '2017-02-1' ) で多分良いと思う。 多分・・・
投稿者 muuming : 15:34
2018年01月25日
cssセレクター アスタリスク 正規表現
「*」 --- を含む 「^」 --- で始まる 「$」 --- で終わる img[class^="attachment-"] { border-radius:25px; }
投稿者 muuming : 12:41
2018年01月17日
PHP 動的にメソッド作成
class MethodTest { public function __call($name, $arguments) { // 注意: $name は大文字小文字を区別します echo "Calling object method '$name' " . implode(', ', $arguments). "\n"; } } $nameが存在していないが呼ばれたメソッド名
投稿者 muuming : 08:34
2018年01月09日
git一部のディレクトリのみ展開
mkdir /var/www/hoge
cd /var/www/hoge
git init
git config --bool core.bare false
git config core.sparsecheckout true
git remote add origin /my/git/dir/
echo /html > .git/info/sparse-checkout
git pull origin master
投稿者 muuming : 10:59