Upload
-
View
1.144
Download
1
Embed Size (px)
Citation preview
Prezi
ver. 0.8
PREZI
SlideShare
MARKDOWN
mdpress gem
$ mdpress readme.md
readme index.html
# Chicken Chicken Chicken## By Chicken
---
# Chicken- Chicken- Chicken Chicken
Chicken ChickenChickenBY CHICKEN
ChickenChickenChicken Chicken
MDPRESS
MarkdownLT
LTQiita
RUBYconfigure :production do set :cache, Dalli::Client.new( ENV['MEMCACHE_SERVERS'], :username => ENV['MEMCACHE_USERNAME'], :password => ENV['MEMCACHE_PASSWORD'], :expires_in => 60 * 30 )end
OBJECTIVE-C
NSBundle* bundle = [NSBundle mainBundle];;
NSString* path = [bundle pathForResource:@"Questions" ofType:@"plist"
questions = [NSArray arrayWithContentsOfFile:path];;
QuestionsMax = questions.count;;
for(NSDictionary* question in questions) NSLog(@"question:%@", [question objectForKey:@"Question"]);;
NSLog(@"answer:%@", [question objectForKey:@"CorrectAnswer"]);;
NSLog(@"incorrect answer:%@", [question objectForKey:@"IncorrectAnswer"
NSLog(@"backgroundImage:%@", [question objectForKey:@"backgroundImage"
GitHub Pages
1. Markdown
2. $ mdpress readme.md readme
3. origin push
4. Setting -> GitHub Pages GitHub Pages
5. gh-pages GitHub
6. pull gh-pages
7. $ git checkout gh-pages8. $ cp -rf readme/* .9. $ git push -u origin gh-pages
10. $ git push 2
DEMO
diff
(Markdown) (HTML)
Qiita
LT
1. [origin] origin2. [origin] Markdown3. [origin] Markdown4. [origin] git push5. [origin] mdpress
6. [gh-pages] gh-pages7. [gh-pages] 8. [gh-pages] git push9. [origin] origin
PUSH.SH
# レポジトリに入る# フォルダ名は引数にしたいcd 140127-2013-soukatsu-2014-houshin
# Markdownをpushgit add .git commit -m "commited automatically by push.sh"git push
# mdpressコマンドでreadmeフォルダを生成cd ..mdpress 140127-2013-soukatsu-2014-houshin/readme.md
# gh-pagesブランチに切り替えるcd 140127-2013-soukatsu-2014-houshingit checkout gh-pages
# 先ほど生成したreadmeフォルダの中身をレポジトリにコピーするcp -rf ../readme/* .
# 自動的にcommit+pushgit add .git commit -m "commited automatically by push.sh"git push
# originブランチに戻すgit checkout master
# 元いたディレクトリに戻るcd ..
Prezi