Skip to content

Instantly share code, notes, and snippets.

View superbrothers's full-sized avatar
🌏
Working from the earth

Kazuki Suda superbrothers

🌏
Working from the earth
View GitHub Profile
require 'rubygems'
require 'oauth/consumer'
OAuth::VERSION = 1.0
print 'Consumer Key > '; consumer_key = gets.chomp.strip
print 'Consumer Secret > '; consumer_secret = gets.chomp.strip
consumer = OAuth::Consumer.new(consumer_key, consumer_secret,
{:site => "https://api.login.yahoo.com",
:request_token_path => "/oauth/v2/get_request_token",
:authorize_path => "/oauth/v2/request_auth",
" ////// options /////////////////////////////////////////////
" ex mode でインクリメント補完
set wildoptions=auto
" :[tab]open の補完対象と順序
set complete=tsl
" Change the title of the browser window.
set titlestring="vimperator!!"
// ==UserScript==
// @name Twitter with Favotter
// @namespace http://gist.github.com/607622
// @include http://twitter.com/*/status/*
// ==/UserScript==
(function () {
// Favotter URL
var favotter = "http://favotter.net/";
// CSS
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("twitter.com") {
.fixed-banners {display: none !important;}
body.phoenix-skybar {padding-top: 0px !important;}
}
find * -name "*\.png" -maxdepth 0 -exec convert -strip -crop 1600x2200+0+0 -type GrayScale -threshold 80% -resize 600x800 -quality 80 {} r_{} \;;\
zip archive.zip r_*;\
rm -f r_*
#/bin/sh
/Applications/Firefox4beta.app/Contents/MacOS/firefox -P "4.0beta" > /dev/null 2>&1 &
function! ToggleJSLintHighlightErrorLine()
if g:JSLintHighlightErrorLine == 1
let g:JSLintHighlightErrorLine = 0
else
let g:JSLintHighlightErrorLine = 1
endif
JSLintUpdate
endfunc
autocmd FileType javascript nmap ,e :call ToggleJSLintHighlightErrorLine()<CR>
@charset "utf-8";
/*
* このファイルを編集して userChrome.css という名前で
* [プロファイルディレクトリ]/chrome/
* ディレクトリにコピーしてください。
*/
/*
* このファイルを使って Mozilla のユーザインターフェイスの見た目をカスタマイズ
* できます。デフォルト設定を上書きする場合は !important 宣言を使ってください。
// ==UserScript==
// @name expand tiqav on new twitter
// @namespace http://gist.github.com/742072
// @include http://twitter.com/
// @include http://twitter.com/#!/*
// ==/UserScript==
(function () {
function addJQuery(callback) {
var script = document.createElement("script");
script.setAttribute("src", "http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js");
#facebox {
position: absolute;
top: 0;
left: 0;
z-index: 100;
text-align: left;
}
#facebox .popup{