This file contains hidden or 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 'twitter' | |
if ARGV[0].nil? || ARGV[0] == '' | |
puts 'Usage:' | |
puts ' ruby reaction_survey.rb [twitter user name]' | |
exit | |
end | |
username = ARGV[0] | |
@client = Twitter::REST::Client.new do |config| |
This file contains hidden or 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
#!/usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
# | |
# ** Hatebu2Pinboard ** | |
# はてブのAtomエクスポートデータをPinboardにインポートします。 | |
# カレントディレクトリにエクスポートデータ(dump.yml)と、 | |
# Pinboardのユーザ名、パスワードを書いたYAMLファイル(auth.yml)を | |
# 用意して下さい。 | |
# | |
# [usage] |
This file contains hidden or 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
class MySet < Array | |
def and(set) | |
self.map{ |elem| elem if set.include? elem }.compact | |
end | |
def or(set) | |
result = self | |
set.each{ |elem| result << elem unless result.include? elem } | |
result | |
end | |
def minus(set) |
This file contains hidden or 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
"2.2 | |
" Runtime Path | |
set runtimepath=/Users/mahm/.vimperator | |
" source! /Users/mahm/.vimperatorrc | |
" undo保持数 | |
set! browser.sessionstore.max_tabs_undo=30 | |
" タブの閉じるボタン非表示 | |
"set! browser.tabs.closeButtons=2 |
This file contains hidden or 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
version:1 | |
:debug:main epoch: in tree: 0 installed: 0 | |
:debug:main ghc 6.10.4_4 exists in the ports tree | |
:debug:main ghc 6.10.4_4 is the latest installed | |
:debug:main ghc 6.10.4_4 is active | |
:debug:main Merging existing variants '' into variants | |
:debug:main new fully merged portvariants: | |
:debug:main Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/ghc | |
:debug:main OS darwin/10.6.0 (Mac OS X 10.6) arch i386 | |
:debug:main org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided |
NewerOlder