Skip to content

Instantly share code, notes, and snippets.

@tarchan
tarchan / マップを表示
Created July 25, 2008 06:34
Webページに書かれた住所をマップで開きます。
javascript:(function(){%09var%20s=document.createElement('script');%09s.charset='UTF-8';%09s.language='javascript';%09s.type='text/javascript';%09var%20d=new%20Date;%09s.src='http://gist.github.com/raw/2618/48b132f9c6b80af3ed860f2631af1f607c6f05ec?'+d.getMilliseconds();%09document.body.appendChild(s);})()
@tarchan
tarchan / AddressLink.js
Created July 26, 2008 07:54
Open Google Maps for Japanese Address
@tarchan
tarchan / 住所をリンク
Created July 26, 2008 08:38
Webページに書かれた住所をリンクに変換します。
javascript:(function(){%09var%20s=document.createElement('script');%09s.charset='UTF-8';%09s.language='javascript';%09s.type='text/javascript';%09var%20d=new%20Date;%09s.src='http://gist.github.com/raw/2618/128a57e50252e49e6bd1d417e94bbfcff4af7913?'+d.getMilliseconds();%09document.body.appendChild(s);})()
@tarchan
tarchan / zshrc
Created August 27, 2008 03:53
.zshrc
# users generic .zshrc file for zsh(1)
## Environment variable configuration
#
# LANG
#
export LANG=ja_JP.UTF-8
## Default shell configuration
@tarchan
tarchan / gist:8605
Created September 3, 2008 15:17 — forked from hakobe/gist:8599
淡々と1秒まっては次の曲を再生するAppleScript
tell application "iTunes"
play
repeat while (true)
delay 1
next track
end repeat
end tell
@tarchan
tarchan / IRCTweet.java
Created October 9, 2009 05:23
JJUG CCC 2009 Fall
/*
* Copyright (c) 2009 tarchan. All rights reserved.
*/
package com.mac.tarchan.tweet;
import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.FlowLayout;
import java.awt.Window;
import java.io.IOException;
@tarchan
tarchan / 外部スクリプトを読み込む
Created October 28, 2009 01:40
引数で指定したJavaScriptを順番に読み込みます。
javascript:(function(a,s){s=document.createElement('script');s.charset='UTF-8';s.type='text/javascript';s.src=a.shift();document.body.appendChild(s);if(a.length)arguments.callee(a);})(['http://ss-o.net/userjs/minibuffer.safari.user.js','http://ss-o.net/userjs/oAutoPagerize.js','http://ss-o.net/userjs/ldrize.safari.user.js']);
@tarchan
tarchan / sort_css_property.pl
Created April 8, 2010 05:20 — forked from xaicron/sort_css_property.pl
CSSのプロパティをソートするPerlスクリプト
#!/usr/bin/perl
# Author: Kyo Nagashima <kyo@hail2u.net>, http://hail2u.net/
# License: MIT license (http://opensource.org/licenses/mit-license.php)
# Modified: 2009-11-14T12:24:54+09:00
# Updated: xaicron (http://blog.livedoor.jp/xaicron/)
use strict;
use warnings;
@tarchan
tarchan / jframe.js
Created July 12, 2011 01:45
JavaScriptでSwingのウインドウを表示する
importPackage(javax.swing);
frame = new JFrame("sample");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setSize(400, 300);
frame.setLocationByPlatform(true);
frame.setVisible(true);
@tarchan
tarchan / google.js
Created July 12, 2011 01:49
LimeChatでGoogle検索する
// gede99 @ http://pen2.com/google/
var version = "google.js v0.05";
//
var chList = new Array();
var chListFile = "google_chlist.txt";
var entity = {"ne":8800,"le":8804,"para":182,"xi":958,"darr":8595,"nu":957,"oacute":243,"Uacute":218,"omega":969,"prime":8242,"pound":163,"igrave":236,"thorn":254,"forall":8704,"emsp":8195,"lowast":8727,"brvbar":166,"alefsym":8501,"nbsp":160,"delta":948,"clubs":9827,"lArr":8656,"Omega":937,"quot":34,"Auml":196,"cedil":184,"and":8743,"plusmn":177,"ge":8805,"raquo":187,"uml":168,"equiv":8801,"laquo":171,"Epsilon":917,"rdquo":8221,"divide":247,"fnof":402,"chi":967,"Dagger":8225,"iacute":237,"rceil":8969,"sigma":963,"Oslash":216,"acute":180,"frac34":190,"upsih":978,"lrm":8206,"Scaron":352,"part":8706,"exist":8707,"nabla":8711,"image":8465,"prop":8733,"omicron":959,"zwj":8205,"gt":62,"aacute":225,"Yuml":376,"Yacute":221,"weierp":8472,"rsquo":8217,"otimes":8855,"kappa":954,"thetasym":977,"harr":8596,"Ouml":214,"Iota":921,"ograve":242,"sdot":8901,"copy":169,"oplus":8853,"acirc":226,