This file contains hidden or 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
#!/usr/bin/ruby1.8 | |
# create table rt ( | |
# id integer unsigned not null auto_increment primary key, | |
# pref char(32) not null, | |
# city char(32) not null, | |
# addr char(32) not null, | |
# rt_group integer not null, | |
# | |
# index(pref,city,addr,rt_group) |
This file contains hidden or 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
#!/bin/sh | |
if [ "x$1" = "x" -o "x$2" = "x" ]; then | |
echo "Usage: $0 inport outport" | |
exit 1 | |
fi | |
if [ "x$3" = "x" ]; then | |
BITRATE=128 | |
else |
This file contains hidden or 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
<?php // bogus reverse-proxy for VLC http streaming output | |
ini_set("display_errors", 0); | |
ini_set("log_errors", 1); | |
if(isset($_REQUEST['port'])) | |
$port = intval($_REQUEST['port']); | |
else | |
$port = 12234; |
This file contains hidden or 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
#!/usr/bin/ruby | |
# | |
# gem install grackle | |
# | |
# ./check_fof.rb <your_twitter_screen_name> | |
# | |
$KCODE = 'u' | |
require 'rubygems' |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.2.min.js"></script> | |
<title>谷岡 Stooq jQuery 版</title> | |
<script type="text/javascript"> | |
// コンストラクタ | |
// @param symbols 取得すべき銘柄の文字列配列。取得結果はこの配列の順番で表示する。 |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.2.min.js"></script> | |
<title>習慣^H^H週刊韓国経済をヲンで買う</title> | |
<style type="text/css"> | |
input { text-align: right; } | |
</style> | |
<script type="text/javascript"> |
This file contains hidden or 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
#!/usr/bin/ruby | |
ORG_ARGV = ARGV.dup | |
require 'optparse' | |
require 'socket' | |
BasicSocket.do_not_reverse_lookup = true | |
require 'webrick' |
This file contains hidden or 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
(auto-compression-mode t) | |
(if (file-exists-p "/usr/bin/lgrep") | |
(setq grep-command "lgrep -n ") | |
) | |
(require 'font-lock) | |
(global-font-lock-mode t) | |
(global-set-key [delete] 'delete-char) | |
(global-set-key "\C-h" 'backward-delete-char) |
This file contains hidden or 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
#!/usr/bin/ruby1.9.1 | |
# -*- coding: euc-jp -*- | |
require 'net/telnet' | |
RT_HOST = 'YOUR_RTX1000_ADDR' | |
RT_PW = 'YOUR_RTX1000_PASSWORD' | |
telnet = Net::Telnet.new("Host" => RT_HOST, | |
"Waittime" => 1, |
This file contains hidden or 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
#!/usr/bin/ruby1.9.1 | |
# -*- encoding: utf-8-unix; -*- | |
require 'rubygems' | |
require 'grackle' | |
# add :auth parameter to retweet/post | |
client = Grackle::Client.new() | |
tw = client.statuses.user_timeline.json?(:screen_name => 'akahito65535') |
OlderNewer