Skip to content

Instantly share code, notes, and snippets.

#include <iostream>
using namespace std;
int main(){
//Hello World!の出力
cout << "Hello world." << endl;
return 0;
}
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>WordPressでソースコードを表示する</title>
</head>
<body>
<p>こんな感じになるよ</p>
</body>
</html>
@klein-mask
klein-mask / gist_test.html
Created May 11, 2019 05:54
GistでWordPressにソースコードを表示する
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>WordPressでソースコードを表示する</title>
</head>
<body>
<p>こんな感じになるよ</p>
</body>
</html>
@klein-mask
klein-mask / gist.css
Created May 12, 2019 11:44
Gistの埋め込み表示を綺麗にするCSS
/*=======
  Gist関連
=======*/
/* 奇数行と偶数行の背景色を濃いグレーで統一する */
.gist table tr {
background-color: rgba(220,220,220,0.2) !important;
}
/* 行番号を非表示にする */
@klein-mask
klein-mask / git-clone.txt
Last active May 14, 2019 18:41
git clone
$ git clone リポジトリのURL
$ git branch ブランチ名
$ git checkout ブランチ名
@klein-mask
klein-mask / git-checkout_b.txt
Created May 14, 2019 18:49
git checkout -b
$ git checkout -b ブランチ名
#ファイル名指定
$ git add ファイル名
#現在のディレクトリ配下全て
$ git add
#リポジトリの中で変更のあったもの全て
$ git add -A
$ git push origin ブランチ名