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
| " quickrun - run a command and show its result quickly | |
| " Author: ujihisa <http://ujihisa.nowa.jp/> | |
| " ModifiedBy: kana <http://whileimautomaton.net/> | |
| if exists('g:loaded_quickrun') | |
| finish | |
| endif | |
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
| extern int main(int __unused__ argc, char **argv) { | |
| cookedArgs *args; | |
| [...] | |
| args = cArgNewFromArgv (argv); | |
| [...] | |
| makeTags (args); | |
| /* Clean up. | |
| */ |
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/runtime/ftplugin/changelog.vim b/runtime/ftplugin/changelog.vim | |
| --- a/runtime/ftplugin/changelog.vim | |
| +++ b/runtime/ftplugin/changelog.vim | |
| @@ -99,6 +99,8 @@ | |
| function! s:try_reading_file(path) | |
| try | |
| return readfile(a:path) | |
| + catch | |
| + " nop | |
| endtry |
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/errormaker.vim b/errormaker.vim | |
| index d1e1093..f45e698 100644 | |
| --- a/errormaker.vim | |
| +++ b/errormaker.vim | |
| @@ -142,6 +142,9 @@ function! s:SetErrorMarkers() | |
| execute ":sign place " . l:key . " line=" . l:d.lnum . " name=" . | |
| \ l:name . " buffer=" . l:d.bufnr | |
| endfor | |
| + if !has('gui_running') | |
| + redraw! |
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
| if (companyRoot != null) { | |
| addError("errors.csv.existCompany", lineNumber, importData.getCompanyName(), fileName); | |
| } |
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
| require 'thread' | |
| def sleep_sort(xs) | |
| queue = Queue.new | |
| xs.map {|x| | |
| # 1000 is precision limit | |
| Thread.new(x) {|_x| sleep(_x / 1000.0); queue.push(_x) } | |
| }.each(&:join) | |
| ret = [] |
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
| if [ -d $HOME/.npm ]; then | |
| for bin in $HOME/.npm/*/*/package/bin | |
| do | |
| export PATH=$bin:$PATH | |
| done | |
| fi |
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
| # like list comprehension | |
| list = (i for i in [0..10] when i % 2 is 0) |
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! Tree(lst, ret) | |
| if empty(a:lst) | |
| return a:ret | |
| endif | |
| let _ = a:ret + get(a:lst, 0) | |
| return Tree(a:lst[1:-1], _) | |
| endfunction | |
| echo Tree(range(11), 0) | |
| "=> 55 |
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
| puts_catalog( | |
| conversion, | |
| (1..3).map {|i| | |
| catalog.fetch_hash["m_catalog_category_level3_id#{i}"] | |
| }.compact.inject([]) {|ret, id| | |
| ret << find_catalog_category_level(id) | |
| } | |
| ) |
OlderNewer