This file contains hidden or 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
# Jekyll archive page generator with pagination. | |
# | |
# Based on the category generator from | |
# http://recursive-design.com/projects/jekyll-plugins/, | |
# which is copyright (c) 2010 Dave Perrett, | |
# http://recursive-design.com/ and is licensed under the MIT | |
# license (http://www.opensource.org/licenses/mit-license.php), and | |
# on the pagination code from Jekyll itself. | |
# | |
# This code is copyright (c) 2011 Benjamin Curtis, and is licensed |
This file contains hidden or 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
root@ypchen-ubuntu:~/octopress# rake generate | |
## Generating Site with Jekyll | |
unchanged sass/screen.scss | |
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych.rb:148:in `parse': couldn't parse YAML at line 20 column 0 (Psych::SyntaxError) | |
from /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych.rb:148:in `parse_stream' | |
from /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych.rb:119:in `parse' | |
from /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych.rb:106:in `load' | |
from /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych.rb:205:in `load_file' | |
from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/lib/jekyll.rb:119:in `configuration' | |
from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/bin/jekyll:207:in `<top (required)>' |
This file contains hidden or 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> | |
<head> | |
<meta charset=utf-8 /> | |
<title> {% if page.title %} {{ page.title }} | {% endif %} John Doe, Photographer </title> | |
<link rel="stylesheet" href="/css/styles.css" /> | |
</head> | |
<body> | |
<div id="main"> |
This file contains hidden or 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
{{ page.title }}{% if page.title %} | {% endif %} |
This file contains hidden or 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
--- | |
layout: default | |
--- | |
<h2 class="content">{{page.title}}</h2> | |
<img src="{{ page.image }}" /> | |
{{ content }} |
This file contains hidden or 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
--- | |
layout: default | |
title: Portfolio | |
--- | |
<section class="content"> | |
<h2>Portfolio</h2> | |
<p>Check out my images below!</p> | |
</section> |
This file contains hidden or 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
<table border="1"> | |
<tr> | |
<th>ID</th><th>Name</th><th>Rank</th> | |
</tr> | |
<tr> | |
<td>1</td><td>Tom Preston-Werner</td><td>Awesome</td> | |
</tr> | |
<tr> | |
<td>2</td><td>Albert Einstein</td><td>Nearly as awesome</td> | |
</tr> |
This file contains hidden or 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
oldip <- installed.packages()[ ,1] | |
save(oldip, file="path/installedPackages.Rdata") |
This file contains hidden or 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
load("path/installedPackages.Rdata") | |
newip <- installed.packages()[,1] | |
for(i in setdiff(oldip, newip)) | |
install.packages(i) |
This file contains hidden or 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
# 设置常用选项 | |
options(papersize="a4") | |
options(editor="notepad") | |
options(pager="internal") | |
options(tab.width = 2) | |
options(width = 130) | |
options(graphics.record=TRUE) | |
options(show.signif.stars=FALSE) | |
# 设置R交互提示信息 |
OlderNewer