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
#!/bin/sh | |
# Insert commit file names to a commit-message by automatic. | |
cp $1 $1.tmp | |
# [FIXME] ↓I'm not know other values...(Especially for "squash") | |
if [ "$2" = "message" ] ; then | |
t=$1.tmp | |
else | |
t=$1 | |
fi |
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
# Twitter APIにアクセスするコードの一部 | |
# このコード以前でリクエストトークン(reqToken)は取得出来ており、reqToken.authorize_urlにアクセス、ブラウザ上にPINコードを表示している物とする。 | |
# 手元の環境(ruby 1.8.7 (2012-02-08 patchlebel 358) [i386-cygwin])では、正しいPINコードを入力しても、必ずOAuth::Unauthorizedが発生する | |
begin | |
print "Please input PIN:" | |
STDOUT.flush | |
pin = STDIN.gets | |
tokens = reqToken.get_access_token({:oauth_verifier => pin}) | |
rescue OAuth::Unauthorized => e |
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
// ==UserScript== | |
// @name ねえねえ今どんな気持ち? | |
// @namespace http://amaisaeta.seesaa.net/ | |
// @description 国分太一fier | |
// @include https://www.facebook.com/* | |
// @version 1.00.20121213 | |
// ==/UserScript== | |
(function () { | |
var aa = [ // {{{ |
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
set cpo&vim | |
set rtp^=~/vimbundles/vimproc,~/vimbundles/vesting,~/vimbundles/unite.vim | |
set rtp+=~/vimbundles/vesting/after |
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
((Get-Content Env:Path) -Split ";" | Where-Object { $_ -notmatch "\b" + "HOGEHOGE" + "\b" }) -Join ";" | Set-Content Env: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
function! s:ls(all) | |
" Return the STRUCTURED all buffer informations that is similar :ls. | |
" @param[in] all Include "unlisted" buffer informations. | |
" @return | |
" Buffer informations. It's a List that contains Dictionary of a buffer | |
" informatin. Its Dictionary is composed these members: | |
" bufnr: Buffer number. | |
" unlisted: If 1, this buffer is "unlisted", otherwise 0. | |
" focus: "%" means in current window. "#" means alternate buffer. | |
" active: "a" means active buffer. "h" means hidden buffer. |
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 flattenArray() { | |
return this.reduce(function(lhs, rhs) { | |
// lhs is already flatten. | |
if((rhs instanceof Array) && rhs.some(Array.isArray)) rhs = flattenArray.call(rhs); | |
return lhs.concat(rhs); | |
}, []); | |
} |
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
:HOGEコマンド: | |
これはhogehogeをfugafugaします: | |
actual: !vimexpression foo#bar#baz('hogehoge') | |
expected: EXPECTED | |
message: テスト失敗メッセージ | |
内部的にはpiyopiyoです: | |
attribute: [ドキュメント化しないよ] | |
actual: !vimscript | | |
Foo | |
Bar baz |
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
#!/bin/bash | |
MUTE=`amixer -c 0 get Master|tail -1|cut -d '[' -f 4|sed s/\]//` | |
if [ $MUTE = "on" ] ; then | |
ICON="/usr/share/icons/HighContrast/scalable/status/audio-volume-medium.svg" | |
else | |
ICON="/usr/share/icons/HighContrast/scalable/status/audio-volume-muted.svg" | |
fi |
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
--Awesome WM configuration | |
-- based /etc/xdg/awesome/rc.lua | |
-- Standard awesome library | |
local gears = require("gears") | |
local awful = require("awful") | |
awful.rules = require("awful.rules") | |
require("awful.autofocus") | |
-- Widget and layout library | |
local wibox = require("wibox") |
OlderNewer