-
vdbc#connect({config})
-
config : dict
- driver: required {pg}
- host: required
- port:
-
-
username:
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
| #!env perl | |
| use 5.010; | |
| use utf8; | |
| use strict; | |
| use warnings; | |
| use Carp qw/croak cluck/; | |
| use AnyEvent::JSONRPC::TCP::Server; | |
| use DBI; | |
| use DBIx::Inspector; |
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
| import java.util.List; | |
| import java.util.ArrayList; | |
| class Hoge | |
| { | |
| public static void main(String[] args) | |
| { | |
| final List<Integer> list= new ArrayList<Integer>(); | |
| list.${cursor} |
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
| " | |
| " how to use Vital.Text.Parser | |
| " | |
| let s:V= vital#of('vital') | |
| let s:L= s:V.import('Text.Lexer') | |
| let s:P= s:V.import('Text.Parser') | |
| unlet s:V | |
| try | |
| " instantiate an lexer object with token definitions (list of list) |
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:save_cpo= &cpo | |
| set cpo&vim | |
| call mkdir('./javaimport/src/test/java/jp/michikusa/chitose/unitejavaimport', 'p') | |
| call mkdir('./javaimport/src/main/java/jp/michikusa/chitose/unitejavaimport', 'p') | |
| call mkdir('./javaimport/target/test-classes/jp/michikusa/chitose/unitejavaimport', 'p') | |
| call mkdir('./javaimport/target/generated-test-sources', 'p') | |
| call mkdir('./javaimport/target/generated-test-sources/test-annotations', 'p') | |
| call mkdir('./javaimport/target/generated-sources', 'p') | |
| call mkdir('./javaimport/target/generated-sources/annotations', 'p') |
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
| Error detected while processing function snowdrop#libclang#load..<SNR>233_binding_call..snowdrop#libclang#python#load..<SNR>235_import: | |
| line 7: | |
| Traceback (most recent call last): | |
| File "<string>", line 1, in <module> | |
| File "/home/kamichidu/.bundle/vim-snowdrop/snowdrop/python/snowdrop.py", line 25, in <module> | |
| Config.set_compatibility_check(False) | |
| File "/home/kamichidu/.bundle/clang_complete/plugin/clang/cindex.py", line 3126, in set_compatibility_check | |
| raise Exception("compatibility_check must be set before before " \ | |
| Exception: compatibility_check must be set before before using any other functionalities in libclang. | |
| Traceback (most recent call last): |
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
| parser= {} | |
| local | |
| function parse_error(s, p) | |
| error('parse error: text="' .. s .. '", index=' .. p) | |
| end | |
| local | |
| function char(s, i) | |
| if not (i >= 1 and i <= string.len(s)) then |
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:V= vital#of('vital') | |
| let s:PM= s:V.import('ProcessManager') | |
| let s:D= s:V.import('Data.Dict') | |
| unlet s:V | |
| "" | |
| " @function youjo#connect | |
| " @param config {Dict} | |
| " @return an object (vdbc) | |
| " @see vdbc |
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
| --- profiler.lua.orig 2013-09-15 06:29:15.000000000 +0900 | |
| +++ profiler.lua 2014-01-29 00:33:15.181192708 +0900 | |
| @@ -84,7 +84,7 @@ | |
| -- if we have a prior calling function, then grab how much time we have spent so far in the current function by checking | |
| -- the top stack entry's call time, and add it into the data for that function; when we return, we will reset this value | |
| -- to whatever counter is on return | |
| - local StackSize = sizeof (profiler_call_stack) | |
| + local StackSize = #(profiler_call_stack) | |
| if (StackSize > 0) then | |
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
| import java.util.Iterator; | |
| import java.util.Random; | |
| // example 1 | |
| // using java.util.Iterator | |
| class InfiniteSequence1 implements Iterator<Integer> | |
| { | |
| public InfiniteSequence1(Random rng) | |
| { | |
| this.rng= rng; |