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
"*************************************************** | |
try | |
:0d | call append(0 , '"*') | |
for val in range(50) | |
sleep 10m | |
:0 | |
let bar = expand("<cword>") . '*' | |
:0d | |
call append(0, bar) |
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
let s:consumer_key = 'consumer key' | |
let s:consumer_secret = 'consumer secret' | |
let s:access_token = 'access token' | |
let s:access_token_secret = 'access token secret' | |
let s:ctx = { | |
\ 'consumer_key' : s:consumer_key , | |
\ 'consumer_secret' : s:consumer_secret , | |
\ 'access_token' : s:access_token , |
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
$ git diff | |
diff --git a/autoload/oauth.vim b/autoload/oauth.vim | |
old mode 100644 | |
new mode 100755 | |
index a9ffcfe..85f8ff2 | |
--- a/autoload/oauth.vim | |
+++ b/autoload/oauth.vim | |
@@ -82,12 +82,18 @@ function! oauth#get(url, ctx, ...) | |
for key in keys(params) | |
let query[key] = params[key] |
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
// ==UserScript== | |
// @name yahoo news redirector | |
// @namespace [email protected] | |
// @include http://dailynews.yahoo.co.jp/* | |
// ==/UserScript== | |
(function () { | |
var h3 = document.getElementsByTagName("h3")[0]; | |
var url = h3.childNodes[0].getAttribute("href"); | |
location.href = url; |
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
style.register(<><![CDATA[ | |
@-moz-document url-prefix("http://b.hatena.ne.jp/") { | |
.entry-summary, .entry-data {display:none} | |
.entry-comment-fold, .others {background-color:white} | |
.entry-image {width:32px;height : 32px;} | |
.entry-image-block {display:none;} | |
.trigger {display:none;} | |
} | |
]]></>.toString(), style.XHTML); |
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
diff --git a/autoload/neocomplcache/sources/jscomplete.vim b/autoload/neocomplca | |
index 8388ec9..70f8b8a 100644 | |
--- a/autoload/neocomplcache/sources/jscomplete.vim | |
+++ b/autoload/neocomplcache/sources/jscomplete.vim | |
@@ -22,6 +22,16 @@ function s:source.get_keyword_pos (cur_text) "{{{ | |
return jscomplete#GetCompletePosition(a:cur_text, line('.')) | |
endfunction "}}} | |
function s:source.get_complete_words (pos, complWord) "{{{ | |
+ | |
+ let completion_length = neocomplcache#get_completion_length('jscomplete') |
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
function! s:source.get_complete_words(cur_keyword_pos, cur_keyword_str) | |
let keywords = map(tweetvim#cache#get('hash_tag'), | |
\ "{ 'word' : v:val, 'menu' : '[tweetvim]' }") | |
return neocomplcache#keyword_filter(keywords, a:cur_keyword_str) | |
endfunction |
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
function! s:source.get_keyword_pos(cur_text) | |
let col = col('.') | |
let pos = 0 | |
while 1 | |
let idx = stridx(a:cur_text, '@', pos + 1) | |
if idx == -1 || idx >= col | |
break | |
endif | |
let pos = idx |
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
// ==UserScript== | |
// @name delete kindle item | |
// @namespace [email protected] | |
// @include https://www.amazon.com/gp/digital/fiona/manage* | |
// @include https://www.amazon.co.jp/gp/digital/fiona/manage* | |
// @version 1 | |
// ==/UserScript== | |
jQuery('<button id="delete_all_item" style="margin-left:10px;">delete all</button>').insertAfter('#searchTextGoButton'); |
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
diff --git a/autoload/vimproc/parser.vim b/autoload/vimproc/parser.vim | |
index b1965ad..dcd65e8 100644 | |
--- a/autoload/vimproc/parser.vim | |
+++ b/autoload/vimproc/parser.vim | |
@@ -779,7 +779,7 @@ function! s:parse_double_quote(script, i) "{{{ | |
elseif has_key(escape_sequences, script[i]) | |
let arg .= escape_sequences[script[i]] | |
else | |
- let arg .= '\' . script[i] | |
+ let arg .= script[i] |