Skip to content

Instantly share code, notes, and snippets.

@snaka
snaka / nicolive.rb
Created January 23, 2010 07:27
ニコ生アラートを受信するスクリプト
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()
@raa0121
raa0121 / README.txt
Created October 18, 2011 17:31
ニコ生アラート(本家)のAPIを叩いて、入ってるコミュニティの生放送をTwitterにPostするRubyBot
#=================================================================================
#【アプリ名】 ニコ生アラート(本家)の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/ )
@k-takata
k-takata / 2002-windows_transparency.diff
Last active February 10, 2023 06:10
Updated for 9.0.1294 and later
# 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