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
*** colorscheme.vim.orig 2011-06-28 21:43:56.000000000 +0900 | |
--- colorscheme.vim 2011-06-28 21:44:41.000000000 +0900 | |
*************** | |
*** 8,14 **** | |
\ } | |
function! s:unite_source.hooks.on_init(args, context) | |
! let s:beforecolor = g:colors_name | |
endfunction | |
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 autoload/unite/sources/colorscheme.vim autoload/unite/sources/colorscheme.vim | |
index 63cea36..8cca97c 100644 | |
--- autoload/unite/sources/colorscheme.vim | |
+++ autoload/unite/sources/colorscheme.vim | |
@@ -8,7 +8,11 @@ let s:unite_source = { | |
\ } | |
function! s:unite_source.hooks.on_init(args, context) | |
- let s:beforecolor = g:colors_name | |
+ if exists('g:colors_name') |
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 autoload/vinarise.vim autoload/vinarise.vim | |
index 49c0991..e757cf9 100644 | |
--- autoload/vinarise.vim | |
+++ autoload/vinarise.vim | |
@@ -53,6 +53,7 @@ else | |
let s:vinarise_BUFFER_NAME = '*vinarise*' | |
endif | |
"}}} | |
+ | |
" Variables "{{{ |
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 spec/prelude.vim spec/prelude.vim | |
index bee45d1..f44de4b 100644 | |
--- spec/prelude.vim | |
+++ spec/prelude.vim | |
@@ -2,6 +2,96 @@ source spec/base.vim | |
let g:V = vital#of('vital') | |
+"Test of wrapper function for type()"{{{ | |
+Context Prelude.is_numeric() |
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
func! s:sync(bang, bundle) abort | |
let git_dir = expand(a:bundle.path().'/.git/') | |
if isdirectory(git_dir) | |
if !(a:bang) | return 0 | endif | |
let cmd = 'git pull' | |
if (has('win32') || has('win64')) | |
"let cmd = substitute(cmd, '^cd ','cd /d ','') " add /d switch to change drives | |
let cmd = '"'.cmd.'"' " enclose in quotes | |
endif | |
"cd to bundle path" |
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 l:cmd = printf('curl --form-string key=%s --form-string uri=%s --form-string "size=%d" http://outputz.com/api/post', | |
\ fnameescape(g:outputz_secret_key), | |
\ fnameescape({g:outputz_uri_function}()), | |
\ a:n) | |
if s:V.has_vimproc() | |
call vimproc#system_bg(cmd) | |
else | |
call system(cmd) | |
endif |
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
(load "~/quicklisp/setup.lisp") | |
(let* ((*standard-output* (make-broadcast-stream)) | |
(*error-output* *standard-output*)) | |
(ql:quickload :split-sequence)) | |
(defun parse-ls-l () | |
;;Throught first line | |
(read-line) | |
(loop for line = (read-line t nil nil) |
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 'set' | |
k = [0]*5; m = [0]*5 | |
begin | |
puts Set.new([*1..5]).divide{|i| k[i-1]}.map{|i| i.to_a*""}*"." | |
end while | |
(if i = [4,3,2,1].index{|i| k[i] <= m[i-1]}; then i=4-i | |
k[i]+=1; m[i] = m[i]>k[i] ? m[i] : k[i] | |
((i+1)..4).each{|j| k[j] = k[0]; m[j] = m[i]; } | |
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
import javax.swing.*; | |
import java.awt.*; | |
import java.util.ArrayList; | |
public class MultiSplitPane extends JPanel { | |
private int orientation; | |
private Boolean needSplit; | |
private Boolean splited; | |
private Component firstChild; | |
private MultiSplitPane private_second_child; |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
OlderNewer