- 誰かだけが触れるコードを無くす
--
これは合同会社コベリン (covelline, LLC.) でソフトウェア開発を行う際のガイドラインです。 複数人で円滑に開発を行う為の最低限のルールを記述します。
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
#!/usr/bin/env perl | |
use Mojolicious::Lite; | |
use DBIx::Sunny; | |
app->attr(dbh => sub { DBIx::Sunny->connect('dbi:mysql:dbname=bbs', 'root','') }); | |
get '/' => sub { | |
my $c = shift; | |
my $entries = app->dbh->select_all('SELECT * FROM entry'); |
Sublime Textの検索窓に日本語を入力するとEnterを押すなり文字が消えてしまうのですが、無理やり解決する方法を見つけました。ググってもこちらのバグレポートしか見つからなかったので報告です。
わたしの環境はMac OS XのSublime Text 3 (Build 3059)ですが、この解決方法はSublime Text 2 (Build 2220)にも対応しています。Windowsの場合は不明です。
このステップはSublime Text 3の場合のみ必要です。Sublime Text 2の場合はステップ2に行って下さい。
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Usage: | |
# $ vagrant up | |
# $ vagrant login | |
# $ vagrant share | |
# | |
# access to http://<shared_name>.vagrantshare.com |
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
<?php | |
// いらんものを画面にだされては困るので | |
ini_set("display_errors", 0); | |
ini_set("display_startup_errors", 0); | |
// NoticeやDeprecated含めて全部のエラーがほしい | |
error_reporting(E_ALL); | |
// ログファイル設定はmod_phpやBuiltin Serverなどでは設定不要、 | |
// 設定しないとSTDERRに出力される | |
// ini_set("log_errors", 1); |
Awesome PHP の記事をフォークして翻訳したものです (2013年4月25日)。おどろくほどすごい PHP ライブラリ、リソースやちょっとした情報のリストです。
【訳者コメント】 PHP 入門者のかたにはクィックリファレンスとして PHP: The Right Way 、セキュリティに関しては2011年3月に出版された 体系的に学ぶ 安全なWebアプリケーションの作り方 をおすすめします。
- Composer/Packagist - パッケージと依存マネージャー
- Composer Installers - マルチフレームワーク Composer ライブラリインストーラー。
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
<?php | |
/** | |
* X秒前、X分前、X時間前、X日前などといった表示に変換する。 | |
* 一分未満は秒、一時間未満は分、一日未満は時間、 | |
* 31日以内はX日前、それ以上はX月X日と返す。 | |
* X月X日表記の時、年が異なる場合はyyyy年m月d日と、年も表示する | |
* | |
* @param <String> $time_db strtotime()で変換できる時間文字列 (例:yyyy/mm/dd H:i:s) | |
* @return <String> X日前,などといった文字列 | |
**/ |
NewerOlder