Skip to content

Instantly share code, notes, and snippets.

(function(){
var total = 0;
var year = '2012';
function init(num) {
num = (typeof num !== 'number' ? 0 : num);
if(num === 0) {
$('<div/>').css({
position: 'fixed',
left: 0,
top: 0,
@zarigani
zarigani / aitter.js
Last active December 18, 2015 03:29 — forked from moroya/aitter.js
(function(){
// このブックマークレット内で共有する変数定義
var total = {};
var year = '2012';
// 処理中のオーバーレイ表示の追加と変数の初期化
function init() {
$('<div/>').css({
position: 'fixed',
left: 0,
@zarigani
zarigani / rec_radiru.sh
Last active March 6, 2016 07:37 — forked from saiten/radiru.txt
連想配列が利用できるのはbash4以降のため修正
#!/bin/sh
# Original: http://qiita.com/items/549b42c8b361807d96a2
# Original: https://gist.github.com/1185755 saiten / radiru.txt
# Install: rtmpdump2.4 http://trick77.com/downloads/
PATH=$PATH:/usr/local/bin
# 使い方
show_usage() {
@zarigani
zarigani / rec_radiko.sh
Last active October 14, 2016 11:49 — forked from saiten/rec_radiko.sh
認証部分と録音部分に大別 -aオプションを追加(エリア情報を取得) -oオプションを拡張(ディレクトリ名とファイル名の自由度を高める) オプションを設定する仕様に変更 コマンドをフルパスに変更 rm -fの条件判定を削除
#!/bin/sh
# Original1: https://gist.github.com/875864 saiten / rec_radiko.sh
# Original2: http://backslash.ddo.jp/wordpress/archives/1020 http://backslash.ddo.jp/tools/rec_radiko2.txt
# Install: wget swftools rtmpdump ffmpeg http://d.hatena.ne.jp/zariganitosh/20130120/radiko_recoding_again
PATH=$PATH:/usr/local/bin
VERSION=3.0.0.01
# 使い方
@zarigani
zarigani / StationTV Helper.scpt
Created May 20, 2010 04:30
StationTV Helper.scpt
property pw : ""
property command : {{true, "touch "}, {false, "rm "}}
property check_text : {{true, "入"}, {false, "切"}}
property ScreenSharing_launchd : {{"10.5", "/Library/Preferences/com.apple.ScreenSharing.launchd"}, {"10.6", "/etc/ScreenSharing.launchd"}}
property RemoteManagement_launchd : {{"10.5", "/Library/Preferences/com.apple.RemoteManagement.launchd"}, {"10.6", "/etc/RemoteManagement.launchd"}}
global process_list
global service_list
global screen_sharing
global remote_managemanet
@zarigani
zarigani / AppleScript_URL_by_JavaScript.scpt
Created May 14, 2010 12:06
AppleScript_URL_by_JavaScript.scpt
tell application "AppleScript Editor"
activate
set myString to contents of document 1
set beforeList to {"%", ASCII character (9), ASCII character (13), ASCII character (13), ASCII character (32), ASCII character (34), "&", "<", ">", "\\", "\""}
set afterList to {"%25", "%09", "%0a", "%0a", "%20", "%22", "%26", "%3c", "%3e", "\\\\", "\\\""}
set html1 to "<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n</head>\n<body>\n\n<script language=\"JavaScript\">\n<!--\nlocation.href=\""
set html2 to "\"\nsetTimeout('window.close();', 1000);\n//-->\n</script>\n\n</body>\n</html>\n"
set oldDel to text item delimiters of AppleScript
@zarigani
zarigani / new_rtf_file_with_margin.scpt
Last active November 7, 2022 00:49
TextEdit margin setting
set margin to input_margin()
tell application "TextEdit"
activate
make new document
set text of front document to my rtf_setting(margin)
set tmp_path to (path to temporary items as text) & "rtf_margin_setting.scpt.rtf"
set doc_name to "余白設定 " & my in_text(margin) & ".rtf"
close front document saving yes saving in tmp_path
open file (tmp_path)
@zarigani
zarigani / Opera_to_Other.scpt
Created June 10, 2009 07:32
get_URLs、open_URLs、AppleScript
(*
このスクリプトは、現在Operaで開いている全ページを、指定したブラウザで一気に開きます。
利用したいwebブラウザをアクティブにして、Opera_to_Other.scptを実行します。
全てのページを一つの新規ウィンドウを開いて表示します。
最前面のOperaウィンドウのみに限定することができます。(デフォルト)
このスクリプトを動かすために必要なもの
AppleScriptライブラリ
依存するAppleScriptライブラリを以下のページからダウンロードしておく必要があります。
http://github.com/zarigani/AppleScript-bebe-s-Library/tree/master
@zarigani
zarigani / sayEB.scpt
Created June 6, 2009 21:28
sayEB AppleScript
(*
このスクリプトは、表計算ソフトに入力された全銀データの読み合わせを行います。
このスクリプトを動かすために必要なもの
◆SayKana
SayKana(Mac版 日本語音声合成ソフト)が/usr/local/bin/以下にインストールされている必要があります。
http://www.a-quest.com/aquestalk/saykana/
◆AppleScriptライブラリ
依存するAppleScriptライブラリを以下のページからダウンロードしておく必要があります。
saykanji()
{
voice=`kanji2voice "$1"`
echokanji "$voice"
/usr/local/bin/saykana "$voice" &
}
#FORMAT_OPTION='--node-format=%pS%f[8] --unk-format=%M --eos-format="\n"'
sayeb()
{