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
" Conque | |
" http://www.vim.org/scripts/script.php?script_id=2771 | |
" ~/.vim/after/ftplugin/conque_term.vim | |
augroup MyConqueTerm | |
autocmd! | |
" start Insert mode on BufEnter | |
autocmd BufEnter * | |
\ if &l:filetype ==# 'conque_term' | |
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
module Termtter::Client | |
register_hook( | |
:name => :always_140, | |
:points => [:modify_arg_for_update], | |
:exec_proc => lambda {|cmd, body| | |
body.chomp! | |
max = 140 | |
len = body.split(//).length | |
mod = max % len | |
ext = (0...len).to_a.sort_by{ rand }.take(mod) |
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 decode hitode909 | |
// @namespace http://d.hatena.ne.jp/send/ | |
// @description twitter filter | |
// @include http://twitter.com/* | |
// @include http://mobile.twitter.com/* | |
// ==/UserScript== | |
// | |
(function (){ |
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
↑のStar押してみて! |
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! JavaScriptUnderScoreBecomesCamelCase() | |
if matchstr(getline('.'), '.', col('.')-2) =~ '\w' | |
return "\<Plug>(stickykey-shift)" | |
else | |
return '_' | |
endif | |
endfunction! | |
imap <buffer><expr> _ JavaScriptUnderScoreBecomesCamelCase() |
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
// g++ -std=c++0x cxx0x-deferred.cxx | |
#include <iostream> | |
template <typename T> | |
class Deferred { | |
private: | |
T r; | |
public: | |
Deferred() {} | |
Deferred(T v) : r(v) {} |
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
plugins.libly.$U.around( | |
commandline._callbacks.submit, | |
modes.EX, | |
function (next, [arg]) { | |
if (/^viewSBMComments/(arg) && buffer.URL == 'about:blank') | |
return; | |
else | |
return next(); | |
} | |
) |
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 string.c string.c | |
index 0aa2e6c..6c9be57 100644 | |
--- string.c | |
+++ string.c | |
@@ -2055,6 +2055,43 @@ rb_str_concat(VALUE str1, VALUE str2) | |
} | |
} | |
+/* |
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
setlocal foldmethod=expr foldexpr=DiffFold(v:lnum) | |
function! DiffFold(lnum) | |
let line = getline(a:lnum) | |
let next = getline(a:lnum + 1) | |
if line =~ '^[-=]\{3}' | |
return 1 | |
elseif next =~ '^[-=]\{3}' | |
return '<1' | |
elseif line =~ '^@@' |
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
#!/usr/bin/perl | |
# Author: Todd Larason <[email protected]> | |
# $XFree86: xc/programs/xterm/vttests/256colors2.pl,v 1.2 2002/03/26 01:46:43 dickey Exp $ | |
# use the resources for colors 0-15 - usually more-or-less a | |
# reproduction of the standard ANSI colors, but possibly more | |
# pleasing shades | |
# colors 16-231 are a 6x6x6 color cube | |
for ($red = 0; $red < 6; $red++) { |