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="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<link rel="stylesheet" type="text/css" href="css/html5reset.css" /> | |
<!--[if lt IE 9]> | |
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> | |
<![endif]--> | |
<style type="text/css"> | |
<!-- /*css*/ |
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
@property (weak, nonatomic) IBOutlet UIWebView *webView; | |
... | |
- (void)showWebView{ | |
// アニメーションでWebViewを表示させる | |
void (^animations)(void) = ^{ | |
self.webView.alpha = 1.0; | |
}; | |
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
// Playground - noun: a place where people can play | |
import UIKit | |
var str = "Hello, playground" | |
var str2 = "Stinrg" | |
str2 = "Strign2" | |
let str3 = "String3" |
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
#hogeをインストール | |
yum install [hoge] | |
#reposのクリーン | |
yum clean packages | |
#hogeをアップデート | |
yum update [hoge] | |
#hogeを削除 |
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
#yum更新 | |
yum -y update | |
#vim install | |
yum -y install vim-enhanced | |
#ssh install | |
yum -y install openssh-server | |
/etc/init.d/sshd start |
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
#CentOSをpullしてrun | |
docker run centos /bin/echo "Hello World" | |
docker run -i -t centos /bin/bash | |
#Dockerの中でCentOS設定 | |
#exitするとDockerから抜けられる | |
#-aをつけると既に終了した環境も含めて確認できる | |
docker ps -a |
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
#バージョン | |
gem -v | |
#Gem自身をアップデート | |
gem update --system | |
#gemを探す | |
gem list [hoge] #頭からの文字列で | |
gem search [hoge] #正規表現で |
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
#boot2dockerのVM作成 | |
boot2docker init | |
#VMあげる | |
boot2docker up|start|boot | |
#VMにSSH | |
boot2docker ssh | |
#VMの状態 |
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
#Docker:centosでRuby on Rails環境作成 | |
#以下rootもしくはsudoで | |
yum update | |
yum -y install tar | |
yum -y install gcc | |
#Dockerのcentos:latestでやる場合は通常のコマンドではエラーになる | |
#yum -y install openssl-devel ##エラー | |
yum -y install --enablerepo=centosplus openssl-devel | |
yum -y install sqlite-devel |
OlderNewer