目指せ!!full stack developer

一生プログラマーのままに生きたい

html 自習ノート

  1. htmlテキストエディタ:sublimetext
  2. タイトル        :<h1> ... <h7> (<h1> biggest text)
  3. 文字表示属性:font    color,size,strong(太字),i(斜め)
  4. 画像                :img
  5. スライダー   :marquee
  6. 音楽、ビデオ  :embed
  7. 改行    :br
  8. ライン   :hr
  9. リンク   :a

 ーーーーーーーーーーーーー

<!DOCTYPE html>
<html>
<head>
<title>xixi bubu</title>
<!-- <bgsound src="music/dsqg.mp3" autostart="true" loop="infinite" /> -->
</head>
<body>
<a href="#ab">jump bottom</a>
<font color="#FF0000" size="5"><strong><i>papa</i> </strong></font>
<img src="img/DSC_5591.JPG" width="300" border="2" alt="no imgage" />
<br>
<marquee behavior="alternate" scrollamount="5" onmouseover="this.stop()" onmouseout="this.start()" width="200"> bubu xixi mama papa </marquee>
<br>
<!-- music -->
<embed src="music/dsqg.mp3" autostart="true" loop="1" hidden="true"></embed>
<!-- video -->
<!-- <embed src="http://player.youku.com/player.php/sid/XMzE5NjEzNjA0/v.swf" autostart="true" loop="true" width="900" height="500"></embed> -->
 
<!-- title <h1> <h7>  -->
<h1>title h1</h1>
<br>
<h4>title h4</h4>
<br>
<h7>title h7</h7>
<br>
<!-- paragraph <p> </p> -->
<p>aaa</p>
<hr>
<p>bbb</p>
<!-- break <hr height="2"/> <br/> -->
<br>
<!-- linker can link to "webpage" "pictures" "mp3" "video" ect -->
<p><a href="02_link.html" target="blank">link to</a></p>
<br>
<a href="img/DSC_5592.JPG"><img src="img/DSC_5592.JPG" width="300" border="2" alt="no imgage" /></a>
<hr>
<a href="mailto:dang712@hotmail.com">contact me</a>
<hr>
<a href="img/DSC_5593.JPG"><img src="img/DSC_5593.JPG" width="300" border="2" alt="no imgage" /></a>
<a name="ab">jsjjsjsjjs</a>
<hr>
<a href="img/DSC_5594.JPG"><img src="img/DSC_5594.JPG" width="300" border="2" alt="no imgage" /></a>
<hr>
</body>
</html>

 

正規表現とテキスト検索

よく使う正規表現

正規表現
¥b 一桁区切り
.* 同一行任意桁文字
¥d 一桁数字
¥b¥d{5}¥b 5桁数字
¥s 一桁空白
例:
¥b¥d{5}¥b
¥b¥d¥d¥d¥d¥d¥b
¥bpackage¥b
packagemanager.*¥bpackage¥b
false¥sremovable
http://deerchao.net/tutorials/regex/regex.htm#lookaround

 

git コマンド2 バージョン管理

//to see version No.

git log

//to see current version No.

git reflog

//forc to some version

git reset --head <バージョン番号>

//current status about branch

git branch

//create new branch 

git branch <new name>

//trunk <==> branches

git checkout <branch name>

//add

git add.

// commit 

git commit -m "commit reason"

//merge

git merge <branch name>

 

git コマンド

まず、以下の4つの領域

f:id:genmanabu:20160901052722p:plain

Remote:サーバー上のrepository

Repository:ローカル上のrepository

Index(stage):一時保管領

workspace:ワークスペース

 

現在gitの設定

git config --list

ワークスペースからstageへ

git add <file>

git add .   // 全ディレクト

stageからrepository

git commit -m "コミット理由など"

repositoryからremote

git push

サーバーと同期する

git pull

 

repositoryからstageへ

git reset <file>

stageからworkspaceへ

git checkout <file>

 

 

 

gitの種類と特徴

現在主なgitはgithubとbitbucketがある。機能的にはほぼ一緒だが、

以下の特徴

github

データ量が多い、privateのrepositoryは有料

※:良いサンプルプロジェクト探すには最適

bitbucket

データ量が少ない、privateのrepositoryは無料

※:小グループ開発には最適