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
# Description: | |
# When someone says LGTM, presents an image from LGTM.in | |
# | |
# Will ignore users set in HUBOT_LGTM_IGNORE_USERS (by default, none). | |
# | |
# Dependencies: | |
# None | |
# | |
# HUBOT_LGTM_IGNORE_USERS (optional, format: "user1|user2", default "lgtm|jira") | |
# |
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
function! s:is_cmdwin() | |
try | |
noautocmd wincmd p | |
noautocmd wincmd p | |
catch | |
return 1 | |
endtry | |
return 0 | |
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
function! s:open_pair_file() | |
let path = expand('%:p') | |
let pairs = [ | |
\ ['/autoload/\([^/]\+\).vim$', '/plugin/\1.vim'], | |
\ ['/plugin/\([^/]\+\).vim$', '/autoload/\1.vim'] | |
\ ] | |
for [pat, sub] in pairs | |
if match(path, pat) != -1 | |
execute 'hide' 'edit' substitute(path, pat, sub, '') | |
break |
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
" Commands | |
command! -nargs=0 -bang Vai | |
\ call s:vai.vavai('<bang>' == '!') | |
" Variables | |
let s:vai = {} |
- 【個人メモ】JSONのパースにjmespathを使ってみよう - Qiita
- AWS CLI の --query で複数のタグでインスタンスを検索 - Qiita
- AWS CLIのフィルターとクエリーの使い方についてまとめてみた | Developers.IO
- aws-cli で使える –query = jmespath をガッツリ使い込む | cloudpack技術情報サイト
- JMESPath — JMESPath
- jq - AWS CLIを使ってEC2インスタンスの情報を取得する - Qiita
AWS CLI は 1.2 以降で --query オプションが追加されている。ここでは JMESPath による query を指定できる。
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 'clojure.test) | |
(with-test | |
(defn f | |
[& {:as options}] | |
options) | |
(is (nil? (f))) | |
(is (thrown? IllegalArgumentException (f nil))) | |
(is (thrown? IllegalArgumentException (f :a))) | |
(is (= (f nil nil) {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
(ns google-reader.xml-test | |
(:require [clojure.xml :as xml] | |
[clojure.zip :as zip] | |
[clojure.data.zip.xml :as dzx]) | |
(:use clojure.test)) | |
(def xml-str-1 | |
(str "<root id='1'>" | |
" <parent id='2'>" | |
" <child id='3'/>" |
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('espower-babel')({ | |
cwd: process.cwd(), | |
pattern: 'tmp/test/**/*-test.js', | |
espowerOptions: { | |
patterns: [ | |
'assert(value, [message])', | |
'assert.ok(value, [message])', | |
'assert.equal(actual, expected, [message])', | |
'assert.notEqual(actual, expected, [message])', | |
'assert.strictEqual(actual, expected, [message])', |