- foo
- foo-foo
- foo-bar
- foo-baz
- bar
This file contains 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
// Create swatch | |
$color-base: #33ff33; | |
$color-accent: #3333ff; | |
.header { | |
background-color: $color-base; | |
} | |
.header .active { | |
color: $color-accent; |
This file contains 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
var replaceLinkWithCode = function (codeURL, codeRef) { | |
var request = new XMLHttpRequest(); | |
request.open('get', codeURL, true); | |
request.addEventListener('load', function () { | |
var parent = codeRef.parentNode; | |
var pre = document.createElement('pre'); | |
parent.insertBefore(pre, codeRef); | |
var code = document.createElement('code'); |
This file contains 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
/* jshint node: true */ | |
'use strict'; | |
var path = require('path'); | |
module.exports = function (grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
upload: { |
- .bin/ ... 色々なユーティリティ
- .grunt/ ... Gruntでゴニョゴニョするものは全部ココ
- task/ ... カスタム・プラグイン
- blosxom.js ... Blosxomを叩く
- generate.js ... Handlebars.jsを使ったHTMLジェネレーター
- generate_sitemap.js ... sitemap.xml専用
- gitcommit.js ... コミットします、プッシュもできる
- upload.js ... scpでアップロード
- html/ ... generate.jsでプロセスする*.mustacheがまとめられてる
- task/ ... カスタム・プラグイン
- css/ ... Sassで書いたものはココ、Bowerもここだけで管理
This file contains 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
if exists('current_compiler') | |
finish | |
endif | |
let current_compiler = 'jsonlint' | |
if exists(":CompilerSet") != 2 " older Vim always used :setlocal | |
command -nargs=* CompilerSet setlocal <args> | |
endif | |
let s:cpo_save = &cpo |
This file contains 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
/** | |
* @preserve prettify-loader.js | |
* | |
* LICENSE: http://hail2u.mit-license.org/2011 | |
*/ | |
(function (d) { | |
if (d.querySelectorAll) { | |
var languages = ['bash', 'bsh', 'c', 'cc', 'coffee', 'cpp', 'cs', 'csh', | |
'cxx', 'cyc', 'cv', 'htm', 'html', 'java', 'javascript', 'js', 'json', | |
'm', 'mxml', 'perl', 'pl', 'pm', 'py', 'python', 'rb', 'rc', 'rs', 'ruby', |
This file contains 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
diff --git blosxom.cgi blosxom.cgi | |
index 8ffe7ae..0fb7041 100755 | |
--- blosxom.cgi | |
+++ blosxom.cgi | |
@@ -764,6 +764,30 @@ sub generate { | |
} | |
} | |
+ # Save unescaped versions and allow them to be used in flavour | |
+ # templates. |
This file contains 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
#!/bin/sh | |
# Dependencies | |
# gh-open: https://github.com/typester/gh-open | |
BRANCH=$1 | |
git checkout master && | |
git checkout -b $BRANCH && | |
git commit --allow-empty -m "WIP $BRANCH" && |
あらかじめ手作業でgh-pages
内のファイル構成は整えておく。
# ビルドします
node index.js
# コミットします
git commit --all --message="Rebuild"
# gh-pagesに移動します
git checkout gh-pages
# masterのファイルを全部持ってくる