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 | |
/** | |
* Created by PhpStorm. | |
* User: takeuchi | |
* Date: 2016/12/15 | |
* Time: 17:58 | |
*/ | |
$date = DateTime::createFromFormat('Y年m月d日', '2017年06月11日'); | |
$date->modify('-1 months'); |
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
FROM centos:latest | |
MAINTAINER 0.1 Mo3g4u | |
RUN ["yum", "update", "-y", "&&", "yum", "clean", "all"] | |
RUN ["yum", "install", "-y", "epel-release"] | |
RUN ["rpm", "-Uvh", "http://rpms.famillecollet.com/enterprise/remi-release-7.rpm"] |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Title</title> | |
<style type="text/css"> | |
<!-- | |
.normal { | |
background-color: grey; | |
} |
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
<h1>User List (sort)</h1> | |
<p><a href="{{ basePath }}/top">Top</a></p> | |
<p><a href="{{ basePath }}/user/add">Add</a></p> | |
<div id="userList"> | |
<table border="1"> | |
<thead> | |
<tr> | |
<th>■</th> |
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 | |
function getCpattern( $source, $m ){ | |
$n = sizeof($source); | |
return ptn( $source, $n, [], 0, $n-$m+1 ); | |
} | |
// 再帰 | |
function ptn( $source, $n, $subset, $begin, $end ){ | |
$p = []; |
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
class Prefecture extends Enum | |
{ | |
const HOKKAIDO = "北海道"; | |
const AOMORI = "青森"; | |
const IWATE = "岩手"; | |
const MIYAGI = "宮城"; | |
const AKITA = "秋田"; | |
const YAMAGATA = "山形"; | |
const FUKUSHIMA = "福島"; | |
const IBARAKI = "茨城"; |
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
version: '2' | |
services: | |
postgresql: | |
image: sameersbn/postgresql:9.6-4 | |
environment: | |
- DB_USER=redmine | |
- DB_PASS=password | |
- DB_NAME=redmine_production | |
volumes: |
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
version: '2' | |
services: | |
mysql: | |
image: sameersbn/mysql:5.7.22-1 | |
environment: | |
- DB_USER=redmine | |
- DB_PASS=password | |
- DB_NAME=redmine_production | |
volumes: |
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
# Ansible test environment | |
# https://app.vagrantup.com/centos/boxes/7 | |
Vagrant.configure("2") do |config| | |
config.vm.define "ansible_control" do |ansible_control| | |
ansible_control.vm.box = "centos/7" | |
ansible_control.vm.network "public_network", ip: "192.168.1.30" | |
ansible_control.vm.synced_folder "../control", "/vagrant" | |
end | |
config.vm.define "ansible_target" do |ansible_target| |
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
Vagrant.configure("2") do |config| | |
config.vm.define "control" do |control| | |
control.vm.box = "centos/7" | |
control.vm.network :private_network, ip:"192.168.33.100" | |
control.vm.network "public_network", ip: "192.168.1.100" | |
end | |
config.vm.define "lb1i" do |lb1i| | |
lb1i.vm.box = "centos/7" | |
lb1i.vm.network :private_network, ip:"192.168.33.11" | |
lb1i.vm.network "public_network", ip: "192.168.1.11" |
OlderNewer