Skip to content

Instantly share code, notes, and snippets.

View halfmoon's full-sized avatar

はふむん@ヽ(´ー`)ノ halfmoon

View GitHub Profile
@halfmoon
halfmoon / Audio Switch-HDMI
Created October 21, 2010 17:40
内蔵出力から出力音声を切り替えるAppleScript。これは->HDMI用 これ必須→http://twitter.com/halfmn/status/28045328744
--Code by halfmn 2010-10-22 A/R/R.
--出力をHDMI出力に変更
set StdinGrowlMess to do shell script "/usr/local/bin/SwitchAudioSource -t output -s 'HDMI'"
--audiodeviceを使って、出力デバイスを確認
set StdinGrowlaudio to do shell script "/usr/local/bin/Audiodevice output"
--Soundflowerbed終了
quit application "Soundflowerbed"
@halfmoon
halfmoon / NiconaMacomment_CSV_to_HTML
Created September 12, 2010 01:09
初版。いろいろ雑でひどいですw
--NiconaMacomment コメントログ専用 CSV むにゃむにゃ変換
--Script by hfmn (except code-block with URL)
--Rev.2010-09-12
--[lv+num.csv.html]を生成します。元ファイルは[lv+num.csv]に限ります。
--番組情報が取れないときはcurlがこけてるかもなのでやり直してみてください。
--免責:スクリプトの使用に関しては自己責任でお願いします。
set targetFile to (choose file with prompt "CSVファイルを指定するといいよヽ(´ー`)ノむにゃむにゃ" as string) as string
set targetFile to targetFile as Unicode text
@halfmoon
halfmoon / nicoLiveTweet.user.js
Created July 24, 2010 17:18 — forked from rawegg/nicoLiveTweet.user.js
488666からの個人用ブランチ。unsafeWindowの改変済、夜フクロウ2.20pastetext対応、Listen/Watchの謎分岐。月色むにゃ仕様。
// ==UserScript==
// @name nicoLiveTweet
// @namespace http://nicolivemac.wordpress.com/
// @description ニコ生お知らせTwitterボタン(Web/Mac用Twitterクライアント対応)
// @include http://live.nicovideo.jp/watch/lv*
// @include http://live.nicovideo.jp/editstream/lv*
// ==/UserScript==
(function(){
@halfmoon
halfmoon / nicoLiveTweet.user.js
Created July 24, 2010 12:47 — forked from rawegg/nicoLiveTweet.user.js
unsafeWindowの改変処理。一部保守用コメントとか処理はそのまま。夜フクロウ2.20pastetext対応
// ==UserScript==
// @name nicoLiveTweet
// @namespace http://nicolivemac.wordpress.com/
// @description ニコ生お知らせTwitterボタン(Web/Mac用Twitterクライアント対応)
// @include http://live.nicovideo.jp/watch/lv*
// @include http://live.nicovideo.jp/editstream/lv*
// ==/UserScript==
(function(){