hoge_dir以下のパーミッションが644のファイルを666に変更する
find ./hoge_dir/ -perm 644 -exec chmod 666 {} ;
※{}はfindで検索されたファイル名が入る
hoge_dir以下のパーミッションが644のファイルを666に変更する
find ./hoge_dir/ -perm 644 -exec chmod 666 {} ;
※{}はfindで検索されたファイル名が入る
| <?php | |
| include './Functional/_import.php'; | |
| use Functional as F; | |
| $false_contain_users = array( | |
| array("name" => "oden","status" => false), //falseを含む | |
| array("name" => "captain","status" => true) | |
| ); |
| <?php | |
| include './Functional/_import.php'; | |
| use Functional as F; | |
| class User{ | |
| private $status = false; | |
| private $name = ""; | |
| function __construct($name="",$status=true){ |
| <?php | |
| include './Functional/_import.php'; | |
| use Functional as F; | |
| class User{ | |
| private $name = ""; | |
| function __construct($name=""){ | |
| $this->name = $name; |
| <?php | |
| include './Functional/_import.php'; | |
| use Functional as F; | |
| $users = array( | |
| array("name" => "gakkey"), | |
| array("name" => "hapidra"), | |
| array( | |
| array("name" => "oden"), |
| <?php | |
| include './Functional/_import.php'; | |
| use Functional as F; | |
| $users = array( | |
| array("name" => "gakkey","group" => "A"), | |
| array("name" => "hapidra","group" => "B"), | |
| array("name" => "oden","group" => "C"), | |
| array("name" => "captain","group" => "A") |
| <?php | |
| include './Functional/_import.php'; | |
| use Functional as F; | |
| $resutl1 = Functional\zip( | |
| array('one', 'two', 'three'), | |
| array(1, 2, 3), | |
| array("いち","に","さん"), | |
| array("一","二","三")); |
| def findNoSkillProgrammers()(implicit session: DBSession = autoSession): List[Programmer] = withSQL { | |
| select | |
| .from(Programmer as p) | |
| .leftJoin(Company as c).on(p.companyId, c.id) | |
| .where.notIn(p.id, select(sqls.distinct(ps.programmerId)).from(ProgrammerSkill as ps)) | |
| .and.append(isNotDeleted) | |
| .orderBy(p.id) | |
| }.map(Programmer(p, c)).list.apply() |
| val now = DateTime.now | |
| sql""" | |
| insert into members (id, name, memo, created_at, updated_at) values | |
| (${123}, ${"Alice"}, ${None}, ${now}, ${now}) | |
| """.update.apply() |
| <?php | |
| private function varToString($var) | |
| { | |
| if (is_object($var)) { | |
| return sprintf('Object(%s)', get_class($var)); | |
| } | |
| if (is_array($var)) { | |
| $a = array(); | |
| foreach ($var as $k => $v) { |