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
require "iniparse" | |
document = IniParse.parse(File.read(".gitmodules")) | |
document.each do |line| | |
desc "git-pull #{line.key}" | |
task line["path"] do | |
cd line["path"] do | |
sh "git pull" do |ok, res| | |
if ok | |
sh "git log HEAD@{1}..HEAD --reverse --oneline" | |
end |
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
// https://developer.mozilla.org/ja/New_in_JavaScript_1.7#Array_comprehensions | |
function range (begin, end) { | |
for (let i = begin; i < end; ++i) { | |
yield i; | |
} | |
}; | |
// http://code.activestate.com/recipes/347689-ruby-arrayeach_cons-each_slice-overlapping-and-non/ | |
function each_cons (l, n) { | |
return [l.slice(i, i + n) for (i in (range(0, l.length - n + 1)))] |
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
// via. http://en.wikibooks.org/wiki/Algorithm_implementation/Strings/Longest_common_substring#Python | |
function LCSubstr_str(S, T) { | |
var m = S.length, n = T.length; | |
var L = [], ml = m + 1, nl = n + 1; | |
for (var i = 0; i < ml; i++) { | |
var l = []; | |
for (var j = 0; j < nl; j++) { | |
l.push(0); | |
}; | |
L.push(l); |
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
/* via. [twilight : A clone of Textmates twilight scheme](http://www.vim.org/scripts/script.php?script_id=1677) */ | |
tabpanels { | |
background-color: #1a1a1a !important; | |
} | |
@-moz-document url-prefix(http://), url-prefix(https://), url-prefix(ftp://), url-prefix(file://) { | |
*:not(:empty) { | |
color: #fffedc !important; | |
border-color: #303030 !important; |
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
let g:changelog_new_entry_format = "\n\t* %c" |
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
--- twilight.vim 2011-02-18 05:50:48.151998300 +0900 | |
+++ twilight.vim.orig 2011-01-24 14:18:26.000000000 +0900 | |
@@ -55,7 +55,7 @@ | |
exe 'hi SpecialKey guifg='.s:grey .' guibg='.s:darkgrey | |
exe 'hi LineNr guifg='.s:mid_grey_blue .' guibg='.s:dark_grey_blue .' gui=none' | |
-exe 'hi StatusLine guifg='.s:white .' guibg='.s:grey .' gui=underline' | |
+exe 'hi StatusLine guifg='.s:white .' guibg='.s:grey .' gui=italic,underline' | |
exe 'hi StatusLineNC guifg='.s:lightgrey .' guibg='.s:grey .' gui=italic,underline' | |
exe 'hi VertSplit guifg='.s:grey .' guibg='.s:grey .' gui=none' |
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
--- keywordlist_furigana2skkdic.rb.org 2010-09-16 10:59:23.000000000 +0900 | |
+++ keywordlist_furigana2skkdic.rb 2010-09-16 10:59:23.000000000 +0900 | |
@@ -34,8 +34,6 @@ | |
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | |
# THE SOFTWARE. | |
-require 'nkf' | |
- | |
class String | |
# borrowed from http://openlab.jp/skk/skk/tools/filters/skkdictools.rb |
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 a/prevent-pseudo-domain.js b/prevent-pseudo-domain.js | |
index 6cd3a71..65e1a8f 100644 | |
--- a/prevent-pseudo-domain.js | |
+++ b/prevent-pseudo-domain.js | |
@@ -13,7 +13,7 @@ | |
} | |
hasScheme = function(s) { | |
- return /^([a-zA-Z]+):\/\//i.test(s); | |
+ return /^([^:/?#]+):/.test(s); |
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 refcontrol.js refcontrol.js | |
index 54261b3..7c36ab6 100644 | |
--- refcontrol.js | |
+++ refcontrol.js | |
@@ -98,8 +98,8 @@ RefControl.prototype = { | |
panel.setAttribute('class', 'statusbarpanel-iconic'); | |
panel.setAttribute('src', self.isEnable ? ENABLE_ICON : DISABLE_ICON); | |
panel.addEventListener('click', function(e) { self.isEnable = !self.isEnable; }, false); | |
- document.getElementById('status-bar').insertBefore( | |
- panel, document.getElementById('security-button').nextSibling); |
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
// ==UserScript== | |
// @name Pixiv stacc link cleaner | |
// @namespace littlefolk | |
// @description スタックフィードでのリンクアドレスから不要な部分を削除することで、一度訪問したリンクを判別出来るようにする。 | |
// @include http://www.pixiv.net/stacc/* | |
// @version 1.0 | |
// ==/UserScript== | |
// via. [AutoPagerize_DOMNodeInserted 使用時のテンプレート - twwp](http://d.hatena.ne.jp/taizooo/20101105/1288920138) | |
(function(){ |