これは 転職 Advent Calendar 2016 - Qiita の9日目の投稿です。
子供、可愛いですよね。
子供が産まれるまでは正直うるさいだけと思っていて苦手だったのですが、いざ自分に子供が生まれてみると、どんなにうるさくても、鼻水を服に擦りつけてきても、技術書を破ったり落書きして遊んでいても、書いたコードを保存する前にPCの電源ボタンを押されて作業が飛んでしまっても__可愛いから許す!!__と思えてしまうぐらい、まぁ、とにかく可愛い。
var getQueryString = function(option) { | |
var delimiter; | |
if (!option || !option.hasOwnProperty('delimiter')) { | |
delimiter = '&'; | |
} else { | |
delimiter = option.delimiter; | |
} | |
var slice_point = window.location.href.indexOf('?'); | |
if (slice_point < 0) { |
#!/bin/bash | |
# | |
# centOS 6.3 x86_64を対象に動作します。 | |
# | |
# yumリポジトリのアップデート | |
yum -y update | |
# 通常のyumリポジトリを参照する必要モジュールのインストール |
#!/bin/bash | |
########################################### | |
# EC-CUBE INSTALL SHELL | |
# target: centOS6.* x86_64 | |
########################################### | |
# add remi repository | |
rpm --import http://rpms.famillecollet.com/RPM-GPG-KEY-remi | |
cd /usr/local/src |
#!/bin/bash | |
GIT_VERSION=1.8.4 | |
PHP_VERSION=5.5.3 | |
# epel and remi repository install | |
rpm --import http://rpms.famillecollet.com/RPM-GPG-KEY-remi | |
cd /usr/local/src | |
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm | |
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm |
Vagrant.configure("2") do |config| | |
config.vm.box = "precise32" | |
config.vm.box_url = "http://files.vagrantup.com/precise32.box" | |
config.vm.network :public_network | |
config.vm.provision :shell, :inline => <<-SHELL | |
sudo apt-get -y update | |
sudo apt-get -y install git gcc make re2c php5 php5-dev libpcre3-dev | |
git clone https://github.com/json-c/json-c.git |
@font-face { | |
font-family: "uzura"; | |
src: url(../fonts/uzura.ttf) format("truetype"); | |
} | |
@font-face { | |
font-family: "ohisama"; | |
src: url(../fonts/OhisamaFont11.ttf) format("truetype"); | |
} |
<?php | |
$server = stream_socket_server( | |
'tcp://127.0.0.1:8080', | |
$error_no, | |
$error_str, | |
STREAM_SERVER_LISTEN | STREAM_SERVER_BIND, | |
stream_context_create([ | |
'socket' => [ | |
'backlog' => 1024 |
これは 転職 Advent Calendar 2016 - Qiita の9日目の投稿です。
子供、可愛いですよね。
子供が産まれるまでは正直うるさいだけと思っていて苦手だったのですが、いざ自分に子供が生まれてみると、どんなにうるさくても、鼻水を服に擦りつけてきても、技術書を破ったり落書きして遊んでいても、書いたコードを保存する前にPCの電源ボタンを押されて作業が飛んでしまっても__可愛いから許す!!__と思えてしまうぐらい、まぁ、とにかく可愛い。
// Delegate用Protocol | |
protocol RequestDelegate : class { | |
func begin() | |
func done() | |
} | |
// APIリクエストクラス | |
class Request { | |
weak var delegate: RequestDelegate? |
import Foundation | |
protocol Logger { | |
func write(_ message: String) | |
} | |
final class SystemLogger: Logger { | |
func write(_ message: String) { | |
print("System: " + message) | |
} |