Skip to content

Instantly share code, notes, and snippets.

View bouzuya's full-sized avatar

bouzuya bouzuya

View GitHub Profile
@rahulsom
rahulsom / lgtm.coffee
Created April 12, 2015 03:35
Hubot lgtm script
# 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")
#
@bouzuya
bouzuya / backlog-banner.user.js
Created April 26, 2015 06:13
Backlog の検索ページに Banner を表示するユーザースクリプト
// ==UserScript==
// @name Backlog Banner
// @namespace http://bouzuya.net/
// @version 0.1
// @description backlog banner
// @author bouzuya
// @match https://*.backlog.jp/find/*
// @grant none
// ==/UserScript==
@okunokentaro
okunokentaro / gist:72ed886825ffa891cc50
Last active August 31, 2015 12:23
ng-kyoto Angular Meetup #2資料まとめ
function! s:is_cmdwin()
try
noautocmd wincmd p
noautocmd wincmd p
catch
return 1
endtry
return 0
endfunction
@bouzuya
bouzuya / gist:1885339
Created February 22, 2012 14:26
autoload/*.vim <-> plugin/*.vim
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
@emanon001
emanon001 / vaivavai.vim
Created March 10, 2012 15:06
Vim script: One two three vai!(Haruka Amami shout)
" Commands
command! -nargs=0 -bang Vai
\ call s:vai.vavai('<bang>' == '!')
" Variables
let s:vai = {}
(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}))
(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'/>"
@bouzuya
bouzuya / espower-babel-loader.js
Created January 9, 2016 13:50
typescript & babel & mocha & power-assert の設定の断片
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])',