This file contains 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
(if window-system | |
(progn | |
(set-background-color "Black") | |
(set-foreground-color "LightGray") | |
(set-cursor-color "Gray") | |
(set-frame-parameter nil 'alpha 80))) | |
(setenv "PATH" | |
(concat "/usr/local/flex3sdk/bin:" | |
"/usr/local/bin:" |
This file contains 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/env python | |
import urllib2 | |
import datetime | |
offset = 33039 #initial id | |
first = datetime.datetime(1990,1,1) #initial date | |
today = datetime.datetime.today() | |
for i in xrange(offset, offset+(today-first).days): | |
_dirs = [0] | |
for j in range(9,1,-1): |
This file contains 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/env python2.6 | |
# encoding: utf-8 | |
import sys | |
import sqlite3 | |
from collections import namedtuple | |
conn = sqlite3.connect("wnjpn-0.9.db") | |
Word = namedtuple('Word', 'wordid lang lemma pron pos') | |
This file contains 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
# An example of bootstrapping remote echo client via SSH connection | |
import socket | |
import subprocess | |
import sys | |
host = '192.168.1.20' | |
SSH_CLIENT = sys.platform=='win32' and 'plink' or 'ssh' | |
REMOTE_CODE = '''"import os, socket, sys |
This file contains 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
--- youtube.py.orig 2009-04-24 12:40:50.861929605 +0900 | |
+++ youtube.py 2009-04-25 02:35:27.190928256 +0900 | |
@@ -3,6 +3,7 @@ | |
gobject.threads_init() | |
import gdata.service | |
import urllib | |
+import urllib2 | |
import httplib | |
import atom | |
import threading |
This file contains 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
add control = Return | |
keycode 36 = Control_R Return Control_R Return Control_R Return |
This file contains 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
/* From given size of area and rect, examine maximum number of rects can be | |
contained in the area, and print its pattern. | |
( answer for a programming question at http://q.hatena.ne.jp/1245118420 ) | |
*/ | |
#include <stdlib.h> | |
#include <stdio.h> | |
int do_num_contain_rect(int aw, int ah, int w, int h) | |
{ | |
if (w>aw || h>ah) return 0; |
This file contains 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
;; CHM file support for Python help | |
;; Prerequisites: hhh.exe http://saitou155.catfood.jp/hhh.htm | |
;; TODO: support Mac and Linux | |
(require 'python-mode) | |
(defcustom py-chmhelp-path "/Python26/Doc/python262.chm" | |
"path for Python CHM help file" | |
:type 'string | |
:group 'python) |
This file contains 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/env python | |
# Your account information | |
username="" | |
password="" | |
# screen_resolution is used for balloon positioning | |
screen_resolution=1024,768 | |
# Minimum update_interval under Twitter API restriction is 60*60/70=51.4 | |
update_interval=52 | |
# Balloon will disapear after notify_timeout seconds |
This file contains 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
/* | |
userstreams.go: Reads ChirpUserStreams continuously, format tjem, then put them | |
into standard output. For detail, read:http://apiwiki.twitter.com/ChirpUserStreams . | |
Author: Yusuke Yanbe ([email protected]) | |
*/ | |
package main | |
import ( |
OlderNewer