Skip to content

Instantly share code, notes, and snippets.

View AmaiSaeta's full-sized avatar
👨‍💻
PROGRAMMING is the contemporary MAGIC!

天井冴太 AmaiSaeta

👨‍💻
PROGRAMMING is the contemporary MAGIC!
View GitHub Profile
@AmaiSaeta
AmaiSaeta / test.vimrc
Created March 23, 2013 20:01
For test vimproc. This file exists in the home directory. "~/vimbundles/" is a directory, Vim plugins are installed(copied) here.
set cpo&vim
set rtp^=~/vimbundles/vimproc,~/vimbundles/vesting,~/vimbundles/unite.vim
set rtp+=~/vimbundles/vesting/after
// ==UserScript==
// @name ねえねえ今どんな気持ち?
// @namespace http://amaisaeta.seesaa.net/
// @description 国分太一fier
// @include https://www.facebook.com/*
// @version 1.00.20121213
// ==/UserScript==
(function () {
var aa = [ // {{{
@AmaiSaeta
AmaiSaeta / gist:2989601
Created June 25, 2012 16:30
【解決】何故これでアクセストークンが取得出来ないのか。
# 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
@AmaiSaeta
AmaiSaeta / prepare-commit-msg
Created June 19, 2012 11:01
(for vimpr/vimperator-plugins issue #24) Insert commit file names to a commit-message by automatic.
#!/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