hello world,github
- china
- american
array_column('',$atrr); print($a);
array_column('',$atrr);
print($a);
git log --help
or git help log
git config
,按照影响范围分三层
git config --system log.date iso
,可在/etc/gitconfig中看到git config --global log.date iso
,可在~/.gitconfig
中看到与改写git config log.date iso
,可在当前资源库的.git/config
看到与改写git branch test
创建test分支git checkout -b test
创建test分支并切换到此分支`git checkout test
切换分支到testgit branch --list
or git branch
列出所有分支git merge hot_fix
,将hot_fix分支合并到当前分支git log --author='kaisa316' --since='2018-08-15 00:00:00' --until='2018--9-26'
git log --name-only
or git log name-status
-m
参数解决git log.date --global iso
,格式类似 Date: 2018-01-07 22:03:43 -0500
git config --global log.date format:'%Y-%m-%d %H:%M:%S'
git log --date=format:'%Y-%m-%d %H:%M:%S'
git checkout -- xxx.php
, 本地修改了,但还没有放到index暂存区,用checkout
- git reset commit_id
,workspace 本地中的文件不会被更新,index会被更新。
- git reset --hard commit_id
, workspace 和index都会被更新成commit_id的内容git diff
是有个简单的文本比较,但不太方便。git difftool
,这个可以使用vimdiff,推荐。可以通过使用别名,git config –global alias.df difftool进行简化.git df 111b9d9 d112da3 .vimrc
echo “# lumen_demo” » README.md git init git add README.md git commit -m “first commit” git remote add origin https://github.com/kaisa316/lumen_demo.git git push -u origin master
Here be a sample post with a custom background image. To utilize this “feature” just add the following YAML to a post’s front matter.
image:
background: filename.png
This little bit of YAML makes the assumption that your background image asset is in the /images
folder. If you place it somewhere else or are hotlinking from the web, just include the full http(s):// URL. Either way you should have a background image that is tiled.
If you want to set a background image for the entire site just add background: filename.png
to your _config.yml
and BOOM — background images on every page!
Syntax highlighting is a feature that displays source code, in different colors and fonts according to the category of terms. This feature facilitates writing in a structured language such as a programming language or a markup language as both structures and syntax errors are visually distinct. Highlighting does not affect the meaning of the text itself; it is intended only for human readers.1
GitHub Flavored Markdown fenced code blocks are supported. To modify styling and highlight colors edit /_sass/syntax.scss
.
#container {
float: left;
margin: 0 -240px 0 0;
width: 100%;
}
<nav class="pagination" role="navigation">
{% if page.previous %}
<a href="{{ site.url }}{{ page.previous.url }}" class="btn" title="{{ page.previous.title }}">Previous article</a>
{% endif %}
{% if page.next %}
<a href="{{ site.url }}{{ page.next.url }}" class="btn" title="{{ page.next.title }}">Next article</a>
{% endif %}
</nav><!-- /.pagination -->
1
2
3
4
5
6
7
8
<nav class="pagination" role="navigation">
{% if page.previous %}
<a href="{{ site.url }}{{ page.previous.url }}" class="btn" title="{{ page.previous.title }}">Previous article</a>
{% endif %}
{% if page.next %}
<a href="{{ site.url }}{{ page.next.url }}" class="btn" title="{{ page.next.title }}">Next article</a>
{% endif %}
</nav><!-- /.pagination -->
module Jekyll
class TagIndex < Page
def initialize(site, base, dir, tag)
@site = site
@base = base
@dir = dir
@name = 'index.html'
self.process(@name)
self.read_yaml(File.join(base, '_layouts'), 'tag_index.html')
self.data['tag'] = tag
tag_title_prefix = site.config['tag_title_prefix'] || 'Tagged: '
tag_title_suffix = site.config['tag_title_suffix'] || '–'
self.data['title'] = "#{tag_title_prefix}#{tag}"
self.data['description'] = "An archive of posts tagged #{tag}."
end
end
end
Indentation matters. Be sure the indent of the code block aligns with the first non-space character after the list item marker (e.g., 1.
). Usually this will mean indenting 3 spaces instead of 4.
Now do this:
def print_hi(name)
puts "Hi, #{name}"
end
print_hi('Tom')
#=> prints 'Hi, Tom' to STDOUT.
An example of a Gist embed below.
This theme supports link posts, made famous by John Gruber. To use, just add link: http://url-you-want-linked
to the post’s YAML front matter and you’re done.