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
# HG changeset patch | |
# Parent fde93adeda8d91c54211d002010c4476c27e8dcc | |
# Parent 04bb907f937cefc1a013ccdaa2e54569944b57a8 | |
implement 'transparency' for Windows GUI | |
diff --git a/src/gui_w32.c b/src/gui_w32.c | |
--- a/src/gui_w32.c | |
+++ b/src/gui_w32.c | |
@@ -50,6 +50,13 @@ static int gui_mswin_get_menu_height(int | |
# define gui_mswin_get_menu_height(fix_window) 0 |
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
#================================================================================= | |
#【アプリ名】 ニコ生アラート(本家)のAPIを用いたTwitterBot | |
#【著作権者】 raa0121 | |
#【対応環境】 | |
# Linux Mac | |
# gem install twitter_oauth | |
# gem install mechanize | |
# 後は ruby nicolivealert.rb で起動が可能です。 | |
#【開発環境】 Cygwin (WindowsVista SP2 32bit) | |
#【開発言語】 Ruby(1.9.2-p180)(DL元:http://www.artonx.org/data/asr/ ) |
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
require 'net/http' | |
require 'rubygems' | |
require 'nokogiri' | |
KCODE = 'UTF-8' | |
# アラートを通知してくれるコメントサーバーの情報を取得 | |
response = Net::HTTP.get(URI('http://live.nicovideo.jp/api/getalertinfo')) | |
xml = Nokogiri(response) | |
address = (xml/'addr').inner_text() |